sys_select tests: Check the signature of FD_*.
[pspp] / ChangeLog
1 2011-07-22  Bruno Haible  <bruno@clisp.org>
2
3         sys_select tests: Check the signature of FD_*.
4         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5         signature tests from here...
6         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7         here.
8         * modules/sys_select-tests (Files): Add tests/signature.h.
9
10 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11
12         largefile: new module, replacing large-inode
13         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14         * MODULES.html.sh: Add largefile, remove large-inode.
15         * modules/largefile, m4/largefile.m4: New files.
16         * modules/large-inode, m4/large-inode.m4: Remove.
17
18         fsusage: port to MacOS X 10.7 with 4 TiB file systems
19         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
20         implementations that use only 32 bits to count blocks.
21         On typical hosts with 1024-byte blocks, this fails with file
22         systems as small as 4 TiB.  Problem reported by Herb Wartens
23         <http://debbugs.gnu.org/9140> and this should also fix a similar
24         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
25
26         large-inode: New module
27         * MODULES.html.sh: Add it.
28         * modules/large-inode, m4/large-inode.m4: New files.
29
30         extensions: Enable extensions on MacOS X 10.5 and later.
31         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
32
33 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34
35         file-has-acl: use acl_extended_file_nofollow if available
36         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
37         (acl_extended_file): New macro.
38         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
39         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
40
41 2011-07-21  Bruno Haible  <bruno@clisp.org>
42
43         Declare system functions in a way that works with C++.
44         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
45         declare fdopendir as extern "C".
46         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47         declare frexpl as extern "C".
48         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49         declare gai_strerror as extern "C".
50         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
51         programs, declare gai_strerror as extern "C".
52         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
53         declare getlogin_r as extern "C".
54         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
55         as extern "C".
56         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
57         declare ldexpl as extern "C".
58         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
59         as extern "C".
60         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
61         program, declare getmntinfo as extern "C".
62         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
63         stpncpy as extern "C".
64         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
65         program, declare __xpg_strerror_r as extern "C".
66         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
67         strndup as extern "C".
68         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
69         declare memset and bzero as extern "C".
70         Reported by Sam Steingold <sds@gnu.org>.
71
72 2011-07-12  Jim Meyering  <meyering@redhat.com>
73
74         maint.mk: prohibit inclusion of "verify.h" without use
75         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
76
77 2011-07-19  Pádraig Brady  <P@draigBrady.com>
78
79         timer-time: A new module to check for timer_settime()
80         * m4/timer_time.m4: Check for the posix function.
81         * modules/timer-time: Add the new module.
82         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
83         Mention it.
84
85 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
86             Bruno Haible  <bruno@clisp.org>
87
88         pthread_sigmask: assume POSIX threads if --avoid=threadlib
89         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
90         not defined, assume POSIX threads and look for pthread_sigmask in
91         $LIBS, without changing $CPPFLAGS.
92
93 2011-07-19  Bruno Haible  <bruno@clisp.org>
94
95         strstr: Update cross-compilation guess.
96         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
97         CPUs, guess no, in view of glibc
98         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
99         Suggested by Eric Blake. Reported by Reuben Thomas.
100
101 2011-07-19  Pádraig Brady  <P@draigBrady.com>
102
103         getopt-gnu: suppress core dumps from detection code
104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
105         to suppress core dumps that may well occur on glibc systems.
106         * modules/getopt-gnu: Depend on nocrash.
107
108 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109
110         pthread_sigmask: ensure usleep is declared
111         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
112         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
113
114 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
115
116         doc: Document NonStop portability issues.
117         * doc/posix-functions/sigaction.texi (sigaction):
118         * doc/posix-headers/signal.texi (signal.h):
119         Document NonStop.  See Joachim Schmitz in
120         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
121
122 2011-07-15  Bruno Haible  <bruno@clisp.org>
123
124         ffsl, ffsll: Avoid unportable behaviour.
125         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
126
127 2011-07-15  Bruno Haible  <bruno@clisp.org>
128
129         ffs: More tests.
130         * tests/test-ffs.c (NBITS): New macro.
131         (main): Add more tests.
132         * tests/test-ffsl.c (NBITS): New macro.
133         (main): Add more tests.
134         * tests/test-ffsll.c (NBITS): New macro.
135         (main): Add more tests.
136
137 2011-07-15  Eric Blake  <eblake@redhat.com>
138
139         ffsl, ffsll: new modules
140         * modules/ffsl: New file.
141         * modules/ffsll: Likewise.
142         * m4/ffsl.m4: Likewise.
143         * m4/ffsll.m4: Likewise.
144         * lib/ffsl.c: Likewise.
145         * lib/ffsl.h: Likewise.
146         * lib/ffsll.c: Likewise.
147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
148         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
149         * modules/string (Makefile.am): Substitute witnesses.
150         * lib/strings.in.h (ffsl, ffsll): Declare.
151         * modules/ffsl-tests: New test file.
152         * modules/ffsll-tests: Likewise.
153         * tests/test-ffsl.c: Likewise.
154         * tests/test-ffsll.c: Likewise.
155         * MODULES.html.sh (Integer arithmetic functions): Mention it.
156         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
157         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
158
159         ffs: fix m4 prerequisite
160         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
161
162         ffs: avoid undefined behavior
163         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
164         * tests/test-ffs.c (naive, main): Avoid signed shifts.
165         Reported by Bruno Haible.
166
167 2011-07-12  Bruno Haible  <bruno@clisp.org>
168
169         pthread_sigmask: Rely on module 'threadlib'.
170         * modules/pthread_sigmask (Depends-on): Add threadlib.
171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
172         is defined.
173
174 2011-07-12  Bruno Haible  <bruno@clisp.org>
175
176         regex: Depend on module 'strcase'.
177         * modules/regex (Depends-on): Add strcase, for strcasecmp().
178
179 2011-07-12  Jim Meyering  <meyering@redhat.com>
180
181         warn-on-use: fix typo in file name
182         * modules/snippet/warn-on-use (Files): Correct file name:
183         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
184
185 2011-07-12  Bruno Haible  <bruno@clisp.org>
186
187         strings: Document module.
188         * doc/posix-headers/strings.texi: Mention module 'strings'.
189
190 2011-07-12  Bruno Haible  <bruno@clisp.org>
191
192         Rename module '_Noreturn' to 'snippet/_Noreturn'.
193         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
194         (Files, Makefile.am): Update.
195         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
196         * modules/stdlib (Depends-on): Update.
197
198 2011-07-12  Bruno Haible  <bruno@clisp.org>
199
200         * NEWS: Mention the changes.
201
202         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
203         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
204         (Files, Makefile.am): Update.
205         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
206         * modules/arpa_inet (Depends-on): Update.
207         * modules/ctype (Depends-on): Update.
208         * modules/dirent (Depends-on): Update.
209         * modules/fcntl-h (Depends-on): Update.
210         * modules/glob (Depends-on): Update.
211         * modules/iconv-h (Depends-on): Update.
212         * modules/inttypes-incomplete (Depends-on): Update.
213         * modules/langinfo (Depends-on): Update.
214         * modules/locale (Depends-on): Update.
215         * modules/math (Depends-on): Update.
216         * modules/netdb (Depends-on): Update.
217         * modules/poll-h (Depends-on): Update.
218         * modules/pty (Depends-on): Update.
219         * modules/search (Depends-on): Update.
220         * modules/signal (Depends-on): Update.
221         * modules/spawn (Depends-on): Update.
222         * modules/stdio (Depends-on): Update.
223         * modules/stdlib (Depends-on): Update.
224         * modules/string (Depends-on): Update.
225         * modules/strings (Depends-on): Update.
226         * modules/sys_file (Depends-on): Update.
227         * modules/sys_ioctl (Depends-on): Update.
228         * modules/sys_select (Depends-on): Update.
229         * modules/sys_socket (Depends-on): Update.
230         * modules/sys_stat (Depends-on): Update.
231         * modules/sys_time (Depends-on): Update.
232         * modules/sys_times (Depends-on): Update.
233         * modules/sys_utsname (Depends-on): Update.
234         * modules/sys_wait (Depends-on): Update.
235         * modules/termios (Depends-on): Update.
236         * modules/time (Depends-on): Update.
237         * modules/unistd (Depends-on): Update.
238         * modules/wchar (Depends-on): Update.
239         * modules/wctype-h (Depends-on): Update.
240         * MODULES.html.sh (Support for building libraries and executables):
241         Update.
242
243         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
244         * modules/snippet/unused-parameter: Renamed from
245         modules/unused-parameter.
246         (Files, Makefile.am): Update.
247         * build-aux/snippet/unused-parameter.h: Renamed from
248         build-aux/unused-parameter.h.
249         * modules/selinux-h (Depends-on): Update.
250         * modules/unistr/base (Depends-on): Update.
251         * MODULES.html.sh (Core language properties): Update.
252
253         Rename module 'link-warning' to 'snippet/link-warning'.
254         * modules/snippet/link-warning: Renamed from modules/link-warning.
255         (Files, Makefile.am): Update.
256         * build-aux/snippet/link-warning.h: Renamed from
257         build-aux/link-warning.h.
258         * MODULES.html.sh (Support for building libraries and executables):
259         Update.
260
261         Rename module 'c++defs' to 'snippet/c++defs'.
262         * modules/snippet/c++defs: Renamed from modules/c++defs.
263         (Files, Makefile.am): Update.
264         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
265         * modules/arpa_inet (Depends-on): Update.
266         * modules/ctype (Depends-on): Update.
267         * modules/dirent (Depends-on): Update.
268         * modules/fcntl-h (Depends-on): Update.
269         * modules/glob (Depends-on): Update.
270         * modules/iconv-h (Depends-on): Update.
271         * modules/langinfo (Depends-on): Update.
272         * modules/locale (Depends-on): Update.
273         * modules/math (Depends-on): Update.
274         * modules/netdb (Depends-on): Update.
275         * modules/poll-h (Depends-on): Update.
276         * modules/pty (Depends-on): Update.
277         * modules/search (Depends-on): Update.
278         * modules/signal (Depends-on): Update.
279         * modules/spawn (Depends-on): Update.
280         * modules/stdio (Depends-on): Update.
281         * modules/stdlib (Depends-on): Update.
282         * modules/string (Depends-on): Update.
283         * modules/strings (Depends-on): Update.
284         * modules/sys_ioctl (Depends-on): Update.
285         * modules/sys_select (Depends-on): Update.
286         * modules/sys_socket (Depends-on): Update.
287         * modules/sys_stat (Depends-on): Update.
288         * modules/sys_time (Depends-on): Update.
289         * modules/sys_wait (Depends-on): Update.
290         * modules/termios (Depends-on): Update.
291         * modules/time (Depends-on): Update.
292         * modules/unistd (Depends-on): Update.
293         * modules/wchar (Depends-on): Update.
294         * modules/wctype-h (Depends-on): Update.
295
296         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
297         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
298         (Files, Makefile.am): Update.
299         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
300         * modules/argv-iter (Depends-on): Update.
301         * modules/arpa_inet (Depends-on): Update.
302         * modules/dirent (Depends-on): Update.
303         * modules/fcntl-h (Depends-on): Update.
304         * modules/fnmatch (Depends-on): Update.
305         * modules/getopt-posix (Depends-on): Update.
306         * modules/glob (Depends-on): Update.
307         * modules/iconv-h (Depends-on): Update.
308         * modules/inttypes-incomplete (Depends-on): Update.
309         * modules/locale (Depends-on): Update.
310         * modules/math (Depends-on): Update.
311         * modules/netdb (Depends-on): Update.
312         * modules/search (Depends-on): Update.
313         * modules/signal (Depends-on): Update.
314         * modules/spawn (Depends-on): Update.
315         * modules/stdio (Depends-on): Update.
316         * modules/stdlib (Depends-on): Update.
317         * modules/string (Depends-on): Update.
318         * modules/strings (Depends-on): Update.
319         * modules/sys_socket (Depends-on): Update.
320         * modules/sys_stat (Depends-on): Update.
321         * modules/sys_time (Depends-on): Update.
322         * modules/sys_times (Depends-on): Update.
323         * modules/sys_utsname (Depends-on): Update.
324         * modules/time (Depends-on): Update.
325         * modules/unistd (Depends-on): Update.
326         * modules/wchar (Depends-on): Update.
327         * MODULES.html.sh (Support for building libraries and executables):
328         Update.
329
330 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
331
332         Improvements on _Noreturn and related modules.
333
334         modules/_Exit-tests: test _Noreturn too
335         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
336         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
337         (main): Use them.
338
339         stdnoreturn, stdnoreturn-tests: remove modules
340         They're not needed here and a bit premature for use elsewhere.  See
341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
342         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
343         * tests/test-stdnoreturn.c: Remove files.
344         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
345         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
346         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
347         and using noreturn.
348         * modules/openat, modules/sigpipe-die, modules/xalloc:
349         * modules/xmemdup0, modules/xstrtol:
350         Remove dependency on stdnoreturn.
351
352         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
353         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
354         Reparenthesize to avoid GCC warning.
355         Support Microsoft's syntax.
356         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
357
358         _Noreturn-tests: remove module
359         * modules/_Noreturn-tests: Remove.
360         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
361         * tests/test-_Noreturn.c: Remove.
362         * tests/test-stdnoreturn.c: Merge from the old
363         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
364
365 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
366
367         _Noreturn, stdnoreturn, and related modules.
368
369         * top/maint.mk: Adjust to new noreturn support.
370         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
371         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
372
373         xalloc: use stdnoreturn.h
374         * lib/xalloc.h: Include <stdnoreturn.h>.
375         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
376         * modules/xalloc (Depends-on): Add stdnoreturn.
377
378         xstrtol: use stdnoreturn.h
379         * lib/xstrtol.h: Include <stdnoreturn.h>.
380         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
381         * modules/xstrtol (Depends-on): Add stdnoreturn.
382
383         xmemdup0: use stdnoreturn.h
384         * lib/xmemdup0.h: Include <stdnoreturn.h>.
385         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
386         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
387
388         sigpipe-die: use stdnoreturn.h
389         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
390         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
391         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
392
393         openat: use stdnoreturn.h
394         * lib/openat.h: Include <stdnoreturn.h>.
395         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
396         * modules/openat (Depends-on): Add stdnoreturn.
397
398         * lib/openat-die.c (openat_save_fail): Modernize comment.
399
400         * lib/xalloc-die.c (xalloc_die): Modernize comment.
401
402         * lib/glthread/thread.h: Modernize comment.
403
404         obstack: use _Noreturn
405         * lib/obstack.c (__attribute__): Remove macro.
406         (print_and_abort): Use _Noreturn.
407
408         c-stack: use _Noreturn
409         * lib/c-stack.c (die, overflow_handler, segv_handler):
410         Use _Noreturn rather than __attribute__((noreturn)).
411
412         argmatch-tests, exclude_tests: use _Noreturn
413         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
414         Remove.
415         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
416
417         stdlib: use _Noreturn
418         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
419         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
420         * modules/stdlib (Depends-on): Add _Noreturn.
421         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
422
423         stdnoreturn-tests: new module
424         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
425
426         stdnoreturn: new module
427         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
428         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
429
430         _Noreturn-tests: new module
431         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
432
433         _Noreturn: new module
434         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
435         New section, mentioning it.
436         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
437
438         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
439
440 2011-07-11  Eric Blake  <eblake@redhat.com>
441
442         ffs: new module
443         * modules/ffs: New file.
444         * m4/ffs.m4: Likewise.
445         * lib/ffs.c: Likewise.
446         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
447         * modules/strings (Makefile.am): Substitute witness.
448         (Depends-on): Add c++defs.
449         * lib/strings.in.h (ffs): Declare.
450         * modules/ffs-tests: New test file.
451         * tests/test-ffs.c: Test new module.
452         * MODULES.html.sh (Integer arithmetic functions): Mention it.
453         * doc/posix-functions/ffs.texi (ffs): Likewise.
454
455         regex: avoid compiler warning
456         * lib/regex.c (includes): Include <strings.h>, for use of
457         strcasecmp in regcomp.c.
458         Reported by Joachim Schmitz.
459
460 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
461
462         stdint: respect system's intmax_t if INTMAX_MAX
463         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
464         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
465         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
466         long but int64_t is long long, and where we will clash with the
467         system intmax_t if we override it.  See
468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
469         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
470         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
471         similarly for UINTMAX_C.
472
473 2011-07-08  Bruno Haible  <bruno@clisp.org>
474
475         pthread_sigmask tests: Avoid a compiler warning.
476         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
477         non-zero.
478
479         sigprocmask tests: A better way to avoid a compiler warning.
480         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
481         (main): Complain if system() returns non-zero.
482         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
483
484 2011-07-08  Bruno Haible  <bruno@clisp.org>
485
486         pthread_sigmask: Work around IRIX bug.
487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
488         bug.
489         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
490         there may be unblocked pending signals.
491         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
492
493 2011-07-08  Bruno Haible  <bruno@clisp.org>
494
495         pthread_sigmask: Work around Cygwin bug.
496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
497         bug.
498         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
499         the system's pthread_sigmask function.
500         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
501
502 2011-07-08  Bruno Haible  <bruno@clisp.org>
503
504         pthread_sigmask: Work around bug in single-threaded implementation.
505         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
506         FreeBSD, HP-UX, Solaris bug.
507         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
508         * lib/pthread_sigmask.c: Include <stddef.h>.
509         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
510         the system's pthread_sigmask function.
511         * modules/pthread_sigmask (configure.ac): Invoke
512         gl_PREREQ_PTHREAD_SIGMASK.
513         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
514         HP-UX, Solaris.
515
516 2011-07-08  Eric Blake  <eblake@redhat.com>
517
518         test-sigprocmask: avoid compiler warning
519         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
520         * tests/test-sigprocmask.c (main): Use it to silence warning.
521         Reported by Jim Meyering.
522
523         test-snprintf: avoid compiler warning
524         * tests/test-snprintf.c (main): Avoid shadowed declaration.
525         * tests/test-vsnprintf.c (main): Likewise.
526         Reported by Jim Meyering.
527
528 2011-07-08  Bruno Haible  <bruno@clisp.org>
529
530         Tests for module 'pthread_sigmask'.
531         * modules/pthread_sigmask-tests: New file.
532         * tests/test-pthread_sigmask1.c: New file, based on
533         tests/test-sigprocmask.c.
534         * tests/test-pthread_sigmask2.c: New file.
535
536 2011-07-08  Jim Meyering  <meyering@redhat.com>
537
538         test-getopt.h: avoid warning about an unused variable
539         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
540
541 2011-07-07  Jim Meyering  <meyering@redhat.com>
542
543         maint: reduce list of files exempt from sc_prohibit_leading_TABs
544         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
545         now that it no longer contains leading TABs.
546         Remove unused "url=FIXME" statement.
547
548 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
549
550         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
551         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
552         When gl_THREADLIB is not in use, assume that the POSIX sematics
553         are desired.  This is better for Emacs, which uses POSIX semantics
554         on GNUish and/or POSIXish platforms, and does not use threads at
555         all otherwise.
556
557         pthread_sigmask: fix typo when testing for libraries
558         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
559         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
560
561 2011-07-08  Eric Blake  <eblake@redhat.com>
562
563         fts: introduce FTS_NOATIME
564         * lib/fts_.h (FTS_NOATIME): New bit flag.
565         (FTS_OPTIONMASK): Adjust.
566         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
567         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
568
569 2011-07-08  Bruno Haible  <bruno@clisp.org>
570
571         Tests for module 'thread'.
572         * modules/thread-tests: New file.
573         * tests/test-thread_self.c: New file.
574         * tests/test-thread_create.cc: New file.
575
576 2011-07-08  Bruno Haible  <bruno@clisp.org>
577
578         thread: Avoid gcc warnings when using gl_thread_self().
579         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
580         'void *'.
581         (gl_thread_self_pointer): Update.
582
583 2011-07-07  Bruno Haible  <bruno@clisp.org>
584
585         signal-c++-tests: Check declaration of pthread_sigmask.
586         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
587         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
588         $(LIB_PTHREAD_SIGMASK).
589
590 2011-07-07  Bruno Haible  <bruno@clisp.org>
591
592         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
593         * lib/signal.in.h (pthread_sigmask): Override if
594         REPLACE_PTHREAD_SIGMASK is 1.
595         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
596         REPLACE_PTHREAD_SIGMASK.
597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
598         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
599         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
600         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
601         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
602
603 2011-07-07  Bruno Haible  <bruno@clisp.org>
604
605         pthread_sigmask: Ensure declaration in <signal.h>.
606         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
607         include <pthread.h>.
608         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
609         problem.
610
611 2011-07-07  Bruno Haible  <bruno@clisp.org>
612
613         pthread_sigmask: Document the module.
614         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
615
616 2011-07-07  Bruno Haible  <bruno@clisp.org>
617
618         pthread_sigmask: Follow gnulib conventions.
619         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
620         gl_PTHREAD_SIGMASK.
621         * modules/pthread_sigmask (configure.ac): Update.
622
623 2011-07-07  Bruno Haible  <bruno@clisp.org>
624
625         pthread_sigmask: Make declaration C++ safe.
626         * lib/signal.in.h: In two special conditions, just do an #include_next.
627         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
628         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
629         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
630         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
631         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
632         not REPLACE_PTHREAD_MASK.
633         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
634         not REPLACE_PTHREAD_MASK.
635         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
636
637 2011-07-07  Bruno Haible  <bruno@clisp.org>
638
639         pthread_sigmask: Fix return value.
640         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
641         * lib/pthread_sigmask.c: New file.
642         * modules/pthread_sigmask (Files): Add it.
643         (configure.ac): Invoke AC_LIBOBJ.
644
645 2011-07-07  Eric Blake  <eblake@redhat.com>
646
647         getopt: more portable argv creation
648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
649         const, use char arrays rather than strings.
650         Suggested by Paul Eggert.
651
652 2011-07-07  Bruno Haible  <bruno@clisp.org>
653
654         Tests for module 'sigprocmask'.
655         * modules/sigprocmask-tests: New file.
656         * tests/test-sigprocmask.c: New file.
657
658 2011-07-07  Bruno Haible  <bruno@clisp.org>
659
660         float tests: Tweak.
661         * tests/test-float.c (main): Tweak skip message.
662
663 2011-07-07  Eric Blake  <eblake@redhat.com>
664
665         getopt: avoid compiler warning during configure
666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
667         assigning string literals to non-const pointer.
668
669         getopt-gnu: avoid crash in glibc getopt
670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
671         * tests/test-getopt.h (test_getopt): Enhance test.
672         * tests/test-getopt_long.h (test_getopt_long): Likewise.
673         * doc/posix-functions/getopt.texi (getopt): Document it.
674         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
675         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
676         Likewise.
677
678 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
679
680         getopt: handle W; without long options in getopt [BZ #12922]
681         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
682         but no long options are defined, just return 'W'.
683
684 2011-07-07  Bruno Haible  <bruno@clisp.org>
685
686         Avoid literal tabs.
687         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
688         variable containing a tab instead of a literal tab.
689         Reported by Jim Meyering.
690
691 2011-07-07  Bruno Haible  <bruno@clisp.org>
692
693         Comments.
694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
695
696 2011-07-06  Bruno Haible  <bruno@clisp.org>
697
698         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
699         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
700         <winsock2.h>.
701         (rpl_fd_isset, FD_ISSET): New definitions, copied from
702         lib/sys_socket.in.h.
703         (close, gethostname): Hide declarations from <winsock2.h>.
704         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
705         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
706         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
707         (select): Don't override if gnulib's <sys/select.h> was already
708         included.
709         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
710         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
711         setsockopt, shutdown, select): Tweak indentation.
712
713 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
714
715         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
716         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
717         in an application that does not use the sys_select module.
718
719 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
720
721         poll: do not return 0 on timeout=-1
722         * lib/poll.c: Loop with yield if no events occured
723
724 2011-07-06  Eric Blake  <eblake@redhat.com>
725
726         pthread_sigmask: always replace when not using pthread
727         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
728         replacement when using some threading other than pthread.  Fix
729         logic bug.
730
731 2011-07-06  Bruno Haible  <bruno@clisp.org>
732
733         Comments.
734         * m4/printf.m4: Update comments about mingw.
735
736 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
737
738         sys_select: define sigset_t more portably
739         * lib/sys_select.in.h: Always include <sys/types.h>, since
740         we now need sigset_t and mingw defines it there.
741         Include <signal.h> before split inclusion guard, to avoid
742         mishaps on Solaris, whose <signal.h> eventually includes us.
743         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
744         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
745         which come from ...
746         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
747         gl_CHECK_TYPE_SIGSET_T.
748         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
749         does the real work.
750         * modules/sys_select (Depends-on): Add 'signal'.
751
752         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
753         Suggested by Bruno Haible.
754
755         pselect: Use pthread_sigmask, not sigprocmask.
756         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
757         multithreaded apps better than sigprocmask does.
758         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
759         sigprocmask directly.
760
761 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
762
763         * lib/pselect.c (pselect): Use plain name, without "rpl_".
764         Don't #undef,  since we don't need any underlying pselect.
765         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
766         (Depends-on): Add select.
767         (Link): Add $(LIBSOCKET).
768         These changes suggested by Bruno Haible.
769
770         pselect: document better
771         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
772         * doc/posix-functions/pselect.texi (pselect): Document new module.
773
774         pthread_sigmask: new module
775         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
776         * doc/posix-functions/pthread_sigmask.texi: Document new module.
777         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
778         This is done only as a macro; I don't know how well that'll
779         work for C++.  Move <sys/types.h> include before the include_next,
780         to avoid mishap on Solaris.
781         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
782         * modules/signal (Makefile.am): Substitute the check's results.
783         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
784
785         test-pselect: new module
786         * modules/pselect-tests, tests/test-pselect.c: New files.
787         * tests/test-select.c, tests/test-sys_select-c++.cc:
788         If TEST_PSELECT is defined, test pselect instead of testing select.
789
790         * tests/test-sys_select.c (sigset_t): Test for it, too.
791         Suggested by Bruno Haible.
792
793 2011-07-05  Eric Blake  <eblake@redhat.com>
794
795         snprintf: guarantee %1$d, for libintl
796         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
797         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
798         * doc/posix-functions/snprintf.texi (snprintf): Update.
799         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
800         * tests/test-snprintf.c (main): Enhance test.
801         * tests/test-vsnprintf.c (main): Likewise.
802
803 2011-07-05  Jim Meyering  <meyering@redhat.com>
804
805         maint: exempt stdio-read.c and stdio-write.c from the cppi check
806         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
807         per Bruno's request, to accommodate this idiom (no space after "#")
808         even when the function is inside an #if block:
809         char *
810         gets (char *s)
811         #undef gets
812         {
813           ...
814         }
815
816 2011-07-04  Jim Meyering  <meyering@redhat.com>
817
818         maint: indent with spaces, not TABs, and add a rule to check this
819         * tests/test-userspec.c: Indent with spaces, not TABs.
820         * tests/test-argp.c: Likewise.
821         * tests/test-c-stack2.sh: Likewise.
822         * tests/test-parse-duration.sh: Likewise
823         * m4/strtod.m4: Likewise.
824         * m4/alloca.m4: Likewise.
825         * m4/pselect.m4: Likewise.
826         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
827
828 2011-07-03  Jim Meyering  <meyering@redhat.com>
829
830         maint.mk: correct omissions in prohibit_argmatch_without_use check
831         This rule would mistakenly report that argmatch.h is included without
832         use even when both the argmatch and invalid_arg macro were used.
833         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
834         of argmatch and invalid_arg.
835
836 2011-07-03  Bruno Haible  <bruno@clisp.org>
837
838         Comments about EINTR.
839         * lib/safe-read.h: Explain the purpose of this module.
840         * lib/safe-write.h: Likewise.
841         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
842         module.
843         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
844         module.
845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
846
847 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
848
849         xnanosleep: Rewrite to use new dtotimespec module.
850         It has the conversion code that used to be in xnanosleep.
851         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
852         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
853         (TIME_T_MAX): Remove.
854         (xnanosleep): Rewrite in terms of dtotimespec.
855         * modules/xnanosleep (Depends-on): Add dtotimespec.
856         Remove intprops, stdbool.
857
858         timespec-add, timespec-sub: new modules
859         * lib/timespec.h (timespec_add, timespec_sub): New decls.
860         * lib/timespec-add.c, lib/timespec-sub.c:
861         * modules/timespec-add, modules/timespec-sub: New files.
862
863         dtotimespec: new module
864         * lib/timespec.h (dtotimespec): New decl.
865         * lib/dtotimespec.c, modules/dtotimespec: New files.
866
867         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
868
869         pselect: new module
870         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
871         (pselect): New decls.
872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
873         since the standard pselect decl uses 'restrict'.
874         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
875         HAVE_PSELECT, REPLACE_PSELECT.
876         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
877         HAVE_PSELECT, REPLACE_PSELECT.
878         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
879
880         sys_select: don't depend on sys_socket
881         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
883         This fix works on GNU and GNU-like platforms, but has not been tested
884         on native Windows.
885         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
887         gl_HEADER_SYS_SOCKET.
888         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
889         gl_PREREQ_SYS_H_WINSOCK2.
890
891 2011-06-29  Eric Blake  <eblake@redhat.com>
892
893         pipe2: fix C89 compile problem
894         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
895         Reported by Bruno Haible.
896
897         pipe, pipe2: don't corrupt fd on error
898         * lib/pipe.c (pipe): Leave fd unchanged on error.
899         * lib/pipe2.c (pipe2): Likewise.
900         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
901         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
902
903 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
904
905         mmap-anon: do not use regular expressions inadvertently
906         * m4/mmap-anon.m4: Remove trailing period from strings sought
907         in the output.
908
909 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
910
911         nanosleep: fix integer overflow problem
912         * lib/nanosleep.c (my_usleep): Don't assume signed integer
913         arithmetic wraps around on overflow.
914
915         nanosleep: simplify carrying
916         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
917         first call to the underyling nanosleep, not for the last one.
918         This doesn't fix any bugs, but it simplifies the computation of
919         the remaining delay.  Found while auditing integer overflow issues.
920
921         dup2: remove test for existence of fcntl
922         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
923         "#if HAVE_FCNTL", in the configure-time test program.
924         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
925         and therefore speeds up "configure" a bit.  Found while
926         adding the dup2 module to Emacs.
927
928 2011-06-24  Eric Blake  <eblake@redhat.com>
929
930         maint.mk: enhance useless header checks
931         * top/maint.mk (_sc_header_without_use): Check both include
932         styles.
933         (sc_prohibit_assert_without_use)
934         (sc_prohibit_close_stream_without_use)
935         (sc_prohibit_getopt_without_use)
936         (sc_prohibit_quotearg_without_use)
937         (sc_prohibit_quote_without_use)
938         (sc_prohibit_long_options_without_use)
939         (sc_prohibit_inttostr_without_use)
940         (sc_prohibit_ignore_value_without_use)
941         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
942         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
943         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
944         (sc_prohibit_hash_pjw_without_use)
945         (sc_prohibit_safe_read_without_use)
946         (sc_prohibit_argmatch_without_use)
947         (sc_prohibit_canonicalize_without_use)
948         (sc_prohibit_root_dev_ino_without_use)
949         (sc_prohibit_openat_without_use)
950         (sc_prohibit_c_ctype_without_use)
951         (sc_prohibit_signal_without_use)
952         (sc_prohibit_stdio--_without_use)
953         (sc_prohibit_stdio-safer_without_use)
954         (sc_prohibit_strings_without_use)
955         (sc_prohibit_intprops_without_use)
956         (sc_prohibit_stddef_without_use)
957         (sc_prohibit_xfreopen_without_use): Update clients.
958
959 2011-06-24  Jim Meyering  <meyering@redhat.com>
960
961         syntax-check: keep one maint.mk rule in sync with its header
962         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
963         of the bug Eric has just fixed, with today's commit 25e4c2ec.
964         I prefer to avoid temporary files here, so use <(...), but that
965         is not supported by /bin/sh, so...
966         (SHELL): Define to /bin/bash.
967
968 2011-06-24  Eric Blake  <eblake@redhat.com>
969
970         maint.mk: update sc_prohibit_intprops_without_use
971         * top/maint.mk (_intprops_names): Match recent changes.
972
973 2011-06-24  Bruno Haible  <bruno@clisp.org>
974
975         strerror-override: No-op tweak.
976         * lib/strerror-override.h (strerror_override): Reorder conditions,
977         for consistency with lib/strerror-override.c.
978
979 2011-06-23  Eric Blake  <eblake@redhat.com>
980
981         maint.mk: test further PATH_MAX issues
982         * top/maint.mk (sc_prohibit_path_max_array): Rename...
983         (sc_prohibit_path_max_allocation): ...and also test alloca.
984         Suggested by Jim Meyering.
985
986 2011-06-22  Eric Blake  <eblake@redhat.com>
987
988         maint.mk: add syntax-check to avoid char[PATH_MAX]
989         * top/maint.mk (sc_prohibit_path_max_array): New rule.
990
991         stat: be robust to PATH_MAX definition
992         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
993         * modules/stat (Depends-on): Add verify.
994
995         link: work around IRIX bug
996         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
997         * lib/link.c (rpl_link): Work around it.
998         * tests/test-link.h (test_link): Enhance test.
999         * doc/posix-functions/link.texi (link): Document the bug.
1000
1001         getopt: silence clang warning
1002         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1003         dereference.
1004         Reported by Gustavo Martin Domato.
1005
1006 2011-06-22  Jim Meyering  <meyering@redhat.com>
1007
1008         bootstrap: do not insert a blank line into each .gitignore file
1009         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1010
1011 2011-06-21  Eric Blake  <eblake@redhat.com>
1012
1013         perror: test for output mismatch
1014         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1015         perror on IRIX.
1016
1017         strerror_r: fix OpenBSD behavior on out-of-range
1018         * lib/strerror_r.c (strerror_r): Always use maximal string.
1019         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1020
1021         strerror_r: fix OpenBSD behavior on 0
1022         * lib/strerror-override.c (strerror_override): Also override 0
1023         when needed.
1024         * lib/strerror-override.h (strerror_override): Likewise.
1025         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1026         earlier.
1027         * lib/strerror_r.c (strerror_r): Likewise.
1028         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1029         behavior...
1030         (gl_FUNC_STRERROR_0): ...into new macro.
1031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1032         is overridden.
1033         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1034         * modules/strerror-override (Files): Add strerror.m4.
1035         (configure.ac): Also provide override for 0 when needed.
1036         * doc/posix-functions/strerror.texi (strerror): Document this.
1037         * doc/posix-functions/perror.texi (perror): Likewise.
1038
1039         perror: adjust array size
1040         * modules/perror (Depends-on): Add strerror-override.
1041         * lib/perror.c (perror): Use it to avoid magic number.
1042
1043         strerror-override: reduce size
1044         * lib/strerror-override.c (strerror_override): Use fewer lines.
1045
1046 2011-06-20  Bruno Haible  <bruno@clisp.org>
1047
1048         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1049         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1050
1051 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1052
1053         alloca: port to compilers that can optimize like GCC 4.6.0
1054         * lib/alloca.c (find_stack_direction): New signature, taken from
1055         Autoconf git.  This works with GCC 4.6.0.  This code should never
1056         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1057         be used with other compilers that optimize as well as GCC 4.6.0 does.
1058         (alloca): Adjust to new signature.
1059         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1060         New macro, which patches Autoconf in a similar way.
1061
1062         c-stack: stop worrying about stack direction
1063         * lib/c-stack.c (find_stack_direction): Remove.
1064         (segv_handler): Don't worry about stack direction growth, as it's
1065         too much of a pain to configure this correctly, given how compilers
1066         are optimizing-away our stack-growth detection code.  Instead, assume
1067         that any access to just before or just after the stack is OK.
1068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1069         Don't require AC_FUNC_ALLOCA; no longer needed.
1070
1071 2011-06-20  Eric Blake  <eblake@redhat.com>
1072
1073         test-stat: don't allocate PATH_MAX bytes
1074         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1075         PATH_MAX-sized buffer.
1076         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1077         * modules/stat-tests (Depends-on): Likewise.
1078         * tests/test-fstatat.c (includes): Drop pathmax.h.
1079         * tests/test-stat.c (includes): Likewise.
1080         Reported by Bruno Haible.
1081
1082 2011-06-20  Bruno Haible  <bruno@clisp.org>
1083
1084         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1085         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1086         * lib/float.c: New file.
1087         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1088         REPLACE_FLOAT_LDBL.
1089         * modules/float (Files): Add lib/float.c.
1090         (configure.ac): Invoke AC_LIBOBJ.
1091         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1092
1093 2011-06-20  Bruno Haible  <bruno@clisp.org>
1094
1095         Tests for module 'float'.
1096         * modules/float-tests: New file.
1097         * tests/test-float.c: New file.
1098
1099 2011-06-19  Bruno Haible  <bruno@clisp.org>
1100
1101         isinf: Coding style.
1102         * lib/isinf.c: Use GNU coding style.
1103
1104 2011-06-19  Bruno Haible  <bruno@clisp.org>
1105
1106         linkat test: Avoid test failure on AIX 7.1.
1107         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1108         * tests/test-link.h (test_link): Likewise.
1109
1110 2011-06-19  Bruno Haible  <bruno@clisp.org>
1111
1112         pread test: Avoid test failure on OpenBSD 4.9.
1113         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1114
1115 2011-06-19  Bruno Haible  <bruno@clisp.org>
1116
1117         sprintf-posix: Fix test failure on AIX 7.1.
1118         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1119         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1120         on AIX.
1121         * doc/posix-functions/fprintf.texi: Likewise.
1122         * doc/posix-functions/printf.texi: Likewise.
1123         * doc/posix-functions/snprintf.texi: Likewise.
1124         * doc/posix-functions/sprintf.texi: Likewise.
1125         * doc/posix-functions/vdprintf.texi: Likewise.
1126         * doc/posix-functions/vfprintf.texi: Likewise.
1127         * doc/posix-functions/vprintf.texi: Likewise.
1128         * doc/posix-functions/vsnprintf.texi: Likewise.
1129         * doc/posix-functions/vsprintf.texi: Likewise.
1130
1131 2011-06-19  Bruno Haible  <bruno@clisp.org>
1132
1133         roundl-ieee: Fix test failure on AIX 7.1.
1134         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1135         * doc/posix-functions/roundl.texi: Mention problem with negative
1136         arguments.
1137
1138 2011-06-19  Bruno Haible  <bruno@clisp.org>
1139
1140         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1141         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1142         * doc/posix-functions/round.texi: Mention problem with negative
1143         arguments.
1144         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1145
1146 2011-06-19  Bruno Haible  <bruno@clisp.org>
1147
1148         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1149         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1150         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1151         * doc/posix-functions/roundf.texi: Mention problem with negative
1152         arguments.
1153         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1154
1155 2011-06-19  Bruno Haible  <bruno@clisp.org>
1156
1157         ceilf-ieee: Work around bug on MacOS X 10.5.
1158         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1159
1160         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1161         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1162         IEEE compliant, avoid compiler optimizations.
1163         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1164         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1165         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1166         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1167         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1168         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1169         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1171         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1173
1174 2011-06-19  Bruno Haible  <bruno@clisp.org>
1175
1176         ceilf-ieee: Work around bug on AIX 7.1.
1177         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1178         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1179
1180 2011-06-19  Bruno Haible  <bruno@clisp.org>
1181
1182         ceil-ieee: Work around bug on AIX 7.1.
1183         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1184         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1185
1186 2011-06-18  Bruno Haible  <bruno@clisp.org>
1187
1188         fsync test: Avoid test failure on MacOS X and AIX.
1189         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1190         EINVAL.
1191
1192 2011-06-18  Bruno Haible  <bruno@clisp.org>
1193
1194         openat, fdopendir tests: Fix link errors.
1195         * modules/openat-tests (Depends-on): Add progname.
1196         * modules/fdopendir-tests (Depends-on): Likewise.
1197         * tests/test-fchownat.c: Include progname.h.
1198         (main): Call set_program_name.
1199         * tests/test-fstatat.c: Include progname.h.
1200         (main): Call set_program_name.
1201         * tests/test-mkdirat.c: Include progname.h.
1202         (main): Call set_program_name.
1203         * tests/test-openat.c: Include progname.h.
1204         (main): Call set_program_name.
1205         * tests/test-unlinkat.c: Include progname.h.
1206         (main): Call set_program_name.
1207         * tests/test-fdopendir.c: Include progname.h.
1208         (main): Call set_program_name.
1209
1210 2011-06-18  Bruno Haible  <bruno@clisp.org>
1211
1212         Doc update.
1213         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1214         HP-UX.
1215         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1216
1217 2011-06-18  Bruno Haible  <bruno@clisp.org>
1218
1219         getcwd tests: Avoid compilation error on HP-UX 11.31.
1220         * modules/getcwd-tests (Depends-on): Add pathmax.
1221         * tests/test-getcwd.c: Include pathmax.h.
1222
1223 2011-06-18  Bruno Haible  <bruno@clisp.org>
1224
1225         isfinite, isinf: Fix link error on AIX 6 and 7.
1226         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1227         needed, also test the macro with a 'float' argument.
1228         * m4/isinf.m4 (gl_ISINF): Likewise.
1229
1230 2011-06-18  Bruno Haible  <bruno@clisp.org>
1231
1232         getloadavg: Don't clobber LIBS. Regression from previous commit.
1233         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1234         AC_CHECK_LIB from here...
1235         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1236         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1237         gl_func_getloadavg_done.
1238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1239
1240 2011-06-18  Bruno Haible  <bruno@clisp.org>
1241
1242         clean-temp: Improve documentation.
1243         * lib/clean-temp.h: Explain better how to use this module.
1244         Reported by John Darrington <john@darrington.wattle.id.au>.
1245
1246 2011-06-17  Bruno Haible  <bruno@clisp.org>
1247
1248         pread, pwrite: Avoid cc warning on AIX.
1249         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1250         (pwrite): Likewise.
1251
1252 2011-06-17  Bruno Haible  <bruno@clisp.org>
1253
1254         spawn-pipe tests: Fix link error.
1255         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1257
1258 2011-06-17  Bruno Haible  <bruno@clisp.org>
1259
1260         Tests: Remove unnecessary dependency.
1261         * modules/canonicalize-tests (Depends-on): Remove progname.
1262         * modules/chown-tests (Depends-on): Likewise.
1263         * modules/dirname-tests (Depends-on): Likewise.
1264         * modules/fdopendir-tests (Depends-on): Likewise.
1265         * modules/fdutimensat-tests (Depends-on): Likewise.
1266         * modules/hash-tests (Depends-on): Likewise.
1267         * modules/lchown-tests (Depends-on): Likewise.
1268         * modules/linkat-tests (Depends-on): Likewise.
1269         * modules/renameat-tests (Depends-on): Likewise.
1270         * modules/spawn-pipe-tests (Depends-on): Likewise.
1271         * modules/utimensat-tests (Depends-on): Likewise.
1272
1273 2011-06-17  Bruno Haible  <bruno@clisp.org>
1274
1275         spawn-pipe tests: Fix link error.
1276         * tests/test-spawn-pipe-child.c: Undefine fflush.
1277
1278 2011-06-17  Bruno Haible  <bruno@clisp.org>
1279
1280         Fix tests link errors.
1281         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1282         * modules/chown-tests (Makefile.am): Don't link test-chown with
1283         LIBINTL.
1284         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1285         LIBINTL.
1286         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1287         LIBINTL.
1288         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1289         LIBINTL.
1290
1291 2011-06-16  Bruno Haible  <bruno@clisp.org>
1292
1293         crypto/gc-sha1: Fix recent regression.
1294         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1295         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1296
1297         crypto/gc-md5: Fix recent regression.
1298         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1299
1300         crypto/gc-md4: Fix recent regression.
1301         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1302         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1303
1304         crypto/gc-arctwo: Fix recent regression.
1305         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1306         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1307
1308         crypto/gc-rijndael: Fix recent regression.
1309         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1310         (configure.ac): Invoke AC_LIBOBJ here.
1311         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1313
1314         crypto/gc-hmac-sha1: Fix recent regression.
1315         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1316         (configure.ac): Invoke AC_LIBOBJ here.
1317         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1319
1320         crypto/gc-hmac-md5: Fix recent regression.
1321         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1322         (configure.ac): Invoke AC_LIBOBJ here.
1323         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1325
1326         crypto/gc-des: Fix recent regression.
1327         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1328         (configure.ac): Invoke AC_LIBOBJ here.
1329         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1331
1332         crypto/gc-arcfour: Fix recent regression.
1333         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1334         (configure.ac): Invoke AC_LIBOBJ here.
1335         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1337
1338 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1341         After the 2011-05-21 change, this macro requires
1342         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1343         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1344
1345 2011-06-16  Bruno Haible  <bruno@clisp.org>
1346
1347         fprintftime: Move AC_LIBOBJ invocations to module description.
1348         * m4/fprintftime.m4: Remove file.
1349         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1350         (configure.ac): Remove gl_FPRINTFTIME call.
1351         (Makefile.am): Augment lib_SOURCES.
1352         Reported by Jim Meyering.
1353
1354 2011-06-16  Bruno Haible  <bruno@clisp.org>
1355
1356         tmpfile-safer: Finish 2011-05-23 commit.
1357         * m4/stdio-safer.m4: Really remove file.
1358         Reported by Jim Meyering.
1359
1360 2011-06-16  Bruno Haible  <bruno@clisp.org>
1361
1362         syntax-check: Fix typo.
1363         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1364         printf-posix.m4.
1365         Reported by Jim Meyering.
1366
1367 2011-06-13  Jim Meyering  <meyering@redhat.com>
1368
1369         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1370         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1371
1372 2011-05-23  Bruno Haible  <bruno@clisp.org>
1373
1374         yesno: Move AC_LIBOBJ invocations to module description.
1375         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1376         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1377
1378 2011-05-23  Bruno Haible  <bruno@clisp.org>
1379
1380         xstrtol: Move AC_LIBOBJ invocations to module description.
1381         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1382         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1383
1384 2011-05-23  Bruno Haible  <bruno@clisp.org>
1385
1386         xstrtold: Move AC_LIBOBJ invocations to module description.
1387         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1388         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1389
1390 2011-05-23  Bruno Haible  <bruno@clisp.org>
1391
1392         xstrtod: Move AC_LIBOBJ invocations to module description.
1393         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1394         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1395
1396 2011-05-23  Bruno Haible  <bruno@clisp.org>
1397
1398         xnanosleep: Move AC_LIBOBJ invocations to module description.
1399         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1400         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1401
1402 2011-05-23  Bruno Haible  <bruno@clisp.org>
1403
1404         xgetcwd: Move AC_LIBOBJ invocations to module description.
1405         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1406         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1407
1408 2011-05-23  Bruno Haible  <bruno@clisp.org>
1409
1410         xalloc: Move AC_LIBOBJ invocations to module description.
1411         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1412         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1413
1414 2011-05-23  Bruno Haible  <bruno@clisp.org>
1415
1416         write-any-file: Move AC_LIBOBJ invocations to module description.
1417         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1418         invocation.
1419         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1420
1421 2011-05-23  Bruno Haible  <bruno@clisp.org>
1422
1423         utimens: Move AC_LIBOBJ invocations to module description.
1424         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1425         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1426
1427 2011-05-23  Bruno Haible  <bruno@clisp.org>
1428
1429         utimecmp: Move AC_LIBOBJ invocations to module description.
1430         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1431         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1432
1433 2011-05-23  Bruno Haible  <bruno@clisp.org>
1434
1435         userspec: Move AC_LIBOBJ invocations to module description.
1436         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1437         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1438
1439 2011-05-23  Bruno Haible  <bruno@clisp.org>
1440
1441         unlinkdir: Move AC_LIBOBJ invocations to module description.
1442         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1443         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1444
1445 2011-05-23  Bruno Haible  <bruno@clisp.org>
1446
1447         unistd-safer: Move AC_LIBOBJ invocations to module description.
1448         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1449         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1450
1451 2011-05-23  Bruno Haible  <bruno@clisp.org>
1452
1453         tempname: Move AC_LIBOBJ invocations to module description.
1454         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1455         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1456
1457 2011-05-23  Bruno Haible  <bruno@clisp.org>
1458
1459         strftime: Move AC_LIBOBJ invocations to module description.
1460         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1461         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1462
1463 2011-05-23  Bruno Haible  <bruno@clisp.org>
1464
1465         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1466         * m4/stdlib-safer.m4: Remove file.
1467         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1468         (configure.ac): Remove gl_STDLIB_SAFER call.
1469         (Makefile.am): Augment lib_SOURCES.
1470
1471 2011-05-23  Bruno Haible  <bruno@clisp.org>
1472
1473         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1474         * m4/stdio-safer.m4: Remove file.
1475         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1476         (configure.ac): Remove gl_TMPFILE_SAFER call.
1477         (Makefile.am): Augment lib_SOURCES.
1478
1479 2011-05-23  Bruno Haible  <bruno@clisp.org>
1480
1481         popen-safer: Move AC_LIBOBJ invocations to module description.
1482         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1483         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1484         (configure.ac): Remove gl_POPEN_SAFER call.
1485         (Makefile.am): Augment lib_SOURCES.
1486
1487 2011-05-23  Bruno Haible  <bruno@clisp.org>
1488
1489         freopen-safer: Move AC_LIBOBJ invocations to module description.
1490         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1491         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1492         (configure.ac): Remove gl_FREOPEN_SAFER call.
1493         (Makefile.am): Augment lib_SOURCES.
1494
1495 2011-05-23  Bruno Haible  <bruno@clisp.org>
1496
1497         fopen-safer: Move AC_LIBOBJ invocations to module description.
1498         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1499         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1500         (configure.ac): Remove gl_FOPEN_SAFER call.
1501         (Makefile.am): Augment lib_SOURCES.
1502
1503 2011-05-23  Bruno Haible  <bruno@clisp.org>
1504
1505         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1506         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1507         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1508
1509 2011-05-23  Bruno Haible  <bruno@clisp.org>
1510
1511         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1512         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1513         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1514
1515 2011-05-23  Bruno Haible  <bruno@clisp.org>
1516
1517         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1518         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1519         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1520
1521 2011-05-23  Bruno Haible  <bruno@clisp.org>
1522
1523         settime: Move AC_LIBOBJ invocations to module description.
1524         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1525         * modules/settime (Makefile.am): Augment lib_SOURCES.
1526
1527 2011-05-23  Bruno Haible  <bruno@clisp.org>
1528
1529         savedir: Move AC_LIBOBJ invocations to module description.
1530         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1531         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1532
1533 2011-05-23  Bruno Haible  <bruno@clisp.org>
1534
1535         save-cwd: Move AC_LIBOBJ invocations to module description.
1536         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1537         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1538
1539 2011-05-23  Bruno Haible  <bruno@clisp.org>
1540
1541         same: Move AC_LIBOBJ invocations to module description.
1542         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1543         * modules/same (Makefile.am): Augment lib_SOURCES.
1544
1545 2011-05-23  Bruno Haible  <bruno@clisp.org>
1546
1547         safe-write: Move AC_LIBOBJ invocations to module description.
1548         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1549         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1550         instead of gl_SAFE_WRITE.
1551         (Makefile.am): Augment lib_SOURCES.
1552
1553 2011-05-23  Bruno Haible  <bruno@clisp.org>
1554
1555         safe-read: Move AC_LIBOBJ invocations to module description.
1556         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1557         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1558         of gl_SAFE_READ.
1559         (Makefile.am): Augment lib_SOURCES.
1560
1561 2011-05-23  Bruno Haible  <bruno@clisp.org>
1562
1563         safe-alloc: Move AC_LIBOBJ invocations to module description.
1564         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1565         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1566
1567 2011-05-23  Bruno Haible  <bruno@clisp.org>
1568
1569         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1570         * m4/rijndael.m4: Remove file.
1571         * modules/crypto/rijndael (Files): Remove it.
1572         (configure.ac): Remove gl_RIJNDAEL call.
1573         (Makefile.am): Augment lib_SOURCES.
1574
1575 2011-05-23  Bruno Haible  <bruno@clisp.org>
1576
1577         readtokens: Move AC_LIBOBJ invocations to module description.
1578         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1579         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1580
1581 2011-05-23  Bruno Haible  <bruno@clisp.org>
1582
1583         read-file: Move AC_LIBOBJ invocations to module description.
1584         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1585         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1586         of gl_FUNC_READ_FILE.
1587         (Makefile.am): Augment lib_SOURCES.
1588
1589 2011-05-23  Bruno Haible  <bruno@clisp.org>
1590
1591         quotearg: Move AC_LIBOBJ invocations to module description.
1592         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1593         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1594
1595 2011-05-23  Bruno Haible  <bruno@clisp.org>
1596
1597         quote: Move AC_LIBOBJ invocations to module description.
1598         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1599         * modules/quote (Makefile.am): Augment lib_SOURCES.
1600
1601 2011-05-23  Bruno Haible  <bruno@clisp.org>
1602
1603         posixver: Move AC_LIBOBJ invocations to module description.
1604         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1605         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1606
1607 2011-05-23  Bruno Haible  <bruno@clisp.org>
1608
1609         posixtm: Move AC_LIBOBJ invocations to module description.
1610         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1611         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1612
1613 2011-05-23  Bruno Haible  <bruno@clisp.org>
1614
1615         physmem: Move AC_LIBOBJ invocations to module description.
1616         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1617         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1618
1619 2011-05-23  Bruno Haible  <bruno@clisp.org>
1620
1621         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1622         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1623         invocation.
1624         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1625
1626 2011-05-23  Bruno Haible  <bruno@clisp.org>
1627
1628         mpsort: Move AC_LIBOBJ invocations to module description.
1629         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1630         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1631
1632 2011-05-23  Bruno Haible  <bruno@clisp.org>
1633
1634         modechange: Move AC_LIBOBJ invocations to module description.
1635         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1636         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1637
1638 2011-05-23  Bruno Haible  <bruno@clisp.org>
1639
1640         mkdir-p: Move AC_LIBOBJ invocations to module description.
1641         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1642         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1643
1644 2011-05-23  Bruno Haible  <bruno@clisp.org>
1645
1646         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1647         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1648         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1649
1650 2011-05-23  Bruno Haible  <bruno@clisp.org>
1651
1652         mgetgroups: Move AC_LIBOBJ invocations to module description.
1653         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1654         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1655
1656 2011-05-23  Bruno Haible  <bruno@clisp.org>
1657
1658         memxor: Move AC_LIBOBJ invocations to module description.
1659         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1660         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1661
1662 2011-05-23  Bruno Haible  <bruno@clisp.org>
1663
1664         memcoll: Move AC_LIBOBJ invocations to module description.
1665         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1666         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1667
1668 2011-05-23  Bruno Haible  <bruno@clisp.org>
1669
1670         memcasecmp: Move AC_LIBOBJ invocations to module description.
1671         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1672         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1673
1674 2011-05-23  Bruno Haible  <bruno@clisp.org>
1675
1676         crypto/md5: Move AC_LIBOBJ invocations to module description.
1677         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1678         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1679
1680 2011-05-23  Bruno Haible  <bruno@clisp.org>
1681
1682         crypto/md4: Move AC_LIBOBJ invocations to module description.
1683         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1684         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1685
1686 2011-05-23  Bruno Haible  <bruno@clisp.org>
1687
1688         crypto/md2: Move AC_LIBOBJ invocations to module description.
1689         * m4/md2.m4: Remove file.
1690         * modules/crypto/md2 (Files): Remove it.
1691         (configure.ac): Remove gl_MD2 call.
1692         (Makefile.am): Augment lib_SOURCES.
1693
1694 2011-05-23  Bruno Haible  <bruno@clisp.org>
1695
1696         long-options: Move AC_LIBOBJ invocations to module description.
1697         * m4/long-options.m4: Remove file.
1698         * modules/long-options (Files): Remove it.
1699         (configure.ac): Remove gl_LONG_OPTIONS call.
1700         (Makefile.am): Augment lib_SOURCES.
1701
1702 2011-05-23  Bruno Haible  <bruno@clisp.org>
1703
1704         i-ring: Move AC_LIBOBJ invocations to module description.
1705         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1706         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1707
1708 2011-05-23  Bruno Haible  <bruno@clisp.org>
1709
1710         idcache: Move AC_LIBOBJ invocations to module description.
1711         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1712         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1713
1714 2011-05-23  Bruno Haible  <bruno@clisp.org>
1715
1716         human: Move AC_LIBOBJ invocations to module description.
1717         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1718         * modules/human (Makefile.am): Augment lib_SOURCES.
1719
1720 2011-05-23  Bruno Haible  <bruno@clisp.org>
1721
1722         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1723         * m4/hmac-sha1.m4: Remove file.
1724         * modules/crypto/hmac-sha1 (Files): Remove it.
1725         (configure.ac): Remove gl_HMAC_SHA1 call.
1726         (Makefile.am): Augment lib_SOURCES.
1727
1728 2011-05-23  Bruno Haible  <bruno@clisp.org>
1729
1730         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1731         * m4/hmac-md5.m4: Remove file.
1732         * modules/crypto/hmac-md5 (Files): Remove it.
1733         (configure.ac): Remove gl_HMAC_MD5 call.
1734         (Makefile.am): Augment lib_SOURCES.
1735
1736 2011-05-23  Bruno Haible  <bruno@clisp.org>
1737
1738         hash: Move AC_LIBOBJ invocations to module description.
1739         * m4/hash.m4: Remove file.
1740         * modules/hash (Files): Remove it.
1741         (configure.ac): Remove gl_HASH call.
1742         (Makefile.am): Augment lib_SOURCES.
1743
1744 2011-05-23  Bruno Haible  <bruno@clisp.org>
1745
1746         hard-locale: Move AC_LIBOBJ invocations to module description.
1747         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1748         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1749
1750 2011-05-23  Bruno Haible  <bruno@clisp.org>
1751
1752         getugroups: Move AC_LIBOBJ invocations to module description.
1753         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1754         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1755
1756 2011-05-23  Bruno Haible  <bruno@clisp.org>
1757
1758         gettime: Move AC_LIBOBJ invocations to module description.
1759         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1760         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1761
1762 2011-05-23  Bruno Haible  <bruno@clisp.org>
1763
1764         getndelim2: Move AC_LIBOBJ invocations to module description.
1765         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1766         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1767
1768 2011-05-23  Bruno Haible  <bruno@clisp.org>
1769
1770         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1771         * m4/gc-pbkdf2-sha1.m4: Remove file.
1772         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1773         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1774         (Makefile.am): Augment lib_SOURCES.
1775
1776 2011-05-23  Bruno Haible  <bruno@clisp.org>
1777
1778         fts: Move AC_LIBOBJ invocations to module description.
1779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1780         * modules/fts (configure.ac): ... to here.
1781
1782 2011-05-23  Bruno Haible  <bruno@clisp.org>
1783
1784         file-type: Move AC_LIBOBJ invocations to module description.
1785         * m4/file-type.m4: Remove file.
1786         * modules/file-type (Files): Remove it.
1787         (configure.ac): Remove gl_FILE_TYPE call.
1788         (Makefile.am): Augment lib_SOURCES.
1789
1790 2011-05-23  Bruno Haible  <bruno@clisp.org>
1791
1792         filenamecat*: Respect rules for use of AC_LIBOBJ.
1793         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1794         Remove AC_LIBOBJ invocation.
1795         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1796         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1797
1798 2011-05-23  Bruno Haible  <bruno@clisp.org>
1799
1800         filemode: Move AC_LIBOBJ invocations to module description.
1801         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1802         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1803
1804 2011-05-23  Bruno Haible  <bruno@clisp.org>
1805
1806         openat-safer: Move AC_LIBOBJ invocations to module description.
1807         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1808         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1809
1810 2011-05-23  Bruno Haible  <bruno@clisp.org>
1811
1812         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1814         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1815
1816 2011-05-23  Bruno Haible  <bruno@clisp.org>
1817
1818         exclude: Move AC_LIBOBJ invocations to module description.
1819         * m4/exclude.m4: Remove file.
1820         * modules/exclude (Files): Remove it.
1821         (configure.ac): Remove gl_EXCLUDE call.
1822         (Makefile.am): Augment lib_SOURCES.
1823
1824 2011-05-23  Bruno Haible  <bruno@clisp.org>
1825
1826         dirname*: Respect rules for use of AC_LIBOBJ.
1827         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1828         invocations.
1829         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1830         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1831
1832 2011-05-23  Bruno Haible  <bruno@clisp.org>
1833
1834         dirent-safer: Move AC_LIBOBJ invocations to module description.
1835         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1836         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1837
1838 2011-05-23  Bruno Haible  <bruno@clisp.org>
1839
1840         crypto/des: Move AC_LIBOBJ invocations to module description.
1841         * m4/des.m4: Remove file.
1842         * modules/crypto/des (Files): Remove it.
1843         (configure.ac): Remove gl_DES call.
1844         (Makefile.am): Augment lib_SOURCES.
1845
1846 2011-05-23  Bruno Haible  <bruno@clisp.org>
1847
1848         cycle-check: Move AC_LIBOBJ invocations to module description.
1849         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1850         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1851
1852 2011-05-23  Bruno Haible  <bruno@clisp.org>
1853
1854         c-strtold: Move AC_LIBOBJ invocations to module description.
1855         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1856         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1857
1858 2011-05-23  Bruno Haible  <bruno@clisp.org>
1859
1860         c-strtod: Move AC_LIBOBJ invocations to module description.
1861         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1862         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1863
1864 2011-05-23  Bruno Haible  <bruno@clisp.org>
1865
1866         crc: Move AC_LIBOBJ invocations to module description.
1867         * m4/crc.m4: Remove file.
1868         * modules/crc (Files): Remove it.
1869         (configure.ac): Remove gl_CRC call.
1870         (Makefile.am): Augment lib_SOURCES.
1871
1872 2011-05-23  Bruno Haible  <bruno@clisp.org>
1873
1874         close-stream: Move AC_LIBOBJ invocations to module description.
1875         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1876         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1877
1878 2011-05-23  Bruno Haible  <bruno@clisp.org>
1879
1880         closeout: Move AC_LIBOBJ invocations to module description.
1881         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1882         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1883
1884 2011-05-23  Bruno Haible  <bruno@clisp.org>
1885
1886         closein: Move AC_LIBOBJ invocations to module description.
1887         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1888         * modules/closein (Makefile.am): Augment lib_SOURCES.
1889
1890 2011-05-23  Bruno Haible  <bruno@clisp.org>
1891
1892         cloexec: Move AC_LIBOBJ invocations to module description.
1893         * m4/cloexec.m4: Remove file.
1894         * modules/cloexec (Files): Remove it.
1895         (configure.ac): Remove gl_CLOEXEC call.
1896         (Makefile.am): Augment lib_SOURCES.
1897
1898 2011-05-23  Bruno Haible  <bruno@clisp.org>
1899
1900         check-version: Move AC_LIBOBJ invocations to module description.
1901         * m4/check-version.m4: Remove file.
1902         * modules/check-version (Files): Remove it.
1903         (configure.ac): Remove gl_CHECK_VERSION call.
1904         (Makefile.am): Augment lib_SOURCES.
1905
1906 2011-05-23  Bruno Haible  <bruno@clisp.org>
1907
1908         chdir-safer: Move AC_LIBOBJ invocations to module description.
1909         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1910         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1911
1912 2011-05-23  Bruno Haible  <bruno@clisp.org>
1913
1914         canonicalize: Move AC_LIBOBJ invocations to module description.
1915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1916         AC_LIBOBJ invocation.
1917         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1918
1919 2011-05-23  Bruno Haible  <bruno@clisp.org>
1920
1921         canon-host: Move AC_LIBOBJ invocations to module description.
1922         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1923         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1924         instead of gl_CANON_HOST.
1925         (Makefile.am): Augment lib_SOURCES.
1926
1927 2011-05-23  Bruno Haible  <bruno@clisp.org>
1928
1929         backupfile: Move AC_LIBOBJ invocations to module description.
1930         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1931         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1932
1933 2011-05-23  Bruno Haible  <bruno@clisp.org>
1934
1935         argmatch: Move AC_LIBOBJ invocations to module description.
1936         * m4/argmatch.m4: Remove file.
1937         * modules/argmatch (Files): Remove it.
1938         (configure.ac): Remove gl_ARGMATCH call.
1939         (Makefile.am): Augment lib_SOURCES.
1940
1941 2011-05-23  Bruno Haible  <bruno@clisp.org>
1942
1943         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1944         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1945         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1946
1947 2011-05-23  Bruno Haible  <bruno@clisp.org>
1948
1949         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1950         * m4/arcfour.m4: Remove file.
1951         * modules/crypto/arcfour (Files): Remove it.
1952         (configure.ac): Remove gl_ARCFOUR call.
1953         (Makefile.am): Augment lib_SOURCES.
1954
1955 2011-05-22  Bruno Haible  <bruno@clisp.org>
1956
1957         write: Move AC_LIBOBJ invocations to module description.
1958         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1959         * modules/write (configure.ac): ... to here.
1960
1961 2011-05-22  Bruno Haible  <bruno@clisp.org>
1962
1963         wmemset: Move AC_LIBOBJ invocations to module description.
1964         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1965         here...
1966         * modules/wmemset (configure.ac): ... to here.
1967
1968 2011-05-22  Bruno Haible  <bruno@clisp.org>
1969
1970         wmemmove: Move AC_LIBOBJ invocations to module description.
1971         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1972         here...
1973         * modules/wmemmove (configure.ac): ... to here.
1974
1975 2011-05-22  Bruno Haible  <bruno@clisp.org>
1976
1977         wmemcpy: Move AC_LIBOBJ invocations to module description.
1978         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1979         here...
1980         * modules/wmemcpy (configure.ac): ... to here.
1981
1982 2011-05-22  Bruno Haible  <bruno@clisp.org>
1983
1984         wmemcmp: Move AC_LIBOBJ invocations to module description.
1985         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1986         here...
1987         * modules/wmemcmp (configure.ac): ... to here.
1988
1989 2011-05-22  Bruno Haible  <bruno@clisp.org>
1990
1991         wmemchr: Move AC_LIBOBJ invocations to module description.
1992         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1993         here...
1994         * modules/wmemchr (configure.ac): ... to here.
1995
1996 2011-05-22  Bruno Haible  <bruno@clisp.org>
1997
1998         wcswidth: Move AC_LIBOBJ invocations to module description.
1999         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2000         here...
2001         * modules/wcswidth (configure.ac): ... to here.
2002
2003 2011-05-22  Bruno Haible  <bruno@clisp.org>
2004
2005         wcwidth: Respect rules for use of AC_LIBOBJ.
2006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2007         invocation from here...
2008         * modules/wcwidth (configure.ac): ... to here.
2009         (Depends-on): Update conditions.
2010
2011 2011-05-22  Bruno Haible  <bruno@clisp.org>
2012
2013         wctype: Move AC_LIBOBJ invocations to module description.
2014         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2015         invocation from here...
2016         * modules/wctype (configure.ac): ... to here.
2017         (Depends-on): Update conditions.
2018
2019 2011-05-22  Bruno Haible  <bruno@clisp.org>
2020
2021         wctrans: Move AC_LIBOBJ invocations to module description.
2022         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2023         invocation from here...
2024         * modules/wctrans (configure.ac): ... to here.
2025
2026 2011-05-22  Bruno Haible  <bruno@clisp.org>
2027
2028         wctomb: Move AC_LIBOBJ invocations to module description.
2029         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2030         invocations from here...
2031         * modules/wctomb (configure.ac): ... to here.
2032
2033 2011-05-22  Bruno Haible  <bruno@clisp.org>
2034
2035         wctob: Move AC_LIBOBJ invocations to module description.
2036         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2037         gl_PREREQ_WCTOB invocations from here...
2038         * modules/wctob (configure.ac): ... to here.
2039         (Depends-on): Update conditions.
2040
2041 2011-05-22  Bruno Haible  <bruno@clisp.org>
2042
2043         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2044         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2045         here...
2046         * modules/wcsxfrm (configure.ac): ... to here.
2047
2048 2011-05-22  Bruno Haible  <bruno@clisp.org>
2049
2050         wcstok: Move AC_LIBOBJ invocations to module description.
2051         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2052         * modules/wcstok (configure.ac): ... to here.
2053
2054 2011-05-22  Bruno Haible  <bruno@clisp.org>
2055
2056         wcsstr: Move AC_LIBOBJ invocations to module description.
2057         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2058         * modules/wcsstr (configure.ac): ... to here.
2059
2060 2011-05-22  Bruno Haible  <bruno@clisp.org>
2061
2062         wcsspn: Move AC_LIBOBJ invocations to module description.
2063         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2064         * modules/wcsspn (configure.ac): ... to here.
2065
2066 2011-05-22  Bruno Haible  <bruno@clisp.org>
2067
2068         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2069         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2070         gl_PREREQ_WCSRTOMBS invocations from here...
2071         * modules/wcsrtombs (configure.ac): ... to here.
2072
2073 2011-05-22  Bruno Haible  <bruno@clisp.org>
2074
2075         wcsrchr: Move AC_LIBOBJ invocations to module description.
2076         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2077         here...
2078         * modules/wcsrchr (configure.ac): ... to here.
2079
2080 2011-05-22  Bruno Haible  <bruno@clisp.org>
2081
2082         wcspbrk: Move AC_LIBOBJ invocations to module description.
2083         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2084         here...
2085         * modules/wcspbrk (configure.ac): ... to here.
2086
2087 2011-05-22  Bruno Haible  <bruno@clisp.org>
2088
2089         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2090         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2091         gl_PREREQ_WCSNRTOMBS invocations from here...
2092         * modules/wcsnrtombs (configure.ac): ... to here.
2093
2094 2011-05-22  Bruno Haible  <bruno@clisp.org>
2095
2096         wcsnlen: Move AC_LIBOBJ invocations to module description.
2097         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2098         here...
2099         * modules/wcsnlen (configure.ac): ... to here.
2100
2101 2011-05-22  Bruno Haible  <bruno@clisp.org>
2102
2103         wcsncpy: Move AC_LIBOBJ invocations to module description.
2104         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2105         here...
2106         * modules/wcsncpy (configure.ac): ... to here.
2107
2108 2011-05-22  Bruno Haible  <bruno@clisp.org>
2109
2110         wcsncmp: Move AC_LIBOBJ invocations to module description.
2111         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2112         here...
2113         * modules/wcsncmp (configure.ac): ... to here.
2114
2115 2011-05-22  Bruno Haible  <bruno@clisp.org>
2116
2117         wcsncat: Move AC_LIBOBJ invocations to module description.
2118         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2119         here...
2120         * modules/wcsncat (configure.ac): ... to here.
2121
2122 2011-05-22  Bruno Haible  <bruno@clisp.org>
2123
2124         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2125         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2126         from here...
2127         * modules/wcsncasecmp (configure.ac): ... to here.
2128
2129 2011-05-22  Bruno Haible  <bruno@clisp.org>
2130
2131         wcslen: Move AC_LIBOBJ invocations to module description.
2132         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2133         * modules/wcslen (configure.ac): ... to here.
2134
2135 2011-05-22  Bruno Haible  <bruno@clisp.org>
2136
2137         wcsdup: Move AC_LIBOBJ invocations to module description.
2138         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2139         * modules/wcsdup (configure.ac): ... to here.
2140
2141 2011-05-22  Bruno Haible  <bruno@clisp.org>
2142
2143         wcscspn: Move AC_LIBOBJ invocations to module description.
2144         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2145         here...
2146         * modules/wcscspn (configure.ac): ... to here.
2147
2148 2011-05-22  Bruno Haible  <bruno@clisp.org>
2149
2150         wcscpy: Move AC_LIBOBJ invocations to module description.
2151         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2152         * modules/wcscpy (configure.ac): ... to here.
2153
2154 2011-05-22  Bruno Haible  <bruno@clisp.org>
2155
2156         wcscoll: Move AC_LIBOBJ invocations to module description.
2157         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2158         here...
2159         * modules/wcscoll (configure.ac): ... to here.
2160
2161 2011-05-22  Bruno Haible  <bruno@clisp.org>
2162
2163         wcscmp: Move AC_LIBOBJ invocations to module description.
2164         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2165         * modules/wcscmp (configure.ac): ... to here.
2166
2167 2011-05-22  Bruno Haible  <bruno@clisp.org>
2168
2169         wcschr: Move AC_LIBOBJ invocations to module description.
2170         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2171         * modules/wcschr (configure.ac): ... to here.
2172
2173 2011-05-22  Bruno Haible  <bruno@clisp.org>
2174
2175         wcscat: Move AC_LIBOBJ invocations to module description.
2176         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2177         * modules/wcscat (configure.ac): ... to here.
2178
2179 2011-05-22  Bruno Haible  <bruno@clisp.org>
2180
2181         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2182         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2183         here...
2184         * modules/wcscasecmp (configure.ac): ... to here.
2185
2186 2011-05-22  Bruno Haible  <bruno@clisp.org>
2187
2188         wcrtomb: Move AC_LIBOBJ invocations to module description.
2189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2190         invocations from here...
2191         * modules/wcrtomb (configure.ac): ... to here.
2192
2193 2011-05-22  Bruno Haible  <bruno@clisp.org>
2194
2195         wcpncpy: Move AC_LIBOBJ invocations to module description.
2196         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2197         here...
2198         * modules/wcpncpy (configure.ac): ... to here.
2199
2200 2011-05-22  Bruno Haible  <bruno@clisp.org>
2201
2202         wcpcpy: Move AC_LIBOBJ invocations to module description.
2203         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2204         * modules/wcpcpy (configure.ac): ... to here.
2205
2206 2011-05-22  Bruno Haible  <bruno@clisp.org>
2207
2208         waitpid: Move AC_LIBOBJ invocations to module description.
2209         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2210         invocation from here...
2211         * modules/waitpid (configure.ac): ... to here.
2212
2213 2011-05-22  Bruno Haible  <bruno@clisp.org>
2214
2215         utimensat: Move AC_LIBOBJ invocations to module description.
2216         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2217         here...
2218         * modules/utimensat (configure.ac): ... to here.
2219
2220 2011-05-22  Bruno Haible  <bruno@clisp.org>
2221
2222         usleep: Move AC_LIBOBJ invocations to module description.
2223         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2224         here...
2225         * modules/usleep (configure.ac): ... to here.
2226
2227 2011-05-22  Bruno Haible  <bruno@clisp.org>
2228
2229         unlockpt: Move AC_LIBOBJ invocations to module description.
2230         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2231         gl_PREREQ_UNLOCKPT invocations from here...
2232         * modules/unlockpt (configure.ac): ... to here.
2233
2234 2011-05-22  Bruno Haible  <bruno@clisp.org>
2235
2236         unlink: Respect rules for use of AC_LIBOBJ.
2237         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2238         * modules/unlink (configure.ac): ... to here.
2239
2240 2011-05-22  Bruno Haible  <bruno@clisp.org>
2241
2242         uname: Move AC_LIBOBJ invocations to module description.
2243         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2244         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2245         here...
2246         * modules/uname (configure.ac): ... to here.
2247
2248 2011-05-22  Bruno Haible  <bruno@clisp.org>
2249
2250         ttyname_r: Move AC_LIBOBJ invocations to module description.
2251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2252         gl_PREREQ_TTYNAME_R invocations from here...
2253         * modules/ttyname_r (configure.ac): ... to here.
2254
2255 2011-05-22  Bruno Haible  <bruno@clisp.org>
2256
2257         tsearch: Move AC_LIBOBJ invocations to module description.
2258         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2259         invocations from here...
2260         * modules/tsearch (configure.ac): ... to here.
2261
2262 2011-05-22  Bruno Haible  <bruno@clisp.org>
2263
2264         towctrans: Move AC_LIBOBJ invocations to module description.
2265         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2266         AC_LIBOBJ invocation from here...
2267         * modules/towctrans (configure.ac): ... to here.
2268
2269 2011-05-22  Bruno Haible  <bruno@clisp.org>
2270
2271         tmpfile: Move AC_LIBOBJ invocations to module description.
2272         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2273         invocations from here...
2274         * modules/tmpfile (configure.ac): ... to here.
2275
2276 2011-05-22  Bruno Haible  <bruno@clisp.org>
2277
2278         times: Move AC_LIBOBJ invocations to module description.
2279         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2280         * modules/times (configure.ac): ... to here.
2281
2282 2011-05-22  Bruno Haible  <bruno@clisp.org>
2283
2284         time_r: Move AC_LIBOBJ invocations to module description.
2285         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2286         invocations from here...
2287         * modules/time_r (configure.ac): ... to here.
2288
2289 2011-05-22  Bruno Haible  <bruno@clisp.org>
2290
2291         timegm: Move AC_LIBOBJ invocations to module description.
2292         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2293         invocations from here...
2294         * modules/timegm (configure.ac): ... to here.
2295
2296 2011-05-22  Bruno Haible  <bruno@clisp.org>
2297
2298         tcgetsid: Move AC_LIBOBJ invocations to module description.
2299         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2300         and gl_PREREQ_TCGETSID invocations from here...
2301         * modules/tcgetsid (configure.ac): ... to here.
2302         (Depends-on): Update conditions.
2303
2304 2011-05-22  Bruno Haible  <bruno@clisp.org>
2305
2306         symlinkat: Move AC_LIBOBJ invocations to module description.
2307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2308         here...
2309         * modules/symlinkat (configure.ac): ... to here.
2310
2311 2011-05-22  Bruno Haible  <bruno@clisp.org>
2312
2313         symlink: Move AC_LIBOBJ invocations to module description.
2314         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2315         here...
2316         * modules/symlink (configure.ac): ... to here.
2317
2318 2011-05-22  Bruno Haible  <bruno@clisp.org>
2319
2320         strverscmp: Move AC_LIBOBJ invocations to module description.
2321         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2323         from here...
2324         * modules/strverscmp (configure.ac): ... to here.
2325
2326 2011-05-22  Bruno Haible  <bruno@clisp.org>
2327
2328         strtok_r: Move AC_LIBOBJ invocations to module description.
2329         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2330         and gl_PREREQ_STRTOK_R invocations from here...
2331         * modules/strtok_r (configure.ac): ... to here.
2332         (Depends-on): Update conditions.
2333
2334 2011-05-22  Bruno Haible  <bruno@clisp.org>
2335
2336         strtoumax: Move AC_LIBOBJ invocations to module description.
2337         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2339         from here...
2340         * modules/strtoumax (configure.ac): ... to here.
2341
2342 2011-05-22  Bruno Haible  <bruno@clisp.org>
2343
2344         strtoimax: Move AC_LIBOBJ invocations to module description.
2345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2347         from here...
2348         * modules/strtoimax (configure.ac): ... to here.
2349
2350 2011-05-22  Bruno Haible  <bruno@clisp.org>
2351
2352         strtoull: Move AC_LIBOBJ invocations to module description.
2353         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2355         from here...
2356         * modules/strtoull (configure.ac): ... to here.
2357
2358 2011-05-22  Bruno Haible  <bruno@clisp.org>
2359
2360         strtoll: Move AC_LIBOBJ invocations to module description.
2361         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2363         here...
2364         * modules/strtoll (configure.ac): ... to here.
2365
2366 2011-05-22  Bruno Haible  <bruno@clisp.org>
2367
2368         strtoul: Move AC_LIBOBJ invocations to module description.
2369         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2370         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2371         * modules/strtoul (configure.ac): ... to here.
2372
2373 2011-05-22  Bruno Haible  <bruno@clisp.org>
2374
2375         strtol: Move AC_LIBOBJ invocations to module description.
2376         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2377         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2378         * modules/strtol (configure.ac): ... to here.
2379
2380 2011-05-22  Bruno Haible  <bruno@clisp.org>
2381
2382         strtod: Move AC_LIBOBJ invocations to module description.
2383         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2384         invocations from here...
2385         * modules/strtod (configure.ac): ... to here.
2386
2387 2011-05-22  Bruno Haible  <bruno@clisp.org>
2388
2389         strstr*: Move AC_LIBOBJ invocations to module description.
2390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2391         invocations from here...
2392         * modules/strstr-simple (configure.ac): ... to here.
2393         * modules/strstr (configure.ac): ... and here.
2394
2395 2011-05-22  Bruno Haible  <bruno@clisp.org>
2396
2397         strsignal: Move AC_LIBOBJ invocations to module description.
2398         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2399         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2400         * modules/strsignal (configure.ac): ... to here.
2401         (Depends-on): Update conditions.
2402
2403 2011-05-22  Bruno Haible  <bruno@clisp.org>
2404
2405         strsep: Move AC_LIBOBJ invocations to module description.
2406         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2407         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2408         here...
2409         * modules/strsep (configure.ac): ... to here.
2410
2411 2011-05-22  Bruno Haible  <bruno@clisp.org>
2412
2413         strptime: Move AC_LIBOBJ invocations to module description.
2414         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2415         gl_PREREQ_STRPTIME invocations from here...
2416         * modules/strptime (configure.ac): ... to here.
2417
2418 2011-05-22  Bruno Haible  <bruno@clisp.org>
2419
2420         strpbrk: Move AC_LIBOBJ invocations to module description.
2421         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2423         here...
2424         * modules/strpbrk (configure.ac): ... to here.
2425
2426 2011-05-22  Bruno Haible  <bruno@clisp.org>
2427
2428         strnlen: Move AC_LIBOBJ invocations to module description.
2429         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2430         invocations from here...
2431         * modules/strnlen (configure.ac): ... to here.
2432
2433 2011-05-22  Bruno Haible  <bruno@clisp.org>
2434
2435         strndup: Move AC_LIBOBJ invocations to module description.
2436         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2437         invocations from here...
2438         * modules/strndup (configure.ac): ... to here.
2439         (Depends-on): Update conditions.
2440
2441 2011-05-22  Bruno Haible  <bruno@clisp.org>
2442
2443         strncat: Move AC_LIBOBJ invocations to module description.
2444         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2445         invocations from here...
2446         * modules/strncat (configure.ac): ... to here.
2447
2448 2011-05-22  Bruno Haible  <bruno@clisp.org>
2449
2450         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2451         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2452         invocations from here...
2453         * modules/strdup (configure.ac): ... to here.
2454         * modules/strdup-posix (configure.ac): ... and here.
2455
2456 2011-05-22  Bruno Haible  <bruno@clisp.org>
2457
2458         strcspn: Move AC_LIBOBJ invocations to module description.
2459         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2461         here...
2462         * modules/strcspn (configure.ac): ... to here.
2463
2464 2011-05-22  Bruno Haible  <bruno@clisp.org>
2465
2466         strchrnul: Move AC_LIBOBJ invocations to module description.
2467         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2468         gl_PREREQ_STRCHRNUL invocations from here...
2469         * modules/strchrnul (configure.ac): ... to here.
2470
2471 2011-05-22  Bruno Haible  <bruno@clisp.org>
2472
2473         strcasestr*: Move AC_LIBOBJ invocations to module description.
2474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2475         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2476         * modules/strcasestr-simple (configure.ac): ... to here.
2477         * modules/strcasestr (configure.ac): ... and here.
2478
2479 2011-05-22  Bruno Haible  <bruno@clisp.org>
2480
2481         strcase: Move AC_LIBOBJ invocations to module description.
2482         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2483         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2484         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2485         gl_PREREQ_STRNCASECMP invocations from here...
2486         * modules/strcase (configure.ac): ... to here.
2487
2488 2011-05-22  Bruno Haible  <bruno@clisp.org>
2489
2490         stpncpy: Move AC_LIBOBJ invocations to module description.
2491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2492         here...
2493         * modules/stpncpy (configure.ac): ... to here.
2494
2495 2011-05-22  Bruno Haible  <bruno@clisp.org>
2496
2497         stpcpy: Move AC_LIBOBJ invocations to module description.
2498         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2499         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2500         here...
2501         * modules/stpcpy (configure.ac): ... to here.
2502
2503 2011-05-21  Bruno Haible  <bruno@clisp.org>
2504
2505         stat: Move AC_LIBOBJ invocations to module description.
2506         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2507         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2508         here...
2509         * modules/stat (configure.ac): ... to here.
2510
2511 2011-05-21  Bruno Haible  <bruno@clisp.org>
2512
2513         sleep: Move AC_LIBOBJ invocations to module description.
2514         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2515         * modules/sleep (configure.ac): ... to here.
2516
2517 2011-05-21  Bruno Haible  <bruno@clisp.org>
2518
2519         signbit: Move AC_LIBOBJ invocations to module description.
2520         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2521         * modules/signbit (configure.ac): ... to here.
2522
2523 2011-05-21  Bruno Haible  <bruno@clisp.org>
2524
2525         sigprocmask: Move AC_LIBOBJ invocations to module description.
2526         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2527         gl_PREREQ_SIGPROMASK invocations from here...
2528         * modules/sigprocmask (configure.ac): ... to here.
2529
2530 2011-05-21  Bruno Haible  <bruno@clisp.org>
2531
2532         sigaction: Move AC_LIBOBJ invocations to module description.
2533         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2534         gl_PREREQ_SIGACTION invocations from here...
2535         * modules/sigaction (configure.ac): ... to here.
2536
2537 2011-05-21  Bruno Haible  <bruno@clisp.org>
2538
2539         sig2str: Move AC_LIBOBJ invocations to module description.
2540         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2542         here...
2543         * modules/sig2str (configure.ac): ... to here.
2544
2545 2011-05-21  Bruno Haible  <bruno@clisp.org>
2546
2547         setlocale: Move AC_LIBOBJ invocations to module description.
2548         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2549         gl_PREREQ_SETLOCALE invocations from here...
2550         * modules/setlocale (configure.ac): ... to here.
2551
2552 2011-05-21  Bruno Haible  <bruno@clisp.org>
2553
2554         unsetenv: Move AC_LIBOBJ invocations to module description.
2555         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2556         and gl_PREREQ_UNSETENV invocations from here...
2557         * modules/unsetenv (configure.ac): ... to here.
2558         (Depends-on): Update.
2559
2560 2011-05-21  Bruno Haible  <bruno@clisp.org>
2561
2562         setenv: Move AC_LIBOBJ invocations to module description.
2563         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2564         here...
2565         * modules/setenv (configure.ac): ... to here.
2566
2567 2011-05-21  Bruno Haible  <bruno@clisp.org>
2568
2569         selinux-h: Move AC_LIBOBJ invocations to module description.
2570         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2571         AC_LIBOBJ invocation from here...
2572         * modules/selinux-h (configure.ac): ... to here.
2573
2574 2011-05-21  Bruno Haible  <bruno@clisp.org>
2575
2576         select: Respect rules for use of AC_LIBOBJ.
2577         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2578         here...
2579         * modules/select (configure.ac): ... to here.
2580
2581 2011-05-21  Bruno Haible  <bruno@clisp.org>
2582
2583         scandir: Move AC_LIBOBJ invocations to module description.
2584         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2585         invocations from here...
2586         * modules/scandir (configure.ac): ... to here.
2587
2588 2011-05-21  Bruno Haible  <bruno@clisp.org>
2589
2590         rpmatch: Move AC_LIBOBJ invocations to module description.
2591         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2593         here...
2594         * modules/rpmatch (configure.ac): ... to here.
2595
2596 2011-05-21  Bruno Haible  <bruno@clisp.org>
2597
2598         rmdir: Respect rules for use of AC_LIBOBJ.
2599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2600         * modules/rmdir (configure.ac): ... to here.
2601
2602 2011-05-21  Bruno Haible  <bruno@clisp.org>
2603
2604         renameat: Move AC_LIBOBJ invocations to module description.
2605         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2606         here...
2607         * modules/renameat (configure.ac): ... to here.
2608
2609 2011-05-21  Bruno Haible  <bruno@clisp.org>
2610
2611         rename: Respect rules for use of AC_LIBOBJ.
2612         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2613         here...
2614         * modules/rename (configure.ac): ... to here.
2615
2616 2011-05-21  Bruno Haible  <bruno@clisp.org>
2617
2618         remove: Move AC_LIBOBJ invocations to module description.
2619         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2620         here...
2621         * modules/remove (configure.ac): ... to here.
2622
2623 2011-05-21  Bruno Haible  <bruno@clisp.org>
2624
2625         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2626         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2627         macro.
2628         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2629         * modules/relocatable-lib (configure.ac): ... to here.
2630         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2631         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2632
2633 2011-05-21  Bruno Haible  <bruno@clisp.org>
2634
2635         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2636         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2637         here...
2638         * modules/relocatable-prog (configure.ac): ... to here.
2639
2640 2011-05-21  Bruno Haible  <bruno@clisp.org>
2641
2642         regex: Move AC_LIBOBJ invocations to module description.
2643         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2644         invocations from here...
2645         * modules/regex (configure.ac): ... to here.
2646
2647 2011-05-21  Bruno Haible  <bruno@clisp.org>
2648
2649         realloc-*: Move AC_LIBOBJ invocations to module description.
2650         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2651         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2652         AC_LIBOBJ invocations from here...
2653         * modules/realloc-gnu (configure.ac): ... to here.
2654         * modules/realloc-posix (configure.ac): ... and here.
2655
2656 2011-05-21  Bruno Haible  <bruno@clisp.org>
2657
2658         readutmp: Move AC_LIBOBJ invocations to module description.
2659         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2660         * modules/readutmp (configure.ac): ... to here.
2661
2662 2011-05-21  Bruno Haible  <bruno@clisp.org>
2663
2664         readlinkat: Move AC_LIBOBJ invocations to module description.
2665         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2666         here...
2667         * modules/readlinkat (configure.ac): ... to here.
2668
2669 2011-05-21  Bruno Haible  <bruno@clisp.org>
2670
2671         readlink: Move AC_LIBOBJ invocations to module description.
2672         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2673         gl_PREREQ_READLINK invocations from here...
2674         * modules/readlink (configure.ac): ... to here.
2675
2676 2011-05-21  Bruno Haible  <bruno@clisp.org>
2677
2678         readline: Move AC_LIBOBJ invocations to module description.
2679         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2680         gl_PREREQ_READLINE invocations from here...
2681         * modules/readline (configure.ac): ... to here.
2682
2683 2011-05-21  Bruno Haible  <bruno@clisp.org>
2684
2685         read: Move AC_LIBOBJ invocations to module description.
2686         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2687         * modules/read (configure.ac): ... to here.
2688
2689 2011-05-21  Bruno Haible  <bruno@clisp.org>
2690
2691         rawmemchr: Move AC_LIBOBJ invocations to module description.
2692         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2694         from here...
2695         * modules/rawmemchr (configure.ac): ... to here.
2696
2697 2011-05-21  Bruno Haible  <bruno@clisp.org>
2698
2699         random_r: Move AC_LIBOBJ invocations to module description.
2700         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2701         gl_PREREQ_RANDOM_R invocations from here...
2702         * modules/random_r (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         pwrite: Move AC_LIBOBJ invocations to module description.
2707         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2708         * modules/pwrite (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         putenv: Move AC_LIBOBJ invocations to module description.
2713         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2714         * modules/putenv (configure.ac): ... to here.
2715
2716 2011-05-21  Bruno Haible  <bruno@clisp.org>
2717
2718         login_tty: Move AC_LIBOBJ invocations to module description.
2719         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2720         * modules/login_tty (configure.ac): ... to here.
2721
2722 2011-05-21  Bruno Haible  <bruno@clisp.org>
2723
2724         openpty: Move AC_LIBOBJ invocations to module description.
2725         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2726         * modules/openpty (configure.ac): ... to here.
2727
2728 2011-05-21  Bruno Haible  <bruno@clisp.org>
2729
2730         forkpty: Move AC_LIBOBJ invocations to module description.
2731         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2732         * modules/forkpty (configure.ac): ... to here.
2733
2734 2011-05-21  Bruno Haible  <bruno@clisp.org>
2735
2736         ptsname: Move AC_LIBOBJ invocations to module description.
2737         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2738         invocations from here...
2739         * modules/ptsname (configure.ac): ... to here.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         pread: Move AC_LIBOBJ invocations to module description.
2744         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2745         * modules/pread (configure.ac): ... to here.
2746
2747 2011-05-21  Bruno Haible  <bruno@clisp.org>
2748
2749         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2750         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2751         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2752         * modules/posix_spawn (configure.ac): ... to here.
2753         * modules/posix_spawnp (configure.ac): ... and here.
2754
2755 2011-05-21  Bruno Haible  <bruno@clisp.org>
2756
2757         popen: Move AC_LIBOBJ invocations to module description.
2758         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2759         invocations from here...
2760         * modules/popen (configure.ac): ... to here.
2761
2762 2011-05-21  Bruno Haible  <bruno@clisp.org>
2763
2764         poll: Move AC_LIBOBJ invocations to module description.
2765         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2766         invocations from here...
2767         * modules/poll (configure.ac): ... to here.
2768
2769 2011-05-21  Bruno Haible  <bruno@clisp.org>
2770
2771         pipe-posix: Move AC_LIBOBJ invocations to module description.
2772         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2773         * modules/pipe-posix (configure.ac): ... to here.
2774
2775 2011-05-21  Bruno Haible  <bruno@clisp.org>
2776
2777         openat: Respect rules for use of AC_LIBOBJ.
2778         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2779         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2780         * modules/openat (configure.ac): ... to here.
2781
2782 2011-05-21  Bruno Haible  <bruno@clisp.org>
2783
2784         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2785         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2786         invocation from here...
2787         * modules/obstack-printf (configure.ac): ... to here.
2788         * modules/obstack-printf-posix (configure.ac): ... and here.
2789
2790 2011-05-21  Bruno Haible  <bruno@clisp.org>
2791
2792         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2793         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2794         from here...
2795         * modules/nl_langinfo (configure.ac): ... to here.
2796
2797 2011-05-21  Bruno Haible  <bruno@clisp.org>
2798
2799         nanosleep: Move AC_LIBOBJ invocations to module description.
2800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2801         gl_PREREQ_NANOSLEEP invocations from here...
2802         * modules/nanosleep (configure.ac): ... to here.
2803
2804 2011-05-21  Bruno Haible  <bruno@clisp.org>
2805
2806         mountlist: Move AC_LIBOBJ invocations to module description.
2807         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2808         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2809         * modules/mountlist (configure.ac): ... to here.
2810
2811 2011-05-21  Bruno Haible  <bruno@clisp.org>
2812
2813         mktime: Respect rules for use of AC_LIBOBJ.
2814         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2815         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2816         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2817         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2818         * modules/mktime (configure.ac): ... to here.
2819         * modules/mktime-internal (configure.ac): ... and here.
2820         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2821
2822 2011-05-21  Bruno Haible  <bruno@clisp.org>
2823
2824         mkstemps: Move AC_LIBOBJ invocations to module description.
2825         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2826         here...
2827         * modules/mkstemps (configure.ac): ... to here.
2828
2829 2011-05-21  Bruno Haible  <bruno@clisp.org>
2830
2831         mkstemp: Move AC_LIBOBJ invocations to module description.
2832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2833         gl_PREREQ_MKSTEMP invocations from here...
2834         * modules/mkstemp (configure.ac): ... to here.
2835
2836 2011-05-21  Bruno Haible  <bruno@clisp.org>
2837
2838         mkostemps: Move AC_LIBOBJ invocations to module description.
2839         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2840         here...
2841         * modules/mkostemps (configure.ac): ... to here.
2842
2843 2011-05-21  Bruno Haible  <bruno@clisp.org>
2844
2845         mkostemp: Move AC_LIBOBJ invocations to module description.
2846         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2847         gl_PREREQ_MKOSTEMP invocations from here...
2848         * modules/mkostemp (configure.ac): ... to here.
2849
2850 2011-05-21  Bruno Haible  <bruno@clisp.org>
2851
2852         mknod: Move AC_LIBOBJ invocations to module description.
2853         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2854         * modules/mknod (configure.ac): ... to here.
2855
2856 2011-05-21  Bruno Haible  <bruno@clisp.org>
2857
2858         mkfifoat: Move AC_LIBOBJ invocations to module description.
2859         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2860         here...
2861         * modules/mkfifoat (configure.ac): ... to here.
2862
2863 2011-05-21  Bruno Haible  <bruno@clisp.org>
2864
2865         mkfifo: Respect rules for use of AC_LIBOBJ.
2866         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2867         here...
2868         * modules/mkfifo (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         mkdtemp: Move AC_LIBOBJ invocations to module description.
2873         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2874         invocations from here...
2875         * modules/mkdtemp (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         mkdir: Move AC_LIBOBJ invocations to module description.
2880         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2881         * modules/mkdir (configure.ac): ... to here.
2882
2883 2011-05-21  Bruno Haible  <bruno@clisp.org>
2884
2885         memset: Move AC_LIBOBJ invocations to module description.
2886         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2888         here...
2889         * modules/memset (configure.ac): ... to here.
2890
2891 2011-05-21  Bruno Haible  <bruno@clisp.org>
2892
2893         memrchr: Move AC_LIBOBJ invocations to module description.
2894         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2896         here...
2897         * modules/memrchr (configure.ac): ... to here.
2898
2899 2011-05-21  Bruno Haible  <bruno@clisp.org>
2900
2901         mempcpy: Move AC_LIBOBJ invocations to module description.
2902         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2904         here...
2905         * modules/mempcpy (configure.ac): ... to here.
2906
2907 2011-05-21  Bruno Haible  <bruno@clisp.org>
2908
2909         memmove: Move AC_LIBOBJ invocations to module description.
2910         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2912         here...
2913         * modules/memmove (configure.ac): ... to here.
2914
2915 2011-05-21  Bruno Haible  <bruno@clisp.org>
2916
2917         memmem*: Move AC_LIBOBJ invocations to module description.
2918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2919         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2920         here...
2921         (gl_FUNC_MEMMEM): ... and here...
2922         * modules/memmem-simple (configure.ac): ... to here.
2923         * modules/memmem (configure.ac): ... and here.
2924
2925 2011-05-21  Bruno Haible  <bruno@clisp.org>
2926
2927         memcpy: Move AC_LIBOBJ invocations to module description.
2928         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2930         here...
2931         * modules/memcpy (configure.ac): ... to here.
2932
2933 2011-05-21  Bruno Haible  <bruno@clisp.org>
2934
2935         memcmp: Simplify autoconf macro.
2936         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2937         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2938         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2939
2940 2011-05-21  Bruno Haible  <bruno@clisp.org>
2941
2942         memcmp: Move AC_LIBOBJ invocations to module description.
2943         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2944         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2945         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2946         * modules/memcmp (configure.ac): ... to here.
2947         (Depends-on): Update conditions.
2948
2949 2011-05-21  Bruno Haible  <bruno@clisp.org>
2950
2951         memchr: Respect rules for use of AC_LIBOBJ.
2952         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2953         invocations from here...
2954         * modules/memchr (configure.ac): ... to here.
2955
2956 2011-05-21  Bruno Haible  <bruno@clisp.org>
2957
2958         mbtowc: Move AC_LIBOBJ invocations to module description.
2959         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2960         invocations from here...
2961         * modules/mbtowc (configure.ac): ... to here.
2962
2963 2011-05-21  Bruno Haible  <bruno@clisp.org>
2964
2965         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2966         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2967         gl_PREREQ_MBSRTOWCS invocations from here...
2968         * modules/mbsrtowcs (configure.ac): ... to here.
2969
2970 2011-05-21  Bruno Haible  <bruno@clisp.org>
2971
2972         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2973         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2974         gl_PREREQ_MBSNRTOWCS invocations from here...
2975         * modules/mbsnrtowcs (configure.ac): ... to here.
2976
2977 2011-05-21  Bruno Haible  <bruno@clisp.org>
2978
2979         mbsinit: Move AC_LIBOBJ invocations to module description.
2980         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2981         invocations from here...
2982         * modules/mbsinit (configure.ac): ... to here.
2983
2984 2011-05-21  Bruno Haible  <bruno@clisp.org>
2985
2986         mbrlen: Move AC_LIBOBJ invocations to module description.
2987         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2988         invocations from here...
2989         * modules/mbrlen (configure.ac): ... to here.
2990
2991 2011-05-21  Bruno Haible  <bruno@clisp.org>
2992
2993         mbrtowc: Respect rules for use of AC_LIBOBJ.
2994         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2995         invocations from here...
2996         * modules/mbrtowc (configure.ac): ... to here.
2997
2998 2011-05-21  Bruno Haible  <bruno@clisp.org>
2999
3000         malloc-*: Move AC_LIBOBJ invocations to module description.
3001         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3002         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3003         AC_LIBOBJ invocations from here...
3004         * modules/malloc-gnu (configure.ac): ... to here.
3005         * modules/malloc-posix (configure.ac): ... and here.
3006
3007 2011-05-21  Bruno Haible  <bruno@clisp.org>
3008
3009         lstat, openat: Respect rules for use of AC_LIBOBJ.
3010         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3011         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3012         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3013         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3014         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3015         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3016         here.
3017         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3018
3019 2011-05-21  Bruno Haible  <bruno@clisp.org>
3020
3021         lseek: Move AC_LIBOBJ invocations to module description.
3022         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3023         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3024         * modules/lseek (configure.ac): ... to here.
3025
3026 2011-05-21  Bruno Haible  <bruno@clisp.org>
3027
3028         linkat: Move AC_LIBOBJ invocations to module description.
3029         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3030         here...
3031         * modules/linkat (configure.ac): ... to here.
3032
3033 2011-05-21  Bruno Haible  <bruno@clisp.org>
3034
3035         link: Respect rules for use of AC_LIBOBJ.
3036         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3037         * modules/link (configure.ac): ... to here.
3038
3039 2011-05-21  Bruno Haible  <bruno@clisp.org>
3040
3041         lchown: Move AC_LIBOBJ invocations to module description.
3042         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3043         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3044         * modules/lchown (configure.ac): ... to here.
3045
3046 2011-05-21  Bruno Haible  <bruno@clisp.org>
3047
3048         iswctype: Move AC_LIBOBJ invocations to module description.
3049         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3050         here...
3051         * modules/iswctype (configure.ac): ... to here.
3052
3053 2011-05-21  Bruno Haible  <bruno@clisp.org>
3054
3055         iswblank: Move AC_LIBOBJ invocations to module description.
3056         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3057         here...
3058         * modules/iswblank (configure.ac): ... to here.
3059
3060 2011-05-21  Bruno Haible  <bruno@clisp.org>
3061
3062         atanl: Move AC_LIBOBJ invocations to module description.
3063         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3064         * modules/atanl (configure.ac): ... to here.
3065
3066 2011-05-21  Bruno Haible  <bruno@clisp.org>
3067
3068         acosl: Move AC_LIBOBJ invocations to module description.
3069         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3070         * modules/acosl (configure.ac): ... to here.
3071
3072 2011-05-21  Bruno Haible  <bruno@clisp.org>
3073
3074         asinl: Respect rules for use of AC_LIBOBJ.
3075         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3076         * modules/asinl (configure.ac): ... to here.
3077
3078 2011-05-21  Bruno Haible  <bruno@clisp.org>
3079
3080         tanl: Move AC_LIBOBJ invocations to module description.
3081         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3082         * modules/tanl (configure.ac): ... to here.
3083
3084 2011-05-21  Bruno Haible  <bruno@clisp.org>
3085
3086         cosl: Move AC_LIBOBJ invocations to module description.
3087         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3088         * modules/cosl (configure.ac): ... to here.
3089
3090 2011-05-21  Bruno Haible  <bruno@clisp.org>
3091
3092         sinl: Move AC_LIBOBJ invocations to module description.
3093         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3094         * modules/sinl (configure.ac): ... to here.
3095
3096 2011-05-21  Bruno Haible  <bruno@clisp.org>
3097
3098         logl: Move AC_LIBOBJ invocations to module description.
3099         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3100         * modules/logl (configure.ac): ... to here.
3101
3102 2011-05-21  Bruno Haible  <bruno@clisp.org>
3103
3104         expl: Move AC_LIBOBJ invocations to module description.
3105         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3106         * modules/expl (configure.ac): ... to here.
3107
3108 2011-05-21  Bruno Haible  <bruno@clisp.org>
3109
3110         roundl: Move AC_LIBOBJ invocations to module description.
3111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3112         * modules/roundl (configure.ac): ... to here.
3113
3114 2011-05-21  Bruno Haible  <bruno@clisp.org>
3115
3116         round: Move AC_LIBOBJ invocations to module description.
3117         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3118         * modules/round (configure.ac): ... to here.
3119
3120 2011-05-21  Bruno Haible  <bruno@clisp.org>
3121
3122         roundf: Move AC_LIBOBJ invocations to module description.
3123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3124         * modules/roundf (configure.ac): ... to here.
3125
3126 2011-05-21  Bruno Haible  <bruno@clisp.org>
3127
3128         truncl: Move AC_LIBOBJ invocations to module description.
3129         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3130         * modules/truncl (configure.ac): ... to here.
3131
3132 2011-05-21  Bruno Haible  <bruno@clisp.org>
3133
3134         trunc: Move AC_LIBOBJ invocations to module description.
3135         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3136         * modules/trunc (configure.ac): ... to here.
3137
3138 2011-05-21  Bruno Haible  <bruno@clisp.org>
3139
3140         truncf: Move AC_LIBOBJ invocations to module description.
3141         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3142         * modules/truncf (configure.ac): ... to here.
3143
3144 2011-05-21  Bruno Haible  <bruno@clisp.org>
3145
3146         ceill: Move AC_LIBOBJ invocations to module description.
3147         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3148         * modules/ceill (configure.ac): ... to here.
3149
3150 2011-05-21  Bruno Haible  <bruno@clisp.org>
3151
3152         ceil: Move AC_LIBOBJ invocations to module description.
3153         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3154         * modules/ceil (configure.ac): ... to here.
3155
3156 2011-05-21  Bruno Haible  <bruno@clisp.org>
3157
3158         ceilf: Move AC_LIBOBJ invocations to module description.
3159         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3160         * modules/ceilf (configure.ac): ... to here.
3161
3162 2011-05-21  Bruno Haible  <bruno@clisp.org>
3163
3164         floorl: Respect rules for use of AC_LIBOBJ.
3165         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3166         * modules/floorl (configure.ac): ... to here.
3167
3168 2011-05-21  Bruno Haible  <bruno@clisp.org>
3169
3170         floor: Respect rules for use of AC_LIBOBJ.
3171         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3172         * modules/floor (configure.ac): ... to here.
3173
3174 2011-05-21  Bruno Haible  <bruno@clisp.org>
3175
3176         floorf: Move AC_LIBOBJ invocations to module description.
3177         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3178         * modules/floorf (configure.ac): ... to here.
3179
3180 2011-05-20  Bruno Haible  <bruno@clisp.org>
3181
3182         sqrtl: Respect rules for use of AC_LIBOBJ.
3183         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3184         * modules/sqrtl (configure.ac): ... to here.
3185
3186 2011-05-20  Bruno Haible  <bruno@clisp.org>
3187
3188         ldexpl: Respect rules for use of AC_LIBOBJ.
3189         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3190         * modules/ldexpl (configure.ac): ... to here.
3191
3192 2011-05-20  Bruno Haible  <bruno@clisp.org>
3193
3194         frexpl*: Respect rules for use of AC_LIBOBJ.
3195         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3196         invocation from here...
3197         * modules/frexpl (configure.ac): ... to here.
3198         * modules/frexpl-nolibm (configure.ac): ... and here.
3199
3200 2011-05-20  Bruno Haible  <bruno@clisp.org>
3201
3202         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3203         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3204         invocation from here...
3205         * modules/frexp (configure.ac): ... to here.
3206         * modules/frexp-nolibm (configure.ac): ... and here.
3207
3208 2011-05-20  Bruno Haible  <bruno@clisp.org>
3209
3210         isnan: Respect rules for use of AC_LIBOBJ.
3211         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3212         invocations here.
3213         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3214         REPLACE_ISNAN.
3215         * modules/isnand (configure.ac): Likewise.
3216         * modules/isnanl (configure.ac): Likewise.
3217
3218 2011-05-20  Bruno Haible  <bruno@clisp.org>
3219
3220         isnanl*: Respect rules for use of AC_LIBOBJ.
3221         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3222         invocation from here...
3223         * modules/isnanl (configure.ac): ... to here.
3224         * modules/isnanl-nolibm (configure.ac): ... and here.
3225
3226 2011-05-20  Bruno Haible  <bruno@clisp.org>
3227
3228         isnand*: Move AC_LIBOBJ invocations to module description.
3229         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3230         invocation from here...
3231         * modules/isnand (configure.ac): ... to here.
3232         * modules/isnand-nolibm (configure.ac): ... and here.
3233
3234 2011-05-20  Bruno Haible  <bruno@clisp.org>
3235
3236         isnanf*: Move AC_LIBOBJ invocations to module description.
3237         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3238         invocation from here...
3239         * modules/isnanf (configure.ac): ... to here.
3240         * modules/isnanf-nolibm (configure.ac): ... and here.
3241
3242 2011-05-20  Bruno Haible  <bruno@clisp.org>
3243
3244         isnan*: Separate the AC_LIBOBJ invocations.
3245         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3246         AC_LIBOBJ invocation.
3247         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3248         here.
3249         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3250         AC_LIBOBJ invocation.
3251         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3252         here.
3253         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3254         AC_LIBOBJ invocation.
3255         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3256         here.
3257         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3258
3259 2011-05-08  Bruno Haible  <bruno@clisp.org>
3260
3261         isinf: Move AC_LIBOBJ invocations to module description.
3262         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3263         * modules/isinf (configure.ac): ... to here.
3264
3265 2011-05-08  Bruno Haible  <bruno@clisp.org>
3266
3267         isfinite: Move AC_LIBOBJ invocations to module description.
3268         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3269         * modules/isfinite (configure.ac): ... to here.
3270
3271 2011-05-08  Bruno Haible  <bruno@clisp.org>
3272
3273         isblank: Move AC_LIBOBJ invocations to module description.
3274         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3275         here...
3276         * modules/isblank (configure.ac): ... to here.
3277
3278 2011-05-08  Bruno Haible  <bruno@clisp.org>
3279
3280         isapipe: Move AC_LIBOBJ invocations to module description.
3281         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3282         gl_PREREQ_ISAPIPE invocations from here...
3283         * modules/isapipe (configure.ac): ... to here.
3284         (Depends-on): Update condition.
3285
3286 2011-05-08  Bruno Haible  <bruno@clisp.org>
3287
3288         ioctl: Move AC_LIBOBJ invocations to module description.
3289         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3290         invocations from here...
3291         * modules/ioctl (configure.ac): ... to here.
3292         (Depends-on): Update condition.
3293
3294 2011-05-08  Bruno Haible  <bruno@clisp.org>
3295
3296         imaxdiv: Move AC_LIBOBJ invocations to module description.
3297         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3298         invocations from here...
3299         * modules/imaxdiv (configure.ac): ... to here.
3300
3301 2011-05-08  Bruno Haible  <bruno@clisp.org>
3302
3303         imaxabs: Move AC_LIBOBJ invocations to module description.
3304         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3305         invocations from here...
3306         * modules/imaxabs (configure.ac): ... to here.
3307
3308 2011-05-08  Bruno Haible  <bruno@clisp.org>
3309
3310         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3312         AC_LIBOBJ invocations from here...
3313         * modules/getaddrinfo (configure.ac): ... to here.
3314         (Depends-on): Add conditions.
3315
3316 2011-05-08  Bruno Haible  <bruno@clisp.org>
3317
3318         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3319         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3320         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3321         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3322         (gl_PREREQ_INET_PTON): ... from here.
3323         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3324         gl_PREREQ_INET_PTON here.
3325         (Depends-on): Update condition.
3326
3327 2011-05-08  Bruno Haible  <bruno@clisp.org>
3328
3329         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3330         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3331         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3332         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3333         (gl_PREREQ_INET_NTOP): ... from here.
3334         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3335         gl_PREREQ_INET_NTOP here.
3336         (Depends-on): Update condition.
3337
3338 2011-05-08  Bruno Haible  <bruno@clisp.org>
3339
3340         iconv_open: Move AC_LIBOBJ invocations to module description.
3341         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3342         AC_LIBOBJ invocations from here...
3343         * modules/iconv_open (configure.ac): ... to here.
3344
3345 2011-05-08  Bruno Haible  <bruno@clisp.org>
3346
3347         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3348         If module 'iconv_open' is among the main modules and module
3349         'iconv_open-utf' is among the tests dependencies, then
3350         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3351         return the special iconv_t values. Therefore iconv() and iconv_close()
3352         must support these special iconv_t values, already in lib, not only in
3353         tests.
3354         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3356         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3357         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3358         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3359         (Depends-on): Add the dependencies of iconv_open-utf.
3360         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3361         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3362         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3363
3364 2011-05-08  Bruno Haible  <bruno@clisp.org>
3365
3366         group-member: Move AC_LIBOBJ invocations to module description.
3367         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3368         gl_PREREQ_GROUP_MEMBER invocations from here...
3369         * modules/group-member (configure.ac): ... to here.
3370
3371 2011-05-08  Bruno Haible  <bruno@clisp.org>
3372
3373         grantpt: Move AC_LIBOBJ invocations to module description.
3374         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3375         invocations from here...
3376         * modules/grantpt (configure.ac): ... to here.
3377
3378 2011-05-08  Bruno Haible  <bruno@clisp.org>
3379
3380         glob: Move AC_LIBOBJ invocations to module description.
3381         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3382         from here...
3383         * modules/glob (configure.ac): ... to here.
3384
3385 2011-05-08  Bruno Haible  <bruno@clisp.org>
3386
3387         getusershell: Move AC_LIBOBJ invocations to module description.
3388         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3389         Move AC_LIBOBJ invocation from here...
3390         * modules/getusershell (configure.ac): ... to here.
3391         (Depends-on): Update condition.
3392
3393 2011-05-08  Bruno Haible  <bruno@clisp.org>
3394
3395         gettimeofday: Move AC_LIBOBJ invocations to module description.
3396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3397         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3398         gl_PREREQ_GETTIMEOFDAY invocations from here...
3399         * modules/gettimeofday (configure.ac): ... to here.
3400
3401 2011-05-08  Bruno Haible  <bruno@clisp.org>
3402
3403         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3404         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3405         just gl_FUNC_TZSET.
3406         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3407         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3408         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3409         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3410
3411 2011-05-08  Bruno Haible  <bruno@clisp.org>
3412
3413         getsubopt: Move AC_LIBOBJ invocations to module description.
3414         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3415         gl_PREREQ_GETSUBOPT invocations from here...
3416         * modules/getsubopt (configure.ac): ... to here.
3417
3418 2011-05-08  Bruno Haible  <bruno@clisp.org>
3419
3420         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3421         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3422         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3423         * modules/getpass-gnu (configure.ac): ... to here.
3424
3425 2011-05-08  Bruno Haible  <bruno@clisp.org>
3426
3427         getpass: Move AC_LIBOBJ invocations to module description.
3428         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3429         gl_PREREQ_GETPASS invocations from here...
3430         * modules/getpass (configure.ac): ... to here.
3431
3432 2011-05-08  Bruno Haible  <bruno@clisp.org>
3433
3434         getpagesize: Move AC_LIBOBJ invocations to module description.
3435         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3436         from here...
3437         * modules/getpagesize (configure.ac): ... to here.
3438
3439 2011-05-08  Bruno Haible  <bruno@clisp.org>
3440
3441         getopt: Move AC_LIBOBJ invocations to module description.
3442         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3443         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3444         invocations from here...
3445         * modules/getopt-gnu (configure.ac): ... to here.
3446         * modules/getopt-posix (configure.ac): ... and here.
3447         (Depends-on): Update condition.
3448
3449 2011-05-08  Bruno Haible  <bruno@clisp.org>
3450
3451         getopt, argp: Respect rules for use of AC_LIBOBJ.
3452         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3453         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3454         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3455         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3456
3457 2011-05-08  Bruno Haible  <bruno@clisp.org>
3458
3459         getlogin_r: Move AC_LIBOBJ invocations to module description.
3460         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3461         gl_PREREQ_GETLOGIN_R invocations from here...
3462         * modules/getlogin_r (configure.ac): ... to here.
3463
3464 2011-05-08  Bruno Haible  <bruno@clisp.org>
3465
3466         getlogin: Move AC_LIBOBJ invocations to module description.
3467         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3468         here...
3469         * modules/getlogin (configure.ac): ... to here.
3470
3471 2011-05-08  Bruno Haible  <bruno@clisp.org>
3472
3473         getloadavg: Move AC_LIBOBJ invocations to module description.
3474         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3475         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3476         * modules/getloadavg (configure.ac): ... to here.
3477
3478 2011-05-08  Bruno Haible  <bruno@clisp.org>
3479
3480         gethrxtime: Move AC_LIBOBJ invocations to module description.
3481         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3482         LIB_GETHRXTIME from here...
3483         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3484         invocations from here...
3485         * modules/gethrxtime (configure.ac): ... to here.
3486
3487 2011-05-08  Bruno Haible  <bruno@clisp.org>
3488
3489         gethostname: Move AC_LIBOBJ invocations to module description.
3490         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3491         gl_PREREQ_GETHOSTNAME invocations from here...
3492         * modules/gethostname (configure.ac): ... to here.
3493
3494 2011-05-08  Bruno Haible  <bruno@clisp.org>
3495
3496         getgroups: Move AC_LIBOBJ invocations to module description.
3497         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3498         here...
3499         * modules/getgroups (configure.ac): ... to here.
3500
3501 2011-05-08  Bruno Haible  <bruno@clisp.org>
3502
3503         getdtablesize: Move AC_LIBOBJ invocations to module description.
3504         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3505         invocation from here...
3506         * modules/getdtablesize (configure.ac): ... to here.
3507
3508 2011-05-08  Bruno Haible  <bruno@clisp.org>
3509
3510         getdomainname: Move AC_LIBOBJ invocations to module description.
3511         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3512         gl_PREREQ_GETDOMAINNAME invocations from here...
3513         * modules/getdomainname (configure.ac): ... to here.
3514
3515 2011-05-08  Bruno Haible  <bruno@clisp.org>
3516
3517         getline: Move AC_LIBOBJ invocations to module description.
3518         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3519         invocations from here...
3520         * modules/getline (configure.ac): ... to here.
3521
3522 2011-05-08  Bruno Haible  <bruno@clisp.org>
3523
3524         getline: Simplify.
3525         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3526         It's already handled through the module dependency.
3527
3528 2011-05-08  Bruno Haible  <bruno@clisp.org>
3529
3530         getdelim: Move AC_LIBOBJ invocations to module description.
3531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3532         and gl_PREREQ_GETDELIM invocations from here...
3533         * modules/getdelim (configure.ac): ... to here.
3534         (Depends-on): Fix condition.
3535
3536 2011-05-08  Bruno Haible  <bruno@clisp.org>
3537
3538         getcwd: Move AC_LIBOBJ invocations to module description.
3539         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3540         invocations from here...
3541         * modules/getcwd (configure.ac): ... to here.
3542
3543 2011-05-08  Bruno Haible  <bruno@clisp.org>
3544
3545         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3546         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3547         here...
3548         * modules/getcwd-lgpl (configure.ac): ... to here.
3549
3550 2011-05-07  Bruno Haible  <bruno@clisp.org>
3551
3552         crypto/gc: Move AC_LIBOBJ invocations to module description.
3553         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3554         * modules/crypto/gc (configure.ac): ... to here.
3555
3556 2011-05-07  Bruno Haible  <bruno@clisp.org>
3557
3558         fwriting: Move AC_LIBOBJ invocations to module description.
3559         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3560         here...
3561         * modules/fwriting (configure.ac): ... to here.
3562
3563 2011-05-07  Bruno Haible  <bruno@clisp.org>
3564
3565         fwritable: Move AC_LIBOBJ invocations to module description.
3566         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3567         here...
3568         * modules/fwritable (configure.ac): ... to here.
3569
3570 2011-05-07  Bruno Haible  <bruno@clisp.org>
3571
3572         futimens: Move AC_LIBOBJ invocations to module description.
3573         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3574         here...
3575         * modules/futimens (configure.ac): ... to here.
3576
3577 2011-05-07  Bruno Haible  <bruno@clisp.org>
3578
3579         ftruncate: Move AC_LIBOBJ invocations to module description.
3580         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3581         gl_PREREQ_FTRUNCATE invocations from here...
3582         * modules/ftruncate (configure.ac): ... to here.
3583
3584 2011-05-07  Bruno Haible  <bruno@clisp.org>
3585
3586         fsync: Move AC_LIBOBJ invocations to module description.
3587         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3588         invocations from here...
3589         * modules/fsync (configure.ac): ... to here.
3590
3591 2011-05-07  Bruno Haible  <bruno@clisp.org>
3592
3593         fsusage: Move AC_LIBOBJ invocations to module description.
3594         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3595         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3596         * modules/fsusage (configure.ac): ... to here.
3597
3598 2011-05-07  Bruno Haible  <bruno@clisp.org>
3599
3600         freopen: Move AC_LIBOBJ invocations to module description.
3601         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3602         invocations from here...
3603         * modules/freopen (configure.ac): ... to here.
3604
3605 2011-05-07  Bruno Haible  <bruno@clisp.org>
3606
3607         free: Move AC_LIBOBJ invocations to module description.
3608         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3609         invocations from here...
3610         * modules/free (configure.ac): ... to here.
3611
3612 2011-05-07  Bruno Haible  <bruno@clisp.org>
3613
3614         freadable: Move AC_LIBOBJ invocations to module description.
3615         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3616         here...
3617         * modules/freadable (configure.ac): ... to here.
3618
3619 2011-05-07  Bruno Haible  <bruno@clisp.org>
3620
3621         fpurge: Move AC_LIBOBJ invocations to module description.
3622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3623         invocations from here...
3624         * modules/fpurge (configure.ac): ... to here.
3625
3626 2011-05-07  Bruno Haible  <bruno@clisp.org>
3627
3628         fpending: Move AC_LIBOBJ invocations to module description.
3629         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3630         gl_FUNC_FPENDING.
3631         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3632         invocations from here...
3633         * modules/fpending (configure.ac): ... to here.
3634
3635 2011-05-07  Bruno Haible  <bruno@clisp.org>
3636
3637         fopen: Move AC_LIBOBJ invocations to module description.
3638         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3639         invocations from here...
3640         * modules/fopen (configure.ac): ... to here.
3641
3642 2011-05-07  Bruno Haible  <bruno@clisp.org>
3643
3644         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3645         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3646         gl_FUNC_FNMATCH_POSIX.
3647         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3648         invocations from here...
3649         * modules/fnmatch (configure.ac): ... to here.
3650         * modules/fnmatch-gnu (configure.ac): ... and here.
3651
3652 2011-05-07  Bruno Haible  <bruno@clisp.org>
3653
3654         flock: Move AC_LIBOBJ invocations to module description.
3655         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3656         invocations from here...
3657         * modules/flock (configure.ac): ... to here.
3658
3659 2011-05-07  Bruno Haible  <bruno@clisp.org>
3660
3661         fileblocks: Move AC_LIBOBJ invocations to module description.
3662         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3663         gl_PREREQ_FILEBLOCKS invocations from here...
3664         * modules/fileblocks (configure.ac): ... to here.
3665
3666 2011-05-06  Bruno Haible  <bruno@clisp.org>
3667
3668         fflush: Move AC_LIBOBJ invocations to module description.
3669         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3670         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3671         invocations from here...
3672         * modules/fflush (configure.ac): ... to here.
3673
3674 2011-05-06  Bruno Haible  <bruno@clisp.org>
3675
3676         fdopendir: Move AC_LIBOBJ invocations to module description.
3677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3678         here...
3679         * modules/fdopendir (configure.ac): ... to here.
3680         (Depends-on): Improve conditions.
3681
3682 2011-05-06  Bruno Haible  <bruno@clisp.org>
3683
3684         _Exit: Move AC_LIBOBJ invocations to module description.
3685         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3686         invocations from here...
3687         * modules/_Exit (configure.ac): ... to here.
3688
3689 2011-05-21  Bruno Haible  <bruno@clisp.org>
3690
3691         euidaccess: Respect rules for use of AC_LIBOBJ.
3692         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3694         from here...
3695         * modules/euidaccess (configure.ac): ... to here.
3696
3697 2011-05-06  Bruno Haible  <bruno@clisp.org>
3698
3699         error: Move AC_LIBOBJ invocations to module description.
3700         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3701         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3702         invocations from here...
3703         * modules/error (configure.ac): ... to here.
3704
3705 2011-05-06  Bruno Haible  <bruno@clisp.org>
3706
3707         duplocale: Move AC_LIBOBJ invocations to module description.
3708         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3709         gl_PREREQ_DUPLOCALE invocations from here...
3710         * modules/duplocale (configure.ac): ... to here.
3711
3712 2011-05-05  Bruno Haible  <bruno@clisp.org>
3713
3714         dirfd: Move AC_LIBOBJ invocations to module description.
3715         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3716         gl_FUNC_DIRFD.
3717         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3718         here...
3719         * modules/dirfd (configure.ac): ... to here.
3720         (Depends-on): Fix condition.
3721
3722 2011-05-05  Bruno Haible  <bruno@clisp.org>
3723
3724         chown: Respect rules for use of AC_LIBOBJ.
3725         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3726         * modules/chown (configure.ac): ... to here.
3727
3728 2011-05-05  Bruno Haible  <bruno@clisp.org>
3729
3730         chdir-long: Move AC_LIBOBJ invocations to module description.
3731         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3732         gl_PREREQ_CHDIR_LONG invocations from here...
3733         * modules/chdir-long (configure.ac): ... to here.
3734
3735 2011-05-05  Bruno Haible  <bruno@clisp.org>
3736
3737         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3738         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3739         from here...
3740         * modules/canonicalize-lgpl (configure.ac): ... to here.
3741
3742 2011-05-05  Bruno Haible  <bruno@clisp.org>
3743
3744         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3745         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3746         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3747         REPLACE_CALLOC.
3748         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3749         * modules/calloc-gnu (configure.ac): Likewise.
3750
3751 2011-05-05  Bruno Haible  <bruno@clisp.org>
3752
3753         btowc: Move AC_LIBOBJ invocations to module description.
3754         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3755         invocations from here...
3756         * modules/btowc (configure.ac): ... to here.
3757
3758 2011-05-21  Bruno Haible  <bruno@clisp.org>
3759
3760         atexit: Move AC_LIBOBJ invocations to module description.
3761         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3763         here...
3764         * modules/atexit (configure.ac): ... to here.
3765
3766 2011-05-05  Bruno Haible  <bruno@clisp.org>
3767
3768         atoll: Move AC_LIBOBJ invocations to module description.
3769         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3770         invocations from here...
3771         * modules/atoll (configure.ac): ... to here.
3772
3773 2011-05-05  Bruno Haible  <bruno@clisp.org>
3774
3775         argz: Move AC_LIBOBJ invocations to module description.
3776         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3777         * modules/argz (configure.ac): ... to here.
3778
3779 2011-05-05  Bruno Haible  <bruno@clisp.org>
3780
3781         alphasort: Move AC_LIBOBJ invocations to module description.
3782         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3783         gl_PREREQ_ALPHASORT invocations from here...
3784         * modules/alphasort (configure.ac): ... to here.
3785
3786 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3787
3788         verify: new macro verify_expr; verify_true deprecated
3789         * NEWS: Mention this.
3790         * doc/verify.texi (Compile-time Assertions): Document this.
3791         * lib/verify.h (verify_true): Deprecate.
3792         (verify_expr): New macro.
3793         * tests/test-verify.c (function): Test verify_expr.
3794
3795 2011-06-14  Jim Meyering  <meyering@redhat.com>
3796
3797         init.sh: give more portable redirection-related advice in a comment
3798         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3799         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3800         for lots of discussion.  Stefano Lattarini suggested the solution
3801         of putting "9>&2" after the command.  Reported by Bruno Haible.
3802
3803 2011-06-13  Bruno Haible  <bruno@clisp.org>
3804
3805         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3806         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3807         'none'.
3808
3809 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3810
3811         ftoastr: use strtof only if HAVE_STRTOF
3812         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3814         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3815         * modules/ftoastr (configure.ac): Check for strtof.
3816
3817 2011-06-13  Bruno Haible  <bruno@clisp.org>
3818
3819         gnulib-tool: Addendum to 2011-06-08 commit.
3820         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3821         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3822
3823 2011-06-13  Bruno Haible  <bruno@clisp.org>
3824
3825         fseeko: Provide a non-inline replacement of fseek().
3826         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3827         * modules/fseeko (Depends-on): Add fseek.
3828         * modules/fseek (License): Change to LGPLv2+.
3829
3830 2011-06-13  Bruno Haible  <bruno@clisp.org>
3831
3832         ftello: Provide a non-inline replacement of ftell().
3833         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3834         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3835         not have ftello() (such as on mingw).
3836         * modules/ftello (Depends-on): Add ftell.
3837         * modules/ftell (License): Change to LGPLv2+.
3838
3839 2011-05-07  Bruno Haible  <bruno@clisp.org>
3840
3841         ftell: Move AC_LIBOBJ invocations to module description.
3842         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3843         * modules/ftell (configure.ac): ... to here.
3844
3845 2011-05-07  Bruno Haible  <bruno@clisp.org>
3846
3847         ftello: Respect rules for use of AC_LIBOBJ.
3848         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3849         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3850         here...
3851         * modules/ftello (configure.ac): ... to here.
3852
3853 2011-05-07  Bruno Haible  <bruno@clisp.org>
3854
3855         fseeko: Simplify.
3856         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3857         (gl_FUNC_FSEEKO): Inline it here.
3858
3859 2011-05-07  Bruno Haible  <bruno@clisp.org>
3860
3861         fseek: Move AC_LIBOBJ invocations to module description.
3862         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3863         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3864         * modules/fseek (configure.ac): ... to here.
3865
3866 2011-05-07  Bruno Haible  <bruno@clisp.org>
3867
3868         fseek: Respect rules for use of AC_LIBOBJ.
3869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3870         here...
3871         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3872
3873 2011-05-07  Bruno Haible  <bruno@clisp.org>
3874
3875         fseeko: Respect rules for use of AC_LIBOBJ.
3876         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3877         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3878         here...
3879         * modules/fseeko (configure.ac): ... to here.
3880
3881 2011-06-13  Bruno Haible  <bruno@clisp.org>
3882
3883         gnulib-tool: Allow comments in the 'Depends-on' section.
3884         * doc/gnulib.texi (Module description): Mention comment syntax in the
3885         Depends-on section.
3886         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3887
3888 2011-06-13  Bruno Haible  <bruno@clisp.org>
3889
3890         file-set.h: guard __attibute__ use, now that it's not always defined
3891         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3892         versions that support it.  This fixes a coreutils build failure with
3893         the vendor cc on HP-UX 11.31.
3894
3895 2011-06-12  Bruno Haible  <bruno@clisp.org>
3896
3897         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3898         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3899         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3900         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3901         (acl, aclsort): New declarations.
3902         (aclv_nontrivial): New declaration.
3903         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3904         (file_has_acl): Read also the second kind of HP-UX ACLs.
3905         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3906         kind of HP-UX ACLs if the first kind fails.
3907         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3908         second kind of HP-UX ACLs.
3909         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3910         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3911         agree.
3912         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3913         hpuxjfs.
3914         Handle hpuxjfs.
3915         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3916         hpuxjfs.
3917         Handle hpuxjfs.
3918         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3919         (func_test_same_acls): Use both lsacl and getacl.
3920         Handle hpuxjfs.
3921         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3922         (func_test_same_acls): Use both lsacl and getacl.
3923         Handle hpuxjfs.
3924
3925 2011-06-12  Bruno Haible  <bruno@clisp.org>
3926
3927         acl: Complete the 2010-08-10 fix.
3928         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3929         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3930         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3931         explicitly.
3932         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3933         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3934
3935 2011-06-12  Bruno Haible  <bruno@clisp.org>
3936
3937         spawn-pipe tests: Comments.
3938         * tests/test-spawn-pipe-child.c (main): Update comment.
3939         Reported by James Youngman <jay@gnu.org>.
3940
3941 2011-06-11  James Youngman  <jay@gnu.org>
3942
3943         New module 'stat-size'.
3944         * modules/stat-size: New module.  Provides macros for accessing
3945         file size information in instances of struct stat.  Depends on the
3946         fileblocks module because it calls st_blocks.
3947         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3948         * doc/gnulib.texi: Include stat-size.texi.
3949         * doc/stat-size.texi: Documentation for this module.
3950         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3951         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3952         AC_STRUCT_ST_BLOCKS.
3953
3954 2011-06-09  Bruno Haible  <bruno@clisp.org>
3955
3956         thread: Support pthreads-win32.
3957         * lib/glthread/thread.h (gl_thread_self): Define differently on
3958         pthreads-win32.
3959         (gl_null_thread): New declaration.
3960         (gl_thread_self_pointer): New macro.
3961         * lib/glthread/thread.c (gl_null_thread): New constant.
3962         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3963         gl_thread_self.
3964         * tests/test-tls.c: Likewise.
3965         Suggested by Paul Eggert. Reported by Eric Blake.
3966
3967 2011-06-09  Bruno Haible  <bruno@clisp.org>
3968
3969         thread: Fix confusion between NULL and 0.
3970         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3971         Reported by Paul Eggert.
3972
3973 2011-06-09  Bruno Haible  <bruno@clisp.org>
3974
3975         spawn-pipe tests: Avoid test failure on HP-UX 11.
3976         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3977         is closed.
3978
3979 2011-06-09  Bruno Haible  <bruno@clisp.org>
3980
3981         acl tests: Fix compilation error on HP-UX 11.
3982         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3983
3984 2011-06-09  Bruno Haible  <bruno@clisp.org>
3985
3986         rmdir: Avoid test failure on HP-UX 10.20.
3987         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3988         EEXIST.
3989
3990 2011-06-08  Eric Blake  <eblake@redhat.com>
3991
3992         perror: fix test on mingw
3993         * modules/perror-tests (Depends-on): Add dup2.
3994
3995         strerror_r-posix: fix on MacOS
3996         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3998         logic bug.
3999         * lib/strerror_r.c (strerror_r): Fix the bug.
4000         * lib/strerror.c (strerror): Likewise.
4001         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4002         problem.
4003         * doc/posix-functions/strerror.texi (strerror): Likewise.
4004         * doc/posix-functions/perror.texi (perror): Likewise.
4005         * tests/test-strerror.c (main): Enhance test.
4006         * tests/test-strerror_r.c (main): Likewise.
4007
4008 2011-06-08  Bruno Haible  <bruno@clisp.org>
4009
4010         gnulib-tool: Better isolation between different gnulib-tool invocations.
4011         * gnulib-tool: New option --witness-c-macro.
4012         (witness_c_macro): New variable.
4013         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4014         AM_CPPFLAGS define it as a C macro.
4015         (func_emit_tests_Makefile_am): Likewise.
4016         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4017         read it from there.
4018         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4019         m4_define, not AC_DEFUN.
4020         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4021         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4022         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4023         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4024         s|...|...|, to substitute the values of the GNULIB_* module indicator
4025         variables.
4026         * modules/dirent (Makefile.am): Likewise.
4027         * modules/fcntl-h (Makefile.am): Likewise.
4028         * modules/iconv-h (Makefile.am): Likewise.
4029         * modules/langinfo (Makefile.am): Likewise.
4030         * modules/locale (Makefile.am): Likewise.
4031         * modules/math (Makefile.am): Likewise.
4032         * modules/netdb (Makefile.am): Likewise.
4033         * modules/poll-h (Makefile.am): Likewise.
4034         * modules/pty (Makefile.am): Likewise.
4035         * modules/search (Makefile.am): Likewise.
4036         * modules/signal (Makefile.am): Likewise.
4037         * modules/spawn (Makefile.am): Likewise.
4038         * modules/stdio (Makefile.am): Likewise.
4039         * modules/stdlib (Makefile.am): Likewise.
4040         * modules/string (Makefile.am): Likewise.
4041         * modules/sys_ioctl (Makefile.am): Likewise.
4042         * modules/sys_select (Makefile.am): Likewise.
4043         * modules/sys_socket (Makefile.am): Likewise.
4044         * modules/sys_stat (Makefile.am): Likewise.
4045         * modules/sys_times (Makefile.am): Likewise.
4046         * modules/sys_utsname (Makefile.am): Likewise.
4047         * modules/sys_wait (Makefile.am): Likewise.
4048         * modules/termios (Makefile.am): Likewise.
4049         * modules/time (Makefile.am): Likewise.
4050         * modules/unistd (Makefile.am): Likewise.
4051         * modules/wchar (Makefile.am): Likewise.
4052
4053 2011-06-08  Eric Blake  <eblake@redhat.com>
4054
4055         strerror: simplify replacement
4056         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4057         * modules/strerror (configure.ac): No prereqs needed here...
4058         * modules/strerror-override (configure.ac): ...but this needs it.
4059         (Files): Add file for needed prereq macro.
4060
4061 2011-06-08  Bruno Haible  <bruno@clisp.org>
4062
4063         strerror_r-posix: Tweaks.
4064         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4065         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4067         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4068         (gl_FUNC_STRERROR_R): ... to here.
4069         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4070
4071 2011-06-07  Eric Blake  <eblake@redhat.com>
4072
4073         perror: document fixed bugs
4074         * doc/posix-functions/perror.texi (perror): Document recent
4075         patches.
4076
4077 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4078
4079         stat-time: get_stat_birthtime failure is better-defined
4080         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4081         return a timestamp whose tv_sec and tv_nsec values are both -1.
4082         Previously, the spec said only that the tv_nsec value was negative.
4083         This upward-compatible change simplifies GNU tar a bit.
4084
4085 2011-06-07  Eric Blake  <eblake@redhat.com>
4086
4087         strerror_r-posix: work around cygwin 1.7.9
4088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4089         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4090         bug without replacing strerror_r.
4091         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4092         strerror_r is buggy, but without requiring strerror_r compilation.
4093         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4094
4095         test-perror: relax test to ignore cygwin bug
4096         * tests/test-perror2.c (main): Relax test on requiring detection
4097         of stream errors, and use unbuffered stream.
4098         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4099         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4100         * doc/posix-functions/fputc.texi (fputc): Likewise.
4101         * doc/posix-functions/fputs.texi (fputs): Likewise.
4102         * doc/posix-functions/fputws.texi (fputws): Likewise.
4103         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4104         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4105         * doc/posix-functions/getopt.texi (getopt): Likewise.
4106         * doc/posix-functions/perror.texi (perror): Likewise.
4107         * doc/posix-functions/printf.texi (printf): Likewise.
4108         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4109         * doc/posix-functions/psignal.texi (psignal): Likewise.
4110         * doc/posix-functions/putc.texi (putc): Likewise.
4111         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4112         Likewise.
4113         * doc/posix-functions/putchar.texi (putchar): Likewise.
4114         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4115         Likewise.
4116         * doc/posix-functions/puts.texi (puts): Likewise.
4117         * doc/posix-functions/putwc.texi (putwc): Likewise.
4118         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4119         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4120         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4121         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4122         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4123         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4124         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4125         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4126
4127 2011-05-22  Bruno Haible  <bruno@clisp.org>
4128
4129         strerror: Move AC_LIBOBJ invocations to module description.
4130         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4131         gl_PREREQ_STRERROR invocations from here...
4132         * modules/strerror (configure.ac): ... to here.
4133
4134 2011-05-21  Bruno Haible  <bruno@clisp.org>
4135
4136         perror: Use common idiom.
4137         * modules/perror (configure.ac): Reorder statements.
4138
4139 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4140
4141         tests: fix usage message in 'mktempd_'
4142         * tests/init.sh (mktempd_): In the usage message, use literal
4143         'mktempd_', not '$ME' (which is even undefined), as the name of
4144         the subroutine.
4145
4146 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4147
4148         tests init: new function 'fatal_', for hard errors
4149         Before this patch, the only way offered by tests/init.sh to
4150         properly signal a hard error was the `framework_failure_'
4151         function.  But the error message issued by that function,
4152         as its name would suggest, refers to a set-up failure in the
4153         testsuite, while hard errors can obviously also be due to
4154         other reasons.  The best way to fix this inconsistency is to
4155         introduce a new function with a more general error message.
4156         * tests/init.sh (fatal_): New function.
4157
4158 2011-06-06  Eric Blake  <eblake@redhat.com>
4159
4160         canonicalize-lgpl: use common idiom
4161         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4162         over newer POSIX -Rf.
4163         Reported by Bruno Haible.
4164
4165         canonicalize-lgpl: work around AIX realpath bug
4166         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4167         * doc/posix-functions/realpath.texi (realpath): Document it.
4168         Reported by Bruno Haible.
4169
4170         strerror: work around FreeBSD bug
4171         * lib/strerror.c (strerror): Special case 0.
4172         Reported by Bruno Haible.
4173
4174         strerror-override: avoid bloating errno module
4175         * modules/errno (Files, configure.ac): Move replacement strings...
4176         * modules/strerror-override: ...to new module.
4177         * modules/strerror (Depends-on): Add strerror-override.
4178         * modules/strerror_r-posix (Depends-on): Likewise.
4179         * MODULES.html.sh: Document new module.
4180         Reported by Bruno Haible.
4181
4182 2011-06-06  Bruno Haible  <bruno@clisp.org>
4183
4184         spawn-pipe tests: Rename program.
4185         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4186         * tests/test-spawn-pipe-child.c: Update comment.
4187         * tests/test-spawn-pipe.sh: Update.
4188         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4189
4190         spawn-pipe tests: Link the child program only against libc.
4191         * tests/test-spawn-pipe-child.c: New file, extracted from
4192         tests/test-spawn-pipe.c.
4193         (main): Expect only one argument.
4194         (is_open): New function, copied from tests/test-pipe.c.
4195         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4196         (child_main): Remove function.
4197         (test_pipe): Pass only one argument to the child program.
4198         (main): Remove child process code. Expect the child program's name as
4199         first argument.
4200         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4201         argument.
4202         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4203         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4204         test-spawn-pipe-child against no libraries.
4205
4206 2011-06-06  Bruno Haible  <bruno@clisp.org>
4207
4208         careadlinkat: Avoid mismatch between ssize_t and int.
4209         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4210         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4211
4212 2011-06-06  Jim Meyering  <meyering@redhat.com>
4213
4214         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4215         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4216         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4217
4218 2011-06-05  Bruno Haible  <bruno@clisp.org>
4219
4220         ansi-c++-opt: Interoperability with libtool.
4221         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4222         set the variable to "no", not to ":".
4223         * NEWS: Mention the change.
4224
4225 2011-06-05  Bruno Haible  <bruno@clisp.org>
4226
4227         acl: Fix test failure on AIX 7.
4228         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4229         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4230
4231 2011-06-05  Bruno Haible  <bruno@clisp.org>
4232
4233         pipe-filter-ii: Fix test failure on AIX and IRIX.
4234         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4235         with EAGAIN, retry with a smaller buffer size.
4236
4237 2011-06-05  Bruno Haible  <bruno@clisp.org>
4238
4239         localename: Fix link dependencies.
4240         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4241         * modules/localename-tests (Makefile.am): Link test-localename with
4242         $(LIBTHREAD).
4243
4244 2011-06-05  Bruno Haible  <bruno@clisp.org>
4245
4246         error: Avoid gcc warning.
4247         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4248
4249 2011-06-05  Bruno Haible  <bruno@clisp.org>
4250
4251         unsetenv: Avoid gcc warning.
4252         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4253
4254 2011-06-05  Bruno Haible  <bruno@clisp.org>
4255
4256         setenv: Avoid gcc warning.
4257         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4258
4259 2011-06-05  Bruno Haible  <bruno@clisp.org>
4260
4261         sys_select: Ensure memset is declared also on AIX 7.
4262         * lib/sys_select.in.h: Include <string.h> also on AIX.
4263         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4264         self-contained also on AIX 7.1.
4265
4266 2011-06-04  Jim Meyering  <meyering@redhat.com>
4267
4268         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4269         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4270         function name, "error".
4271         (_gl_translatable_diag_func_re): New configurable variable.
4272
4273 2011-06-04  Bruno Haible  <bruno@clisp.org>
4274
4275         getopt: Avoid gcc warning.
4276         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4277
4278 2011-06-04  Bruno Haible  <bruno@clisp.org>
4279
4280         strerror_r: Fix comments.
4281         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4282         commit.
4283
4284 2011-06-04  Bruno Haible  <bruno@clisp.org>
4285
4286         perror: Fix compilation error.
4287         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4288         Undefine fprintf, not sprintf.
4289         * modules/perror (Depends-on): Remove intprops, verify.
4290
4291 2011-06-04  Bruno Haible  <bruno@clisp.org>
4292
4293         setlocale: Enable replacement on Cygwin 1.5.
4294         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4295         Cygwin 1.5.x.
4296         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4297         LC_CTYPE category also exists on Cygwin 1.5.x.
4298
4299 2011-06-04  Bruno Haible  <bruno@clisp.org>
4300
4301         strerror-override: Don't disable symbol renamings.
4302         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4303         * lib/strerror-override.c: Include config.h.
4304         (strerror_override): Don't undefine.
4305
4306 2011-06-03  Bruno Haible  <bruno@clisp.org>
4307
4308         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4309         * lib/localename.h: Update copyright header.
4310         * lib/localename.c: Likewise.
4311         * lib/relocatable.h: Likewise.
4312         * lib/relocatable.c: Likewise.
4313
4314 2011-06-02  Bruno Haible  <bruno@clisp.org>
4315
4316         doc: Fix a module name.
4317         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4318
4319 2011-06-02  Bruno Haible  <bruno@clisp.org>
4320
4321         pipe2: Remove dependency on 'nonblocking' module.
4322         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4323         O_NONBLOCK is defined by gnulib.
4324         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4325         is zero.
4326         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4327         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4328         defined by gnulib.
4329         (get_nonblocking_flag): New function.
4330         (main): Test O_NONBLOCK flag only if it is nonzero.
4331         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4332
4333 2011-06-03  Jim Meyering  <meyering@redhat.com>
4334
4335         maint: three new prohibit-header-without-use rules
4336         Prohibit use of cloexec.h, posixver.h, same.h without use.
4337         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4338         (sc_prohibit_posixver_without_use): Likewise.
4339         (sc_prohibit_same_without_use): Likewise.
4340
4341 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4342
4343         allocator: 'die' routine is now given requested size
4344         * lib/allocator.h (struct allocator.die): New size arg.
4345         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4346         If the actual problem is an ssize_t limitation, not a size_t or
4347         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4348
4349 2011-06-01  Eric Blake  <eblake@redhat.com>
4350
4351         strerror: drop strerror_r dependency
4352         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4353         * lib/strerror-override.c (strerror_override): ...to new file.
4354         * lib/strerror-override.h: Add prototype.
4355         * lib/strerror-impl.h: Delete.
4356         * lib/strerror.c (strerror): New implementation.
4357         * modules/errno (Files): Add new files.
4358         (configure.ac): Compile new file as appropriate.
4359         * modules/strerror (Files): Drop unused file.
4360         (Depends-on): Drop strerror_r-posix.
4361         * MODULES.html.sh: Document strerror_r-posix.
4362         Requested by Sam Steingold.
4363
4364         perror: call strerror_r directly
4365         * modules/perror (Files): Drop strerror-impl.h.
4366         * lib/perror.c (perror): Use our own stack buffer, rather than
4367         calling a wrapper that uses static storage.
4368         * doc/posix-functions/perror.texi (perror): Document a limitation
4369         of our replacement.
4370
4371         strerror_r: fix includes for FreeBSD
4372         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4373         since we use abort on some platforms.
4374         Reported by Matthias Bolte.
4375
4376 2011-05-31  Bruno Haible  <bruno@clisp.org>
4377
4378         Fix link errors in tests: openat-die uses gettext-h.
4379         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4380         against $(LIBINTL).
4381         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4382         against $(LIBINTL).
4383         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4384         $(LIBINTL).
4385         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4386         against $(LIBINTL).
4387         * modules/linkat-tests (Makefile.am): Link test-linkat against
4388         $(LIBINTL).
4389         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4390         $(LIBINTL).
4391         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4392         against $(LIBINTL).
4393         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4394         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4395         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4396         $(LIBINTL).
4397         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4398         $(LIBINTL).
4399         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4400         $(LIBINTL).
4401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4402
4403 2011-05-31  Bruno Haible  <bruno@clisp.org>
4404
4405         Fix link errors in tests: wait-process uses gettext-h.
4406         * modules/nonblocking-pipe-tests (Makefile.am): Set
4407         test_nonblocking_pipe_main_LDADD.
4408         * modules/nonblocking-socket-tests (Makefile.am): Link
4409         test-nonblocking-socket-main against $(LIBINTL).
4410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4411
4412 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         assert-h: work around 'verify' incompatibility
4415         * lib/verify.h: Use @...@ directives, not ifdef.
4416         * modules/assert-h (assert.h): Implement the directives.
4417         (assert.h): Substitute the symbol-prefix more consistently.
4418
4419 2011-05-29  Jim Meyering  <meyering@redhat.com>
4420
4421         trim: remove three superfluous assignments
4422         * lib/trim.c (trim2): Remove three superfluous assignments
4423         and correct brace positioning.
4424
4425 2011-05-29  Bruno Haible  <bruno@clisp.org>
4426
4427         wctype-h: Avoid namespace pollution on Solaris 2.6.
4428         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4429         identifiers.
4430         * doc/posix-headers/wctype.texi: Mention the problem.
4431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4432
4433 2011-05-28  Jim Meyering  <meyering@redhat.com>
4434
4435         parse-datetime.y: accommodate -Wstrict-overflow
4436         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4437         placate -Wstrict-overflow.
4438
4439         trim: avoid a warning from -O2 -Wstrict-overflow
4440         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4441
4442 2011-05-29  Bruno Haible  <bruno@clisp.org>
4443
4444         gnulib-tool: Fix bug in yesterday's commit.
4445         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4446         twice.
4447
4448 2011-05-29  Bruno Haible  <bruno@clisp.org>
4449
4450         Allow multiple gnulib generated include files to be combined.
4451         * gnulib-tool (func_compute_include_guard_prefix): New function.
4452         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4453         ${gl_include_guard_prefix} references.
4454         (func_import, func_create_testdir): Invoke
4455         func_compute_include_guard_prefix.
4456         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4457         * lib/ctype.in.h: Likewise.
4458         * lib/dirent.in.h: Likewise.
4459         * lib/errno.in.h: Likewise.
4460         * lib/fcntl.in.h: Likewise.
4461         * lib/float.in.h: Likewise.
4462         * lib/getopt.in.h: Likewise.
4463         * lib/iconv.in.h: Likewise.
4464         * lib/langinfo.in.h: Likewise.
4465         * lib/locale.in.h: Likewise.
4466         * lib/math.in.h: Likewise.
4467         * lib/netdb.in.h: Likewise.
4468         * lib/netinet_in.in.h: Likewise.
4469         * lib/poll.in.h: Likewise.
4470         * lib/pthread.in.h: Likewise.
4471         * lib/pty.in.h: Likewise.
4472         * lib/sched.in.h: Likewise.
4473         * lib/se-selinux.in.h: Likewise.
4474         * lib/search.in.h: Likewise.
4475         * lib/signal.in.h: Likewise.
4476         * lib/spawn.in.h: Likewise.
4477         * lib/stdarg.in.h: Likewise.
4478         * lib/stddef.in.h: Likewise.
4479         * lib/stdint.in.h: Likewise.
4480         * lib/stdio.in.h: Likewise.
4481         * lib/stdlib.in.h: Likewise.
4482         * lib/string.in.h: Likewise.
4483         * lib/strings.in.h: Likewise.
4484         * lib/sys_file.in.h: Likewise.
4485         * lib/sys_ioctl.in.h: Likewise.
4486         * lib/sys_select.in.h: Likewise.
4487         * lib/sys_socket.in.h: Likewise.
4488         * lib/sys_stat.in.h: Likewise.
4489         * lib/sys_time.in.h: Likewise.
4490         * lib/sys_times.in.h: Likewise.
4491         * lib/sys_uio.in.h: Likewise.
4492         * lib/sys_utsname.in.h: Likewise.
4493         * lib/sys_wait.in.h: Likewise.
4494         * lib/sysexits.in.h: Likewise.
4495         * lib/termios.in.h: Likewise.
4496         * lib/time.in.h: Likewise.
4497         * lib/unistd.in.h: Likewise.
4498         * lib/wchar.in.h: Likewise.
4499         * lib/wctype.in.h: Likewise.
4500         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4501         * modules/ctype (Makefile.am): Likewise.
4502         * modules/dirent (Makefile.am): Likewise.
4503         * modules/errno (Makefile.am): Likewise.
4504         * modules/fcntl-h (Makefile.am): Likewise.
4505         * modules/float (Makefile.am): Likewise.
4506         * modules/getopt-posix (Makefile.am): Likewise.
4507         * modules/iconv-h (Makefile.am): Likewise.
4508         * modules/langinfo (Makefile.am): Likewise.
4509         * modules/locale (Makefile.am): Likewise.
4510         * modules/math (Makefile.am): Likewise.
4511         * modules/netdb (Makefile.am): Likewise.
4512         * modules/netinet_in (Makefile.am): Likewise.
4513         * modules/poll-h (Makefile.am): Likewise.
4514         * modules/pthread (Makefile.am): Likewise.
4515         * modules/pty (Makefile.am): Likewise.
4516         * modules/sched (Makefile.am): Likewise.
4517         * modules/search (Makefile.am): Likewise.
4518         * modules/selinux-h (Makefile.am): Likewise.
4519         * modules/signal (Makefile.am): Likewise.
4520         * modules/spawn (Makefile.am): Likewise.
4521         * modules/stdarg (Makefile.am): Likewise.
4522         * modules/stddef (Makefile.am): Likewise.
4523         * modules/stdint (Makefile.am): Likewise.
4524         * modules/stdio (Makefile.am): Likewise.
4525         * modules/stdlib (Makefile.am): Likewise.
4526         * modules/string (Makefile.am): Likewise.
4527         * modules/strings (Makefile.am): Likewise.
4528         * modules/sys_file (Makefile.am): Likewise.
4529         * modules/sys_ioctl (Makefile.am): Likewise.
4530         * modules/sys_select (Makefile.am): Likewise.
4531         * modules/sys_socket (Makefile.am): Likewise.
4532         * modules/sys_stat (Makefile.am): Likewise.
4533         * modules/sys_time (Makefile.am): Likewise.
4534         * modules/sys_times (Makefile.am): Likewise.
4535         * modules/sys_uio (Makefile.am): Likewise.
4536         * modules/sys_utsname (Makefile.am): Likewise.
4537         * modules/sys_wait (Makefile.am): Likewise.
4538         * modules/sysexits (Makefile.am): Likewise.
4539         * modules/termios (Makefile.am): Likewise.
4540         * modules/time (Makefile.am): Likewise.
4541         * modules/unistd (Makefile.am): Likewise.
4542         * modules/wchar (Makefile.am): Likewise.
4543         * modules/wctype-h (Makefile.am): Likewise.
4544         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4545
4546 2011-05-29  Bruno Haible  <bruno@clisp.org>
4547
4548         assert-h: Allow multiple gnulib generated replacements to coexist.
4549         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4550
4551 2011-05-29  Bruno Haible  <bruno@clisp.org>
4552
4553         argp: Allow coexistence with strerror_r-posix module.
4554         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4555         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4556         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4557         not the glibc signature.
4558
4559 2011-05-28  Bruno Haible  <bruno@clisp.org>
4560
4561         gnulib-tool: Alternative structure of testdirs, similar to --import.
4562         * gnulib-tool: New option --single-configure.
4563         (func_usage): Document it.
4564         (single_configure): New variable.
4565         (func_modules_transitive_closure_separately,
4566         func_modules_transitive_closure_separately,
4567         func_determine_use_libtests, func_modules_add_dummy_separately,
4568         func_modules_to_filelist_separately): New functions, extracted from
4569         func_import.
4570         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4571         (func_import): Use the new functions.
4572         (func_create_testdir): Set final_modules. Handle $single_configure =
4573         true case.
4574
4575 2011-05-28  Bruno Haible  <bruno@clisp.org>
4576
4577         getloadavg: Remove an unreliable safety check.
4578         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4579         getloadavg.c is in place.
4580         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4581         Reported by Sam Steingold <sds@gnu.org>.
4582
4583 2011-05-28  Bruno Haible  <bruno@clisp.org>
4584
4585         doc: Cleanup yet another file produced by texinfo.tex.
4586         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4587
4588 2011-05-28  Bruno Haible  <bruno@clisp.org>
4589
4590         Finish the conditional dependencies mechanism.
4591         * gnulib-tool: New option --no-conditional-dependencies.
4592         (func_usage): Document it. Don't mark --conditional-dependencies as
4593         experimental.
4594         (cond_dependencies): The possible values can now be true, false, empty.
4595         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4596         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4597         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4598
4599 2011-05-28  Bruno Haible  <bruno@clisp.org>
4600
4601         doc: Use a recent texinfo.tex.
4602         * doc/Makefile (tex_opts): New variable.
4603         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4604
4605 2011-05-28  Jim Meyering  <meyering@redhat.com>
4606
4607         intprops.h: adjust comment to match code change
4608         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4609         only once, it *may* have side effects.  Also fix an unrelated typo.
4610         (_GL_INT_SIGNED): Likewise.
4611
4612 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4613
4614         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4615
4616 2011-05-26  Bruno Haible  <bruno@clisp.org>
4617
4618         mbsrchr: Avoid collision with system function on Interix.
4619         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4620         Reported by Markus Duft <mduft@gentoo.org>.
4621
4622 2011-05-15  James Youngman  <jay@gnu.org>
4623
4624         getopt: for ambiguous options, enumerate the possibilities.
4625         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4626         the ambiguous options when an ambiguous prefix is given. This was
4627         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4628         glibc change was
4629         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4630
4631 2011-05-25  Eric Blake  <eblake@redhat.com>
4632
4633         getcwd: work around mingw bug
4634         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4635         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4636         Reported by Matthias Bolte.
4637
4638 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4639
4640         test-intprops: disable -Wtype-limits diagnostics
4641         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4642         diagnostics.  Otherwise, the integer overflow macros generate many
4643         diagnostics.  Reported by Jim Meyering in
4644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4645
4646         intprops: shorten, to pacify gcc -Woverlength-strings
4647         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4648         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4649         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4650         likely to run afoul of C compiler limits for string constant lengths.
4651         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4652
4653 2011-05-24  Eric Blake  <eblake@redhat.com>
4654
4655         docs: document recently fixed glibc printf bug
4656         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4657         * doc/posix-functions/printf.texi (printf): Likewise.
4658         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4659         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4660
4661         closein-tests: convert to init.sh
4662         * modules/closein-tests (Files): Add init.sh
4663         * tests/test-closein.sh Use it.
4664
4665         yesno-tests: convert to init.sh
4666         * modules/yesno-tests (Files): Add init.sh.
4667         * tests/test-yesno.sh: Use it.
4668
4669         atexit-tests: ensure reliable exit status
4670         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4671         Reported by Bruno Haible.
4672
4673 2011-05-24  Bruno Haible  <bruno@clisp.org>
4674
4675         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4677         gl_PREREQ_STRERROR_R invocations from here...
4678         * modules/strerror_r-posix (configure.ac): ... to here.
4679
4680 2011-05-24  Eric Blake  <eblake@redhat.com>
4681
4682         strerror_r: fix missing header
4683         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4684
4685         strerror_r: fix AIX test failures
4686         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4687         ERANGE failure.
4688
4689         strerror_r: fix Solaris test failures
4690         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4691         failures.
4692         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4693
4694         strerror_r: enforce POSIX recommendations
4695         * lib/strerror_r.c (safe_copy): New helper method.
4696         (strerror_r): Guarantee a non-empty string.
4697         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4698         recent POSIX rulings and to match our strerror guarantees.
4699         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4700
4701 2011-05-24  Jim Meyering  <meyering@redhat.com>
4702
4703         test-perror2.c: avoid warning about unused variable
4704         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4705
4706 2011-05-24  Eric Blake  <eblake@redhat.com>
4707
4708         perror: avoid spurious test failure on HP-UX
4709         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4710
4711         tests: fix logic bug in init.sh
4712         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4713         shell.
4714
4715 2011-05-24  Jim Meyering  <meyering@redhat.com>
4716
4717         utimensat: do not reference an out-of-scope buffer
4718         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4719         declared in an inner scope, yet "times" would be dereferenced outside
4720         the scope in which "ts" was valid.
4721         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4722         of ts[2] "out/up", so that the use of aliased "times" (via
4723         "times = ts;") does not end up referencing an out-of-scope "ts"
4724
4725         opendir-safer.c: don't clobber errno; don't close negative FD
4726         * lib/opendir-safer.c (opendir_safer):
4727         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4728         file descriptor, and more importantly, don't clobber the
4729         offending errno value with EINVAL.  Before, upon failure
4730         of dup_safer, we would pass the negative file descriptor to
4731         fdopendir, which would clobber errno.
4732
4733 2011-05-23  Bruno Haible  <bruno@clisp.org>
4734
4735         idcache: Fix module description.
4736         * modules/idcache (Include): Set to "idcache.h".
4737
4738 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4739
4740         gnulib-tool: fix portability problem with MacOS sed
4741         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4742         before the "}".  Problem reported by Leo in
4743         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4744         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4745         sed_extract_condition1, sed_extract_condition2.
4746
4747 2011-05-23  Bruno Haible  <bruno@clisp.org>
4748
4749         hash: Simplify autoconf macro.
4750         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4751
4752 2011-05-23  Bruno Haible  <bruno@clisp.org>
4753
4754         getugroups: Fix module description.
4755         * modules/getugroups (Include): Set to "getugroups.h".
4756
4757 2011-05-23  Bruno Haible  <bruno@clisp.org>
4758
4759         linkat: Simplify autoconf macro.
4760         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4761
4762 2011-05-23  Bruno Haible  <bruno@clisp.org>
4763             Eric Blake  <eblake@redhat.com>
4764
4765         linkat, renameat: Update dependencies.
4766         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4767         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4768         symlinkat.
4769
4770 2011-05-23  Jim Meyering  <meyering@redhat.com>
4771
4772         maint.mk: more tight_scope improvements
4773         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4774         (_gl_TS_headers): Define only in if-0'd block.
4775         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4776         sometimes we must *not* use it.  Adjust uses accordingly.
4777         (sc_tight_scope): Use much simpler grep-based test to determine
4778         whether we skip this rule.
4779
4780         maint.mk: generalize/improve the tight-scope rule
4781         * top/maint.mk: Emit a warning when the test is skipped.
4782         (_gl_TS_dir): Add $(srcdir)/ prefix.
4783         (_gl_TS_function_match): Simplify, rather than trying
4784         to enumerate common types.  Otherwise, it would fail to match an
4785         "extern unsigned char const *" declaration in idutils.
4786         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4787         a way to support use of that type of macro.
4788         (_gl_TS_var_match): Simplify regexp.
4789         (_gl_TS_obj_files): New configurable variable.
4790         (_gl_TS_headers): Likewise.
4791
4792 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4793
4794         verify: fix bug when gnulib <assert.h> is also included
4795         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4796         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4797         Perhaps there's a better way, but this fixes the immediate problem.
4798         Problem reported by Bruno Haible in
4799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4800
4801 2011-05-22  Bruno Haible  <bruno@clisp.org>
4802
4803         xgetcwd: Simplify autoconf macro.
4804         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4805
4806 2011-05-22  Bruno Haible  <bruno@clisp.org>
4807
4808         New module 'mktime-internal'.
4809         * modules/mktime-internal: New file.
4810         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4811         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4812         mktime_internal as a C macro if libc has __mktime_internal.
4813         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4814         conditions.
4815         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4816
4817 2011-05-22  Bruno Haible  <bruno@clisp.org>
4818
4819         timegm: Correct mktime replacement statements.
4820         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4821         defining mktime as a C macro. This completes a 2009-07-28 commit.
4822
4823 2011-05-22  Bruno Haible  <bruno@clisp.org>
4824
4825         timegm: Simplify autoconf macro.
4826         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4827
4828 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         clock-time: change to LGPLv2+.
4831         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4832         BSD-like but we have no mark for that; this is good enough for now.
4833
4834 2011-05-21  Bruno Haible  <bruno@clisp.org>
4835
4836         strerror_r: Fix comments.
4837         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4838
4839 2011-05-21  Bruno Haible  <bruno@clisp.org>
4840
4841         relocatable-prog-wrapper: Fix possible link error.
4842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4843         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4844         (gl_FUNC_SETENV): ... to here.
4845         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4846         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         relocatable-prog-wrapper: Assume strerror() exists.
4851         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4852         m4/strerror.m4.
4853         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4854         * lib/relocwrapper.c: Remove mention of strerror module.
4855         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4856         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4857         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4858         C macro.
4859
4860 2011-05-21  Bruno Haible  <bruno@clisp.org>
4861
4862         select: Simplify replacement idiom.
4863         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4864         Win32 platforms.
4865         * lib/sys_select.in.h (select): Simplify accordingly.
4866         * modules/select (Depends-on): Likewise.
4867
4868 2011-05-21  Bruno Haible  <bruno@clisp.org>
4869
4870         mkdir-p: Simplify autoconf macro.
4871         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4872         gl_FUNC_LCHOWN.
4873
4874 2011-05-21  Eric Blake  <eblake@redhat.com>
4875
4876         strerror_r: avoid clobbering strerror on cygwin
4877         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4878         fall back instead to sys_errlist.
4879         * modules/strerror (configure.ac): Add witness.
4880         * tests/test-strerror_r.c (main): Enhance test.
4881         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4882         * tests/test-perror2.c (main): Free memory before exit.
4883
4884 2011-05-21  Bruno Haible  <bruno@clisp.org>
4885
4886         mkdtemp: Use gnulib naming conventions.
4887         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4888         * modules/mkdtemp (configure.ac): Update.
4889
4890 2011-05-20  Eric Blake  <eblake@redhat.com>
4891
4892         strerror_r: avoid corrupting errno on Solaris
4893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4894         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4895
4896         strerror_r: avoid compiler warning
4897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4898
4899         strerror_r: simplify AIX code
4900         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4901
4902         test-perror: avoid spurious failure on FreeBSD
4903         * modules/perror-tests (Depends-on): Add strerror, now that
4904         strerror_r no longer pulls it in.
4905
4906 2011-05-20  Bruno Haible  <bruno@clisp.org>
4907
4908         strerror_r-posix: Remove unused dependencies.
4909         * modules/strerror_r-posix (Depends-on): Remove strerror.
4910         Reported by Eric Blake.
4911
4912 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         intprops: remove assumption about A|B representation
4915         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4916         is a valid integer if both A and B are.  Although this is true for
4917         all known practical hosts, the C standard doesn't guarantee it,
4918         and the code need not assume it.  Also, this change may work around
4919         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4921
4922 2011-05-20  Eric Blake  <eblake@redhat.com>
4923
4924         perror: work around FreeBSD bug
4925         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4926         is broken.  Move AC_LIBOBJ...
4927         * modules/perror (configure.ac): Here.
4928         * doc/posix-functions/perror.texi (perror): Document this.
4929         * tests/test-perror2.c (main): Enhance test.
4930
4931         test-perror: check for strerror interactions
4932         * tests/macros.h (STREQ): Add macro.
4933         * modules/perror-tests (Files): Add second test.
4934         * tests/test-perror2.c (main): New file.
4935         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4936
4937         test-perror: rewrite to use init script
4938         * modules/perror-tests (Files): Add init.sh.
4939         * tests/test-perror.sh: Use temporary directory.
4940
4941 2011-05-20  Jim Meyering  <meyering@redhat.com>
4942
4943         maint: replace misused "a" with "an"
4944         * doc/intprops.texi: "a integer"
4945         * doc/regex.texi: "a explanation"
4946         * lib/alignof.h: "a object"
4947         * lib/argmatch.h: "a explanation"
4948         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4949         * lib/stdint.in.h: "a integer"
4950         * lib/userspec.c: "a owner"
4951         * doc/gnulib.texi: Fix "a idea", and reword.
4952
4953 2011-05-19  Jim Meyering  <meyering@redhat.com>
4954
4955         maint: correct misuse of "a" and "an"
4956         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4957         * lib/argp-help.c: "an docum...": s/an/a/
4958         * lib/argp-parse.c: "An vector": s/An/A/
4959         * lib/execute.c: "an native": s/an/a/
4960         * lib/spawn-pipe.c: Likewise.
4961         * lib/gc.h: "an Gc_rc": s/an/a/
4962         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4963         * lib/fts.c: "an stat.st_dev": s/an/a/
4964
4965 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4966
4967         intprops-tests: work around HP-UX 11.23 cc bug with constants
4968         * tests/test-intprops.c (VERIFY): New macro.
4969         (main): Use it, instead of verify, to work around the compiler bug; see
4970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4971
4972         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4973         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4974         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4975         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4976         (_GL_REMAINDER_OVERFLOW): Use it.
4977
4978         intprops-tests: revert unsigned part of previous change
4979         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4980         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4981         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4983
4984 2011-05-19  Bruno Haible  <bruno@clisp.org>
4985
4986         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4987         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4988         strerror_r() returned without filling the buffer.
4989         Reported by Eric Blake.
4990
4991 2011-05-19  Eric Blake  <eblake@redhat.com>
4992
4993         strerror_r: guarantee unchanged errno
4994         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4995         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4996         failure.
4997         * tests/test-strerror_r.c (main): Enhance test.
4998
4999 2011-05-19  Bruno Haible  <bruno@clisp.org>
5000
5001         strerror_r: Reorder #if blocks.
5002         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5003         for consistency with the previous commit.
5004
5005 2011-05-19  Bruno Haible  <bruno@clisp.org>
5006
5007         perror: Avoid clobbering the strerror buffer when possible.
5008         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5009         * lib/strerror.c: Include it.
5010         * modules/strerror (Files): Add lib/strerror-impl.h.
5011         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5012         (my_strerror): New function, defined through lib/strerror-impl.h.
5013         (perror): Use it instead of strerror.
5014         * modules/perror (Files): Add lib/strerror-impl.h.
5015         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5016
5017 2011-05-19  Eric Blake  <eblake@redhat.com>
5018
5019         strerror_r: fix on newer cygwin
5020         * lib/strerror_r.c (strerror_r): Cygwin now has
5021         __xpg_strerror_r, use it.
5022
5023 2011-05-19  Bruno Haible  <bruno@clisp.org>
5024
5025         strerror_r: Avoid clobbering the strerror buffer when possible.
5026         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5027         (sys_nerr, sys_errlist): New declarations.
5028         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5029         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5030         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5031
5032 2011-05-19  Bruno Haible  <bruno@clisp.org>
5033
5034         strerror_r: Fix test failure on mingw.
5035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5036         EXTEND_STRERROR_R.
5037         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5038         macros from errno.in.h instead.
5039
5040 2011-05-19  Eric Blake  <eblake@redhat.com>
5041
5042         strerror: relax test for Solaris
5043         * tests/test-strerror.c (main): Permit Solaris behavior.
5044         * tests/test-strerror_r.c (main): Likewise.
5045
5046         strerror: enforce POSIX ruling on strerror(0)
5047         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5049         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5050         * doc/posix-functions/strerror.texi (strerror): Document it.
5051         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5052         * tests/test-strerror.c (main): Strengthen test.
5053         * tests/test-strerror_r.c (main): Likewise.
5054
5055 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5056
5057         intprop-tests: port to older and more-pedantic compilers
5058         * modules/intprops-tests (Files): Add tests/macros.h.
5059         * tests/test-intprops.c: Include macros.h.
5060         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5061         it's no longer documented to expand to an integer constant expression.
5062         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5063         argument is floating point, as it's no longer documented to expand
5064         to an integer constant expression in that case.
5065         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5066         compiler bugs reported by Bruno Haible.  See
5067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5068         (U0, U1): New constants, to work around the same bugs.  Also,
5069         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5070
5071         intprops: work around C compiler bugs
5072         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5073         bug in Sun C 5.11 2010/08/13 and other compilers; see
5074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5075
5076         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5077         * doc/intprops.texi (Integer Type Determination): Fix
5078         documentation for TYPE_IS_INTEGER: it returns an constant
5079         expression, not an integer constant expression.  Fix doc for
5080         TYPE_SIGNED: it returns an integer constant expression only if its
5081         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5082         hardly worth documented that way....)
5083
5084 2011-05-18  Bruno Haible  <bruno@clisp.org>
5085
5086         strerror_r: Avoid clobbering the strerror buffer when possible.
5087         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5088         Handle gnulib defined errno values here. When strerror() returns NULL
5089         or an empty string, return EINVAL.
5090         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5091         gnulib defined errno values here.
5092         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5093
5094 2011-05-18  Eric Blake  <eblake@redhat.com>
5095
5096         fnmatch: avoid compiler warning
5097         * lib/fnmatch_loop.c (FCT): Use correct type.
5098         Reported by Matthias Bolte.
5099
5100 2011-05-13  Jim Meyering  <meyering@redhat.com>
5101
5102         maint.mk: three new prohibit_<HDR>_without_use rules
5103         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5104         (sc_prohibit_stdio-safer_without_use): Likewise.
5105         (sc_prohibit_xfreopen_without_use): Likewise.
5106
5107 2011-05-17  Jim Meyering  <meyering@redhat.com>
5108
5109         announce-gen: fail if the NEWS delta is empty
5110         If there's nothing noteworthy in NEWS, then either you forgot
5111         or you shouldn't be releasing.
5112         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5113
5114 2011-05-17  Pádraig Brady <P@draigBrady.com>
5115
5116         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5117         reserved symbols starting with double underscore from the check.
5118
5119 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5120
5121         intprops: add doc
5122         * doc/intprops.texi: New file, documenting intprops.
5123         * doc/gnulib.texi (Particular Modules): Include it.
5124
5125         verify: add doc to gnulib manual and fix example
5126         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5127         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5128         (Compile-time Assertions): Fix example so it can't overflow.
5129
5130 2011-05-17  Jim Meyering  <meyering@redhat.com>
5131
5132         warnings.m4: don't usurp save_CPPFLAGS variable name
5133         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5134
5135         doc: fix typo
5136         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5137
5138 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5139             Bruno Haible  <bruno@clisp.org>
5140
5141         doc: Tweak recent change.
5142         * README (Portability guidelines): Tweak new text.
5143         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5144         Interix 6.1.
5145
5146 2011-05-16  Eric Blake  <eblake@redhat.com>
5147
5148         inttypes: avoid autoconf warning
5149         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5150         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5151
5152 2011-05-16  Sam Steingold <sds@gnu.org>
5153         and Eric Blake  <eblake@redhat.com>
5154
5155         vc-list-files: accept multiple directory operands
5156         * build-aux/vc-list-files: Iterate over all remaining operands.
5157
5158 2011-05-16  Bruno Haible  <bruno@clisp.org>
5159
5160         Fix confusion regarding deprecated modules.
5161         * modules/calloc (Status, Notice): Mark module as deprecated, not
5162         obsolete.
5163         * modules/fnmatch-posix (Status, Notice): Likewise.
5164         * modules/getdate (Status, Notice): Likewise.
5165         * modules/getopt (Status, Notice): Likewise.
5166         * modules/malloc (Status, Notice): Likewise.
5167         * modules/pipe (Status, Notice): Likewise.
5168         * modules/realloc (Status, Notice): Likewise.
5169         * modules/rename-dest-slash (Status, Notice): Likewise.
5170         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5171         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5172         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5173         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5174         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5175
5176 2011-05-16  Bruno Haible  <bruno@clisp.org>
5177
5178         doc: List the target platforms.
5179         * doc/gnulib-intro.texi (Target Platforms): New section.
5180         * doc/gnulib.texi (Introduction): Update menu.
5181         * README (Portability guidelines): Refer to the new section. Update
5182         statement about oldest supported environment. Remove rationale why
5183         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5184         unportable C89 function.
5185         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5186         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5187
5188 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5191
5192 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5193
5194         intprops-tests: new module
5195         * modules/intprops-tests, tests/test-intprops.c: New files.
5196
5197         intprops: add safe, portable integer overflow checking
5198         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5199         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5200         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5201         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5202         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5203         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5204         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5205         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5206         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5207         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5208         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5209
5210 2011-05-12  James Youngman  <jay@gnu.org>
5211
5212         Add a test for glibc's Bugzilla bug #12378.
5213         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5214         doesn't allow the literal matching of a lone "[" (which is
5215         required by POSIX).
5216         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5217
5218 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5219
5220         Sync glibc change fixing Bugzilla bug #12378.
5221         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5222         beginning and fall back to matching as normal character if the
5223         string ends before the matching ']' is found.  This is what POSIX
5224         requires.
5225
5226 2011-05-13  Eric Blake  <eblake@redhat.com>
5227
5228         getcwd-lgpl: relax test for FreeBSD
5229         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5230         issue.
5231         * tests/test-getcwd-lgpl.c (main): Relax test.
5232         Reported by Matthias Bolte.
5233
5234 2011-05-11  Eric Blake  <eblake@redhat.com>
5235
5236         test-fflush: silence compiler warning
5237         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5238
5239 2011-05-11  Bruno Haible  <bruno@clisp.org>
5240
5241         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5242         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5243         * modules/canonicalize (Depends-on): Add 'nocrash'.
5244         * modules/canonicalize-lgpl (Depends-on): Likewise.
5245         * doc/posix-functions/realpath.texi: Update platforms list.
5246         Reported by Ryan Schmidt <ryandesign@macports.org>.
5247
5248 2011-05-11  Bruno Haible  <bruno@clisp.org>
5249
5250         group-member: Declare function in <unistd.h>.
5251         * lib/unistd.in.h (group_member): New declaration.
5252         * lib/group-member.h: Remove file.
5253         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5254         * tests/test-unistd-c++.cc: Check signature of group_member.
5255         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5256         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5257         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5259         HAVE_GROUP_MEMBER.
5260         * modules/group-member (Files): Remove lib/group-member.h.
5261         (Depends-on): Add unistd. Specify conditions.
5262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5263         (Include): Change to <unistd.h>.
5264         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5265         HAVE_GROUP_MEMBER.
5266         * NEWS: Mention the change.
5267         * lib/euidaccess.c: Don't include group-member.h.
5268
5269 2011-05-11  Bruno Haible  <bruno@clisp.org>
5270
5271         group-member: Document module.
5272         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5273         module.
5274
5275 2011-05-11  Bruno Haible  <bruno@clisp.org>
5276
5277         fclose: Fix mistake earlier today.
5278         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5279
5280 2011-05-11  Eric Blake  <eblake@redhat.com>
5281
5282         fclose: preserve fflush errors
5283         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5284         Reported by Jim Meyering.
5285
5286         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5287         * build-aux/bootstrap (check_versions): When no specific version
5288         is required, merely check that the app produces an exit status
5289         that indicates its existence.
5290
5291         maint.mk: drop redundant check
5292         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5293         the same but better.
5294
5295 2011-05-11  Bruno Haible  <bruno@clisp.org>
5296
5297         fclose: Fix possible link error.
5298         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5299         unregister_shadow_fd. Improve comments.
5300         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5301         Eric Blake.
5302
5303 2011-05-11  Jim Meyering  <meyering@redhat.com>
5304
5305         maint.mk: improve "can not" detection and generalize rule name
5306         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5307         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5308         Use the same technique as in sc_prohibit_doubled_word, so that
5309         we recognize "can not" also when the words are separated by a newline.
5310         Suggested by Eric Blake.
5311         (perl_filename_lineno_text_): Define.  Factored out of...
5312         (prohibit_doubled_word_): ...here.  Use the new definition.
5313         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5314         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5315         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5316
5317 2011-05-10  Eric Blake  <eblake@redhat.com>
5318
5319         fclose: avoid double close race when possible
5320         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5321         all but WINDOWS_SOCKETS.
5322
5323 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5324
5325         openat: correct new comment
5326         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5327
5328 2011-05-10  Jim Meyering  <meyering@redhat.com>
5329
5330         openat: add comments
5331         * lib/openat-proc.c (openat_proc_name): Add comments,
5332         mostly from Eric Blake.
5333
5334 2011-05-09  Eric Blake  <eblake@redhat.com>
5335
5336         openat: reduce syscalls in first probe of /proc
5337         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5338         be a directory.  Simplify the probe for .. bugs.
5339         * modules/openat (Depends-on): Drop same-inode.
5340         Reported by Bastien ROUCARIES.
5341
5342 2011-05-09  Jim Meyering  <meyering@redhat.com>
5343
5344         maint.mk: change semantics/name of tight_scope variables
5345         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5346         Rename variables to align with semantics that make them more useful.
5347
5348         maint.mk: tweak new rule's name not to impinge
5349         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5350         (sc_tight_scope): Use new rule name rather than $@-0.
5351
5352         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5353         * top/maint.mk (sc_tight_scope): New rule.
5354         (sc_tight_scope-0): New rule, ifdef'd out.
5355         (_gl_TS_dir): Default.
5356         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5357         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5358
5359 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5360
5361         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5362         Haible <bruno@clisp.org>.
5363
5364 2011-05-08  Bruno Haible  <bruno@clisp.org>
5365
5366         Comments.
5367         * m4/isnanf.m4: Add comment.
5368         * m4/isnanl.m4: Likewise.
5369
5370 2011-05-08  Bruno Haible  <bruno@clisp.org>
5371
5372         glob: Remove obsolete macro.
5373         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5374
5375 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5376
5377         intprops: Sun C 5.11 supports __typeof__
5378         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5379         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5380         which is new.
5381         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5382
5383         intprops: switch to usual gnulib indenting and naming
5384         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5385         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5386
5387         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5388
5389 2011-05-08  Jim Meyering  <meyering@redhat.com>
5390
5391         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5392         * top/maint.mk (release-prep): Use make's --no-print-directory
5393         option when generating the announcement.  This eliminates the
5394         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5395         generated announcement template.
5396
5397 2011-05-08  Bruno Haible  <bruno@clisp.org>
5398
5399         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5400         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5401         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5402
5403 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         ignore-value, verify: Omit include files from lib_SOURCES.
5406         * modules/ignore-value, modules/verify (Makefile.am):
5407         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5408         that leads Automake to duplicate use of am__objects_... variables
5409         in Makefile.in.  See
5410         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5411
5412 2011-05-07  Bruno Haible  <bruno@clisp.org>
5413
5414         fclose: Simplify autoconf macro.
5415         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5416         defined.
5417
5418 2011-05-07  Bruno Haible  <bruno@clisp.org>
5419
5420         canonicalize-lgpl: Fix autoconf macro ordering bug.
5421         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5422         gl_STDLIB_H_DEFAULTS.
5423
5424 2011-05-06  Eric Blake  <eblake@redhat.com>
5425
5426         maintainer-makefile: make sc_po_check easier to tune
5427         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5428         to probe for strings, such as an alternate location for gnulib.
5429
5430         fclose: guarantee behavior on seekable stdin
5431         * modules/fclose (Depends-on): Add fflush.
5432         * doc/posix-functions/fclose.texi (fclose): Document this.
5433         * tests/test-fclose.c (main): Make test for this unconditional.
5434
5435 2011-05-06  Bruno Haible  <bruno@clisp.org>
5436
5437         fflush, fpurge: Relicense under LGPLv2+.
5438         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5439         * modules/fpurge (License): Likewise.
5440         With permission from Eric Blake and Jim Meyering.
5441         Suggested by Eric Blake.
5442
5443 2011-05-06  Karl Berry  <karl@gnu.org>
5444
5445         * MODULES.html.sh (func_all_modules): remove exit.
5446
5447 2011-05-06  Jim Meyering  <meyering@redhat.com>
5448
5449         maint.mk: use info-gnu@ as the default only for a stable release
5450         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5451         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5452         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5453         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5454
5455 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         assert-h: new module, which supports C1X-style static_assert
5458         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5459         * lib/verify.h: Revamp so that this can be copied into assert.h,
5460         while retaining the ability to use it standalone as before.
5461         Rename private identifiers so as not to encroach on the
5462         standard C namespace, since this is now used by assert.h.
5463         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5464         the old verify_true.
5465         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5466         the old verify_true.  Use _GL_VERIFY_TYPE.
5467         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5468         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5469         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5470         defined when this file is copied into the replacement assert.h.
5471         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5472         and _Static_assert is not built in.
5473         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5474         defined, and use the new macros mentioned above.
5475         * doc/posix-headers/assert.texi: Document this.
5476
5477 2011-05-05  Bruno Haible  <bruno@clisp.org>
5478
5479         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5480         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5481         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5482         gl_REPLACE_FCLOSE here.
5483         * modules/fflush (Depends-on): Remove fclose.
5484         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5485         combination with module 'fclose'.
5486
5487 2011-05-05  Bruno Haible  <bruno@clisp.org>
5488
5489         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5490         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5491         gl_FUNC_FFLUSH.
5492         (gl_FUNC_FFLUSH): Use it.
5493         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5495         gl_REPLACE_FSEEKO here.
5496
5497 2011-05-05  Bruno Haible  <bruno@clisp.org>
5498
5499         tzset: Relicense under LGPL.
5500         * modules/tzset (License): Change to LGPL.
5501         No agreement needed; it's a no-op.
5502
5503         strtoimax, strtoumax: Relicense under LGPL.
5504         * modules/strtoimax (License): Change to LGPL.
5505         * modules/strtoumax (License): Likewise.
5506         With permission from Jim Meyering, Paul Eggert:
5507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5509
5510         getgroups: Relicense under LGPL.
5511         * modules/getgroups (License): Change to LGPL.
5512         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5516
5517         nanosleep: Relicense under LGPL.
5518         * modules/nanosleep (License): Change to LGPL.
5519         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5520         Haible:
5521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5525
5526         futimens: Relicense under LGPL.
5527         * modules/futimens (License): Change to LGPL.
5528         With permission from Eric Blake:
5529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5530
5531         fflush: Relicense under LGPL.
5532         * modules/fflush (License): Change to LGPL.
5533         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5537
5538         tmpfile: Relicense under LGPL.
5539         * modules/tmpfile (License): Change to LGPL.
5540         With permission from Ben Pfaff:
5541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5542
5543         isfinite: Relicense under LGPL.
5544         * modules/isfinite (License): Change to LGPL.
5545         With permission from Ben Pfaff, Bruno Haible:
5546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5548
5549         acosl..tanl: Relicense under LGPL.
5550         * modules/acosl (License): Change to LGPL.
5551         * modules/asinl (License): Likewise.
5552         * modules/atanl (License): Likewise.
5553         * modules/cosl (License): Likewise.
5554         * modules/expl (License): Likewise.
5555         * modules/logl (License): Likewise.
5556         * modules/sinl (License): Likewise.
5557         * modules/sqrtl (License): Likewise.
5558         * modules/tanl (License): Likewise.
5559         Source code originally from glibc and Paolo Bonzini. Agreements:
5560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5562
5563 2011-05-05  Bruno Haible  <bruno@clisp.org>
5564
5565         signal: Define sighandler_t.
5566         * lib/signal.in.h (sighandler_t): New type.
5567         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5568         whether sighandler_t is defined.
5569         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5570         * modules/signal (Depends-on): Add extensions.
5571         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5572         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5573         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5574
5575 2011-05-05  Eric Blake  <eblake@redhat.com>
5576
5577         maint: remove useless REPLACE_*_H macros
5578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5579         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5581         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5582         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5583         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5584         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5585         * m4/btowc.m4: Update callers.
5586         * m4/dirfd.m4: Likewise.
5587         * m4/duplocale.m4: Likewise.
5588         * m4/fchdir.m4: Likewise.
5589         * m4/fdopendir.m4: Likewise.
5590         * m4/inet_ntop.m4: Likewise.
5591         * m4/inet_pton.m4: Likewise.
5592         * m4/ioctl.m4: Likewise.
5593         * m4/mbrlen.m4: Likewise.
5594         * m4/mbrtowc.m4: Likewise.
5595         * m4/mbsinit.m4: Likewise.
5596         * m4/mbsnrtowcs.m4: Likewise.
5597         * m4/mbsrtowcs.m4: Likewise.
5598         * m4/poll.m4: Likewise.
5599         * m4/setlocale.m4: Likewise.
5600         * m4/wcrtomb.m4: Likewise.
5601         * m4/wcsnrtombs.m4: Likewise.
5602         * m4/wcsrtombs.m4: Likewise.
5603         * m4/wctob.m4: Likewise.
5604         * m4/wcwidth.m4: Likewise.
5605         * modules/posix_spawn: Likewise.
5606         * modules/posix_spawn_file_actions_addclose: Likewise.
5607         * modules/posix_spawn_file_actions_adddup2: Likewise.
5608         * modules/posix_spawn_file_actions_addopen: Likewise.
5609         * modules/posix_spawn_file_actions_destroy: Likewise.
5610         * modules/posix_spawn_file_actions_init: Likewise.
5611         * modules/posix_spawnattr_destroy: Likewise.
5612         * modules/posix_spawnattr_getflags: Likewise.
5613         * modules/posix_spawnattr_getpgroup: Likewise.
5614         * modules/posix_spawnattr_getschedparam: Likewise.
5615         * modules/posix_spawnattr_getschedpolicy: Likewise.
5616         * modules/posix_spawnattr_getsigdefault: Likewise.
5617         * modules/posix_spawnattr_getsigmask: Likewise.
5618         * modules/posix_spawnattr_init: Likewise.
5619         * modules/posix_spawnattr_setflags: Likewise.
5620         * modules/posix_spawnattr_setpgroup: Likewise.
5621         * modules/posix_spawnattr_setschedparam: Likewise.
5622         * modules/posix_spawnattr_setschedpolicy: Likewise.
5623         * modules/posix_spawnattr_setsigdefault: Likewise.
5624         * modules/posix_spawnattr_setsigmask: Likewise.
5625         * modules/posix_spawnp: Likewise.
5626
5627 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5628
5629         Add option to do-release-commit-and-tag to specify branch.
5630         * build-aux/do-release-commit-and-tag: Add --branch.
5631
5632 2011-05-03  Bruno Haible  <bruno@clisp.org>
5633
5634         Avoid unnecessary compilation units, through conditional dependencies.
5635         * modules/accept (Depends-on): Add conditions to the dependencies.
5636         * modules/acosl (Depends-on): Likewise.
5637         * modules/argz (Depends-on): Likewise.
5638         * modules/asinl (Depends-on): Likewise.
5639         * modules/atanl (Depends-on): Likewise.
5640         * modules/atoll (Depends-on): Likewise.
5641         * modules/bind (Depends-on): Likewise.
5642         * modules/btowc (Depends-on): Likewise.
5643         * modules/canonicalize-lgpl (Depends-on): Likewise.
5644         * modules/ceil (Depends-on): Likewise.
5645         * modules/ceilf (Depends-on): Likewise.
5646         * modules/ceill (Depends-on): Likewise.
5647         * modules/chdir-long (Depends-on): Likewise.
5648         * modules/chown (Depends-on): Likewise.
5649         * modules/close (Depends-on): Likewise.
5650         * modules/connect (Depends-on): Likewise.
5651         * modules/cosl (Depends-on): Likewise.
5652         * modules/dirfd (Depends-on): Likewise.
5653         * modules/dprintf (Depends-on): Likewise.
5654         * modules/dprintf-posix (Depends-on): Likewise.
5655         * modules/error (Depends-on): Likewise.
5656         * modules/euidaccess (Depends-on): Likewise.
5657         * modules/expl (Depends-on): Likewise.
5658         * modules/faccessat (Depends-on): Likewise.
5659         * modules/fchdir (Depends-on): Likewise.
5660         * modules/fclose (Depends-on): Likewise.
5661         * modules/fcntl (Depends-on): Likewise.
5662         * modules/fdopendir (Depends-on): Likewise.
5663         * modules/fflush (Depends-on): Likewise.
5664         * modules/floor (Depends-on): Likewise.
5665         * modules/floorf (Depends-on): Likewise.
5666         * modules/floorl (Depends-on): Likewise.
5667         * modules/fnmatch (Depends-on): Likewise.
5668         * modules/fopen (Depends-on): Likewise.
5669         * modules/fprintf-posix (Depends-on): Likewise.
5670         * modules/frexp (Depends-on): Likewise.
5671         * modules/frexp-nolibm (Depends-on): Likewise.
5672         * modules/frexpl (Depends-on): Likewise.
5673         * modules/frexpl-nolibm (Depends-on): Likewise.
5674         * modules/fseek (Depends-on): Likewise.
5675         * modules/fsusage (Depends-on): Likewise.
5676         * modules/ftell (Depends-on): Likewise.
5677         * modules/ftello (Depends-on): Likewise.
5678         * modules/futimens (Depends-on): Likewise.
5679         * modules/getcwd (Depends-on): Likewise.
5680         * modules/getcwd-lgpl (Depends-on): Likewise.
5681         * modules/getdelim (Depends-on): Likewise.
5682         * modules/getdomainname (Depends-on): Likewise.
5683         * modules/getgroups (Depends-on): Likewise.
5684         * modules/gethostname (Depends-on): Likewise.
5685         * modules/getline (Depends-on): Likewise.
5686         * modules/getlogin_r (Depends-on): Likewise.
5687         * modules/getopt-posix (Depends-on): Likewise.
5688         * modules/getpeername (Depends-on): Likewise.
5689         * modules/getsockname (Depends-on): Likewise.
5690         * modules/getsockopt (Depends-on): Likewise.
5691         * modules/getsubopt (Depends-on): Likewise.
5692         * modules/getusershell (Depends-on): Likewise.
5693         * modules/glob (Depends-on): Likewise.
5694         * modules/grantpt (Depends-on): Likewise.
5695         * modules/iconv_open (Depends-on): Likewise.
5696         * modules/iconv_open-utf (Depends-on): Likewise.
5697         * modules/inet_ntop (Depends-on): Likewise.
5698         * modules/inet_pton (Depends-on): Likewise.
5699         * modules/ioctl (Depends-on): Likewise.
5700         * modules/isapipe (Depends-on): Likewise.
5701         * modules/isfinite (Depends-on): Likewise.
5702         * modules/isinf (Depends-on): Likewise.
5703         * modules/lchown (Depends-on): Likewise.
5704         * modules/ldexpl (Depends-on): Likewise.
5705         * modules/link (Depends-on): Likewise.
5706         * modules/linkat (Depends-on): Likewise.
5707         * modules/listen (Depends-on): Likewise.
5708         * modules/logl (Depends-on): Likewise.
5709         * modules/lstat (Depends-on): Likewise.
5710         * modules/mbrlen (Depends-on): Likewise.
5711         * modules/mbrtowc (Depends-on): Likewise.
5712         * modules/mbsinit (Depends-on): Likewise.
5713         * modules/mbsnrtowcs (Depends-on): Likewise.
5714         * modules/mbsrtowcs (Depends-on): Likewise.
5715         * modules/mbtowc (Depends-on): Likewise.
5716         * modules/memcmp (Depends-on): Likewise.
5717         * modules/mkdir (Depends-on): Likewise.
5718         * modules/mkdtemp (Depends-on): Likewise.
5719         * modules/mkfifo (Depends-on): Likewise.
5720         * modules/mkfifoat (Depends-on): Likewise.
5721         * modules/mknod (Depends-on): Likewise.
5722         * modules/mkostemp (Depends-on): Likewise.
5723         * modules/mkostemps (Depends-on): Likewise.
5724         * modules/mkstemp (Depends-on): Likewise.
5725         * modules/mkstemps (Depends-on): Likewise.
5726         * modules/mktime (Depends-on): Likewise.
5727         * modules/nanosleep (Depends-on): Likewise.
5728         * modules/open (Depends-on): Likewise.
5729         * modules/openat (Depends-on): Likewise.
5730         * modules/perror (Depends-on): Likewise.
5731         * modules/poll (Depends-on): Likewise.
5732         * modules/popen (Depends-on): Likewise.
5733         * modules/posix_spawn (Depends-on): Likewise.
5734         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5735         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5736         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5737         * modules/posix_spawnp (Depends-on): Likewise.
5738         * modules/pread (Depends-on): Likewise.
5739         * modules/printf-posix (Depends-on): Likewise.
5740         * modules/ptsname (Depends-on): Likewise.
5741         * modules/putenv (Depends-on): Likewise.
5742         * modules/pwrite (Depends-on): Likewise.
5743         * modules/readline (Depends-on): Likewise.
5744         * modules/readlink (Depends-on): Likewise.
5745         * modules/readlinkat (Depends-on): Likewise.
5746         * modules/recv (Depends-on): Likewise.
5747         * modules/recvfrom (Depends-on): Likewise.
5748         * modules/regex (Depends-on): Likewise.
5749         * modules/remove (Depends-on): Likewise.
5750         * modules/rename (Depends-on): Likewise.
5751         * modules/renameat (Depends-on): Likewise.
5752         * modules/rmdir (Depends-on): Likewise.
5753         * modules/round (Depends-on): Likewise.
5754         * modules/roundf (Depends-on): Likewise.
5755         * modules/roundl (Depends-on): Likewise.
5756         * modules/rpmatch (Depends-on): Likewise.
5757         * modules/select (Depends-on): Likewise.
5758         * modules/send (Depends-on): Likewise.
5759         * modules/sendto (Depends-on): Likewise.
5760         * modules/setenv (Depends-on): Likewise.
5761         * modules/setlocale (Depends-on): Likewise.
5762         * modules/setsockopt (Depends-on): Likewise.
5763         * modules/shutdown (Depends-on): Likewise.
5764         * modules/sigaction (Depends-on): Likewise.
5765         * modules/signbit (Depends-on): Likewise.
5766         * modules/sigprocmask (Depends-on): Likewise.
5767         * modules/sinl (Depends-on): Likewise.
5768         * modules/sleep (Depends-on): Likewise.
5769         * modules/snprintf (Depends-on): Likewise.
5770         * modules/snprintf-posix (Depends-on): Likewise.
5771         * modules/socket (Depends-on): Likewise.
5772         * modules/sprintf-posix (Depends-on): Likewise.
5773         * modules/sqrtl (Depends-on): Likewise.
5774         * modules/stat (Depends-on): Likewise.
5775         * modules/strchrnul (Depends-on): Likewise.
5776         * modules/strdup-posix (Depends-on): Likewise.
5777         * modules/strerror (Depends-on): Likewise.
5778         * modules/strerror_r-posix (Depends-on): Likewise.
5779         * modules/strndup (Depends-on): Likewise.
5780         * modules/strnlen (Depends-on): Likewise.
5781         * modules/strptime (Depends-on): Likewise.
5782         * modules/strsep (Depends-on): Likewise.
5783         * modules/strsignal (Depends-on): Likewise.
5784         * modules/strstr-simple (Depends-on): Likewise.
5785         * modules/strtod (Depends-on): Likewise.
5786         * modules/strtoimax (Depends-on): Likewise.
5787         * modules/strtok_r (Depends-on): Likewise.
5788         * modules/strtoumax (Depends-on): Likewise.
5789         * modules/symlink (Depends-on): Likewise.
5790         * modules/symlinkat (Depends-on): Likewise.
5791         * modules/tanl (Depends-on): Likewise.
5792         * modules/tcgetsid (Depends-on): Likewise.
5793         * modules/tmpfile (Depends-on): Likewise.
5794         * modules/trunc (Depends-on): Likewise.
5795         * modules/truncf (Depends-on): Likewise.
5796         * modules/truncl (Depends-on): Likewise.
5797         * modules/uname (Depends-on): Likewise.
5798         * modules/unlink (Depends-on): Likewise.
5799         * modules/unlockpt (Depends-on): Likewise.
5800         * modules/unsetenv (Depends-on): Likewise.
5801         * modules/usleep (Depends-on): Likewise.
5802         * modules/utimensat (Depends-on): Likewise.
5803         * modules/vasprintf (Depends-on): Likewise.
5804         * modules/vdprintf (Depends-on): Likewise.
5805         * modules/vdprintf-posix (Depends-on): Likewise.
5806         * modules/vfprintf-posix (Depends-on): Likewise.
5807         * modules/vprintf-posix (Depends-on): Likewise.
5808         * modules/vsnprintf (Depends-on): Likewise.
5809         * modules/vsnprintf-posix (Depends-on): Likewise.
5810         * modules/vsprintf-posix (Depends-on): Likewise.
5811         * modules/wcrtomb (Depends-on): Likewise.
5812         * modules/wcscasecmp (Depends-on): Likewise.
5813         * modules/wcscspn (Depends-on): Likewise.
5814         * modules/wcsdup (Depends-on): Likewise.
5815         * modules/wcsncasecmp (Depends-on): Likewise.
5816         * modules/wcsnrtombs (Depends-on): Likewise.
5817         * modules/wcspbrk (Depends-on): Likewise.
5818         * modules/wcsrtombs (Depends-on): Likewise.
5819         * modules/wcsspn (Depends-on): Likewise.
5820         * modules/wcsstr (Depends-on): Likewise.
5821         * modules/wcstok (Depends-on): Likewise.
5822         * modules/wcswidth (Depends-on): Likewise.
5823         * modules/wctob (Depends-on): Likewise.
5824         * modules/wctomb (Depends-on): Likewise.
5825         * modules/wctype (Depends-on): Likewise.
5826         * modules/wcwidth (Depends-on): Likewise.
5827         * modules/write (Depends-on): Likewise.
5828
5829 2011-05-03  Bruno Haible  <bruno@clisp.org>
5830
5831         Support for conditional dependencies.
5832         * doc/gnulib.texi (Module description): Document the syntax of
5833         conditional dependencies.
5834         * gnulib-tool: New option --conditional-dependencies.
5835         (func_usage): Document it.
5836         (cond_dependencies): New variable.
5837         (func_get_automake_snippet_conditional,
5838         func_get_automake_snippet_unconditional): New functions, extracted from
5839         func_get_automake_snippet.
5840         (func_get_automake_snippet): Use them.
5841         (sed_first_32_chars): New variable.
5842         (func_module_shellfunc_name): New function.
5843         (func_module_shellvar_name): New function.
5844         (func_module_conditional_name): New function.
5845         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5846         func_cond_module_condition): New functions.
5847         (func_modules_transitive_closure): Add support for conditional
5848         dependencies.
5849         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5850         conditional automake snippet in an automake conditional.
5851         (func_emit_autoconf_snippets): Emit shell functions that contain the
5852         code for conditional modules.
5853         (func_import, func_create_testdir): Update specification.
5854
5855 2011-05-03  Eric Blake  <eblake@redhat.com>
5856
5857         test-getaddrinfo: report error information
5858         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5859
5860 2011-05-03  Jim Meyering  <meyering@redhat.com>
5861
5862         bootstrap: avoid build failure when $GZIP is set
5863         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5864         program name.  If defined at all, it is supposed to list gzip options.
5865         Reported by Alan Curry in http://debbugs.gnu.org/8609
5866
5867 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5868
5869         readme-release: new module with release instructions
5870         * modules/readme-release: New module.
5871         * top/README-release: New file, from coreutils, grep, diffutils.
5872         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5873
5874 2011-05-02  Eric Blake  <eblake@redhat.com>
5875
5876         fflush: also replace fclose when fixing fflush
5877         * modules/fflush (Depends-on): Add fclose.
5878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5879         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5880         memstreams with no backing fd.
5881         * doc/posix-functions/fclose.texi (fclose): Document the use of
5882         fflush module to fix the bug.
5883         * tests/test-fclose.c (main): Relax test when fclose is used in
5884         isolation.
5885
5886         fclose: add some tests
5887         * modules/fclose-tests: New test module.
5888         * tests/test-fclose.c: New file.
5889         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5890
5891         fclose: reduced dependencies
5892         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5893         simpler lseek.
5894         * lib/fclose.c (rpl_fclose): Likewise.
5895         Reported by Simon Josefsson.
5896
5897         exit: drop remaining clients
5898         * modules/argmatch (Depends-on): Replace exit with stdlib.
5899         * modules/copy-file (Depends-on): Likewise.
5900         * modules/execute (Depends-on): Likewise.
5901         * modules/exitfail (Depends-on): Likewise.
5902         * modules/obstack (Depends-on): Likewise.
5903         * modules/pagealign_alloc (Depends-on): Likewise.
5904         * modules/pipe-filter-gi (Depends-on): Likewise.
5905         * modules/pipe-filter-ii (Depends-on): Likewise.
5906         * modules/savewd (Depends-on): Likewise.
5907         * modules/spawn-pipe (Depends-on): Likewise.
5908         * modules/wait-process (Depends-on): Likewise.
5909         * modules/xsetenv (Depends-on): Likewise.
5910         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5911         * modules/git-merge-changelog (Depends-on): Likewise.
5912         * modules/long-options (Depends-on): Likewise.
5913         * modules/pt_chown (Depends-on): Likewise.
5914         * modules/sysexits (Depends-on): Likewise.
5915
5916         freading: relax license from LGPLv3+ to LGPLv2+
5917         * modules/freading (License): Relax LGPL version.
5918
5919 2011-05-02  Bruno Haible  <bruno@clisp.org>
5920
5921         fchdir: Remove unused dependencies.
5922         * modules/fchdir (Depends-on): Remove include_next.
5923
5924 2011-05-02  Bruno Haible  <bruno@clisp.org>
5925
5926         gnulib-tool: Refactor.
5927         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5928         from func_emit_autoconf_snippets.
5929         (func_emit_autoconf_snippets): Use it.
5930
5931 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5932
5933         * NEWS: Document removal of 'exit'.
5934         * modules/exit: Remove file.
5935
5936 2011-05-01  Bruno Haible  <bruno@clisp.org>
5937
5938         Update DEPENDENCIES.
5939         * DEPENDENCIES (gettext): Recommend the newest release.
5940         Reported by Simon Josefsson.
5941
5942 2011-05-01  Bruno Haible  <bruno@clisp.org>
5943
5944         gnulib-tool: Reduce code duplication.
5945         * gnulib-tool (func_emit_autoconf_snippets): New function.
5946         (func_import, func_create_testdir): Use it.
5947
5948 2011-04-30  Eric Blake  <eblake@redhat.com>
5949
5950         fclose: don't fail on non-seekable input stream
5951         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5952         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5953         since fflush is allowed to fail in that case.
5954
5955 2011-04-30  Bruno Haible  <bruno@clisp.org>
5956
5957         dup3: cleanup
5958         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5959
5960 2011-04-30  Bruno Haible  <bruno@clisp.org>
5961
5962         netdb: Make it work in C++ mode.
5963         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5964         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5965         module.
5966         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5967         gl_MODULE_INDICATOR_FOR_TESTS.
5968         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5969         * modules/netdb-c++-tests: New file.
5970         * tests/test-netdb-c++.cc: New file.
5971
5972 2011-04-30  Bruno Haible  <bruno@clisp.org>
5973
5974         New modules 'vfscanf', 'vscanf'.
5975         * modules/vfscanf: New file.
5976         * modules/vscanf: New file.
5977         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5978         here.
5979         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5980         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5981
5982 2011-04-30  Bruno Haible  <bruno@clisp.org>
5983
5984         passfd: Add comments.
5985         * lib/passfd.c: Add comments about platforms.
5986
5987 2011-04-30  Bruno Haible  <bruno@clisp.org>
5988
5989         sys_uio: Make <sys/uio.h> self-contained.
5990         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5991         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5992
5993 2011-04-30  Bruno Haible  <bruno@clisp.org>
5994
5995         sys_socket: Ensure 'struct iovec' definition.
5996         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5997         <sys/socket.h>.
5998         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5999
6000 2011-04-30  Bruno Haible  <bruno@clisp.org>
6001
6002         sys_uio: Protect definition of 'struct iovec'.
6003         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6004         it as a C struct.
6005
6006 2011-04-30  Bruno Haible  <bruno@clisp.org>
6007
6008         manywarnings: fix indentation
6009         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6010
6011 2011-04-30  Pádraig Brady <P@draigBrady.com>
6012
6013         manywarnings: add -Wno-missing-field-initializers if needed.
6014         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6015         option if it's needed to allow initialization with { 0, }
6016
6017 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6018
6019         announce-gen: cosmetic improvement
6020         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6021
6022 2011-04-29  Jim Meyering  <meyering@redhat.com>
6023
6024         vc-list-files: indent with spaces, not TABs
6025         * build-aux/vc-list-files: Convert leading TABs to spaces,
6026         to match the style of most other files in gnulib.
6027
6028         announce-gen: indent with spaces, not TABs
6029         * build-aux/announce-gen: Convert all TABs to spaces, to match
6030         the style of most other files in gnulib.
6031
6032 2011-04-29  Eric Blake  <eblake@redhat.com>
6033
6034         quotearg: avoid uninitialized variable use
6035         * lib/quotearg.c (quoting_options_from_style): Initialize
6036         remaining fields, and ensure that custom styles are only used via
6037         quoting_options rather than quoting_style.
6038
6039 2011-04-29  Jim Meyering  <meyering@redhat.com>
6040
6041         maint.mk: remove unused VC-tag variable
6042         * top/maint.mk (VC-tag): Remove unused variable.
6043
6044 2011-04-29  Bruno Haible  <bruno@clisp.org>
6045
6046         netdb: fix gai_strerror replacements
6047         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6048         * modules/netdb: Substitute it.
6049
6050 2011-04-29  Jim Meyering  <meyering@redhat.com>
6051
6052         test-getcwd.c: avoid new set-but-not-used warning
6053         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6054         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6055         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6056         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6057
6058         test-hash.c: avoid a new shadowing warning
6059         * tests/test-hash.c (main): Don't shadow "dup".
6060
6061 2011-04-28  Eric Blake  <eblake@redhat.com>
6062
6063         getaddrinfo: fix gai_strerror signature
6064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6065         and work around mingw with UNICODE defined.
6066         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6067         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6068         * modules/netdb (Makefile.am): Substitute it.
6069         * lib/netdb.in.h (gai_strerror): Declare replacement.
6070         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6071         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6072         the fix.
6073
6074         getsockopt: avoid compiler warning
6075         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6076         Reported by Matthias Bolte.
6077
6078         tests: drop unused link dependency
6079         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6080         * modules/dirent-safer-tests (Makefile.am): Likewise.
6081         * modules/fdopendir-tests (Makefile.am): Likewise.
6082         * modules/mkfifoat-tests (Makefile.am): Likewise.
6083         * modules/openat-safer-tests (Makefile.am): Likewise.
6084         * modules/openat-tests (Makefile.am): Likewise.
6085         * modules/readlinkat-tests (Makefile.am): Likewise.
6086         * modules/symlinkat-tests (Makefile.am): Likewise.
6087         * modules/linkat-tests (Makefile.am): Likewise.
6088         (Depends-on): Switch to filenamecat-lgpl.
6089         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6090         LIBINTL.
6091         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6092         * tests/test-linkat.c (main): Don't require xalloc.
6093
6094         hash, mgetgroups: drop xalloc dependency
6095         * lib/hash.c (includes): Adjust includes.
6096         * lib/mgetgroups.c (includes): Likewise.
6097         (xgetgroups): Move...
6098         * lib/xgetgroups.c: ...to new file.
6099         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6100         * modules/xgetgroups: New file, split from...
6101         * modules/mgetgroups: ...here.
6102         (Depends-on): Add xalloc-oversized.
6103         * modules/hash (Depends-on): Likewise.
6104         * modules/hash-tests (Depends-on): Drop xalloc.
6105         (test_hash_LDADD): Drop unused library.
6106         * tests/test-hash.c (main): Break xalloc dependency.
6107         (includes): Drop unused include.
6108
6109         xalloc-oversized: new module
6110         * modules/xalloc-oversized: New module.
6111         * modules/xalloc (Depends-on): Add it.
6112         * lib/xalloc.h (xalloc_oversized): Move...
6113         * lib/xalloc-oversized.h: ...into new file.
6114
6115         utimecmp: drop dependency on xmalloc
6116         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6117         due to memory pressure.
6118         * modules/utimecmp (Depends-on): Drop xalloc.
6119
6120 2011-04-27  Eric Blake  <eblake@redhat.com>
6121
6122         getcwd: fix mingw bugs
6123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6124         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6125         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6126
6127 2011-04-27  Bruno Haible  <bruno@clisp.org>
6128
6129         mkstemps: Ensure declaration on MacOS X 10.5.
6130         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6131         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6132         MacOS X.
6133
6134 2011-04-27  Bruno Haible  <bruno@clisp.org>
6135
6136         mkstemp: More documentation.
6137         * doc/posix-functions/mkstemp.texi: Document header file problem on
6138         MacOS X.
6139
6140 2011-04-27  Bruno Haible  <bruno@clisp.org>
6141
6142         mkstemp: Tweak configure message when cross-compiling.
6143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6144         result as a guess.
6145
6146 2011-04-27  Bruno Haible  <bruno@clisp.org>
6147
6148         clean-temp: Clarify what it does.
6149         * lib/clean-temp.h: Add more comments.
6150         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6151         module.
6152         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6153         * doc/glibc-functions/mkstemps.texi: Likewise.
6154         * doc/glibc-functions/mkostemps.texi: Likewise.
6155
6156 2011-04-27  Eric Blake  <eblake@redhat.com>
6157
6158         fchdir: avoid extra chdir and fix test
6159         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6160         getcwd-lgpl.
6161         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6162         have to be canonical.
6163         (canonicalize_file_name): Drop unused macro.
6164         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6165
6166         filenamecat-lgpl: fix licence
6167         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6168         when it was first created.
6169
6170         linkat, renameat: add missing dependency
6171         * modules/linkat (Depends-on): Require getcwd-lgpl.
6172         * modules/renameat (Depends-on): Likewise.
6173
6174         tests: reduce dependencies
6175         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6176         * tests/test-renameat.c (main): Likewise.
6177         * modules/linkat-tests (Depends-on): Relax dependency.
6178         * modules/renameat-tests (Depends-on): Likewise.
6179         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6180         dependency explicit.
6181
6182         save-cwd: reduce default dependency
6183         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6184         * lib/save-cwd.c: Update comments.
6185         * NEWS: Document the semantic change.
6186
6187         getcwd: enhance tests
6188         * tests/test-getcwd-lgpl.c: New file, taken from...
6189         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6190         repeat long path stress tests from m4 probe.
6191         * modules/getcwd-lgpl-tests: New module.
6192         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6193         * m4/getcwd-abort-bug.m4: Update comment.
6194         * m4/getcwd-path-max.m4: Likewise.
6195
6196         getcwd-lgpl: new module
6197         * modules/getcwd-lgpl: New module.
6198         * lib/getcwd-lgpl.c: New file.
6199         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6200         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6201         * modules/getcwd (configure.ac): Set C witness.
6202         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6203
6204         getcwd: tweak comments
6205         * m4/getcwd-abort-bug.m4: Fix comments.
6206         * m4/getcwd-path-max.m4: Likewise.
6207         * m4/getcwd.m4: Likewise.
6208
6209 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6210         and Eric Blake  <eblake@redhat.com>
6211
6212         mkstemp: replace if system version uses wrong permissions
6213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6214         read/write mode bits set in file created by mkstemp.
6215         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6216
6217 2011-04-27  Eric Blake  <eblake@redhat.com>
6218
6219         passfd: avoid compiler warning
6220         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6221         Reported by Laine Stump.
6222
6223 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6224
6225         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6226         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6227
6228 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6229         and Eric Blake  <eblake@redhat.com>
6230
6231         mkstemp: mention clean-temp module
6232         * lib/mkstemp.c: Add comment.
6233         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6234
6235 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6236
6237         inttypes: also provide default values for 32-bit tests
6238         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6239         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6240
6241 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6242
6243         strtoumax: remove dependency on strtoimax
6244         This is like the strtoull change of yesterday.
6245         * modules/strtoumax (Files): Add lib/strtoimax.c.
6246         (Depends-on): Remove strtoimax and add verify.
6247
6248         inttypes-incomplete: new module
6249         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6250         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6251         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6252         of gl_INTTYPES_H.
6253         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6254         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6255         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6256         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6257         * modules/strtoumax, modules/xstrtol (Depends-on):
6258         Depend on inttypes-incomplete, not inttypes.
6259         * modules/inttypes-incomplete: New module, containing the contents
6260         of the old modules/inttypes module, except that the Files: section
6261         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6262         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6263         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6264         (Depends-on): Depend only on inttypes-incomplete.
6265         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6266
6267         inttypes: omit now-redundant strtoimax and strtoumax work
6268         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6269         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6270
6271         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6272         This supports apps that need pointers to strtoimax and strtoumax,
6273         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6274         nonexistent functions.  See
6275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6276         et seq.
6277         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6278         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6279         a macro.
6280         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6281
6282 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6283
6284         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6285
6286 2011-04-25  Bruno Haible  <bruno@clisp.org>
6287
6288         strtol, strtoul: Mark modules as obsolete.
6289         * modules/strtol (Status, Notice): New sections.
6290         * modules/strtoul (Status, Notice): New sections.
6291
6292 2011-04-25  Bruno Haible  <bruno@clisp.org>
6293
6294         strtod: Remove check for strtod, unless supporting old platforms.
6295         * modules/strtod-obsolete: New file.
6296         * m4/strtod-obsolete.m4: New file.
6297         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6298         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6299         * modules/strtod (Depends-on): Add strtod-obsolete.
6300         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6301
6302 2011-04-25  Bruno Haible  <bruno@clisp.org>
6303
6304         strcase: Make module obsolete.
6305         * modules/strcase (Status, Notice): New sections.
6306
6307 2011-04-25  Bruno Haible  <bruno@clisp.org>
6308
6309         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6310         * modules/dup2-obsolete: New file.
6311         * m4/dup2-obsolete.m4: New file.
6312         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6313         gl_FUNC_DUP2_OBSOLETE is not also defined.
6314         * modules/dup2 (Depends-on): Add dup2-obsolete.
6315         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6316
6317 2011-04-25  Bruno Haible  <bruno@clisp.org>
6318
6319         strnlen: Avoid memchr related link error on old obsolete platforms.
6320         * modules/memchr-obsolete: New file.
6321         * m4/memchr-obsolete.m4: New file.
6322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6323         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6324         * modules/memchr (Depends-on): Add memchr-obsolete.
6325         * modules/strnlen (Depends-on): Likewise.
6326         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6327
6328 2011-04-25  Jim Meyering  <meyering@redhat.com>
6329
6330         maint.mk: makefile_at_at_check extend and clean up
6331         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6332         in addition to */Makefile.am.
6333         Exempt legitimate uses of @VAR@ notation, e.g.,
6334         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6335         Remove obsolete coreutils-specific comment.
6336         Prompted by discussion here:
6337         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6338
6339 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6340
6341         strtoul: remove dependency on strtol
6342         This is so that 'configure' need not check for strtol merely because
6343         the application needs strtoul.
6344         * modules/strtoul (Files): Add lib/strtol.c.
6345         (Depends-on): Remove strtol.
6346
6347         strtoull: remove dependency on strtoul
6348         This is like the strtoll change.
6349         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6350         (Depends-on): Remove strtoul.
6351
6352         strtoll: remove dependency on strtol
6353         This is so that 'configure' need not check for strtol merely because
6354         the application needs strtoll.
6355         * modules/strtoll (Files): Add lib/strtol.c.
6356         (Depends-on): Remove strtol.
6357
6358 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         inttypes: Move some configure check to module 'imaxdiv'.
6361         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6362         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6363         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6364
6365 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6366
6367         inttypes: Move some configure check to module 'imaxabs'.
6368         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6369         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6370         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6371
6372 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6373
6374         inttypes: Remove configure tests that are not needed since 2009-12-31.
6375         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6376         gl_cv_header_working_inttypes_h.
6377
6378 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6379
6380         * modules/strnlen (Depends-on): Remove memchr.
6381         The strnlen implementation doesn't need the memchr module's fixes; see
6382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6383
6384         strtol: remove dependency on wchar
6385         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6386         * modules/strtol (Depends-on): Remove wchar.
6387
6388 2011-04-21  Eric Blake  <eblake@redhat.com>
6389
6390         passfd: fix test regression on Linux
6391         * modules/passfd-tests (configure.ac): Correct socketpair check.
6392
6393         passfd: speed up configure and drop unused code
6394         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6395         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6396         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6397         Instead of probing at configure for unix_scm_rights_bsd44_way,
6398         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6399         check to a struct member probe.
6400         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6401         (sendfd, recvfd): Update preprocessor checks.
6402         * modules/passfd (Files): Reflect rename, and drop unused file.
6403         (Depends-on): Drop unused dependency.
6404
6405         passfd: allow compilation on mingw
6406         * modules/sys_socket (Depends-on): Add sys_uio.
6407         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6408         iovec and a minimal struct msghdr.
6409         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6410         * tests/test-sys_socket.c (main): Enhance test.
6411         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6412         guaranteed to provide what we need.
6413         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6414         * modules/passfd-tests (Depends-on): Add sys_wait.
6415         * tests/test-passfd.c (main): Skip test on mingw, for now.
6416         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6417         partial 'struct msghdr' implementation.
6418
6419         sys_uio: new module
6420         * modules/sys_uio: New module.
6421         * modules/sys_uio-tests: Likewise.
6422         * lib/sys_uio.in.h: New file.
6423         * m4/sys_uio_h.m4: Likewise.
6424         * tests/test-sys_uio.c: Likewise.
6425         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6426         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6427
6428 2011-04-20  Jim Meyering  <meyering@redhat.com>
6429
6430         useless-if-before-free: avoid false-positive
6431         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6432         disjunct so that it too requires a terminating ";".  Without that,
6433         this script would identify as useless one statement from gcc that
6434         was not:
6435           if (aligned_ptr)
6436             free (((void **) aligned_ptr) [-1]);
6437
6438 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6439
6440         doc: update users.txt.
6441         * users.txt: Add barcode.
6442
6443 2011-04-19  Bruno Haible  <bruno@clisp.org>
6444
6445         ioctl: Remove link dependency on native Windows.
6446         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6447         (gl_close_fn, gl_ioctl_fn): New types.
6448         (struct fd_hook): Renamed from struct close_hook. Change type of
6449         private_close_fn field. Add private_ioctl_fn field.
6450         (close_hook_fn): Add parameter for primary close method.
6451         (execute_close_hooks, execute_all_close_hooks): Likewise.
6452         (ioctl_hook_fn): New type.
6453         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6454         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6455         argument.
6456         (unregister_fd_hook): Renamed from unregister_close_hook.
6457         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6458         Don't include <unistd.h>.
6459         (close): Remove undef.
6460         (anchor): Update.
6461         (execute_close_hooks): Add argument for primary close method.
6462         (execute_all_close_hooks): Likewise.
6463         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6464         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6465         argument. Allow each argument to be NULL.
6466         (unregister_fd_hook): Renamed from unregister_close_hook.
6467         * lib/close.c (rpl_close): Pass 'close' function pointer to
6468         execute_all_close_hooks.
6469         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6470         (primary_ioctl): New function.
6471         (ioctl): Don't call ioctlsocket here. Instead, call
6472         execute_all_ioctl_hooks.
6473         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6474         close method.
6475         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6476         (fd_sockets_hook): Renamed from close_sockets_hook.
6477         (gl_sockets_startup, gl_sockets_cleanup): Update.
6478         * modules/fd-hook: Renamed from modules/close-hook. Update.
6479         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6480         * modules/sockets (Depends-on): Likewise.
6481         * modules/ioctl (Depends-on): Add fd-hook.
6482         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6483         GNULIB_SOCKET.
6484
6485 2011-04-19  Bruno Haible  <bruno@clisp.org>
6486
6487         Move the support of O_NONBLOCK in open() to the 'open' module.
6488         * modules/nonblocking (Depends-on): Remove 'open'.
6489         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6490         gl_cv_have_open_O_NONBLOCK.
6491         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6492         O_NONBLOCK support.
6493         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6494
6495 2011-04-17  Bruno Haible  <bruno@clisp.org>
6496
6497         pipe2: Simplify code.
6498         * lib/pipe2.c (pipe2): Reduce code duplication.
6499
6500 2011-04-17  Bruno Haible  <bruno@clisp.org>
6501
6502         nonblocking: Add comment.
6503         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6504
6505 2011-04-17  Bruno Haible  <bruno@clisp.org>
6506
6507         nonblocking: Add tests for sockets.
6508         * tests/test-nonblocking-socket.sh: New file.
6509         * tests/test-nonblocking-socket-main.c: New file.
6510         * tests/test-nonblocking-socket-child.c: New file.
6511         * tests/test-nonblocking-socket.h: New file.
6512         * tests/socket-server.h: New file.
6513         * tests/socket-client.h: New file.
6514         * modules/nonblocking-socket-tests: New file.
6515         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6516
6517 2011-04-17  Bruno Haible  <bruno@clisp.org>
6518
6519         nonblocking: Add tests for pipes.
6520         * tests/test-nonblocking-pipe.sh: New file.
6521         * tests/test-nonblocking-pipe-main.c: New file.
6522         * tests/test-nonblocking-pipe-child.c: New file.
6523         * tests/test-nonblocking-pipe.h: New file.
6524         * tests/test-nonblocking-writer.h: New file.
6525         * tests/test-nonblocking-reader.h: New file.
6526         * tests/test-nonblocking-misc.h: New file.
6527         * modules/nonblocking-pipe-tests: New file.
6528         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6529
6530 2011-04-16  Bruno Haible  <bruno@clisp.org>
6531
6532         gettext: Clarify the needed programmer actions.
6533         * modules/gettext (Notice): New field.
6534         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6535
6536 2011-04-16  Bruno Haible  <bruno@clisp.org>
6537
6538         strchrnul: Tweak last commit.
6539         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6540         bug.
6541         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6542         as in _GL_FUNCDECL_SYS.
6543         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6544         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6545
6546 2011-04-15  Eric Blake  <eblake@redhat.com>
6547
6548         strchrnul: work around cygwin bug
6549         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6552         * modules/string (Makefile.am): Substitute it.
6553         * lib/string.in.h (strchrnul): Use it.
6554
6555 2011-04-15  Bruno Haible  <bruno@clisp.org>
6556
6557         Don't require lib/stdio-write.c when only module 'stdio' is used.
6558         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6559         invocation.
6560         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6561
6562 2011-04-14  Bruno Haible  <bruno@clisp.org>
6563
6564         Support non-blocking pipe I/O in read() on native Windows.
6565         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6566         (read): New declaration.
6567         * lib/read.c: New file.
6568         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6569         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6570         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6571         vscanf): New declarations.
6572         * lib/stdio-read.c: New file.
6573         * m4/read.m4: New file.
6574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6575         REPLACE_READ.
6576         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6577         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6578         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6579         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6580         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6581         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6582         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6583         * modules/read: New file.
6584         * modules/nonblocking (Files): Add lib/stdio-read.c.
6585         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6586         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6587         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6588         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6589         * modules/pread (Depends-on): Add read.
6590         * modules/safe-read (Depends-on): Likewise.
6591         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6592         gets, scanf, vfscanf, vscanf): Verify signatures.
6593         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6594         problem with non-blocking pipes.
6595         * doc/posix-functions/fgetc.texi: Likewise.
6596         * doc/posix-functions/fgets.texi: Likewise.
6597         * doc/posix-functions/fread.texi: Likewise.
6598         * doc/posix-functions/fscanf.texi: Likewise.
6599         * doc/posix-functions/getc.texi: Likewise.
6600         * doc/posix-functions/getchar.texi: Likewise.
6601         * doc/posix-functions/gets.texi: Likewise.
6602         * doc/posix-functions/scanf.texi: Likewise.
6603         * doc/posix-functions/vfscanf.texi: Likewise.
6604         * doc/posix-functions/vscanf.texi: Likewise.
6605
6606 2011-04-14  Bruno Haible  <bruno@clisp.org>
6607
6608         Support non-blocking pipe I/O in write() on native Windows.
6609         * lib/write.c (rpl_write): Split a write request that failed merely
6610         because the byte count was larger than the pipe buffer's size.
6611         * doc/posix-functions/write.texi: Mention the problem with large byte
6612         counts.
6613
6614 2011-04-14  Bruno Haible  <bruno@clisp.org>
6615
6616         wchar: Ensure that wchar_t gets defined on uClibc.
6617         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6618         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6619
6620 2011-04-13  Bruno Haible  <bruno@clisp.org>
6621
6622         safe-write, full-read: Avoid unnecessary compilation units.
6623         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6624         (Depends-on): Remove safe-read. Add ssize_t.
6625         * modules/full-read (Files): Add lib/full-write.c.
6626         (Depends-on): Add full-write.
6627
6628 2011-04-13  Bruno Haible  <bruno@clisp.org>
6629
6630         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6631         * modules/pwrite (Depends-on): Add 'write'.
6632
6633 2011-04-13  Bruno Haible  <bruno@clisp.org>
6634
6635         Support non-blocking pipe I/O in write() on native Windows.
6636         * lib/unistd.in.h (write): Enable replacement also if
6637         GNULIB_UNISTD_H_NONBLOCKING is 1.
6638         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6639         (rpl_write): When failing to write on a non-blocking pipe, change
6640         errno from ENOSPC to EAGAIN.
6641         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6642         putchar, puts, vfprintf, vprintf): Enable replacement also if
6643         GNULIB_STDIO_H_NONBLOCKING is 1.
6644         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6645         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6646         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6647         CALL_WITH_SIGPIPE_EMULATION.
6648         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6649         * m4/nonblocking.m4: New file.
6650         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6651         for non-blocking I/O support.
6652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6653         GNULIB_UNISTD_H_NONBLOCKING.
6654         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6655         required for non-blocking I/O support.
6656         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6657         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6658         lib/stdio-write.c, m4/asm-underscore.m4.
6659         (Depends-on): Add stdio, unistd.
6660         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6661         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6662         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6663         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6664         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6665         problem with non-blocking pipes.
6666         * doc/posix-functions/fputc.texi: Likewise.
6667         * doc/posix-functions/fputs.texi: Likewise.
6668         * doc/posix-functions/fwrite.texi: Likewise.
6669         * doc/posix-functions/printf.texi: Likewise.
6670         * doc/posix-functions/putc.texi: Likewise.
6671         * doc/posix-functions/putchar.texi: Likewise.
6672         * doc/posix-functions/puts.texi: Likewise.
6673         * doc/posix-functions/vfprintf.texi: Likewise.
6674         * doc/posix-functions/vprintf.texi: Likewise.
6675         * doc/posix-functions/write.texi: Likewise.
6676
6677 2011-04-10  Jim Meyering  <meyering@redhat.com>
6678
6679         maint.mk: prohibit doubled words
6680         Detect them also when they're separated by a newline.
6681         There are 3 ways to customize it:
6682           - disable the test on a per file basis, as usual with rules using
6683             $(VC_LIST_EXCEPT)
6684           - replace the default doubled-word-selecting regexp (affects all files)
6685           - ignore a particular file-vs-doubled-word match
6686         I nearly used that last one to ignore the "is is" match in
6687         coreutils' NEWS file, since the text was "ls -is is ..."
6688         To do that, I would have added this line to cfg.mk:
6689           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6690         but it would have ignored any "is is" match in NEWS.
6691         Low probability, but still...
6692         Instead, I changed the text, slightly:
6693           -  ls -is is now consistent with ls -lis in ignoring values returned
6694           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6695         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6696         (prohibit_doubled_word_): Define.
6697         (sc_prohibit_doubled_word): New rule.
6698         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6699
6700 2011-04-10  Jim Meyering  <meyering@redhat.com>
6701
6702         maint: fix doubled-word typo in comment
6703         * m4/gethostname.m4: s/is is/it is/
6704         * m4/getdomainname.m4: Likewise.
6705
6706 2011-04-10  Jim Meyering  <meyering@redhat.com>
6707
6708         maint: remove doubled word: s/it it/it/
6709         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6710
6711 2011-04-10  Jim Meyering  <meyering@redhat.com>
6712
6713         maint.mk: remove useless semicolon and backslash
6714         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6715         semicolon and backslash.
6716
6717 2011-04-10  Bruno Haible  <bruno@clisp.org>
6718
6719         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6720         * modules/stdint-tests (Depends-on): Add wchar.
6721
6722 2011-04-10  Jim Meyering  <meyering@redhat.com>
6723
6724         maint: remove doubled words in comments, e.g., s/a a/a/
6725         * lib/strptime.c (day_of_the_week): s/the the/the/
6726         * tests/test-chown.h (test_chown): s/a a/a/
6727
6728         test-chown.h: correct a cast
6729         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6730         when the destination is a stat.st_gid.
6731
6732 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6733
6734         getaddrinfo: Fix test for sa_len member.
6735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6736         include <sys/types.h> before <sys/socket.h>.
6737
6738 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6739
6740         maint: change "can not" to "cannot"
6741         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6742         boundaries.
6743
6744 2011-04-09  Jim Meyering  <meyering@redhat.com>
6745
6746         maint: change "a a" to "a"
6747         * tests/test-lchown.h (test_lchown): s/a a/a/
6748
6749         maint.mk: prohibit \<the the\>
6750         * top/maint.mk (sc_prohibit_the_the): New rule.
6751
6752         maint: fix "the the" in comment
6753         * lib/count-one-bits.h: s/the the/the/
6754
6755         maint: change "can not" to "cannot"
6756         But do not change the occurrences in maintain.texi or in
6757         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6758         * doc/gnulib-tool.texi: s/can not/cannot/
6759         * doc/posix-functions/accept.texi (accept): Likewise.
6760         * doc/posix-functions/socket.texi (socket): Likewise.
6761         * lib/mbrtowc.c: Likewise.
6762
6763         maint.mk: prohibit use of "can not"
6764         * top/maint.mk (sc_prohibit_can_not): New rule.
6765         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6766
6767 2011-04-09  Bruno Haible  <bruno@clisp.org>
6768
6769         careadlinkat: Guard against misuse of careadlinkatcwd.
6770         * lib/careadlinkat.c: Include <stdlib.h>.
6771         (careadlinkatcwd): Check that the fd argument is as expected.
6772
6773 2011-04-09  Bruno Haible  <bruno@clisp.org>
6774
6775         careadlinkat: Use common coding style.
6776         * lib/careadlinkat.c: Move gnulib includes after system includes.
6777
6778 2011-04-09  Bruno Haible  <bruno@clisp.org>
6779
6780         careadlinkat: Clarify specification.
6781         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6782         (careadlinkatcwd): Add comment.
6783         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6784
6785 2011-04-09  Bruno Haible  <bruno@clisp.org>
6786
6787         areadlinkat: Avoid link error on many platforms.
6788         * modules/areadlinkat (Depends-on): Add areadlink.
6789
6790 2011-04-09  Bruno Haible  <bruno@clisp.org>
6791
6792         allocator, careadlinkat: Fix double-inclusion guard.
6793         * lib/allocator.h: Fix double-inclusion guard.
6794         * lib/careadlinkat.h: Likewise.
6795
6796 2011-04-09  Bruno Haible  <bruno@clisp.org>
6797
6798         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6799         * lib/relocwrapper.c: Update dependencies hierarchy.
6800         * build-aux/install-reloc: Update list of files to be compiled.
6801         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6802         lib/allocator.[hc].
6803
6804 2011-04-08  Eric Blake  <eblake@redhat.com>
6805
6806         strftime: silence gnulib-tool warning
6807         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6808
6809 2011-04-08  Bruno Haible  <bruno@clisp.org>
6810
6811         verify: Fix syntax error with GCC 4.6 in C++ mode.
6812         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6813         (HAVE_STATIC_ASSERT): New macro.
6814         (verify_true, verify): Use 'static_assert' if it is supported and
6815         '_Static_assert' is not supported.
6816
6817 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6818
6819         allocator: New module.
6820         * modules/allocator, lib/allocator.c: New files.
6821         * lib/allocator.h (stdlib_allocator): New decl.
6822         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6823         Remove.  Do not include <stdlib.h>.
6824         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6825         * modules/careadlinkat (Files): Remove lib/allocator.h.
6826         (Depends-on): Add allocator.
6827
6828         stdlib: let modules use system malloc, realloc
6829         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6830         if !_GL_USE_STDLIB_ALLOC.
6831         (malloc, realloc): Limit this change to a smaller scope.
6832
6833         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6834         (malloc, realloc): Don't #undef; no longer needed.
6835         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6836         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6837         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6838         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6839         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6840         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6841         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6842         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6843
6844         careadlinkat: rename members to avoid problem
6845         * lib/allocator.h (struct allocator): Rename members from
6846         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6847         and realloc are #define'd.  Reported by Eric Blake in
6848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6849         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6850
6851 2011-04-08  Eric Blake  <eblake@redhat.com>
6852
6853         nonblocking: reduce dependency
6854         * tests/test-nonblocking.c: Only test sockets when in use.
6855         * modules/nonblocking-tests (Depends-on): Drop socket.
6856         (Makefile.am): Link even if sockets are not present.
6857         * modules/pipe2-tests (Makefile.am): Likewise.
6858         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6859
6860         pipe2: fix O_NONBLOCK support on mingw
6861         * modules/pipe2 (Depends-on): Add nonblocking.
6862         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6863         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6864         * tests/test-nonblocking.c (main): Likewise.
6865         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6866
6867         fcntl-h: fix O_ACCMODE on cygwin
6868         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6869         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6870
6871         pipe-filter: drop O_NONBLOCK workarounds
6872         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6873         * modules/pipe-filter-ii (Depends-on): Likewise.
6874         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6875
6876         nonblocking: provide O_NONBLOCK for mingw
6877         * modules/nonblocking (Depends-on): Add open.
6878         (configure.ac): Set new witness macro.
6879         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6880         * modules/fcntl-h (Makefile.am): Substitute it.
6881         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6882         nonblocking module is in use.
6883         * lib/nonblocking.c: Adjust portability test.
6884         * lib/open.c (open): Don't let native open see gnulib flag.
6885         * tests/test-fcntl-h.c (main): Enhance test.
6886         * tests/test-open.h (test_open): Likewise.
6887         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6888
6889         careadlinkat: fix compilation error on mingw
6890         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6891         within struct allocator.
6892
6893 2011-04-06  Eric Blake  <eblake@redhat.com>
6894
6895         binary-io: relicense under LGPLv2+
6896         * modules/binary-io (License): Relax to LGPLv2+.
6897         Requested for libvirt, and required by pipe2.
6898
6899 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6900
6901         verify: use _Static_assert if available
6902         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6903         (verify_true, verify): Use it if available.  This generates better
6904         diagnostics with GCC 4.6.0 and later.
6905
6906 2011-04-05  Bruno Haible  <bruno@clisp.org>
6907
6908         Remove leftover generated .h files after config.status changed.
6909
6910         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6911         GL_GENERATE_ALLOCA_H.
6912         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6913         GL_GENERATE_ALLOCA_H evaluates to false.
6914
6915         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6916         GL_GENERATE_ARGZ_H.
6917         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6918         evaluates to false.
6919
6920         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6921         GL_GENERATE_BYTESWAP_H.
6922         * modules/byteswap (Makefile.am): Remove byteswap.h if
6923         GL_GENERATE_BYTESWAP_H evaluates to false.
6924
6925         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6926         GL_GENERATE_ERRNO_H.
6927         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6928         evaluates to false.
6929
6930         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6931         GL_GENERATE_FLOAT_H.
6932         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6933         evaluates to false.
6934
6935         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6936         GL_GENERATE_FNMATCH_H.
6937         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6938         GL_GENERATE_FNMATCH_H evaluates to false.
6939
6940         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6941         GL_GENERATE_GLOB_H.
6942         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6943         evaluates to false.
6944
6945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6946         automake conditional GL_GENERATE_ICONV_H.
6947         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6948         evaluates to false.
6949
6950         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6951         GL_GENERATE_NETINET_IN_H.
6952         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6953         GL_GENERATE_NETINET_IN_H evaluates to false.
6954
6955         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6956         conditional GL_GENERATE_PTHREAD_H.
6957         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6958         * modules/pthread (Makefile.am): Remove pthread.h if
6959         GL_GENERATE_PTHREAD_H evaluates to false.
6960
6961         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6962         GL_GENERATE_SCHED_H.
6963         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6964         evaluates to false.
6965
6966         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6967         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6968         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6969         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6970
6971         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6972         GL_GENERATE_STDARG_H.
6973         * modules/stdarg (Makefile.am): Remove stdarg.h if
6974         GL_GENERATE_STDARG_H evaluates to false.
6975
6976         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6977         GL_GENERATE_STDBOOL_H.
6978         * modules/stdbool (Makefile.am): Remove stdbool.h if
6979         GL_GENERATE_STDBOOL_H evaluates to false.
6980
6981         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6982         conditional GL_GENERATE_STDDEF_H.
6983         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6984         * modules/stddef (Makefile.am): Remove stddef.h if
6985         GL_GENERATE_STDDEF_H evaluates to false.
6986
6987         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6988         GL_GENERATE_STDINT_H.
6989         * modules/stdint (Makefile.am): Remove stdint.h if
6990         GL_GENERATE_STDINT_H evaluates to false.
6991
6992         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6993         GL_GENERATE_SYSEXITS_H.
6994         * modules/sysexits (Makefile.am): Remove sysexits.h if
6995         GL_GENERATE_SYSEXITS_H evaluates to false.
6996
6997         Reported by Karl Berry and Ralf Wildenhues.
6998
6999 2011-04-05  Bruno Haible  <bruno@clisp.org>
7000
7001         Ensure to rebuild generated .h files when config.status has changed.
7002         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7003         config.status.
7004         * modules/ctype (Makefile.am): Likewise.
7005         * modules/dirent (Makefile.am): Likewise.
7006         * modules/errno (Makefile.am): Likewise.
7007         * modules/fcntl-h (Makefile.am): Likewise.
7008         * modules/float (Makefile.am): Likewise.
7009         * modules/getopt-posix (Makefile.am): Likewise.
7010         * modules/glob (Makefile.am): Likewise.
7011         * modules/iconv-h (Makefile.am): Likewise.
7012         * modules/inttypes (Makefile.am): Likewise.
7013         * modules/langinfo (Makefile.am): Likewise.
7014         * modules/locale (Makefile.am): Likewise.
7015         * modules/math (Makefile.am): Likewise.
7016         * modules/netdb (Makefile.am): Likewise.
7017         * modules/netinet_in (Makefile.am): Likewise.
7018         * modules/poll-h (Makefile.am): Likewise.
7019         * modules/pthread (Makefile.am): Likewise.
7020         * modules/pty (Makefile.am): Likewise.
7021         * modules/sched (Makefile.am): Likewise.
7022         * modules/search (Makefile.am): Likewise.
7023         * modules/selinux-h (Makefile.am): Likewise.
7024         * modules/signal (Makefile.am): Likewise.
7025         * modules/spawn (Makefile.am): Likewise.
7026         * modules/stdarg (Makefile.am): Likewise.
7027         * modules/stdbool (Makefile.am): Likewise.
7028         * modules/stddef (Makefile.am): Likewise.
7029         * modules/stdint (Makefile.am): Likewise.
7030         * modules/stdio (Makefile.am): Likewise.
7031         * modules/stdlib (Makefile.am): Likewise.
7032         * modules/string (Makefile.am): Likewise.
7033         * modules/strings (Makefile.am): Likewise.
7034         * modules/sys_file (Makefile.am): Likewise.
7035         * modules/sys_ioctl (Makefile.am): Likewise.
7036         * modules/sys_select (Makefile.am): Likewise.
7037         * modules/sys_socket (Makefile.am): Likewise.
7038         * modules/sys_stat (Makefile.am): Likewise.
7039         * modules/sys_time (Makefile.am): Likewise.
7040         * modules/sys_times (Makefile.am): Likewise.
7041         * modules/sys_utsname (Makefile.am): Likewise.
7042         * modules/sys_wait (Makefile.am): Likewise.
7043         * modules/sysexits (Makefile.am): Likewise.
7044         * modules/termios (Makefile.am): Likewise.
7045         * modules/time (Makefile.am): Likewise.
7046         * modules/unistd (Makefile.am): Likewise.
7047         * modules/wchar (Makefile.am): Likewise.
7048         * modules/wctype-h (Makefile.am): Likewise.
7049         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7050
7051 2011-04-05  Bruno Haible  <bruno@clisp.org>
7052
7053         pipe2: Relicense under LGPLv2+.
7054         * modules/pipe2 (License): Change to LGPLv2+.
7055         Requested by Eric Blake, for libvirt.
7056
7057 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7058
7059         bootstrap: compute gnulib_extra_files after updating build_aux
7060         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7061         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7062
7063 2011-04-05  Eric Blake  <eblake@redhat.com>
7064
7065         bootstrap: preserve git whitelist item sorting
7066         * build-aux/bootstrap (sort_patterns): New function.
7067         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7068
7069 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7070
7071         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7072         sc_space_tab check.
7073
7074 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7075
7076         areadlink, areadlinkat: rewrite in terms of careadlinkat
7077         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7078         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7079         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7080         (malloc, realloc): Remove #undefs.
7081         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7082         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7083         readlink, ssize_t, stdint, unistd.
7084         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7085         areadlink, stdint.
7086
7087         careadlinkat: new module
7088         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7089         * modules/careadlinkat: New files, written by me with
7090         a review and feedback from Ben Pfaff in
7091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7092
7093 2011-04-01  Bruno Haible  <bruno@clisp.org>
7094
7095         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7096         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7097         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7098         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7099         Reported by Bruce Korb <bruce.korb@gmail.com>.
7100
7101 2011-04-01  Bruno Haible  <bruno@clisp.org>
7102
7103         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7104         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7105         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7106         * modules/wcpcpy (Depends-on): Add extensions.
7107         * modules/wcpncpy (Depends-on): Likewise.
7108         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7109         systems.
7110         * doc/posix-functions/wcpncpy.texi: Likewise.
7111         * doc/posix-functions/wcwidth.texi: Likewise.
7112
7113 2011-03-31  Eric Blake  <eblake@redhat.com>
7114
7115         nonblocking: fix mingw test failures
7116         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7117         non-blocking flag on regular file.
7118         (get_nonblocking_flag): Set errno on invalid fd.
7119         * tests/test-nonblocking.c (main): Avoid test failure on
7120         directories if fchdir is not active.
7121         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7122
7123 2011-03-31  Bruno Haible  <bruno@clisp.org>
7124
7125         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7126         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7127         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7128         Reported by Simon Josefsson <simon@josefsson.org>.
7129
7130 2011-03-31  Bruno Haible  <bruno@clisp.org>
7131         and Eric Blake  <eblake@redhat.com>
7132
7133         nonblocking: new module
7134         * modules/nonblocking: New module.
7135         * modules/nonblocking-tests: Likewise.
7136         * lib/nonblocking.h: New file.
7137         * lib/nonblocking.c: Likewise.
7138         * tests/test-nonblocking.c: New test.
7139         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7140
7141 2011-03-30  Bruno Haible  <bruno@clisp.org>
7142
7143         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7144         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7145         instead of 'printf' format for GCC >= 4.4.
7146         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7147         (fprintf, printf, vfprintf, vprintf): Declare with
7148         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7149         the system's vfprintf() function.
7150         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7151
7152 2011-03-30  Eric Blake  <eblake@redhat.com>
7153
7154         passfd: fix scoping bug
7155         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7156         before sendmsg/recvmsg.
7157
7158         passfd: standardize coding conventions
7159         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7160         can be learned at compile time.
7161         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7162         ifdefs.
7163         (sendfd, recvfd): Follow gnulib code conventions.
7164
7165         passfd: fix incorrect sendmsg arguments
7166         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7167         incorrect msg_controllen value.
7168         * modules/passfd-tests (Depends-on): Check for alarm.
7169         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7170         Reported by Bastien ROUCARIES.
7171
7172 2011-03-30  Bruno Haible  <bruno@clisp.org>
7173
7174         c-strcasestr: Relicense under LGPLv2+.
7175         * modules/c-strcasestr (License): Change to LGPLv2+.
7176         Requested by Eric Blake, for libvirt.
7177
7178 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7179
7180         * users.txt: Add libidn2.  Fix libtasn1 link.
7181
7182 2011-03-30  Jim Meyering  <meyering@redhat.com>
7183
7184         tests: readlink* ("",... fails with EINVAL on newer kernels
7185         readlink and readlinkat have typically failed with ENOENT for
7186         the invalid, empty file name,  "".  However, with the advent
7187         of linux-2.6.39, they fail with EINVAL.
7188         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7189         when operating on the empty file name.
7190         * tests/test-readlink.h (test_readlink): Likewise.
7191
7192 2011-03-29  Bruno Haible  <bruno@clisp.org>
7193
7194         Relicense some modules under LGPLv2+, for libidn2.
7195         * modules/array-mergesort (License): Change to LGPLv2+.
7196         * modules/c-strcaseeq (License): Likewise.
7197         * modules/striconveh (License): Likewise.
7198         * modules/striconveha (License): Likewise.
7199         * modules/uniconv/base (License): Likewise.
7200         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7201         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7202         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7203         * modules/unictype/base (License): Likewise.
7204         * modules/unictype/bidiclass-of (License): Likewise.
7205         * modules/unictype/category-M (License): Likewise.
7206         * modules/unictype/category-none (License): Likewise.
7207         * modules/unictype/category-of (License): Likewise.
7208         * modules/unictype/category-test (License): Likewise.
7209         * modules/unictype/category-test-withtable (License): Likewise.
7210         * modules/unictype/combining-class (License): Likewise.
7211         * modules/unictype/joiningtype-of (License): Likewise.
7212         * modules/unictype/scripts (License): Likewise.
7213         * modules/uninorm/base (License): Likewise.
7214         * modules/uninorm/canonical-decomposition (License): Likewise.
7215         * modules/uninorm/composition (License): Likewise.
7216         * modules/uninorm/decompose-internal (License): Likewise.
7217         * modules/uninorm/decomposition-table (License): Likewise.
7218         * modules/uninorm/nfc (License): Likewise.
7219         * modules/uninorm/nfd (License): Likewise.
7220         * modules/uninorm/u32-normalize (License): Likewise.
7221         * modules/unistr/base (License): Likewise.
7222         * modules/unistr/u32-cpy (License): Likewise.
7223         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7224         * modules/unistr/u32-to-u8 (License): Likewise.
7225         * modules/unistr/u32-uctomb (License): Likewise.
7226         * modules/unistr/u8-check (License): Likewise.
7227         * modules/unistr/u8-mblen (License): Likewise.
7228         * modules/unistr/u8-mbtouc (License): Likewise.
7229         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7230         * modules/unistr/u8-mbtoucr (License): Likewise.
7231         * modules/unistr/u8-prev (License): Likewise.
7232         * modules/unistr/u8-strlen (License): Likewise.
7233         * modules/unistr/u8-to-u32 (License): Likewise.
7234         * modules/unistr/u8-uctomb (License): Likewise.
7235         * modules/unitypes (License): Likewise.
7236         Requested by Simon Josefsson.
7237
7238 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7239
7240         lib-symbol-visibility: Add a notice.
7241         * modules/lib-symbol-visibility (Notice): New field.
7242
7243 2011-03-29  Bruno Haible  <bruno@clisp.org>
7244
7245         getaddrinfo: Doc fix.
7246         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7247         section "fixed in Gnulib".
7248
7249 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7250
7251         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7252         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7253
7254 2011-03-26  Bruno Haible  <bruno@clisp.org>
7255
7256         unictype/property-byname: Reduce the number of load-time relocations.
7257         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7258         (UC_PROPERTY_INDEX_*): New enumeration values.
7259         (uc_property_byname): Convert an index from the lookup table to an
7260         uc_property_t.
7261         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7262         values.
7263
7264 2011-03-26  Bruno Haible  <bruno@clisp.org>
7265
7266         unictype/property-byname: Allow omitted word separators and aliases.
7267         * lib/unictype/pr_byname.gperf: Add property names without word
7268         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7269         for 'space'.
7270
7271 2011-03-26  Bruno Haible  <bruno@clisp.org>
7272
7273         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7274         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7275         also hyphens to space.
7276         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7277         without spaces.
7278         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7279
7280 2011-03-26  Bruno Haible  <bruno@clisp.org>
7281
7282         unictype/joiningtype-byname: Recognize long names as well.
7283         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7284         a long name.
7285         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7286         unictype/joiningtype_byname.h.
7287         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7288         * lib/unictype/joiningtype_byname.gperf: New file.
7289         * modules/unictype/joiningtype-byname (Files): Add
7290         lib/unictype/joiningtype_byname.gperf.
7291         (Depends-on): Add gperf.
7292         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7293         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7294         long names.
7295
7296         Tests for module 'unictype/joiningtype-longname'.
7297         * modules/unictype/joiningtype-longname-tests: New file.
7298         * tests/unictype/test-joiningtype_longname.c: New file.
7299
7300         New module 'unictype/joiningtype-longname'.
7301         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7302         * lib/unictype/joiningtype_longname.c: New file.
7303         * modules/unictype/joiningtype-longname: New file.
7304         * modules/unictype/joiningtype-all (Depends-on): Add
7305         unictype/joiningtype-longname.
7306
7307 2011-03-26  Bruno Haible  <bruno@clisp.org>
7308
7309         unictype/bidiclass-byname: Recognize long names as well.
7310         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7311         name.
7312         * lib/unictype/bidi_byname.c: Include <string.h>,
7313         unictype/bidi_byname.h.
7314         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7315         * lib/unictype/bidi_byname.gperf: New file.
7316         * modules/unictype/bidiclass-byname (Files): Add
7317         lib/unictype/bidi_byname.gperf.
7318         (Depends-on): Add gperf.
7319         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7320         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7321         long names.
7322
7323         Tests for module 'unictype/bidiclass-longname'.
7324         * modules/unictype/bidiclass-longname-tests: New file.
7325         * tests/unictype/test-bidi_longname.c: New file.
7326
7327         New module 'unictype/bidiclass-longname'.
7328         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7329         * lib/unictype/bidi_longname.c: New file.
7330         * modules/unictype/bidiclass-longname: New file.
7331         * modules/unictype/bidiclass-all (Depends-on): Add
7332         unictype/bidiclass-longname.
7333
7334 2011-03-26  Bruno Haible  <bruno@clisp.org>
7335
7336         unictype/bidi*: Rename modules.
7337         * modules/unictype/bidiclass-all: Renamed from
7338         modules/unictype/bidicategory-all.
7339         * modules/unictype/bidiclass-name: Renamed from
7340         modules/unictype/bidiclass-name.
7341         (Description): Update.
7342         * modules/unictype/bidiclass-name-tests: Renamed from
7343         modules/unictype/bidicategory-name-tests.
7344         * modules/unictype/bidiclass-byname: Renamed from
7345         modules/unictype/bidicategory-byname.
7346         (Description): Update.
7347         * modules/unictype/bidiclass-byname-tests: Renamed from
7348         modules/unictype/bidicategory-byname-tests.
7349         * modules/unictype/bidiclass-of: Renamed from
7350         modules/unictype/bidicategory-of.
7351         (Description): Update.
7352         * modules/unictype/bidiclass-of-tests: Renamed from
7353         modules/unictype/bidicategory-of-tests.
7354         * modules/unictype/bidiclass-test: Renamed from
7355         modules/unictype/bidicategory-test.
7356         (Description): Update.
7357         * modules/unictype/bidiclass-test-tests: Renamed from
7358         modules/unictype/bidicategory-test-tests.
7359         * modules/unictype/bidicategory-all: New file, a simple redirection.
7360         * modules/unictype/bidicategory-name: Likewise.
7361         * modules/unictype/bidicategory-byname: Likewise.
7362         * modules/unictype/bidicategory-of: Likewise.
7363         * modules/unictype/bidicategory-test: Likewise.
7364         * modules/unictype/property-bidi-* (Dependencies): Update.
7365         * lib/unictype/bidi_*.c: Update comment.
7366
7367 2011-03-26  Bruno Haible  <bruno@clisp.org>
7368
7369         unictype/bidi*: Rename functions, part 2.
7370         * modules/unictype/bidicategory-name (configure.ac): Update required
7371         libunistring version.
7372         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7373
7374 2011-03-25  Bruno Haible  <bruno@clisp.org>
7375
7376         New module 'unictype/combining-class-all'.
7377         * modules/unictype/combining-class-all: New file.
7378
7379         Tests for module 'unictype/combining-class-byname'.
7380         * modules/unictype/combining-class-byname-tests: New file.
7381         * tests/unictype/test-combiningclass_byname.c: New file.
7382
7383         New module 'unictype/combining-class-byname'.
7384         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7385         * lib/unictype/combiningclass_byname.c: New file.
7386         * lib/unictype/combiningclass_byname.gperf: New file.
7387         * modules/unictype/combining-class-byname: New file.
7388
7389         Tests for module 'unictype/combining-class-longname'.
7390         * modules/unictype/combining-class-longname-tests: New file.
7391         * tests/unictype/test-combiningclass_longname.c: New file.
7392
7393         New module 'unictype/combining-class-longname'.
7394         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7395         * lib/unictype/combiningclass_longname.c: New file.
7396         * modules/unictype/combining-class-longname: New file.
7397
7398         Tests for module 'unictype/combining-class-name'.
7399         * modules/unictype/combining-class-name-tests: New file.
7400         * tests/unictype/test-combiningclass_name.c: New file.
7401
7402         New module 'unictype/combining-class-name'.
7403         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7404         * lib/unictype/combiningclass_name.c: New file.
7405         * modules/unictype/combining-class-name: New file.
7406
7407 2011-03-25  Bruno Haible  <bruno@clisp.org>
7408
7409         unictype/combining-class: Rename source files.
7410         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7411         of unictype/combining.h.
7412         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7413         Update.
7414         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7415         * modules/unictype/combining-class (Description): Fix.
7416         (Files, Makefile.am): Update.
7417         * tests/unictype/test-combiningclass.c: Renamed from
7418         tests/unictype/test-combining.c.
7419         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7420
7421 2011-03-25  Bruno Haible  <bruno@clisp.org>
7422
7423         unictype: Update list of canonical combining classes.
7424         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7425
7426 2011-03-25  Bruno Haible  <bruno@clisp.org>
7427
7428         unictype/category-byname: Recognize long names as well.
7429         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7430         a long name.
7431         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7432         unictype/categ_byname.h.
7433         (UC_CATEGORY_INDEX_*): New enumeration values.
7434         (uc_general_category_byname): Use uc_general_category_lookup and
7435         convert from index to value.
7436         * lib/unictype/categ_byname.gperf: New file.
7437         * modules/unictype/category-byname (Files): Add
7438         lib/unictype/categ_byname.gperf.
7439         (Depends-on): Add gperf.
7440         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7441         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7442         long names.
7443
7444         Tests for module 'unictype/category-longname'.
7445         * modules/unictype/category-longname-tests: New file.
7446         * tests/unictype/test-categ_longname.c: New file.
7447
7448         New module 'unictype/category-longname'.
7449         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7450         * lib/unictype/categ_longname.c: New file.
7451         * modules/unictype/category-longname: New file.
7452         * modules/unictype/category-all (Depends-on): Add it.
7453
7454 2011-03-25  Bruno Haible  <bruno@clisp.org>
7455
7456         Tests for module 'unictype/category-LC'.
7457         * modules/unictype/category-LC-tests: New file.
7458         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7459
7460         New module 'unictype/category-LC'.
7461         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7462         (UC_CATEGORY_LC): New declaration.
7463         (UC_CASED_LETTER): New macro.
7464         * lib/gen-uni-tables.c (is_category_LC): New function.
7465         (output_categories): Also handle category LC.
7466         (UC_CATEGORY_MASK_LC): New enumeration value.
7467         (general_category_byname): Also handle category LC.
7468         * lib/unictype/categ_LC.c: New file.
7469         * lib/unictype/categ_LC.h: New file, automatically generated.
7470         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7471         category LC.
7472         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7473         * modules/unictype/category-LC: New file.
7474         * modules/unictype/category-byname (Depends-on): Add
7475         unictype/category-LC.
7476         * modules/unictype/category-all (Depends-on): Likewise.
7477
7478 2011-03-25  Eric Blake  <eblake@redhat.com>
7479
7480         xmalloc: revert yesterday's regression
7481         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7482         realloc's underlying behavior (allowing allocation of zero-size
7483         objects, especially if malloc-gnu is also in use).
7484
7485 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7486
7487         maint.mk: add missing version to VC-tag
7488         * top/maint.mk: git tag was missing actual tag name; add it.
7489
7490         valgrind: do leak checking, and exit with code 1 on error (not 0)
7491         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7492         to VALGRIND.
7493
7494 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7495
7496         posix-modules: say what it does.
7497         * posix-modules: Add a line to the --help output saying what it does.
7498
7499 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7500
7501         xmalloc: Do not leak if underlying realloc is C99 compatible.
7502         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7503         This avoids a leak on C99-based systems.  See
7504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7505
7506 2011-03-24  Eric Blake  <eblake@redhat.com>
7507
7508         realloc: document portability problem
7509         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7510         passing 0 size to realloc.
7511
7512 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7513
7514         doc: update users.txt
7515         * users.txt: Add cvsps, tmpwatch
7516
7517 2011-03-23  Matt Rice  <ratmice@gmail.com>
7518
7519         doc: update users.txt
7520         * users.txt: Add gdb.
7521
7522 2011-03-23  Jim Meyering  <meyering@redhat.com>
7523
7524         doc: update users.txt
7525         Looking through matches up to the following URL (there are still
7526         several more pages), I found several projects that use gnulib:
7527         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7528         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7529         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7530
7531 2011-03-22  Bruno Haible  <bruno@clisp.org>
7532
7533         unictype/bidi*: Rename functions.
7534         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7535         uc_bidi_class, uc_is_bidi_class): New declarations.
7536         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7537         uc_bidi_category_byname.
7538         (uc_bidi_category_byname): New function.
7539         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7540         u_bidi_category_name.
7541         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7542         (uc_bidi_category_name): New function.
7543         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7544         uc_bidi_category.
7545         (uc_bidi_category): New function.
7546         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7547         uc_is_bidi_category. Invoke uc_bidi_class.
7548         (uc_is_bidi_category): New function.
7549         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7550         instead of uc_bidi_category_byname.
7551         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7552         instead of uc_bidi_category_name.
7553         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7554         uc_bidi_category.
7555         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7556         instead of uc_is_bidi_category.
7557
7558 2011-03-21  Bruno Haible  <bruno@clisp.org>
7559
7560         New module 'unictype/joininggroup-all'.
7561         * modules/unictype/joininggroup-all: New file.
7562
7563         Tests for module 'unictype/joininggroup-of'.
7564         * modules/unictype/joininggroup-of-tests: New file.
7565         * tests/unictype/test-joininggroup_of.c: New file.
7566         * tests/unictype/test-joininggroup_of.h: New file, automatically
7567         generated by gen-uni-tables.
7568
7569         New module 'unictype/joininggroup-of'.
7570         * modules/unictype/joininggroup-of: New file.
7571         * lib/unictype/joininggroup_of.c: New file.
7572         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7573         gen-uni-tables.
7574
7575         Tests for module 'unictype/joininggroup-byname'.
7576         * modules/unictype/joininggroup-byname-tests: New file.
7577         * tests/unictype/test-joininggroup_byname.c: New file.
7578
7579         New module 'unictype/joininggroup-byname'.
7580         * modules/unictype/joininggroup-byname: New file.
7581         * lib/unictype/joininggroup_byname.c: New file.
7582         * lib/unictype/joininggroup_byname.gperf: New file.
7583
7584         Tests for module 'unictype/joininggroup-name'.
7585         * modules/unictype/joininggroup-name-tests: New file.
7586         * tests/unictype/test-joininggroup_name.c: New file.
7587
7588         New module 'unictype/joininggroup-name'.
7589         * modules/unictype/joininggroup-name: New file.
7590         * lib/unictype/joininggroup_name.c: New file.
7591         * lib/unictype/joininggroup_name.h: New file.
7592
7593         New module 'unictype/joiningtype-all'.
7594         * modules/unictype/joiningtype-all: New file.
7595
7596         Tests for module 'unictype/joiningtype-of'.
7597         * modules/unictype/joiningtype-of-tests: New file.
7598         * tests/unictype/test-joiningtype_of.c: New file.
7599         * tests/unictype/test-joiningtype_of.h: New file, automatically
7600         generated by gen-uni-tables.
7601
7602         New module 'unictype/joiningtype-of'.
7603         * modules/unictype/joiningtype-of: New file.
7604         * lib/unictype/joiningtype_of.c: New file.
7605         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7606         gen-uni-tables.
7607
7608         Tests for module 'unictype/joiningtype-byname'.
7609         * modules/unictype/joiningtype-byname-tests: New file.
7610         * tests/unictype/test-joiningtype_byname.c: New file.
7611
7612         New module 'unictype/joiningtype-byname'.
7613         * modules/unictype/joiningtype-byname: New file.
7614         * lib/unictype/joiningtype_byname.c: New file.
7615
7616         Tests for module 'unictype/joiningtype-name'.
7617         * modules/unictype/joiningtype-name-tests: New file.
7618         * tests/unictype/test-joiningtype_name.c: New file.
7619
7620         New module 'unictype/joiningtype-name'.
7621         * modules/unictype/joiningtype-name: New file.
7622         * lib/unictype/joiningtype_name.c: New file.
7623
7624         unictype: Add support for Arabic shaping properties.
7625         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7626         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7627         declarations.
7628         (UC_JOINING_GROUP_*): New enumeration values.
7629         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7630         declarations.
7631         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7632         (unicode_joining_type): New variable.
7633         (UC_JOINING_GROUP_*): New enumeration values.
7634         (unicode_joining_group): New variable.
7635         (fill_arabicshaping, joining_type_as_c_identifier,
7636         output_joining_type_test, output_joining_type,
7637         joining_group_as_c_identifier, output_joining_group_test,
7638         output_joining_group): New functions.
7639         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7640         fill_arabicshaping and output_joining_type_test, output_joining_type,
7641         output_joining_group_test, output_joining_group.
7642         Reported by Simon Josefsson.
7643
7644 2011-03-21  Jim Meyering  <meyering@redhat.com>
7645
7646         strftime: fix a bug in yesterday's change
7647         * lib/strftime.c (add): Accommodate width's initial value of -1.
7648         Otherwise, nstrftime would copy uninitialized data into
7649         the result buffer.
7650
7651 2011-03-21  Jim Meyering  <meyering@redhat.com>
7652
7653         tests: add strftime-tests module
7654         * tests/test-strftime.c: New file.
7655         * modules/strftime-tests: New module.
7656
7657 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7658
7659         strftime: don't assume a byte count fits in 'int'
7660         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7661         found this problem by static analysis, using gcc -Wstrict-overflow
7662         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7663         on an integer overflow having undefined behavior, but it turns out
7664         that the argument is a size, which might not fit in 'int' anyway,
7665
7666 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7667
7668         stdio: don't require ignore_value around fwrite
7669
7670         This patch works around libc bug 11959
7671         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7672         Without this patch, applications must often write
7673         ignore_value (fwrite (...)) even though the ignore_value is
7674         not helpful here.  It's common to write many objects, using
7675         fwrite/printf/etc., and then use ferror to detect output error.
7676
7677         I considered making this patch optional, but decided against it,
7678         because libc is obviously being inconsistent here: there is no
7679         reason libc should insist that user code must inspect fwrite
7680         return's value without also insisting that it inspect printf's,
7681         putchar's, etc.  If user code wants to have a strict style where
7682         all these functions' values are checked (so that ferror need not
7683         be checked), we could add support for that style in a new gnulib
7684         module, but in the meantime it's better to be consistent and to
7685         support common usage.
7686
7687         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7688         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7689         that we are compiling in checking mode, and if not C++, and
7690         if not already wrapping fwrite for some other reason.
7691         (fwrite): #define to rpl_fwrite if the latter is defined.
7692
7693 2011-03-20  Bruno Haible  <bruno@clisp.org>
7694
7695         verror: Fix compilation error introduced on 2011-02-13.
7696         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7697         instead of __attribute__.
7698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7699
7700 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7701             Bruno Haible  <bruno@clisp.org>
7702
7703         socklen: do not depend on sys_socket
7704         While trying to modify Emacs to use gnulib's socklen module,
7705         I discovered a circular dependency: socklen depends on sys_socket
7706         and vice versa.  Emacs can use socklen, but it does not need
7707         sys_socket because it has its own substitute for sys/socket.h.
7708         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7709         gl_TYPE_SOCKLEN_T.
7710         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7711         gl_PREREQ_SYS_H_SOCKET.
7712         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7713         gl_PREREQ_SYS_H_SOCKET.
7714         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7715         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7716         * modules/socklen (Depends-on): Do not depend on sys_socket.
7717         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7718
7719 2011-03-20  Jim Meyering  <meyering@redhat.com>
7720
7721         maint.mk: sort file names *after* new transformation
7722         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7723         prefix would have led to an unwarranted failure in GNU parted.
7724         Sort after that transformation.
7725
7726 2011-03-19  Jim Meyering  <meyering@redhat.com>
7727
7728         maint.mk: fix po-file syntax-check rule
7729         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7730         Patch by Bruno Haible.
7731
7732 2011-03-19  Bruno Haible  <bruno@clisp.org>
7733
7734         socklen: Update comment.
7735         * m4/socklen.m4: Update comment about platforms.
7736
7737 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7738             Bruno Haible  <bruno@clisp.org>
7739
7740         inet_ntop, inet_pton: Simplify.
7741         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7742         documented to provide socklen_t and we already depend on sys_socket.
7743         * modules/inet_pton (Depends-on): Likewise.
7744         * lib/arpa_inet.in.h: Adjust comment.
7745
7746 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7747             Bruno Haible  <bruno@clisp.org>
7748
7749         netdb: Simplify.
7750         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7751         documented to provide socklen_t and we already depend on sys_socket.
7752         * lib/netdb.in.h: Adjust comment.
7753
7754 2011-03-19  Bruno Haible  <bruno@clisp.org>
7755
7756         sys_socket, netdb: Document problem with socklen_t.
7757         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7758         platforms.
7759         * doc/posix-headers/netdb.texi: Likewise.
7760
7761 2011-03-18  Eric Blake  <eblake@redhat.com>
7762
7763         maint.mk: let po check work in VPATH build
7764         * top/maint.mk (po_file): Allow cfg.mk override.
7765         (sc_po_check): Allow VPATH use.
7766         Reported by Jiri Denemark.
7767
7768 2011-03-16  Jim Meyering  <meyering@redhat.com>
7769
7770         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7771         Before, you would have had to create one .x-sc_ file per rule in order
7772         to exempt offending files.  Now, you may instead use a Make variable --
7773         usually defined in cfg.mk -- whose name identifies the affected rule.
7774         * top/maint.mk (_sc_excl): Define.
7775         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7776         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7777
7778 2011-03-13  Bruno Haible  <bruno@clisp.org>
7779
7780         ignore-value tests: Avoid warnings.
7781         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7782         empty for gcc < 3.4.
7783
7784 2011-03-13  Bruno Haible  <bruno@clisp.org>
7785
7786         passfd: Fix link error on Solaris.
7787         * modules/passfd (Description): Correct.
7788         (Depends-on): Add socketlib.
7789         (Link): New section.
7790         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7791
7792 2011-03-13  Bruno Haible  <bruno@clisp.org>
7793
7794         passfd: Fix link error on AIX 5.2.
7795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7796
7797 2011-03-13  Bruno Haible  <bruno@clisp.org>
7798
7799         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7800         * lib/sys_socket.in.h: Include <stddef.h>.
7801         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7802         CMSG_FIRSTHDR. Remove unused variable.
7803
7804 2011-03-13  Bruno Haible  <bruno@clisp.org>
7805
7806         passfd: Fix compilation error on OpenBSD.
7807         * lib/passfd.c: Include <sys/uio.h>.
7808
7809 2011-03-13  Bruno Haible  <bruno@clisp.org>
7810
7811         passfd test: Fix warnings.
7812         * tests/test-passfd.c: Include <sys/wait.h>.
7813         (main): Fix typo.
7814
7815 2011-03-13  Bruno Haible  <bruno@clisp.org>
7816
7817         passfd module, part 4, tweaks.
7818         * tests/test-passfd.c: Reorder includes.
7819         (main): Fix perror and printf calls.
7820
7821 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7822
7823         passfd module, part 4.
7824         * modules/passfd-tests: New file.
7825         * tests/test-passfd.c: New file.
7826
7827 2011-03-13  Jim Meyering  <meyering@redhat.com>
7828
7829         Makefile: rely on GNU make; derive syntax-check rule names
7830         Rather than requiring that each sc_ rule be listed as a dependent
7831         of "check", use features of GNU make to derive the list.
7832         * Makefile (syntax-check-rules): Define.
7833         (check): Depend on the new variable, not the hard-coded list.
7834
7835 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7836             Bruno Haible  <bruno@clisp.org>
7837
7838         passfd module, part 3.
7839         * lib/passfd.h (recvfd): Add a flags argument.
7840         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7841         (recvfd): Add a flags argument.
7842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7843         exists.
7844         * modules/passfd (Depends-on): Add cloexec.
7845         Suggested by Eric Blake.
7846
7847 2011-03-13  Bruno Haible  <bruno@clisp.org>
7848
7849         passfd module, part 2, tweaks.
7850         * modules/passfd (Files): Reorder.
7851         (Depends-on): Remove errno.
7852         (Include): Remove <sys/socket.h>, <sys/un.h>.
7853         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7854         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7855         specification header. Include <sys/socket.h> always. Don't include
7856         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7857         (sendfd): Clarify that it sets errno when it fails.
7858         (recvfd): Fix specification.
7859
7860 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7861
7862         passfd module, part 2.
7863         * modules/passfd: New file.
7864         * lib/passfd.h: New file.
7865         * lib/passfd.c: New file.
7866
7867 2011-03-12  Bruno Haible  <bruno@clisp.org>
7868
7869         wcswidth, mbswidth: Avoid integer overflow.
7870         * lib/wcswidth.c: Include <limits.h>.
7871         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7872         * lib/mbswidth.c: Include <limits.h>.
7873         (mbsnwidth): Avoid 'int' overflow.
7874         Reported by Jim Meyering.
7875
7876 2011-03-12  Bruno Haible  <bruno@clisp.org>
7877
7878         futimens, utimensat: Avoid endless recursion on Solaris 10.
7879         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7880         Solaris.
7881         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7882         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7883
7884 2011-03-11  Jim Meyering  <meyering@redhat.com>
7885
7886         maint.mk: relax a regexp to accommodate other formatting styles
7887         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7888         between "ngettext" and the following "(".
7889
7890 2011-03-11  Pádraig Brady <P@draigBrady.com>
7891
7892         maint.mk: suppress a false positive warning
7893         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7894         diagnostics are marked with ngettext.
7895
7896 2011-03-10  Eric Blake  <eblake@redhat.com>
7897
7898         wchar: add explicit dependencies, for Tru64
7899         * modules/mbmemcasecoll (Depends-on): Add wchar.
7900         * modules/mbtowc (Depends-on): Likewise.
7901         * modules/vasnprintf (Depends-on): Likewise.
7902         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7903         * modules/wctomb (Depends-on): Likewise.
7904         Reported by Peter O'Gorman.
7905
7906 2011-03-08  Bruno Haible  <bruno@clisp.org>
7907
7908         passfd module, part 1, tweaks.
7909         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7910         Improve indentation. Improve AC_MSG_CHECKING messages.
7911         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7912         gl_SOCKET_FAMILIES.
7913
7914 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7915
7916         passfd module, part 1.
7917         * m4/afunix.m4: New file.
7918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7919         sockets.
7920
7921 2011-03-08  Bruno Haible  <bruno@clisp.org>
7922
7923         regex-quote: New API.
7924         * lib/regex-quote.h: Include <stdbool.h>.
7925         (struct regex_quote_spec): New type.
7926         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7927         New declarations.
7928         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7929         'const struct regex_quote_spec *' argument.
7930         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7931         (pcre_special): New constant.
7932         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7933         New functions.
7934         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7935         'const struct regex_quote_spec *' argument.
7936         * modules/regex-quote (Depends-on): Add stdbool.
7937         * tests/test-regex-quote.c (check): Update for new API. Add test for
7938         anchored results.
7939         * NEWS: Mention the API change.
7940         Reported by Reuben Thomas and Eric Blake.
7941
7942 2011-03-06  Bruno Haible  <bruno@clisp.org>
7943
7944         regex-quote: Fix creation of POSIX extended regular expressions.
7945         * lib/regex-quote.c (ere_special): Add grouping and alternation
7946         operators.
7947
7948 2011-03-05  Bruno Haible  <bruno@clisp.org>
7949
7950         doc: Improve doc regarding autopoint vs. gnulib.
7951         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7952         disable autopoint while running autoreconf.
7953         Suggested by Ralf Wildenhues.
7954
7955 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7956
7957         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7958         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7959
7960 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7961
7962         parse-duration: remove xalloc.h dependency
7963         * lib/parse-duration.c (parse_period): handle NULL return from
7964         strdup instead of calling xstrdup().
7965         * modules/parse-duration: remove "xalloc" dependency
7966
7967 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7968
7969         bootstrap: honor m4_base when running aclocal
7970         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7971
7972 2011-03-02  Jim Meyering  <meyering@redhat.com>
7973
7974         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7975         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7976         on request from Matt Booth.
7977
7978 2011-03-01  Eric Blake  <eblake@redhat.com>
7979
7980         test-link: work on Hurd
7981         * tests/test-link.h (test_link): Hurd rejects linking directories
7982         with EISDIR instead of the POSIX-mandated EPERM.
7983
7984 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7985
7986         stdio: simplify by moving files to printf-posix, sigpipe
7987         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7988         since this symbol is needed only if printf is replaced.
7989         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7990         Require gl_ASM_SYMBOL_PREFIX.
7991         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7992         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7993         (Depends-on): Add 'raise'.
7994         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7995         * modules/stdio (Files): Remove lib/stdio-write.c,
7996         m4/asm-underscore.m4.
7997         (Depends-on): Remove 'raise'.
7998
7999         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8000         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8002         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8003
8004 2011-02-28  Bruno Haible  <bruno@clisp.org>
8005
8006         localcharset: Assume ANSI C behaviour of free().
8007         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8008         calling free().
8009         Suggested by Simon Josefsson <simon@josefsson.org>.
8010
8011 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8012             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8013             Bruno Haible  <bruno@clisp.org>  (tiny change)
8014
8015         On Cygwin, use /proc file system instead of win32 API.
8016         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8017         Win32 file names.
8018         (DllMain): Simplify by removing Cygwin specific code.
8019         (find_shared_library_fullname): Use Linux specific implementation also
8020         for Cygwin.
8021         (get_shared_library_fullname): Update accordingly.
8022         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8023         Win32 file names.
8024         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8025         Cygwin specific code.
8026
8027 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8028             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8029
8030         Fix OpenMP flag detection for various Fortran compilers.
8031         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8032         OpenMP-conditional compilation construct, to force compile
8033         failure with missing OpenMP flag.
8034         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8035
8036 2011-02-25  Eric Blake  <eblake@redhat.com>
8037
8038         strstr: expand test coverage
8039         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8040         compilation.
8041         * tests/test-memmem.c (main): Duplicate tests.
8042         * tests/test-strcasestr.c (main): Likewise.
8043         * tests/test-c-strcasestr.c (main): Likewise.
8044
8045 2011-02-25  Jim Meyering  <meyering@redhat.com>
8046
8047         maint.mk: detect missing-NL-at-EOF, too
8048         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8049         it also detects when a file lacks a newline at EOF.
8050         (require_exactly_one_NL_at_EOF_): Renamed from
8051         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8052         since people may well have .x-sc_... file names tied to the
8053         existing name.  Suggested by Eric Blake.
8054
8055 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8056
8057         dirname: move m4/dos.m4 functionality into lib/dosname.h
8058
8059         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8060         extracts symbols from it, puts them into config.h; but it's much
8061         easier to use the symbols directly.  filename.h already does this,
8062         but it disagrees with dos.m4 in some respects.  This patch
8063         introduces a different include file dosname.h that packages up
8064         dos.m4, and then later we can work on merging filename.h and
8065         dosname.h.  Applications that need only the easy-to-configure
8066         symbols should consider including dosname.h rather than dirname.h.
8067         * NEWS: Mention incompatible changes.
8068         * m4/dos.m4: Remove.
8069         * lib/dosname.h, modules/dosname: New files.
8070         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8071         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8072         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8073         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8074         Include dosname.h, not dirname.h.
8075         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8076         Include dosname.h, for definitions of symbols like ISSLASH
8077         that used to be in config.h.
8078         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8079         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8080         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8081         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8082         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8083         * modules/rmdir (Files): Likewise.
8084         * modules/stat (Files): Likewise.
8085         * modules/unlink (Files): Likewise.
8086         * modules/dirname-lgpl (Depends-on): Add dosname.
8087         * modules/lstat (Depends-on): Likewise.
8088         * modules/openat (Depends-on): Likewise.
8089         * modules/rmdir (Depends-on): Likewise.
8090         * modules/savewd (Depends-on): Likewise.
8091         * modules/stat (Depends-on): Likewise.
8092         * modules/unlink (Depends-on): Likewise.
8093         * modules/openat (Depends-on): Remove dirname-lgpl.
8094         * modules/savewd (Depends-on): Likewise.
8095         * tests/test-dirname.c: Do not use removed symbols like
8096         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8097         the remaining symbols, e.g., ISSLASH ('\\').
8098
8099 2011-02-25  Eric Blake  <eblake@redhat.com>
8100
8101         strstr: revert patches that introduced bug and pessimization
8102         * lib/str-two-way.h: Add another reference.
8103         (two_way_short_needle, two_way_long_needle): Revert changes from
8104         2011-02-24; they pessimize search speed.
8105         (critical_factorization): Partially revert changes from
8106         2010-06-22; they violate the requirement that the left half of the
8107         needle be smaller than the period of the needle.
8108
8109 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         filenamecat: remove unnecessary dependency on dirname-lgpl
8112         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8113         is no direct dependency, just an indirect one via filenamecat-lgpl.
8114
8115         remove: remove unnecessary use of m4/dos.m4
8116         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8117         * modules/remove (FILES): Remove m4/dos.m4.
8118
8119         * lib/openat-proc.c: Don't include dirname.h; not needed.
8120
8121         backupfile: remove unnecessary use of m4/dos.m4
8122         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8123         of its symbols are used by the backupfile code.  backupfile.c does
8124         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8125         for the rare case of programs that want all their backup file
8126         names to live within 8+3 limits, and dos.m4 doesn't address that.
8127         * modules/backupfile (Files): Remove m4/dos.m4.
8128
8129 2011-02-24  Jim Meyering  <meyering@redhat.com>
8130
8131         strstr: fix a bug whereby strstr would mistakenly return NULL
8132         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8133         in period calculation.
8134         (two_way_long_needle): Likewise.
8135         The original problem was reported by Mike Stump in
8136         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8137         Ralf Wildenhues provided the short needle and haystack.
8138         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8139         Add a more involved test to trigger the bug in two_way_long_needle.
8140
8141 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8142
8143         gnulib-tool: remove use of bold display in help screen
8144         * gnulib-tool (func_usage): Do not use bold display anymore in the
8145         help screen.  That was just meant to be a temporary emphasis for a
8146         backward-incompatible change.
8147
8148 2011-02-23  Bruno Haible  <bruno@clisp.org>
8149
8150         Fix misindentation of preprocessor directives.
8151         * lib/argp-namefrob.h: Reindent preprocessor directives.
8152         * lib/getopt_int.h (struct _getopt_data): Likewise.
8153         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8154         * lib/vasnprintf.c (decode_long_double): Likewise.
8155         * tests/test-argmatch.c: Insert blank lines, for clarity.
8156         * tests/test-exclude.c: Likewise.
8157
8158 2011-02-22  Bruno Haible  <bruno@clisp.org>
8159
8160         ioctl: Fix for MacOS X in 64-bit mode.
8161         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8162         value.
8163         Suggested by Eric Blake.
8164         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8165
8166 2011-02-22  Jim Meyering  <meyering@redhat.com>
8167
8168         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8169         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8170         in lib/.
8171
8172 2011-02-22  Eric Blake  <eblake@redhat.com>
8173
8174         maint: avoid any CDPATH issue
8175         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8176
8177         maint: adjust cpp indentation for my modules, as well
8178         * Makefile (sc_cpp_indent_check): Add my name.
8179         * lib/fbufmode.c: Filter through cppi.
8180         * lib/fpurge.c: Likewise.
8181         * lib/freadable.c: Likewise.
8182         * lib/freading.c: Likewise.
8183         * lib/fwritable.c: Likewise.
8184         * lib/fwriting.c: Likewise.
8185         * lib/sigaction.c: Likewise.
8186
8187 2011-02-22  Jim Meyering  <meyering@redhat.com>
8188
8189         maint: adjust cpp indentation to reflect nesting depth
8190         I.e., in a block of code that begins with an unnested "#if",
8191         put one space between the "#" in column 1 and following token.
8192         For example,
8193         -#include <sys/vfs.h>
8194         +# include <sys/vfs.h>
8195         Do this only in .c files that are part of a module I maintain.
8196         * lib/linkat.c: Filter through cppi.
8197         * lib/nanosleep.c: Likewise.
8198         * lib/openat.c: Likewise.
8199         * lib/openat-die.c: Likewise.
8200         * lib/dup3.c: Likewise.
8201         * lib/fchownat.c: Likewise.
8202         * lib/flock.c: Likewise.
8203         * lib/fsync.c: Likewise.
8204         * lib/fts.c: Likewise.
8205         * lib/getpass.c: Likewise.
8206         * lib/gettimeofday.c: Likewise.
8207         * lib/userspec.c: Likewise.
8208         * Makefile (sc_cpp_indent_check): New rule, to check this.
8209
8210 2011-02-22  Bruno Haible  <bruno@clisp.org>
8211
8212         New module 'wctomb'.
8213         * lib/stdlib.in.h (wctomb): New declaration.
8214         * lib/wctomb.c: New file.
8215         * lib/wctomb-impl.h: New file.
8216         * m4/wctomb.m4: New file.
8217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8218         REPLACE_WCTOMB.
8219         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8220         REPLACE_WCTOMB.
8221         * modules/wctomb: New file.
8222         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8223         * doc/posix-functions/wctomb.texi: Mention the new module.
8224         * modules/wctob (Depends-on): Add wctomb.
8225
8226 2011-02-22  Bruno Haible  <bruno@clisp.org>
8227
8228         New module 'mbtowc'.
8229         * lib/stdlib.in.h (mbtowc): New declaration.
8230         * lib/mbtowc.c: New file.
8231         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8232         * m4/mbtowc.m4: New file.
8233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8234         REPLACE_MBTOWC.
8235         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8236         REPLACE_MBTOWC.
8237         * modules/mbtowc: New file.
8238         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8239         * doc/posix-functions/mbtowc.texi: Mention the new module.
8240         * modules/btowc (Depends-on): Add mbtowc.
8241
8242 2011-02-22  Bruno Haible  <bruno@clisp.org>
8243
8244         wcrtomb: Add more tests for native Windows platforms.
8245         * tests/test-wcrtomb-w32-1.sh: New file.
8246         * tests/test-wcrtomb-w32-2.sh: New file.
8247         * tests/test-wcrtomb-w32-3.sh: New file.
8248         * tests/test-wcrtomb-w32-4.sh: New file.
8249         * tests/test-wcrtomb-w32-5.sh: New file.
8250         * tests/test-wcrtomb-w32.c: New file.
8251         * modules/wcrtomb-tests (Files): Add them.
8252         (Makefile.am): Arrange to run these tests.
8253         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8254         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8255
8256 2011-02-20  Bruno Haible  <bruno@clisp.org>
8257
8258         wcrtomb: Enhance test.
8259         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8260
8261 2011-02-20  Bruno Haible  <bruno@clisp.org>
8262
8263         mbrtowc: Tiny optimization.
8264         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8265
8266 2011-02-20  Jim Meyering  <meyering@redhat.com>
8267
8268         test-exclude.c: remove unmatched #endif
8269         * tests/test-exclude.c: Remove stray #endif, left over from
8270         the change of a week ago.
8271
8272 2011-02-19  Jim Meyering  <meyering@redhat.com>
8273
8274         git-version-gen: skip "-dirty" check when appropriate
8275         * build-aux/git-version-gen: Don't run any git commands when the
8276         version string comes from .tarball-version.  Prior to this, we
8277         would run git update-index --refresh even from a just-unpacked
8278         tarball directory, and that could affect a .git/ directory in a
8279         parent of the build directory.  Reported by Mike Frysinger.
8280
8281 2011-02-19  Bruno Haible  <bruno@clisp.org>
8282
8283         unictype/property-byname: Reduce the size of the 'data' segment.
8284         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8285
8286 2011-02-19  Bruno Haible  <bruno@clisp.org>
8287
8288         unictype/scripts: Reduce the size of the 'data' segment.
8289         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8290         '%pic'.
8291         * lib/unictype/scripts_byname.gperf: Regenerated.
8292
8293 2011-02-19  Bruno Haible  <bruno@clisp.org>
8294
8295         stdint: Update documentation.
8296         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8297
8298 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8299
8300         stdint: omit redundant check for wchar.h
8301         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8302         always tests whether wchar.h exists, so remove the now-redundant test.
8303
8304 2011-02-18  Bruno Haible  <bruno@clisp.org>
8305
8306         stdint: Cut dependency to module 'wchar'.
8307         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8308         include the necessary prerequisites.
8309         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8310         * modules/stdint (Depends-on): Remove wchar.
8311         (Makefile.am): Substitute HAVE_WCHAR_H.
8312         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8313
8314 2011-02-18  Eric Blake  <eblake@redhat.com>
8315
8316         longlong: skip, rather than fail, on cross-compilation
8317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8318         when cross-compiling; regression from 2011-02-16.
8319
8320 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8321
8322         * NEWS: Mention 2011-02-08 change to stdlib.
8323
8324 2011-02-17  Bruno Haible  <bruno@clisp.org>
8325
8326         getloadavg: Add comments about platforms.
8327         * m4/getloadavg.m4: Add comment.
8328         * lib/getloadavg.c: Likewise.
8329
8330 2011-02-17  Bruno Haible  <bruno@clisp.org>
8331
8332         getloadavg: Fix link error on Solaris 2.6.
8333         * modules/getloadavg (Link): New section.
8334         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8335         linking test-getloadavg.
8336         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8337         getloadavg.
8338
8339 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8340
8341         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8342         It was 'int', but this doesn't match the IRIX 6.5 manual.
8343         Suggested by Bruno Haible in
8344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8345
8346 2011-02-17  Bruno Haible  <bruno@clisp.org>
8347
8348         havelib: Fix comments.
8349         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8350         change.
8351
8352 2011-02-17  Bruno Haible  <bruno@clisp.org>
8353
8354         havelib: Update config.rpath.
8355         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8356
8357 2011-02-17  Bruno Haible  <bruno@clisp.org>
8358
8359         getloadavg test: Add some plausibility checks.
8360         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8361         is improbable.
8362
8363 2011-02-16  Eric Blake  <eblake@redhat.com>
8364
8365         maintainer-makefile: make syntax-check a no-op from tarballs
8366         * top/maint.mk (no-vc-detected): New rule.
8367         (local-checks-available): Use it to avoid hanging if someone tries
8368         'make syntax-check' from a tarball.  Also append to any non-syntax
8369         checks already defined in cfg.mk.
8370
8371 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8372
8373         longlong: tune, particularly for common case of c99
8374
8375         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8376         or running anything if c99, or if unsigned long long int does not
8377         work.  In either case, we know the answer without further tests.
8378         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8379         it at most once, and use its results for both long long int and
8380         unsigned long long int.  This is more likely to be efficient in
8381         the common case where the program wants to check for both long
8382         long int and unsigned long long int.
8383         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8384         since the answer is already known.
8385
8386 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         getloadavg: set errno
8389         * lib/getloadavg.c: Set errno when returning -1.  If no other
8390         error number looks appropriate, set it to ENOSYS if the getloadavg
8391         looks like it can't possibly ever work, ENOTSUP otherwise.
8392         Suggested by Bruno Haible in
8393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8394
8395         getloadavg: trim unused parts and speed up 'configure'
8396         * NEWS: Document this.
8397         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8398         always compiled if getloadavg is absent.
8399         Move test code to ...
8400         * tests/test-getloadavg.c: New file, containing previous
8401         contents of test from lib/getloadavg.c.  It also contains
8402         suggestions by Bruno Haible in
8403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8404         * modules/getloadavg-tests: New file.
8405         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8406         Do tests in the same order as they're needed for getloadavg.c.
8407         Omit setgid-related tests that generate symbols KMEM_GROUP,
8408         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8409         Do only the tests that are needed to see whether the system has
8410         getloadavg, moving the other tests into ...
8411         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8412         NLIST_NAME_UNION; nobody should be using it.  Do not define
8413         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8414         relevant, as the user of this module shouldn't care how getloadavg
8415         is implemented.
8416
8417         getloadavg: omit unused var
8418         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8419
8420 2011-02-15  Jim Meyering  <meyering@redhat.com>
8421
8422         doc: update users.txt
8423         * users.txt: Update iwhd's URL.
8424
8425 2011-02-13  Bruno Haible  <bruno@clisp.org>
8426
8427         Consistent macro naming for macros that use GCC __attribute__.
8428         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8429         _ATTRIBUTE_NONNULL_.
8430         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8431         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8432         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8433         ATTRIBUTE_DEPRECATED.
8434         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8435         ATTRIBUTE_NORETURN.
8436         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8437         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8438         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8439         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8440         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8441         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8442         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8443         ATTRIBUTE_SENTINEL.
8444         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8445         ATTRIBUTE_RETURN_CHECK.
8446         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8447         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8448         ATTRIBUTE_NORETURN.
8449         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8450         Reported by Paul Eggert.
8451
8452 2011-02-13  Bruno Haible  <bruno@clisp.org>
8453
8454         Don't interfere with a program's definition of __attribute__.
8455         * lib/argp.h (__attribute__): Remove definition.
8456         (_GL_ATTRIBUTE_FORMAT): New macro.
8457         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8458         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8459         (_GL_ATTRIBUTE_FORMAT): New macro.
8460         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8461         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8462         GCC 3 or newer.
8463         * lib/error.h (__attribute__): Remove definition.
8464         (_GL_ATTRIBUTE_FORMAT): New macro.
8465         (error, error_at_line): Use it.
8466         * lib/hash.h (__attribute__): Remove definition.
8467         (ATTRIBUTE_WUR): Update definition. Define always.
8468         * lib/openat.h (__attribute__): Remove definition.
8469         (ATTRIBUTE_NORETURN): Update definition. Define always.
8470         * lib/sigpipe-die.h (__attribute__): Remove definition.
8471         (ATTRIBUTE_NORETURN): Update definition. Define always.
8472         * lib/vasnprintf.h (__attribute__): Remove definition.
8473         (_GL_ATTRIBUTE_FORMAT): New macro.
8474         (asnprintf, vasnprintf): Use it.
8475         * lib/xalloc.h (__attribute__): Remove definition.
8476         (ATTRIBUTE_NORETURN): Update definition. Define always.
8477         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8478         * lib/xmemdup0.h (__attribute__): Remove definition.
8479         (ATTRIBUTE_NORETURN): Update definition. Define always.
8480         * lib/xprintf.h (__attribute__): Remove definition.
8481         (_GL_ATTRIBUTE_FORMAT): New macro.
8482         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8483         * lib/xstrtol.h (__attribute__): Remove definition.
8484         (ATTRIBUTE_NORETURN): Update definition. Define always.
8485         * lib/xvasprintf.h (__attribute__): Remove definition.
8486         (_GL_ATTRIBUTE_FORMAT): New macro.
8487         (xasprintf, xvasprintf): Use it.
8488         * tests/test-argmatch.c (__attribute__): Remove definition.
8489         (ATTRIBUTE_NORETURN): Update definition. Define always.
8490         * tests/test-exclude.c (__attribute__): Remove definition.
8491         (ATTRIBUTE_NORETURN): Update definition. Define always.
8492         Reported by Paul Eggert.
8493
8494 2011-02-13  Bruno Haible  <bruno@clisp.org>
8495
8496         mbrtowc: Add more tests for native Windows platforms.
8497         * tests/test-mbrtowc-w32-1.sh: New file.
8498         * tests/test-mbrtowc-w32-2.sh: New file.
8499         * tests/test-mbrtowc-w32-3.sh: New file.
8500         * tests/test-mbrtowc-w32-4.sh: New file.
8501         * tests/test-mbrtowc-w32-5.sh: New file.
8502         * tests/test-mbrtowc-w32.c: New file.
8503         * modules/mbrtowc-tests (Files): Add them.
8504         (Makefile.am): Arrange to run these tests.
8505         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8506         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8507
8508 2011-02-13  Bruno Haible  <bruno@clisp.org>
8509
8510         mbrtowc: Work around native Windows bug.
8511         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8512         guess when no suitable locale for testing was found.
8513         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8514
8515 2011-02-13  Bruno Haible  <bruno@clisp.org>
8516
8517         mbsinit: Work around mingw bug.
8518         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8519         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8520         Windows.
8521         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8522
8523 2011-02-13  Bruno Haible  <bruno@clisp.org>
8524
8525         mbsinit: Don't crash for a NULL argument.
8526         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8527         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8528
8529 2011-02-13  Bruno Haible  <bruno@clisp.org>
8530
8531         Don't interfere with a program's definition of __attribute__.
8532         * lib/stdio.in.h (__attribute__): Remove definition.
8533         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8534         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8535         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8536         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8537         * lib/string.in.h (__attribute__): Remove definition.
8538         Reported by Paul Eggert.
8539
8540 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8541
8542         stdlib: don't get in the way of non-GCC __attribute__
8543         See thread starting at
8544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8545         Revert previous stdlib change, installing the following instead:
8546         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8547         to get in the way of a non-GCC compiler that supports __attribute__.
8548         (_GL_ATTRIBUTE_RETURN): New macro.
8549         (_Exit): Use it instead of __attribute__.
8550
8551 2011-02-12  Bruno Haible  <bruno@clisp.org>
8552
8553         quotearg test: Avoid test failure on mingw.
8554         * tests/test-quotearg.sh: Convert the locale identifier from native
8555         Windows syntax to Unix syntax.
8556
8557 2011-02-12  Bruno Haible  <bruno@clisp.org>
8558
8559         setlocale: Prefer gnulib's override over libintl's override.
8560         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8561         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8562         GNULIB_defined_setlocale is set.
8563
8564 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8565
8566         stdlib: support non-GCC __attribute__
8567
8568         Fix a serious and tricky problem encountered when attempting to
8569         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8570         5.5, but it crashed due to memory corruption on Solaris 10 with
8571         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8572         bits that are otherwise zero.  This tagging is optional inside
8573         Emacs but is preferred and is used when __attribute__ ((__aligned
8574         (8))) works, as it does with both recent-enough GCC and with Sun C
8575         5.11.  However, Sun C 5.11 is not GCC and does not #define
8576         __GNUC__ and __GNUC_MINOR__.
8577
8578         When I added the getloadavg module to Emacs, it brought in
8579         stdlib.in.h, which contained this fragment:
8580
8581            #ifndef __attribute__
8582            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8583            #  define __attribute__(Spec)   /* empty */
8584            # endif
8585            #endif
8586
8587         When files that include <stdlib.h> were compiled with Sun C 5.11,
8588         the above code disabled __attribute__ ((__aligned (8))), which
8589         caused variables to not be properly aligned, which eventually led
8590         to the pointer corruption mentioned above.  (This was a bit hard
8591         to diagnose, unfortunately.)
8592
8593         Several "#define __attribute__(X) /* empty */" code snippets need
8594         to be eradicated from Gnulib to work with non-GCC compilers that
8595         support __attribute__.  The Autoconf way to do this is to test for
8596         each kind of attribute that we want support for, and selectively
8597         enable that in source code.
8598
8599         Fix this problem just for stdlib.h, by adding a test for the
8600         __noreturn__ attribute, and change stdlib.in.h to use that test
8601         when needed.  This technique can be easily generalized to the
8602         other *.in.h files and attributes, and a similar technique can be
8603         used for *.h and *.c files.  This patch is enough to solve the
8604         problem for Emacs + getloadavg, and I thought I'd publish it for
8605         feedback before undertaking further, similar fixes in other
8606         modules.
8607
8608         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8609         because it's not needed for stdlib.h.  It merely substitutes the
8610         value directly into stdlib.h.  We may well need to #define it, or
8611         similar symbols, for other modules, but it's nice to also have an
8612         option to not #define it for applications like Emacs that do not
8613         need it.
8614
8615         * lib/stdlib.in.h (__attribute__): Do not #define.
8616         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8617         be defined only if the _Exit module is also used.
8618         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8620         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8621         platforms.
8622         * modules/_Exit (Files): Add m4/attribute.m4.
8623         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8624         * m4/attribute.m4: New file.
8625
8626 2011-02-12  Bruno Haible  <bruno@clisp.org>
8627
8628         wcsrtombs: Work around bug on native Windows.
8629         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8630         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8631         instead of len.
8632         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8633
8634 2011-02-12  Bruno Haible  <bruno@clisp.org>
8635
8636         mbsrtowcs: Work around bug on native Windows.
8637         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8638         against mingw bug.
8639         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8640
8641 2011-02-12  Bruno Haible  <bruno@clisp.org>
8642
8643         Avoid setlocale bugs in tests.
8644         * modules/btowc (Dependencies): Add setlocale.
8645         * modules/c-strcase (Dependencies): Likewise.
8646         * modules/mbmemcasecmp (Dependencies): Likewise.
8647         * modules/mbmemcasecoll (Dependencies): Likewise.
8648         * modules/mbrtowc (Dependencies): Likewise.
8649         * modules/mbscasecmp (Dependencies): Likewise.
8650         * modules/mbscasestr (Dependencies): Likewise.
8651         * modules/mbschr (Dependencies): Likewise.
8652         * modules/mbscspn (Dependencies): Likewise.
8653         * modules/mbsinit (Dependencies): Likewise.
8654         * modules/mbsncasecmp (Dependencies): Likewise.
8655         * modules/mbsnrtowcs (Dependencies): Likewise.
8656         * modules/mbspbrk (Dependencies): Likewise.
8657         * modules/mbspcasecmp (Dependencies): Likewise.
8658         * modules/mbsrchr (Dependencies): Likewise.
8659         * modules/mbsrtowcs (Dependencies): Likewise.
8660         * modules/mbsspn (Dependencies): Likewise.
8661         * modules/mbsstr (Dependencies): Likewise.
8662         * modules/nl_langinfo (Dependencies): Likewise.
8663         * modules/quotearg (Dependencies): Likewise.
8664         * modules/unicase/locale-language (Dependencies): Likewise.
8665         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8666         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8667         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8668         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8669         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8670         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8671         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8672         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8673         * modules/vasnprintf-posix (Dependencies): Likewise.
8674         * modules/wcrtomb (Dependencies): Likewise.
8675         * modules/wcsnrtombs (Dependencies): Likewise.
8676         * modules/wcsrtombs (Dependencies): Likewise.
8677
8678 2011-02-12  Bruno Haible  <bruno@clisp.org>
8679
8680         setlocale: Workaround native Windows bug.
8681         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8682         succeeds but sets LC_CTYPE to "C", report a failure.
8683         * tests/test-setlocale2.sh: New file.
8684         * tests/test-setlocale2.c: New file.
8685         * modules/setlocale-tests (Files): Add the new files.
8686         (Makefile.am): Enable test-setlocale2.sh test.
8687         * doc/posix-functions/setlocale.texi: Mention workaround.
8688
8689 2011-02-11  Bruno Haible  <bruno@clisp.org>
8690
8691         Tests for module 'setlocale'.
8692         * modules/setlocale-tests: New file.
8693         * tests/test-setlocale1.sh: New file.
8694         * tests/test-setlocale1.c: New file.
8695
8696         New module 'setlocale'.
8697         * lib/locale.in.h (setlocale): New declaration.
8698         * lib/setlocale.c: New file, based on
8699         gettext/gettext-runtime/intl/setlocale.c.
8700         * m4/setlocale.m4: New file.
8701         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8702         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8703         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8704         REPLACE_SETLOCALE.
8705         * modules/setlocale: New file.
8706         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8707         * doc/posix-functions/setlocale.texi: Mention the new module.
8708
8709 2011-02-11  Bruno Haible  <bruno@clisp.org>
8710
8711         Prepare for locale dependent tests on mingw.
8712         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8713         because it has the wrong locale encoding.
8714         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8715         French_France.1252 instead of "fr".
8716         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8717         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8718         because it has the wrong locale encoding.
8719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8720         native Windows, try Turkish_Turkey.65001.
8721         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8722         Chinese_China.54936.
8723
8724         Prepare for locale dependent tests on mingw.
8725         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8726         differently.
8727         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8728         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8730         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8731
8732 2011-02-11  Eric Blake  <eblake@redhat.com>
8733
8734         strptime: avoid compiler warnings
8735         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8736         compiler warnings about dead code.
8737         Reported by Daniel P. Berrange.
8738
8739 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8740
8741         doc: update users.txt
8742         * users.txt: Add rcs.
8743
8744 2011-02-10  John W. Eaton  <jwe@gnu.org>
8745
8746         doc: update users.txt
8747         * users.txt: Add octave.
8748
8749 2011-02-10  Jim Meyering  <meyering@redhat.com>
8750
8751         doc: update users.txt
8752         * users.txt: Add iwhd.
8753
8754 2011-02-09  Bruno Haible  <bruno@clisp.org>
8755
8756         gnulib-tool: Make copyright notice adjustment more robust.
8757         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8758         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8759         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8760         License".
8761         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8762
8763 2011-02-06  Bruno Haible  <bruno@clisp.org>
8764
8765         New module 'towctrans'.
8766         * modules/towctrans: New file.
8767         * lib/wctype.in.h (towctrans): New declaration.
8768         * lib/towctrans.c: New file.
8769         * lib/towctrans-impl.h: New file.
8770         * m4/towctrans.m4: New file.
8771         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8772         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8773         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8774         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8775         * doc/posix-functions/towctrans.texi: Mention the new module.
8776
8777 2011-02-06  Bruno Haible  <bruno@clisp.org>
8778
8779         New module 'wctrans'.
8780         * modules/wctrans: New file.
8781         * lib/wctype.in.h (wctrans): New declaration.
8782         * lib/wctrans.c: New file.
8783         * lib/wctrans-impl.h: New file.
8784         * m4/wctrans.m4: New file.
8785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8786         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8787         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8788         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8789         * doc/posix-functions/wctrans.texi: Mention the new module.
8790
8791 2011-02-06  Bruno Haible  <bruno@clisp.org>
8792
8793         New module 'iswctype'.
8794         * modules/iswctype: New file.
8795         * lib/wctype.in.h (iswctype): New declaration.
8796         * lib/iswctype.c: New file.
8797         * lib/iswctype-impl.h: New file.
8798         * m4/iswctype.m4: New file.
8799         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8800         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8801         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8802         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8803         * doc/posix-functions/iswctype.texi: Mention the new module and the
8804         HP-UX 11.00 problem.
8805
8806 2011-02-06  Bruno Haible  <bruno@clisp.org>
8807
8808         New module 'wctype'.
8809         * modules/wctype: Change to represent the wctype() substitute.
8810         * lib/wctype.in.h (wctype): New declaration.
8811         * lib/wctype.c: New file.
8812         * lib/wctype-impl.h: New file.
8813         * m4/wctype.m4: New file.
8814         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8815         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8816         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8817         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8818         * doc/posix-functions/wctype.texi: Mention the new module and the
8819         HP-UX 11.00 problem.
8820
8821 2011-02-06  Bruno Haible  <bruno@clisp.org>
8822
8823         wctype-h: Ensure wctype_t and wctrans_t are defined.
8824         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8825         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8826         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8827         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8828         HAVE_WCTRANS_T.
8829         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8830
8831 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8832
8833         flock: fix license typo
8834
8835         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8836         omitted.
8837
8838 2011-02-08  Bruno Haible  <bruno@clisp.org>
8839
8840         Split large sed scripts, for HP-UX sed.
8841         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8842         to avoid HP-UX limit of 99 commands, in the near future.
8843         * modules/stdlib (Makefile.am): Likewise.
8844         * modules/unistd (Makefile.am): Likewise.
8845         * modules/wchar (Makefile.am): Likewise.
8846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8847         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8849
8850 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8851             Bruno Haible  <bruno@clisp.org>
8852
8853         stdlib: improve random_r modularization
8854         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8855         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8856         you also need the random_r module to get this material right.
8857         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8858         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8859         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8860
8861 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8862
8863         stdlib: don't depend on stdint
8864         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8865         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8866         be independent of whether stdint.h is needed.
8867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8868         here, instead of ...
8869         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8870         struct random_data should be using the random_r module, not just
8871         the stdlib module (which wouldn't make sense: what package needs
8872         just struct random_data without also needing random_r?).
8873         * modules/stdlib (Depends-on): Remove stdint.
8874
8875         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8876         See the thread rooted at
8877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8878         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8879         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8880         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8881         __VMS)); previously it was always included (via fcntl--.h).
8882         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8883         hand; this is good enough for load averages.  Also, do not use
8884         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8885         flags directly if available and don't bother otherwise.  (Packages
8886         that need the extra reliability should use the modules that define
8887         these flags on older platforms that lack them.)
8888         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8889         fcntl-safer.
8890
8891 2011-02-08  Jim Meyering  <meyering@redhat.com>
8892
8893         di-set.h, ino-map.h: add multiple-inclusion guard
8894         Technically, the guard is required only for ino-map.h, due to its
8895         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8896         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8897         * lib/ino-map.h: Likewise.
8898
8899 2011-02-06  Bruno Haible  <bruno@clisp.org>
8900
8901         iswblank: Ensure declaration on glibc systems.
8902         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8903         * modules/iswblank (Dependencies): Add 'extensions'.
8904         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8905
8906 2011-02-06  Bruno Haible  <bruno@clisp.org>
8907
8908         New module 'iswblank'.
8909         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8910         * modules/iswblank: New file.
8911         * modules/wctype-h (Files): Remove lib/iswblank.c.
8912         (Makefile.am): Substitute GNULIB_ISWBLANK.
8913         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8914         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8915         (gl_WCTYPE_H_DEFAULTS): New macro.
8916         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8917         * modules/iswblank-tests: New file.
8918         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8919         * tests/test-wctype-h.c (main): Remove iswblank tests.
8920         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8921         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8922         of 'wctype-h'.
8923         * NEWS: Mention the change.
8924         * modules/mbchar (Depends-on): Add iswblank.
8925
8926 2011-02-08  Bruno Haible  <bruno@clisp.org>
8927
8928         di-set tests: Refactor.
8929         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8930         unnecessary includes.
8931         (ASSERT): Remove macro.
8932         (main): Make C90 compliant by avoiding variable declaration after
8933         statement.
8934         * modules/di-set-tests (Files): Add tests/macros.h.
8935
8936 2011-02-08  Bruno Haible  <bruno@clisp.org>
8937
8938         ino-map tests: Refactor.
8939         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8940         unnecessary includes.
8941         (ASSERT): Remove macro.
8942         (main): Make C90 compliant by avoiding variable declaration after
8943         statement.
8944         * modules/ino-map-tests (Files): Add tests/macros.h.
8945
8946 2011-02-08  Jim Meyering  <meyering@redhat.com>
8947
8948         di-set: add "const" to a cast
8949         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8950         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8951
8952 2011-02-06  Bruno Haible  <bruno@clisp.org>
8953
8954         Rename module 'wctype' to 'wctype-h'.
8955         * modules/wctype-h: Renamed from modules/wctype.
8956         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8957         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8958         (Files, Depends-on, Makefile.am): Update.
8959         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8960         (Files, Makefile.am): Update.
8961         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8962         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8963         * doc/posix-headers/wctype.texi: Update.
8964         * doc/posix-functions/iswalnum.texi: Update.
8965         * doc/posix-functions/iswalpha.texi: Update.
8966         * doc/posix-functions/iswblank.texi: Update.
8967         * doc/posix-functions/iswcntrl.texi: Update.
8968         * doc/posix-functions/iswdigit.texi: Update.
8969         * doc/posix-functions/iswgraph.texi: Update.
8970         * doc/posix-functions/iswlower.texi: Update.
8971         * doc/posix-functions/iswprint.texi: Update.
8972         * doc/posix-functions/iswpunct.texi: Update.
8973         * doc/posix-functions/iswspace.texi: Update.
8974         * doc/posix-functions/iswupper.texi: Update.
8975         * doc/posix-functions/iswxdigit.texi: Update.
8976         * doc/posix-functions/towlower.texi: Update.
8977         * doc/posix-functions/towupper.texi: Update.
8978         * NEWS: Mention the change.
8979         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8980         * modules/mbchar (Dependencies): Likewise.
8981         * modules/mbswidth (Dependencies): Likewise.
8982         * modules/quotearg (Dependencies): Likewise.
8983         * modules/regex (Dependencies): Likewise.
8984         * modules/wcscasecmp (Dependencies): Likewise.
8985         * modules/wcsncasecmp (Dependencies): Likewise.
8986         * modules/wcwidth (Dependencies): Likewise.
8987
8988 2011-02-06  Bruno Haible  <bruno@clisp.org>
8989
8990         New module 'wcswidth'.
8991         * modules/wcswidth: New file.
8992         * lib/wchar.in.h (wcswidth): New declaration.
8993         * lib/wcswidth.c: New file.
8994         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8995         * m4/wcswidth.m4: New file.
8996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8998         REPLACE_WCSWIDTH.
8999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9000         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9001         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9002         * doc/posix-functions/wcswidth.texi: Mention the new module.
9003
9004 2011-02-06  Bruno Haible  <bruno@clisp.org>
9005
9006         New module 'wcstok'.
9007         * modules/wcstok: New file.
9008         * lib/wchar.in.h (wcstok): New declaration.
9009         * lib/wcstok.c: New file.
9010         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9011         * m4/wcstok.m4: New file.
9012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9015         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9016         * doc/posix-functions/wcstok.texi: Mention the new module.
9017
9018 2011-02-06  Bruno Haible  <bruno@clisp.org>
9019
9020         New module 'wcsstr'.
9021         * modules/wcsstr: New file.
9022         * lib/wchar.in.h (wcsstr): New declaration.
9023         * lib/wcsstr.c: New file.
9024         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9025         * m4/wcsstr.m4: New file.
9026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9029         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9030         * doc/posix-functions/wcsstr.texi: Mention the new module.
9031
9032 2011-02-06  Bruno Haible  <bruno@clisp.org>
9033
9034         New module 'wcspbrk'.
9035         * modules/wcspbrk: New file.
9036         * lib/wchar.in.h (wcspbrk): New declaration.
9037         * lib/wcspbrk.c: New file.
9038         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9039         * m4/wcspbrk.m4: New file.
9040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9043         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9044         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9045
9046 2011-02-06  Bruno Haible  <bruno@clisp.org>
9047
9048         New module 'wcsspn'.
9049         * modules/wcsspn: New file.
9050         * lib/wchar.in.h (wcsspn): New declaration.
9051         * lib/wcsspn.c: New file.
9052         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9053         * m4/wcsspn.m4: New file.
9054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9057         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9058         * doc/posix-functions/wcsspn.texi: Mention the new module.
9059
9060 2011-02-06  Bruno Haible  <bruno@clisp.org>
9061
9062         New module 'wcscspn'.
9063         * modules/wcscspn: New file.
9064         * lib/wchar.in.h (wcscspn): New declaration.
9065         * lib/wcscspn.c: New file.
9066         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9067         * m4/wcscspn.m4: New file.
9068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9071         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9072         * doc/posix-functions/wcscspn.texi: Mention the new module.
9073
9074 2011-02-06  Bruno Haible  <bruno@clisp.org>
9075
9076         New module 'wcsrchr'.
9077         * modules/wcsrchr: New file.
9078         * lib/wchar.in.h (wcsrchr): New declaration.
9079         * lib/wcsrchr.c: New file.
9080         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9081         * m4/wcsrchr.m4: New file.
9082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9085         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9086         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9087
9088 2011-02-06  Bruno Haible  <bruno@clisp.org>
9089
9090         New module 'wcschr'.
9091         * modules/wcschr: New file.
9092         * lib/wchar.in.h (wcschr): New declaration.
9093         * lib/wcschr.c: New file.
9094         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9095         * m4/wcschr.m4: New file.
9096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9099         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9100         * doc/posix-functions/wcschr.texi: Mention the new module.
9101
9102 2011-02-06  Bruno Haible  <bruno@clisp.org>
9103
9104         New module 'wcsdup'.
9105         * modules/wcsdup: New file.
9106         * lib/wchar.in.h (wcsdup): New declaration.
9107         * lib/wcsdup.c: New file.
9108         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9109         * m4/wcsdup.m4: New file.
9110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9113         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9114         * doc/posix-functions/wcsdup.texi: Mention the new module.
9115
9116 2011-02-06  Bruno Haible  <bruno@clisp.org>
9117
9118         New module 'wcsxfrm'.
9119         * modules/wcsxfrm: New file.
9120         * lib/wchar.in.h (wcsxfrm): New declaration.
9121         * lib/wcsxfrm.c: New file.
9122         * lib/wcsxfrm-impl.h: New file.
9123         * m4/wcsxfrm.m4: New file.
9124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9127         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9128         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9129
9130 2011-02-06  Bruno Haible  <bruno@clisp.org>
9131
9132         New module 'wcscoll'.
9133         * modules/wcscoll: New file.
9134         * lib/wchar.in.h (wcscoll): New declaration.
9135         * lib/wcscoll.c: New file.
9136         * lib/wcscoll-impl.h: New file.
9137         * m4/wcscoll.m4: New file.
9138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9141         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9142         * doc/posix-functions/wcscoll.texi: Mention the new module.
9143
9144 2011-02-06  Bruno Haible  <bruno@clisp.org>
9145
9146         New module 'wcsncasecmp'.
9147         * modules/wcsncasecmp: New file.
9148         * lib/wchar.in.h (wcsncasecmp): New declaration.
9149         * lib/wcsncasecmp.c: New file.
9150         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9151         * m4/wcsncasecmp.m4: New file.
9152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9155         HAVE_WCSNCASECMP.
9156         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9157         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9158
9159 2011-02-06  Bruno Haible  <bruno@clisp.org>
9160
9161         New module 'wcscasecmp'.
9162         * modules/wcscasecmp: New file.
9163         * lib/wchar.in.h (wcscasecmp): New declaration.
9164         * lib/wcscasecmp.c: New file.
9165         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9166         * m4/wcscasecmp.m4: New file.
9167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9170         HAVE_WCSCASECMP.
9171         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9172         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9173
9174 2011-02-05  Bruno Haible  <bruno@clisp.org>
9175
9176         New module 'wcsncmp'.
9177         * modules/wcsncmp: New file.
9178         * lib/wchar.in.h (wcsncmp): New declaration.
9179         * lib/wcsncmp.c: New file.
9180         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9181         * m4/wcsncmp.m4: New file.
9182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9185         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9186         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9187
9188 2011-02-05  Bruno Haible  <bruno@clisp.org>
9189
9190         New module 'wcscmp'.
9191         * modules/wcscmp: New file.
9192         * lib/wchar.in.h (wcscmp): New declaration.
9193         * lib/wcscmp.c: New file.
9194         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9195         * m4/wcscmp.m4: New file.
9196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9199         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9200         * doc/posix-functions/wcscmp.texi: Mention the new module.
9201
9202 2011-02-05  Bruno Haible  <bruno@clisp.org>
9203
9204         New module 'wcsncat'.
9205         * modules/wcsncat: New file.
9206         * lib/wchar.in.h (wcsncat): New declaration.
9207         * lib/wcsncat.c: New file.
9208         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9209         * m4/wcsncat.m4: New file.
9210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9213         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9214         * doc/posix-functions/wcsncat.texi: Mention the new module.
9215
9216 2011-02-05  Bruno Haible  <bruno@clisp.org>
9217
9218         New module 'wcscat'.
9219         * modules/wcscat: New file.
9220         * lib/wchar.in.h (wcscat): New declaration.
9221         * lib/wcscat.c: New file.
9222         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9223         * m4/wcscat.m4: New file.
9224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9227         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9228         * doc/posix-functions/wcscat.texi: Mention the new module.
9229
9230 2011-02-05  Bruno Haible  <bruno@clisp.org>
9231
9232         New module 'wcpncpy'.
9233         * modules/wcpncpy: New file.
9234         * lib/wchar.in.h (wcpncpy): New declaration.
9235         * lib/wcpncpy.c: New file.
9236         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9237         * m4/wcpncpy.m4: New file.
9238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9240         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9241         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9242         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9243
9244 2011-02-05  Bruno Haible  <bruno@clisp.org>
9245
9246         New module 'wcsncpy'.
9247         * modules/wcsncpy: New file.
9248         * lib/wchar.in.h (wcsncpy): New declaration.
9249         * lib/wcsncpy.c: New file.
9250         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9251         * m4/wcsncpy.m4: New file.
9252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9255         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9256         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9257
9258 2011-02-05  Bruno Haible  <bruno@clisp.org>
9259
9260         New module 'wcpcpy'.
9261         * modules/wcpcpy: New file.
9262         * lib/wchar.in.h (wcpcpy): New declaration.
9263         * lib/wcpcpy.c: New file.
9264         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9265         * m4/wcpcpy.m4: New file.
9266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9268         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9269         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9270         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9271
9272 2011-02-05  Bruno Haible  <bruno@clisp.org>
9273
9274         New module 'wcscpy'.
9275         * modules/wcscpy: New file.
9276         * lib/wchar.in.h (wcscpy): New declaration.
9277         * lib/wcscpy.c: New file.
9278         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9279         * m4/wcscpy.m4: New file.
9280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9283         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9284         * doc/posix-functions/wcscpy.texi: Mention the new module.
9285
9286 2011-02-05  Bruno Haible  <bruno@clisp.org>
9287
9288         New module 'wcsnlen'.
9289         * modules/wcsnlen: New file.
9290         * lib/wchar.in.h (wcsnlen): New declaration.
9291         * lib/wcsnlen.c: New file.
9292         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9293         * m4/wcsnlen.m4: New file.
9294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9297         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9298         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9299
9300 2011-02-05  Bruno Haible  <bruno@clisp.org>
9301
9302         New module 'wcslen'.
9303         * modules/wcslen: New file.
9304         * lib/wchar.in.h (wcslen): New declaration.
9305         * lib/wcslen.c: New file.
9306         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9307         * m4/wcslen.m4: New file.
9308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9311         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9312         * doc/posix-functions/wcslen.texi: Mention the new module.
9313
9314 2011-02-05  Bruno Haible  <bruno@clisp.org>
9315
9316         New module 'wmemset'.
9317         * modules/wmemset: New file.
9318         * lib/wchar.in.h (wmemset): New declaration.
9319         * lib/wmemset.c: New file.
9320         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9321         * m4/wmemset.m4: New file.
9322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9325         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9326         * doc/posix-functions/wmemset.texi: Mention the new module.
9327
9328 2011-02-05  Bruno Haible  <bruno@clisp.org>
9329
9330         New module 'wmemmove'.
9331         * modules/wmemmove: New file.
9332         * lib/wchar.in.h (wmemmove): New declaration.
9333         * lib/wmemmove.c: New file.
9334         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9335         * m4/wmemmove.m4: New file.
9336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9338         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9339         HAVE_WMEMMOVE.
9340         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9341         * doc/posix-functions/wmemmove.texi: Mention the new module.
9342
9343 2011-02-05  Bruno Haible  <bruno@clisp.org>
9344
9345         New module 'wmemcpy'.
9346         * modules/wmemcpy: New file.
9347         * lib/wchar.in.h (wmemcpy): New declaration.
9348         * lib/wmemcpy.c: New file.
9349         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9350         * m4/wmemcpy.m4: New file.
9351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9353         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9354         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9355         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9356
9357 2011-02-05  Bruno Haible  <bruno@clisp.org>
9358
9359         New module 'wmemcmp'.
9360         * modules/wmemcmp: New file.
9361         * lib/wchar.in.h (wmemcmp): New declaration.
9362         * lib/wmemcmp.c: New file.
9363         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9364         * m4/wmemcmp.m4: New file.
9365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9367         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9368         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9369         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9370
9371 2011-02-07  Jim Meyering  <meyering@redhat.com>
9372
9373         di-set, ino-map: new modules, from coreutils
9374         * lib/di-set.c: New file.
9375         * lib/di-set.h: Likewise.
9376         * lib/ino-map.c: Likewise.
9377         * lib/ino-map.h: Likewise.
9378         * modules/di-set: Likewise.
9379         * modules/di-set-tests: Likewise.
9380         * modules/ino-map: Likewise.
9381         * modules/ino-map-tests: Likewise.
9382         * tests/test-di-set.c: Likewise.
9383         * tests/test-ino-map.c: Likewise.
9384
9385 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         getloadavg: merge minor changes from Emacs
9388
9389         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9390         (getloadavg): Use memset, not bzero.
9391
9392         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9393         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9394         clash (bug#86).
9395
9396 2010-11-14  Bruno Haible  <bruno@clisp.org>
9397
9398         Allow multiple gnulib generated replacements to coexist.
9399         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9400         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9401         * lib/langinfo.in.h (nl_item): Likewise.
9402         * lib/math.in.h (_NaN, NAN): Likewise.
9403         * lib/netdb.in.h (struct addrinfo): Likewise.
9404         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9405         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9406         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9407         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9408         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9409         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9410         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9411         pthread_mutexattr_init, pthread_mutexattr_settype,
9412         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9413         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9414         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9415         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9416         * lib/sched.in.h (struct sched_param): Likewise.
9417         * lib/se-selinux.in.h (security_class_t, security_context_t,
9418         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9419         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9420         lsetfilecon, fsetfilecon, security_check_context,
9421         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9422         Likewise.
9423         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9424         Likewise.
9425         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9426         _gl_function_taking_int_returning_void_t, union sigval,
9427         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9428         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9429         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9430         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9431         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9432         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9433         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9434         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9435         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9436         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9437         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9438         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9439         socklen_t, rpl_fd_isset): Likewise.
9440         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9441         * lib/sys_time.in.h (struct timeval): Likewise.
9442         * lib/sys_times.in.h (struct tms): Likewise.
9443         * lib/sys_utsname.in.h (struct utsname):
9444         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9445         * lib/unistd.in.h (getpagesize): Likewise.
9446         * lib/wchar.in.h (mbstate_t): Likewise.
9447         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9448         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9449         towlower, towupper): Likewise.
9450         Reported by Sam Steingold <sds@gnu.org>.
9451
9452 2011-02-05  Eric Blake  <eblake@redhat.com>
9453
9454         unsetenv: work around Haiku issues
9455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9456         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9457
9458 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9459
9460         libposix: avoid calling error() within libposix
9461         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9462         is defined.
9463
9464 2011-02-05  Eric Blake  <eblake@redhat.com>
9465
9466         strerror_r-posix: port to cygwin
9467         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9468         implementation.
9469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9470         * tests/test-strerror_r.c (main): Fix test.
9471         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9472         issue.
9473
9474 2011-02-05  Bruno Haible  <bruno@clisp.org>
9475
9476         New module 'wmemchr'.
9477         * modules/wmemchr: New file.
9478         * lib/wchar.in.h (wmemchr): New declaration.
9479         * lib/wmemchr.c: New file.
9480         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9481         * m4/wmemchr.m4: New file.
9482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9484         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9485         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9486         * doc/posix-functions/wmemchr.texi: Mention the new module.
9487
9488 2011-02-04  Eric Blake  <eblake@redhat.com>
9489
9490         fdopendir: detect FreeBSD bug
9491         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9492         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9493
9494 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9495
9496         stdbool: do not define HAVE_STDBOOL_H
9497         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9498         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9499         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9500         imported from the latest Autoconf git.  It was motivated by Emacs,
9501         which uses gnulib but does not need HAVE_STDBOOL_H.
9502
9503 2011-02-04  Bruno Haible  <bruno@clisp.org>
9504
9505         wcsnrtombs: Prepare for new module wwcsnrtombs.
9506         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9507         * lib/wcsnrtombs.c: Include it.
9508         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9509
9510         wcsrtombs: Prepare for new module wwcsrtombs.
9511         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9512         * lib/wcsrtombs.c: Include it.
9513         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9514
9515         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9516         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9517         * lib/mbsnrtowcs.c: Include it.
9518         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9519
9520         mbsrtowcs: Prepare for new module mbsrtowwcs.
9521         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9522         * lib/mbsrtowcs.c: Include it.
9523         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9524
9525 2011-02-04  Bruno Haible  <bruno@clisp.org>
9526
9527         vasnprintf: Reduce use of malloc for small format strings.
9528         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9529         (arguments): Add room for the first 7 arguments.
9530         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9531         (char_directives, u8_directives, u16_directives, u32_directives): Add
9532         room for the first 7 directives.
9533         * lib/printf-parse.c: Include <string.h>.
9534         (PRINTF_PARSE): Change memory handling code so that it uses the first
9535         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9536         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9537         Reported by Pádraig Brady <P@draigbrady.com>.
9538
9539 2011-01-31  Eric Blake  <eblake@redhat.com>
9540
9541         dup2: work around Haiku bug
9542         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9543         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9544         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9545         * tests/test-dup2.c (main): Enhance test.
9546
9547 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9548
9549         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9550         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9551         declared by eglibc 2.11.2.
9552         * lib/stdio.in.h: Likewise.
9553
9554 2011-01-31  Eric Blake  <eblake@redhat.com>
9555
9556         ignore-value: add missing test dependency
9557         * tests/test-ignore-value.c: Revert previous change; stdio.h
9558         provides off_t.
9559         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9560
9561 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         mktime: clarify long_int width checking
9564         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9565         the top level, to make it clearer that the assumption about
9566         long_int width is being checked.  See
9567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9568
9569 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9570
9571         ignore-value: Fix self-test.
9572         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9573
9574 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9575
9576         TYPE_MAXIMUM: avoid theoretically undefined behavior
9577         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9578         negative number, which the C Standard says has undefined behavior.
9579         In practice this is not a problem, but might as well do it by the book.
9580         Reported by Rich Felker and Eric Blake; see
9581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9582         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9583         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9585         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9587         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9588
9589         mktime: #undef mktime before #defining it
9590         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9591
9592         mktime: systematically normalize tm_isdst comparisons
9593         * lib/mktime.c (isdst_differ): New function.
9594         (__mktime_internal): Use it systematically for all isdst comparisons.
9595         This completes the fix for libc BZ #6723, and removes the need for
9596         normalizing tm_isdst.  See
9597         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9598         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9599
9600         mktime: fix some integer overflow issues and sidestep the rest
9601
9602         This was prompted by a bug report by Benjamin Lindner for MinGW
9603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9604         His bug is due to signed integer overflow (0 - INT_MIN), and I
9605         I scanned through mktime.c looking for other integer overflow
9606         problems, fixing all the bugs I found.
9607
9608         Although the C Standard says the resulting code is still not safe
9609         in the presence of integer overflow, in practice it should be good
9610         enough for all real-world two's-complement implementations, except
9611         for debugging environments that deliberately trap on integer
9612         overflow (e.g., gcc -ftrapv).
9613
9614         * lib/mktime.c (WRAPV): New macro.
9615         (SHR): Also check that long_int and time_t shift right in the
9616         usual way, before using the fast-but-unportable method.
9617         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9618         used.  The code already assumed two's complement, so there's
9619         no need to test for alternatives.  All uses removed.
9620         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9621         the C standard.  Problem reported by Rich Felker in
9622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9623         (twos_complement_arithmetic): Also check long_int and time_t.
9624         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9625         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9626         (__mktime_internal): Avoid integer overflow with unary subtraction
9627         in two instances where -1 - X is an adequate replacement for -X,
9628         since the calculations are approximate.
9629
9630 2011-01-29  Eric Blake  <eblake@redhat.com>
9631
9632         mktime: avoid infinite loop
9633         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9634         type; behavior is still undefined but portable to all known targets.
9635         Reported by Rich Felker.
9636
9637 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9638
9639         rename, unlink, same-inode: Relicense.
9640         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9641         * modules/unlink (License): Likewise.
9642         * modules/same-inode (License): Likewise.
9643
9644 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9645
9646         mktime: avoid problems on NetBSD 5 / i386
9647         * lib/mktime.c (long_int): New type.  This works around a problem
9648         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9649         but time_t is 64 bits, and where I expect the existing code is
9650         wrong in some cases.
9651         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9652         (ydhms_diff): Bring back the compile-time check for wide-enough
9653         year and yday.
9654
9655         mktime: fix misspelling in comment
9656         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9657         This merges all recent glibc changes of importance.
9658
9659 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9660
9661         move-if-change: cope with concurrent mv of identical file.
9662         * build-aux/move-if-change (CMPPROG): Accept environment
9663         variable as an override for `cmp'.
9664         (usage): Document CMPPROG.
9665         Adjust comparison to drop stdout.  Cope with failure of mv if
9666         the target file exists and is identical to the source, for
9667         parallel builds.
9668         Report from H.J. Lu against binutils in PR binutils/12283.
9669
9670 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9671
9672         * users.txt: Mention sharutils.
9673
9674 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9675
9676         * users.txt: Mention OATH Toolkit.
9677
9678 2011-01-27  Bruno Haible  <bruno@clisp.org>
9679
9680         Prepare for supporting FreeBSD 10.
9681         * build-aux/config.libpath: Remove handling of freebsd1*.
9682
9683 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9684
9685         Prepare for supporting FreeBSD 10.
9686         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9687         match FreeBSD 10.0.
9688
9689 2011-01-27  Bruno Haible  <bruno@clisp.org>
9690
9691         vma-iter, get-rusage-as: Add OpenBSD support.
9692         * modules/vma-iter (configure.ac): Test for mquery.
9693         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9694         * lib/vma-iter.c: Include <sys/mman.h>.
9695         (vma_iterate): Add an implementation based on mquery().
9696         * lib/resource-ext.h (get_rusage_as): Update comments.
9697         * lib/get-rusage-as.c: Likewise.
9698         * lib/get-rusage-data.c: Likewise.
9699
9700 2011-01-26  Karl Berry  <karl@gnu.org>
9701
9702         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9703         variables to make it easier to override the makeinfo program used.
9704
9705 2011-01-26  Eric Blake  <eblake@redhat.com>
9706
9707         fcntl: work around Haiku F_DUPFD bugs
9708         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9709         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9710         cloexec bit on duplication.
9711         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9712
9713 2011-01-26  Bruno Haible  <bruno@clisp.org>
9714
9715         Enable memory leak tests on AIX.
9716         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9717         * tests/test-fprintf-posix3.c (main): Likewise.
9718
9719 2011-01-26  Bruno Haible  <bruno@clisp.org>
9720
9721         Tests for module 'get-rusage-data'.
9722         * modules/get-rusage-data-tests: New file.
9723         * tests/test-get-rusage-data.c: New file.
9724
9725         New module 'get-rusage-data'.
9726         * lib/resource-ext.h (get_rusage_data): New declaration.
9727         * lib/get-rusage-data.c: New file.
9728         * modules/get-rusage-data: New file.
9729
9730 2011-01-25  Bruno Haible  <bruno@clisp.org>
9731
9732         get-rusage-as: Allow for easier testing.
9733         * lib/resource-ext.h (get_rusage_as): Add comment.
9734         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9735         (main): New function for interactive testing.
9736
9737 2011-01-25  Bruno Haible  <bruno@clisp.org>
9738
9739         vma-iter: Treat Haiku like BeOS.
9740         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9741         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9742
9743 2011-01-25  Eric Blake  <eblake@redhat.com>
9744
9745         c-stack: fix regression on cygwin when libsigsegv is present
9746         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9747
9748 2011-01-24  Bruno Haible  <bruno@clisp.org>
9749
9750         vma-iter: Avoid empty intervals.
9751         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9752         on an empty interval.
9753
9754 2011-01-24  Jim Meyering  <meyering@redhat.com>
9755
9756         u64: remove unnecessary #include
9757         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9758
9759 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9760
9761         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9762         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9763
9764 2011-01-23  Bruno Haible  <bruno@clisp.org>
9765
9766         New module 'vma-iter'.
9767         * lib/vma-iter.h: New file.
9768         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9769         * modules/vma-iter: New file.
9770         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9771         for get_rusage_as_via_iterator.
9772         (vma_iterate_callback): New function.
9773         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9774         * modules/get-rusage-as (Depends-on): Add vma-iter.
9775
9776 2011-01-23  Bruno Haible  <bruno@clisp.org>
9777
9778         uninorm: Tweak includes.
9779         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9780         Reported by Jim Meyering.
9781
9782 2011-01-23  Bruno Haible  <bruno@clisp.org>
9783
9784         get-rusage-as: Improve on NetBSD.
9785         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9786         /proc, like on FreeBSD.
9787
9788 2011-01-23  Jim Meyering  <meyering@redhat.com>
9789
9790         xreadlink.h: remove unnecessary #include
9791         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9792
9793         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9794         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9795
9796 2011-01-23  Bruno Haible  <bruno@clisp.org>
9797
9798         get-rusage-as: Fix bug.
9799         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9800         original limit when aborting the first loop.
9801
9802 2011-01-23  Bruno Haible  <bruno@clisp.org>
9803
9804         wctype: Ensure valid C syntax.
9805         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9806         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9807
9808 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9809
9810         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9812         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9813         as they are needed only for configure's test case.
9814         This removes two unnecessary symbols from config.h.
9815
9816         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9817         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9819         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9820         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9822         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9823         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9825         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9826         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9828         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9829         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9830         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9831         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9832         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9833         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9834
9835 2011-01-21  Eric Blake  <eblake@redhat.com>
9836
9837         maintainer-makefile: work with older git for submodule check
9838         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9839         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9840         Reported by Matthias Bolte.
9841
9842         bootstrap: minor portability fixes
9843         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9844         (usage): Omit leading capital and trailing . on help phrases, per
9845         GNU Coding Standards.
9846         (check_versions, top level): Prefix messages with script name.
9847
9848 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9849
9850         bootstrap: support --no-git option
9851         * build-aux/bootstrap: Add --no-git option, to be used when
9852         --gnulib-srcdir points to the exact desired checkout.
9853
9854 2011-01-21  Eric Blake  <eblake@redhat.com>
9855
9856         strerror_r-posix: work with glibc 2.13
9857         * lib/strerror_r.c (strerror_r): Fix return type.
9858
9859 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9860             Bruno Haible  <bruno@clisp.org>
9861
9862         uN_strstr: New unit tests.
9863         * modules/unistr/u8-strstr-tests: New file.
9864         * modules/unistr/u16-strstr-tests: New file.
9865         * modules/unistr/u32-strstr-tests: New file.
9866         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9867         * tests/unistr/test-u8-strstr.c: New file.
9868         * tests/unistr/test-u16-strstr.c: New file.
9869         * tests/unistr/test-u32-strstr.c: New file.
9870
9871 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9872             Bruno Haible  <bruno@clisp.org>
9873
9874         Make uN_strstr functions O(n) worst-case.
9875         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9876         16-bit and 32-bit unit cases, use the unibyte algorithm from
9877         lib/mbsstr.c.
9878         * lib/unistr/u8-strstr.c: Include <string.h>.
9879         (UNIT_IS_UINT8_T): New macro.
9880         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9881         (U_STRLEN, U_STRNLEN): New macros.
9882         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9883         (U_STRLEN, U_STRNLEN): New macros.
9884         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9885         (configure.ac): Update required libunistring version.
9886         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9887         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9888         malloca.
9889         (configure.ac): Update required libunistring version.
9890         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9891         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9892         malloca.
9893         (configure.ac): Update required libunistring version.
9894
9895 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9896             Bruno Haible  <bruno@clisp.org>
9897
9898         Prepare for faster uN_strstr functions.
9899         * lib/str-kmp.h: Support definable UNITs.
9900         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9901         needle_len argument.
9902         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9903         * lib/mbscasestr.c (mbscasestr): Likewise.
9904
9905 2011-01-21  Pádraig Brady <P@draigBrady.com>
9906
9907         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9908         * tests/test-malloca.c (main): Unset the environment variable
9909         to greatly speed up the test.
9910         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9911         * modules/malloca-tests: Depend on unsetenv.
9912
9913 2011-01-21  Pádraig Brady <P@draigBrady.com>
9914
9915         ignore-value: remove stdint dependency
9916         * lib/ignore-value.h: Remove <stdint.h>
9917         * modules/ignore-value: Remove stdint dependency.
9918
9919 2011-01-21  Jim Meyering  <meyering@redhat.com>
9920
9921         maint.mk: adjust variable name to be consistent with other gl_ vars
9922         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9923         to be lower case.
9924
9925 2011-01-20  Jim Meyering  <meyering@redhat.com>
9926
9927         maint.mk: make "check" depend on public-submodule-commit by default
9928         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9929
9930 2011-01-20  Bruno Haible  <bruno@clisp.org>
9931
9932         mbfile, mbiter: Complete change from 2008-12-21.
9933         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9934         * m4/mbiter.m4 (gl_MBITER): Likewise.
9935
9936 2011-01-20  Jim Meyering  <meyering@redhat.com>
9937
9938         init.sh: insert space between each function name and "()"
9939         * tests/init.sh: Make it a little easier to see that a function's
9940         name is "warn_", and not "warn" when looking at the first part of
9941         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9942
9943 2011-01-20  Jim Meyering  <meyering@redhat.com>
9944
9945         mountlist: clean up code formatting
9946         * lib/mountlist.c (read_file_system_list): Split a long line,
9947         correct bracing style, use NULL in place of "(struct statfs *)0",
9948         don't parenthesize return value, add spaces around "=" and after
9949         ";-in-for-stmt".
9950
9951 2011-01-14  Markus Duft <mduft@gentoo.org>
9952
9953         mountlist: add support for Interix
9954         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9955         Apply statvfs to all entries of /dev/fs.
9956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9957         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9958
9959 2011-01-20  Jim Meyering  <meyering@redhat.com>
9960
9961         maint.mk: improve the public-submodule-commit rule
9962         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9963         to suppress printing of its commands... unless V=1.
9964         Add git submodule's --quiet option to suppress printing of e.g.,
9965         "Entering gnulib" output.
9966         "cd" into $(srcdir) before running git submodule.
9967
9968 2011-01-20  Bruno Haible  <bruno@clisp.org>
9969
9970         include_next: Fix bug introduced on 2011-01-18.
9971         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9972         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9973         ac_cv_header_... variable if the second argument is not 'check'.
9974         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9975         gl_NEXT_HEADERS_INTERNAL.
9976
9977 2011-01-20  Bruno Haible  <bruno@clisp.org>
9978
9979         Allow the user to avoid the GNULIB_TEST_* macros.
9980         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9981         Suggested by Paul Eggert.
9982
9983 2011-01-14  Jim Meyering  <meyering@redhat.com>
9984
9985         bootstrap: avoid failure when there is no .gitmodules file
9986         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9987         has been assigned to, even when its value is the empty string.
9988         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9989         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9990         Reported by John W. Eaton <jwe@gnu.org>.
9991
9992 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9993
9994         assume <ctype.h>, ..., <time.h> exist
9995         For years gnulib has been assuming the existence of the headers
9996         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9997         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9998         them, since they don't appear to be needed.
9999         * README (Portability guidelines): Document this.
10000         * lib/flock.c: Assume <fcntl.h> exists.
10001         * lib/regex_internal.h: Assume <locale.h> exists.
10002         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10004         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10005         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10006         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10007         * m4/regex.m4 (gl_REGEX): Likewise.
10008         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10009         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10010         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10011         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10012         * tests/test-argp.c: Likewise.
10013         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10014
10015         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10016         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10017         AA_APPLE_UNIVERSAL_BUILD.  See
10018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10019         * NEWS: Document this.
10020
10021 2011-01-19  Eric Blake  <eblake@redhat.com>
10022
10023         c-stack: assume stack overflow if SA_SIGINFO unsupported
10024         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10025         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10026         sigaction will work.
10027         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10028         behavior match Linux.
10029         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10030
10031         stdbool-tests: accomodate Haiku
10032         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10033
10034         binary-io: fix O_TEXT on Haiku
10035         * modules/binary-io (Depends-on): Add fcntl-h.
10036         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10037         than blindly undefining O_TEXT.
10038         Reported by Scott McCreary.
10039
10040 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10041
10042         include_next: do not check for standard headers like stddef.h
10043
10044         I found this problem when modifying Emacs to use gnulib.
10045         I noticed that it added HAVE_STDDEF_H to config.h, even though
10046         gnulib always assumes <stddef.h> exists as per README and this
10047         symbol is unnecessary.
10048         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10049         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10050         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10051         faster for headers like stddef.h that are known to exist.
10052         (gl_CHECK_NEXT_HEADERS): Use it.
10053         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10054         rather than gl_CHECK_NEXT_HEADERS.
10055         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10056         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10057
10058 2011-01-18  Eric Blake  <eblake@redhat.com>
10059
10060         ansi-c++-opt: skip C++ dependency style if C++ is unused
10061         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10062         tests when we know C++ compilation is not desired.
10063         Reported by Scott McCreary.
10064
10065 2011-01-18  Bruno Haible  <bruno@clisp.org>
10066
10067         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10068         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10069         (main): Perform test also when getrlimit and setrlimit don't exist or
10070         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10071         limiting the address space size using setrlimit, compare the address
10072         space size before and after the the test.
10073         * tests/test-dprintf-posix2.c: Likewise.
10074         * tests/test-fprintf-posix3.sh: Update skip messages.
10075         * tests/test-dprintf-posix2.sh: Likewise.
10076         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10077         * modules/dprintf-posix-tests (Depends-on): Likewise.
10078         Reported by Bruce Korb <bkorb@gnu.org> and
10079         Gary V. Vaughan <gary@gnu.org>.
10080
10081 2011-01-18  Bruno Haible  <bruno@clisp.org>
10082
10083         get-rusage-as: Improvement for Cygwin.
10084         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10085         areas that are merely reserved.
10086
10087 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10088
10089         strftime: remove dependencies on multibyte modules
10090
10091         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10092         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10093         only if __osf__ is defined, and I suspect OSF doesn't need these
10094         other modules.  If my guess is wrong, we'll need to come up with a
10095         variant of strftime that doesn't need the multibyte modules.
10096
10097         I discovered this problem when attempting modify Emacs to use the
10098         strftime module.  With the previous gnulib, this caused Emacs to
10099         need 31 new files, ranging from lib/config.charset to
10100         m4/wint_t.m4.  This was overkill and I expect would be offputting
10101         to the Emacs maintainers.  After this change, only 6 new files are
10102         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10103         stdbool.m4, and tm_gmtoff.m4.
10104
10105         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10106         Suggested by Bruno Haible in
10107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10108         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10109         and do not check for wchar.h.
10110         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10111         (Depends-on): Remove mbrlen, mbsinit, wchar.
10112
10113 2011-01-18  Bruno Haible  <bruno@clisp.org>
10114
10115         Tests for module 'get-rusage-as'.
10116         * modules/get-rusage-as-tests: New file.
10117         * tests/test-get-rusage-as.c: New file.
10118
10119         New module 'get-rusage-as'.
10120         * modules/get-rusage-as: New file.
10121         * lib/resource-ext.h: New file.
10122         * lib/get-rusage-as.c: New file.
10123
10124 2011-01-17  Eric Blake  <eblake@redhat.com>
10125
10126         sigaction: relax license from LGPLv3+ to LGPLv2+
10127         * modules/sigaction (License): Relax to LGPLv2+.
10128
10129 2011-01-14  Bruno Haible  <bruno@clisp.org>
10130
10131         filemode: Make function declarations usable in C++ mode.
10132         * lib/filemode.h: Enclose function declarations in extern "C" block.
10133         Reported by John W. Eaton <jwe@gnu.org>.
10134
10135 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10136
10137         save-cwd: no longer include "xgetcwd.h"
10138         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10139         This avoids a compilation failure in projects that use save-cwd
10140         without also using the xgetcwd module.
10141
10142 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10143
10144         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10145         This is so that a program like Emacs, which needs only dtoastr,
10146         does not have to bother with distributing and compiling ftoastr
10147         and ldtoastr.
10148         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10149         * modules/dtoastr, modules/ldtoastr: New files.
10150         * modules/ftoastr: Now works just for 'float'.
10151         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10152         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10153         dtoastr.c, ldtoastr.c.
10154
10155 2011-01-11  Jim Meyering  <meyering@redhat.com>
10156
10157         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10158         There is no need to work around the lack of the fchdir function,
10159         since gnulib can now provide a replacement when required.
10160         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10161         * modules/save-cwd (Depends-on): Add fchdir.
10162
10163 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         openat, save-cwd: avoid xmalloc
10166
10167         This removes a direct (but undocumented) dependency of openat on
10168         xalloc, along with an indirect dependency via save-cwd.  It also
10169         removes a dependency of save-cwd on xgetcwd, and thereby
10170         indirectly on xalloc.  This change causes the openat substitute
10171         to fall back on save_cwd when memory is tight, and for save_cwd to
10172         fail instead of dying when memory is tight, but that's good enough.
10173         Problem and initial idea for fix reported by Bastien Roucaries in
10174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10175
10176         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10177         xalloc.h (for xmalloc).
10178         (openat_proc_name): Use malloc, not xmalloc.
10179         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10180         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10181
10182         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10183         This avoids heap allocation for file names whose lengths are in
10184         the range 512..1023, with the upper bound increasing to at most
10185         4031 depending on the platform's PATH_MAX.  (We do not want
10186         pathmax.h here as it might supply a non-constant PATH_MAX.)
10187         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10188         Perhaps they should be moved to malloca.h?
10189         (OPENAT_BUFFER_SIZE): Use them.
10190
10191 2011-01-10  Bruno Haible  <bruno@clisp.org>
10192
10193         doc: Update users.txt.
10194         * users.txt: Add recutils.
10195
10196 2011-01-09  Karl Berry  <karl@gnu.org>
10197
10198         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10199
10200         * doc/configmake.texi: New file.
10201         * doc/gnulib.texi: Include it.
10202         * modules/configmake: Move documentation from here.
10203
10204 2011-01-09  Bruno Haible  <bruno@clisp.org>
10205
10206         Update to Unicode 6.0.0.
10207         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10208         (get_lbp): Update for Unicode 6.0.0.
10209         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10210         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10211         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10212         U+11001, U+11038..U+11046. Remove U+06DE.
10213         (uc_width): Fix bounds of planes.
10214         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10215         lib/uniwidth/width.c.
10216         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10217         trailing whitespace removed.
10218         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10219         without comments, but with the original copyright notice.
10220         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10221         * lib/unicase/ignorable.h: Likewise.
10222         * lib/unicase/tocasefold.h: Likewise.
10223         * lib/unicase/tolower.h: Likewise.
10224         * lib/unicase/totitle.h: Likewise.
10225         * lib/unicase/toupper.h: Likewise.
10226         * lib/unictype/bidi_of.h: Likewise.
10227         * lib/unictype/blocks.h: Likewise.
10228         * lib/unictype/categ_C.h: Likewise.
10229         * lib/unictype/categ_Cn.h: Likewise.
10230         * lib/unictype/categ_L.h: Likewise.
10231         * lib/unictype/categ_Ll.h: Likewise.
10232         * lib/unictype/categ_Lm.h: Likewise.
10233         * lib/unictype/categ_Lo.h: Likewise.
10234         * lib/unictype/categ_Lu.h: Likewise.
10235         * lib/unictype/categ_M.h: Likewise.
10236         * lib/unictype/categ_Mc.h: Likewise.
10237         * lib/unictype/categ_Me.h: Likewise.
10238         * lib/unictype/categ_Mn.h: Likewise.
10239         * lib/unictype/categ_N.h: Likewise.
10240         * lib/unictype/categ_Nd.h: Likewise.
10241         * lib/unictype/categ_No.h: Likewise.
10242         * lib/unictype/categ_P.h: Likewise.
10243         * lib/unictype/categ_Po.h: Likewise.
10244         * lib/unictype/categ_S.h: Likewise.
10245         * lib/unictype/categ_Sc.h: Likewise.
10246         * lib/unictype/categ_Sk.h: Likewise.
10247         * lib/unictype/categ_Sm.h: Likewise.
10248         * lib/unictype/categ_So.h: Likewise.
10249         * lib/unictype/categ_of.h: Likewise.
10250         * lib/unictype/combining.h: Likewise.
10251         * lib/unictype/ctype_alnum.h: Likewise.
10252         * lib/unictype/ctype_alpha.h: Likewise.
10253         * lib/unictype/ctype_graph.h: Likewise.
10254         * lib/unictype/ctype_lower.h: Likewise.
10255         * lib/unictype/ctype_print.h: Likewise.
10256         * lib/unictype/ctype_punct.h: Likewise.
10257         * lib/unictype/ctype_upper.h: Likewise.
10258         * lib/unictype/decdigit.h: Likewise.
10259         * lib/unictype/digit.h: Likewise.
10260         * lib/unictype/numeric.h: Likewise.
10261         * lib/unictype/pr_alphabetic.h: Likewise.
10262         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10264         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10265         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10266         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10267         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10268         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10269         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10270         * lib/unictype/pr_case_ignorable.h: Likewise.
10271         * lib/unictype/pr_cased.h: Likewise.
10272         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10273         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10274         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10275         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10276         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10277         * lib/unictype/pr_combining.h: Likewise.
10278         * lib/unictype/pr_composite.h: Likewise.
10279         * lib/unictype/pr_currency_symbol.h: Likewise.
10280         * lib/unictype/pr_decimal_digit.h: Likewise.
10281         * lib/unictype/pr_deprecated.h: Likewise.
10282         * lib/unictype/pr_format_control.h: Likewise.
10283         * lib/unictype/pr_grapheme_base.h: Likewise.
10284         * lib/unictype/pr_grapheme_extend.h: Likewise.
10285         * lib/unictype/pr_grapheme_link.h: Likewise.
10286         * lib/unictype/pr_id_continue.h: Likewise.
10287         * lib/unictype/pr_id_start.h: Likewise.
10288         * lib/unictype/pr_ideographic.h: Likewise.
10289         * lib/unictype/pr_lowercase.h: Likewise.
10290         * lib/unictype/pr_math.h: Likewise.
10291         * lib/unictype/pr_numeric.h: Likewise.
10292         * lib/unictype/pr_other_alphabetic.h: Likewise.
10293         * lib/unictype/pr_other_id_continue.h: Likewise.
10294         * lib/unictype/pr_other_math.h: Likewise.
10295         * lib/unictype/pr_punctuation.h: Likewise.
10296         * lib/unictype/pr_sentence_terminal.h: Likewise.
10297         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10298         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10299         * lib/unictype/pr_unified_ideograph.h: Likewise.
10300         * lib/unictype/pr_uppercase.h: Likewise.
10301         * lib/unictype/pr_xid_continue.h: Likewise.
10302         * lib/unictype/pr_xid_start.h: Likewise.
10303         * lib/unictype/scripts.h: Likewise.
10304         * lib/unictype/scripts_byname.gperf: Likewise.
10305         * lib/unictype/sy_java_ident.h: Likewise.
10306         * lib/unigbrk/gbrkprop.h: Likewise.
10307         * lib/unilbrk/lbrkprop1.h: Likewise.
10308         * lib/unilbrk/lbrkprop2.h: Likewise.
10309         * lib/uninorm/decomposition-table2.h: Likewise.
10310         * lib/uniwbrk/wbrkprop.h: Likewise.
10311         * tests/unicase/test-cased.c: Likewise.
10312         * tests/unicase/test-ignorable.c: Likewise.
10313         * tests/unicase/test-uc_tolower.c: Likewise.
10314         * tests/unicase/test-uc_totitle.c: Likewise.
10315         * tests/unicase/test-uc_toupper.c: Likewise.
10316         * tests/unictype/test-categ_C.c: Likewise.
10317         * tests/unictype/test-categ_Cn.c: Likewise.
10318         * tests/unictype/test-categ_L.c: Likewise.
10319         * tests/unictype/test-categ_Ll.c: Likewise.
10320         * tests/unictype/test-categ_Lm.c: Likewise.
10321         * tests/unictype/test-categ_Lo.c: Likewise.
10322         * tests/unictype/test-categ_Lu.c: Likewise.
10323         * tests/unictype/test-categ_M.c: Likewise.
10324         * tests/unictype/test-categ_Mc.c: Likewise.
10325         * tests/unictype/test-categ_Me.c: Likewise.
10326         * tests/unictype/test-categ_Mn.c: Likewise.
10327         * tests/unictype/test-categ_N.c: Likewise.
10328         * tests/unictype/test-categ_Nd.c: Likewise.
10329         * tests/unictype/test-categ_No.c: Likewise.
10330         * tests/unictype/test-categ_P.c: Likewise.
10331         * tests/unictype/test-categ_Po.c: Likewise.
10332         * tests/unictype/test-categ_S.c: Likewise.
10333         * tests/unictype/test-categ_Sc.c: Likewise.
10334         * tests/unictype/test-categ_Sk.c: Likewise.
10335         * tests/unictype/test-categ_Sm.c: Likewise.
10336         * tests/unictype/test-categ_So.c: Likewise.
10337         * tests/unictype/test-ctype_alnum.c: Likewise.
10338         * tests/unictype/test-ctype_alpha.c: Likewise.
10339         * tests/unictype/test-ctype_graph.c: Likewise.
10340         * tests/unictype/test-ctype_lower.c: Likewise.
10341         * tests/unictype/test-ctype_print.c: Likewise.
10342         * tests/unictype/test-ctype_punct.c: Likewise.
10343         * tests/unictype/test-ctype_upper.c: Likewise.
10344         * tests/unictype/test-decdigit.h: Likewise.
10345         * tests/unictype/test-digit.h: Likewise.
10346         * tests/unictype/test-numeric.h: Likewise.
10347         * tests/unictype/test-pr_alphabetic.c: Likewise.
10348         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10349         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10350         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10351         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10352         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10353         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10354         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10355         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10356         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10357         * tests/unictype/test-pr_cased.c: Likewise.
10358         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10359         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10360         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10361         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10362         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10363         * tests/unictype/test-pr_combining.c: Likewise.
10364         * tests/unictype/test-pr_composite.c: Likewise.
10365         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10366         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10367         * tests/unictype/test-pr_deprecated.c: Likewise.
10368         * tests/unictype/test-pr_format_control.c: Likewise.
10369         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10370         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10371         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10372         * tests/unictype/test-pr_id_continue.c: Likewise.
10373         * tests/unictype/test-pr_id_start.c: Likewise.
10374         * tests/unictype/test-pr_ideographic.c: Likewise.
10375         * tests/unictype/test-pr_lowercase.c: Likewise.
10376         * tests/unictype/test-pr_math.c: Likewise.
10377         * tests/unictype/test-pr_numeric.c: Likewise.
10378         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10379         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10380         * tests/unictype/test-pr_other_math.c: Likewise.
10381         * tests/unictype/test-pr_punctuation.c: Likewise.
10382         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10383         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10384         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10385         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10386         * tests/unictype/test-pr_uppercase.c: Likewise.
10387         * tests/unictype/test-pr_xid_continue.c: Likewise.
10388         * tests/unictype/test-pr_xid_start.c: Likewise.
10389         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10390         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10391         changes.
10392         * lib/unictype/categ_Cc.h: Likewise.
10393         * lib/unictype/categ_Cf.h: Likewise.
10394         * lib/unictype/categ_Co.h: Likewise.
10395         * lib/unictype/categ_Cs.h: Likewise.
10396         * lib/unictype/categ_Lt.h: Likewise.
10397         * lib/unictype/categ_Nl.h: Likewise.
10398         * lib/unictype/categ_Pc.h: Likewise.
10399         * lib/unictype/categ_Pd.h: Likewise.
10400         * lib/unictype/categ_Pe.h: Likewise.
10401         * lib/unictype/categ_Pf.h: Likewise.
10402         * lib/unictype/categ_Pi.h: Likewise.
10403         * lib/unictype/categ_Ps.h: Likewise.
10404         * lib/unictype/categ_Z.h: Likewise.
10405         * lib/unictype/categ_Zl.h: Likewise.
10406         * lib/unictype/categ_Zp.h: Likewise.
10407         * lib/unictype/categ_Zs.h: Likewise.
10408         * lib/unictype/ctype_blank.h: Likewise.
10409         * lib/unictype/ctype_cntrl.h: Likewise.
10410         * lib/unictype/ctype_digit.h: Likewise.
10411         * lib/unictype/ctype_space.h: Likewise.
10412         * lib/unictype/ctype_xdigit.h: Likewise.
10413         * lib/unictype/mirror.h: Likewise.
10414         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10415         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10416         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10417         * lib/unictype/pr_bidi_control.h: Likewise.
10418         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10419         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10420         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10421         * lib/unictype/pr_bidi_pdf.h: Likewise.
10422         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10423         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10424         * lib/unictype/pr_dash.h: Likewise.
10425         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10426         * lib/unictype/pr_diacritic.h: Likewise.
10427         * lib/unictype/pr_extender.h: Likewise.
10428         * lib/unictype/pr_hex_digit.h: Likewise.
10429         * lib/unictype/pr_hyphen.h: Likewise.
10430         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10431         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10432         * lib/unictype/pr_ignorable_control.h: Likewise.
10433         * lib/unictype/pr_iso_control.h: Likewise.
10434         * lib/unictype/pr_join_control.h: Likewise.
10435         * lib/unictype/pr_left_of_pair.h: Likewise.
10436         * lib/unictype/pr_line_separator.h: Likewise.
10437         * lib/unictype/pr_logical_order_exception.h: Likewise.
10438         * lib/unictype/pr_non_break.h: Likewise.
10439         * lib/unictype/pr_not_a_character.h: Likewise.
10440         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10441         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10442         * lib/unictype/pr_other_id_start.h: Likewise.
10443         * lib/unictype/pr_other_lowercase.h: Likewise.
10444         * lib/unictype/pr_other_uppercase.h: Likewise.
10445         * lib/unictype/pr_paired_punctuation.h: Likewise.
10446         * lib/unictype/pr_paragraph_separator.h: Likewise.
10447         * lib/unictype/pr_pattern_syntax.h: Likewise.
10448         * lib/unictype/pr_pattern_white_space.h: Likewise.
10449         * lib/unictype/pr_private_use.h: Likewise.
10450         * lib/unictype/pr_quotation_mark.h: Likewise.
10451         * lib/unictype/pr_radical.h: Likewise.
10452         * lib/unictype/pr_soft_dotted.h: Likewise.
10453         * lib/unictype/pr_space.h: Likewise.
10454         * lib/unictype/pr_titlecase.h: Likewise.
10455         * lib/unictype/pr_variation_selector.h: Likewise.
10456         * lib/unictype/pr_white_space.h: Likewise.
10457         * lib/unictype/pr_zero_width.h: Likewise.
10458         * lib/unictype/sy_c_ident.h: Likewise.
10459         * lib/unictype/sy_c_whitespace.h: Likewise.
10460         * lib/unictype/sy_java_whitespace.h: Likewise.
10461         * lib/uninorm/composition-table.gperf: Likewise.
10462         * lib/uninorm/decomposition-table1.h: Likewise.
10463         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10464         LB8.
10465         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10466         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10467         * modules/unictype/*: Bump version number of expected libunistring
10468         version.
10469
10470 2011-01-09  Bruno Haible  <bruno@clisp.org>
10471
10472         Update to Unicode 5.2.0.
10473         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10474         trailing whitespace removed.
10475
10476 2011-01-09  Bruno Haible  <bruno@clisp.org>
10477
10478         New Unicode character properties, from Unicode 5.2.0.
10479         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10480         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10481         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10482         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10483         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10484         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10485         uc_is_property_cased, uc_is_property_case_ignorable,
10486         uc_is_property_changes_when_lowercased,
10487         uc_is_property_changes_when_uppercased,
10488         uc_is_property_changes_when_titlecased,
10489         uc_is_property_changes_when_casefolded,
10490         uc_is_property_changes_when_casemapped): New declarations.
10491         * lib/unictype/pr_byname.gperf: Add the new properties.
10492         * modules/unictype/property-byname (Depends-on): Depend on the new
10493         properties modules.
10494         * modules/unictype/property-all (Depends-on): Likewise.
10495         * MODULES.html.sh (Unicode string functions): Add
10496         unictype/property-case-ignorable, unictype/property-cased,
10497         unictype/property-changes-when-casefolded,
10498         unictype/property-changes-when-casemapped,
10499         unictype/property-changes-when-lowercased,
10500         unictype/property-changes-when-titlecased,
10501         unictype/property-changes-when-uppercased.
10502
10503         New module 'unictype/property-changes-when-casemapped'.
10504         * modules/unictype/property-changes-when-casemapped: New file.
10505         * lib/unictype/pr_changes_when_casemapped.c: New file.
10506         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10507         generated by gen-uni-tables.
10508         * modules/unictype/property-changes-when-casemapped-tests: New file.
10509         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10510         automatically generated by gen-uni-tables.
10511
10512         New module 'unictype/property-changes-when-casefolded'.
10513         * modules/unictype/property-changes-when-casefolded: New file.
10514         * lib/unictype/pr_changes_when_casefolded.c: New file.
10515         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10516         generated by gen-uni-tables.
10517         * modules/unictype/property-changes-when-casefolded-tests: New file.
10518         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10519         automatically generated by gen-uni-tables.
10520
10521         New module 'unictype/property-changes-when-titlecased'.
10522         * modules/unictype/property-changes-when-titlecased: New file.
10523         * lib/unictype/pr_changes_when_titlecased.c: New file.
10524         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10525         generated by gen-uni-tables.
10526         * modules/unictype/property-changes-when-titlecased-tests: New file.
10527         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10528         automatically generated by gen-uni-tables.
10529
10530         New module 'unictype/property-changes-when-uppercased'.
10531         * modules/unictype/property-changes-when-uppercased: New file.
10532         * lib/unictype/pr_changes_when_uppercased.c: New file.
10533         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10534         generated by gen-uni-tables.
10535         * modules/unictype/property-changes-when-uppercased-tests: New file.
10536         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10537         automatically generated by gen-uni-tables.
10538
10539         New module 'unictype/property-changes-when-lowercased'.
10540         * modules/unictype/property-changes-when-lowercased: New file.
10541         * lib/unictype/pr_changes_when_lowercased.c: New file.
10542         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10543         generated by gen-uni-tables.
10544         * modules/unictype/property-changes-when-lowercased-tests: New file.
10545         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10546         automatically generated by gen-uni-tables.
10547
10548         New module 'unictype/property-case-ignorable'.
10549         * modules/unictype/property-case-ignorable: New file.
10550         * lib/unictype/pr_case_ignorable.c: New file.
10551         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10552         by gen-uni-tables.
10553         * modules/unictype/property-case-ignorable-tests: New file.
10554         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10555         generated by gen-uni-tables.
10556
10557         New module 'unictype/property-cased'.
10558         * modules/unictype/property-cased: New file.
10559         * lib/unictype/pr_cased.c: New file.
10560         * lib/unictype/pr_cased.h: New file, automatically generated by
10561         gen-uni-tables.
10562         * modules/unictype/property-cased-tests: New file.
10563         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10564         gen-uni-tables.
10565
10566 2011-01-09  Bruno Haible  <bruno@clisp.org>
10567
10568         Update to Unicode 5.2.0.
10569         * lib/gen-uni-tables.c (output_predicate, output_category,
10570         output_combclass, output_bidi_category, output_decimal_digit_test,
10571         output_decimal_digit, output_digit_test, output_digit,
10572         output_numeric_test, output_numeric, output_mirror, output_scripts,
10573         output_scripts_byname, output_blocks, output_ident_category): Fix
10574         comment header.
10575         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10576         get_wbp.
10577         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10578         items.
10579         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10580         Changes_When_Lowercased, Changes_When_Uppercased,
10581         Changes_When_Titlecased, Changes_When_Casefolded,
10582         Changes_When_Casemapped.
10583         (is_property_alphabetic, is_property_default_ignorable_code_point):
10584         Update for Unicode 5.2.0.
10585         (is_property_cased, is_property_case_ignorable,
10586         is_property_changes_when_lowercased,
10587         is_property_changes_when_uppercased,
10588         is_property_changes_when_titlecased,
10589         is_property_changes_when_casefolded,
10590         is_property_changes_when_casemapped): New functions.
10591         (output_properties): Output also the properties cased, case_ignorable,
10592         changes_when_lowercased, changes_when_uppercased,
10593         changes_when_titlecased, changes_when_casefolded,
10594         changes_when_casemapped.
10595         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10596         Unicode TR#11 revision 17 -> 19.
10597         (LBP_CP): New enumeration value.
10598         (LBP_*): Adjust values accordingly.
10599         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10600         TR#14 revision 22 -> 24.
10601         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10602         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10603         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10604         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10605         is_WBP_MIDLETTER.
10606         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10607         the code1 and code2 of each composition rule.
10608         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10609         * lib/unicase/ignorable.h: Likewise.
10610         * lib/unicase/tocasefold.h: Likewise.
10611         * lib/unicase/tolower.h: Likewise.
10612         * lib/unicase/totitle.h: Likewise.
10613         * lib/unicase/toupper.h: Likewise.
10614         * lib/unictype/bidi_of.h: Likewise.
10615         * lib/unictype/blocks.h: Likewise.
10616         * lib/unictype/categ_C.h: Likewise.
10617         * lib/unictype/categ_Cf.h: Likewise.
10618         * lib/unictype/categ_Cn.h: Likewise.
10619         * lib/unictype/categ_L.h: Likewise.
10620         * lib/unictype/categ_Ll.h: Likewise.
10621         * lib/unictype/categ_Lm.h: Likewise.
10622         * lib/unictype/categ_Lo.h: Likewise.
10623         * lib/unictype/categ_Lu.h: Likewise.
10624         * lib/unictype/categ_M.h: Likewise.
10625         * lib/unictype/categ_Mc.h: Likewise.
10626         * lib/unictype/categ_Mn.h: Likewise.
10627         * lib/unictype/categ_N.h: Likewise.
10628         * lib/unictype/categ_Nd.h: Likewise.
10629         * lib/unictype/categ_Nl.h: Likewise.
10630         * lib/unictype/categ_No.h: Likewise.
10631         * lib/unictype/categ_P.h: Likewise.
10632         * lib/unictype/categ_Pd.h: Likewise.
10633         * lib/unictype/categ_Po.h: Likewise.
10634         * lib/unictype/categ_S.h: Likewise.
10635         * lib/unictype/categ_Sc.h: Likewise.
10636         * lib/unictype/categ_So.h: Likewise.
10637         * lib/unictype/categ_of.h: Likewise.
10638         * lib/unictype/combining.h: Likewise.
10639         * lib/unictype/ctype_alnum.h: Likewise.
10640         * lib/unictype/ctype_alpha.h: Likewise.
10641         * lib/unictype/ctype_graph.h: Likewise.
10642         * lib/unictype/ctype_lower.h: Likewise.
10643         * lib/unictype/ctype_print.h: Likewise.
10644         * lib/unictype/ctype_punct.h: Likewise.
10645         * lib/unictype/ctype_upper.h: Likewise.
10646         * lib/unictype/decdigit.h: Likewise.
10647         * lib/unictype/digit.h: Likewise.
10648         * lib/unictype/numeric.h: Likewise.
10649         * lib/unictype/pr_alphabetic.h: Likewise.
10650         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10651         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10652         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10653         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10654         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10655         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10656         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10657         * lib/unictype/pr_combining.h: Likewise.
10658         * lib/unictype/pr_composite.h: Likewise.
10659         * lib/unictype/pr_currency_symbol.h: Likewise.
10660         * lib/unictype/pr_dash.h: Likewise.
10661         * lib/unictype/pr_decimal_digit.h: Likewise.
10662         * lib/unictype/pr_deprecated.h: Likewise.
10663         * lib/unictype/pr_diacritic.h: Likewise.
10664         * lib/unictype/pr_extender.h: Likewise.
10665         * lib/unictype/pr_grapheme_base.h: Likewise.
10666         * lib/unictype/pr_grapheme_extend.h: Likewise.
10667         * lib/unictype/pr_grapheme_link.h: Likewise.
10668         * lib/unictype/pr_id_continue.h: Likewise.
10669         * lib/unictype/pr_id_start.h: Likewise.
10670         * lib/unictype/pr_ideographic.h: Likewise.
10671         * lib/unictype/pr_ignorable_control.h: Likewise.
10672         * lib/unictype/pr_logical_order_exception.h: Likewise.
10673         * lib/unictype/pr_lowercase.h: Likewise.
10674         * lib/unictype/pr_numeric.h: Likewise.
10675         * lib/unictype/pr_other_alphabetic.h: Likewise.
10676         * lib/unictype/pr_punctuation.h: Likewise.
10677         * lib/unictype/pr_sentence_terminal.h: Likewise.
10678         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10679         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10680         * lib/unictype/pr_unified_ideograph.h: Likewise.
10681         * lib/unictype/pr_uppercase.h: Likewise.
10682         * lib/unictype/pr_xid_continue.h: Likewise.
10683         * lib/unictype/pr_xid_start.h: Likewise.
10684         * lib/unictype/pr_zero_width.h: Likewise.
10685         * lib/unictype/scripts.h: Likewise.
10686         * lib/unictype/scripts_byname.gperf: Likewise.
10687         * lib/unictype/sy_java_ident.h: Likewise.
10688         * lib/unigbrk/gbrkprop.h: Likewise.
10689         * lib/unilbrk/lbrkprop1.h: Likewise.
10690         * lib/unilbrk/lbrkprop2.h: Likewise.
10691         * lib/unilbrk/lbrktables.h: Likewise.
10692         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10693         LBP_CP. Implement rule LB30.
10694         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10695         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10696         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10697         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10698         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10699         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10700         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10701         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10702         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10703         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10704         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10705         bits instead of 16 bits in the code1 and code2 of each composition
10706         rule.
10707         (uc_composition): Update for Unicode 5.2.0.
10708         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10709         * lib/uninorm/decomposition-table2.h: Likewise.
10710         * lib/uniwbrk/wbrkprop.h: Likewise.
10711         * tests/unicase/test-cased.c: Likewise.
10712         * tests/unicase/test-ignorable.c: Likewise.
10713         * tests/unicase/test-uc_tolower.c: Likewise.
10714         * tests/unicase/test-uc_totitle.c: Likewise.
10715         * tests/unicase/test-uc_toupper.c: Likewise.
10716         * tests/unictype/test-categ_C.c: Likewise.
10717         * tests/unictype/test-categ_Cf.c: Likewise.
10718         * tests/unictype/test-categ_Cn.c: Likewise.
10719         * tests/unictype/test-categ_L.c: Likewise.
10720         * tests/unictype/test-categ_Ll.c: Likewise.
10721         * tests/unictype/test-categ_Lm.c: Likewise.
10722         * tests/unictype/test-categ_Lo.c: Likewise.
10723         * tests/unictype/test-categ_Lu.c: Likewise.
10724         * tests/unictype/test-categ_M.c: Likewise.
10725         * tests/unictype/test-categ_Mc.c: Likewise.
10726         * tests/unictype/test-categ_Mn.c: Likewise.
10727         * tests/unictype/test-categ_N.c: Likewise.
10728         * tests/unictype/test-categ_Nd.c: Likewise.
10729         * tests/unictype/test-categ_Nl.c: Likewise.
10730         * tests/unictype/test-categ_No.c: Likewise.
10731         * tests/unictype/test-categ_P.c: Likewise.
10732         * tests/unictype/test-categ_Pd.c: Likewise.
10733         * tests/unictype/test-categ_Po.c: Likewise.
10734         * tests/unictype/test-categ_S.c: Likewise.
10735         * tests/unictype/test-categ_Sc.c: Likewise.
10736         * tests/unictype/test-categ_So.c: Likewise.
10737         * tests/unictype/test-ctype_alnum.c: Likewise.
10738         * tests/unictype/test-ctype_alpha.c: Likewise.
10739         * tests/unictype/test-ctype_graph.c: Likewise.
10740         * tests/unictype/test-ctype_lower.c: Likewise.
10741         * tests/unictype/test-ctype_print.c: Likewise.
10742         * tests/unictype/test-ctype_punct.c: Likewise.
10743         * tests/unictype/test-ctype_upper.c: Likewise.
10744         * tests/unictype/test-decdigit.h: Likewise.
10745         * tests/unictype/test-digit.h: Likewise.
10746         * tests/unictype/test-numeric.h: Likewise.
10747         * tests/unictype/test-pr_alphabetic.c: Likewise.
10748         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10750         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10751         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10752         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10753         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10754         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10755         * tests/unictype/test-pr_combining.c: Likewise.
10756         * tests/unictype/test-pr_composite.c: Likewise.
10757         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10758         * tests/unictype/test-pr_dash.c: Likewise.
10759         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10760         * tests/unictype/test-pr_deprecated.c: Likewise.
10761         * tests/unictype/test-pr_diacritic.c: Likewise.
10762         * tests/unictype/test-pr_extender.c: Likewise.
10763         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10764         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10765         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10766         * tests/unictype/test-pr_id_continue.c: Likewise.
10767         * tests/unictype/test-pr_id_start.c: Likewise.
10768         * tests/unictype/test-pr_ideographic.c: Likewise.
10769         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10770         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10771         * tests/unictype/test-pr_lowercase.c: Likewise.
10772         * tests/unictype/test-pr_numeric.c: Likewise.
10773         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10774         * tests/unictype/test-pr_punctuation.c: Likewise.
10775         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10776         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10777         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10778         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10779         * tests/unictype/test-pr_uppercase.c: Likewise.
10780         * tests/unictype/test-pr_xid_continue.c: Likewise.
10781         * tests/unictype/test-pr_xid_start.c: Likewise.
10782         * tests/unictype/test-pr_zero_width.c: Likewise.
10783         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10784         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10785         changed behaviour: line breaking is now disallowed between a letter
10786         or '=' and '('.
10787         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10788         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10789         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10790         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10791         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10792         lib/uniwidth/width.c.
10793         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10794         without comments, but with the original copyright notice.
10795         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10796         changes.
10797         * lib/unictype/categ_Cc.h: Likewise.
10798         * lib/unictype/categ_Co.h: Likewise.
10799         * lib/unictype/categ_Cs.h: Likewise.
10800         * lib/unictype/categ_Lt.h: Likewise.
10801         * lib/unictype/categ_Me.h: Likewise.
10802         * lib/unictype/categ_Pc.h: Likewise.
10803         * lib/unictype/categ_Pe.h: Likewise.
10804         * lib/unictype/categ_Pf.h: Likewise.
10805         * lib/unictype/categ_Pi.h: Likewise.
10806         * lib/unictype/categ_Ps.h: Likewise.
10807         * lib/unictype/categ_Sk.h: Likewise.
10808         * lib/unictype/categ_Sm.h: Likewise.
10809         * lib/unictype/categ_Z.h: Likewise.
10810         * lib/unictype/categ_Zl.h: Likewise.
10811         * lib/unictype/categ_Zp.h: Likewise.
10812         * lib/unictype/categ_Zs.h: Likewise.
10813         * lib/unictype/ctype_blank.h: Likewise.
10814         * lib/unictype/ctype_cntrl.h: Likewise.
10815         * lib/unictype/ctype_digit.h: Likewise.
10816         * lib/unictype/ctype_space.h: Likewise.
10817         * lib/unictype/ctype_xdigit.h: Likewise.
10818         * lib/unictype/mirror.h: Likewise.
10819         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10820         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10821         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10822         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10823         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10824         * lib/unictype/pr_bidi_control.h: Likewise.
10825         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10826         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10827         * lib/unictype/pr_bidi_pdf.h: Likewise.
10828         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10829         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10830         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10831         * lib/unictype/pr_format_control.h: Likewise.
10832         * lib/unictype/pr_hex_digit.h: Likewise.
10833         * lib/unictype/pr_hyphen.h: Likewise.
10834         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10835         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10836         * lib/unictype/pr_iso_control.h: Likewise.
10837         * lib/unictype/pr_join_control.h: Likewise.
10838         * lib/unictype/pr_left_of_pair.h: Likewise.
10839         * lib/unictype/pr_line_separator.h: Likewise.
10840         * lib/unictype/pr_math.h: Likewise.
10841         * lib/unictype/pr_non_break.h: Likewise.
10842         * lib/unictype/pr_not_a_character.h: Likewise.
10843         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10844         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10845         * lib/unictype/pr_other_id_continue.h: Likewise.
10846         * lib/unictype/pr_other_id_start.h: Likewise.
10847         * lib/unictype/pr_other_lowercase.h: Likewise.
10848         * lib/unictype/pr_other_math.h: Likewise.
10849         * lib/unictype/pr_other_uppercase.h: Likewise.
10850         * lib/unictype/pr_paired_punctuation.h: Likewise.
10851         * lib/unictype/pr_paragraph_separator.h: Likewise.
10852         * lib/unictype/pr_pattern_syntax.h: Likewise.
10853         * lib/unictype/pr_pattern_white_space.h: Likewise.
10854         * lib/unictype/pr_private_use.h: Likewise.
10855         * lib/unictype/pr_quotation_mark.h: Likewise.
10856         * lib/unictype/pr_radical.h: Likewise.
10857         * lib/unictype/pr_soft_dotted.h: Likewise.
10858         * lib/unictype/pr_space.h: Likewise.
10859         * lib/unictype/pr_titlecase.h: Likewise.
10860         * lib/unictype/pr_variation_selector.h: Likewise.
10861         * lib/unictype/pr_white_space.h: Likewise.
10862         * lib/unictype/sy_c_ident.h: Likewise.
10863         * lib/unictype/sy_c_whitespace.h: Likewise.
10864         * lib/unictype/sy_java_whitespace.h: Likewise.
10865         * modules/uni*/*: Bump version number of expected libunistring version.
10866         Reported by Simon Josefsson.
10867
10868 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10869
10870         useless-if-before-free: fix typo in --help and make the internal,
10871         automatic version date update process work once again.
10872         --help output contained a NUL character instead of the
10873         backslash-zero that was intended.  Also, the "must lie within
10874         the first 8 lines" line is on line 9, and hence not getting
10875         automatically updated.
10876         * build-aux/useless-if-before-free: Fix the former by adding a
10877         backslash, and the latter by condensing the three lines of what-it-does
10878         to a single line, leaving one line of slack for the future.
10879
10880 2011-01-09  Bruno Haible  <bruno@clisp.org>
10881
10882         uniwidth/width: Fix width of U+1D173..U+1D17A.
10883         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10884         symbolic_width, output_width_property_test): New functions.
10885         (main): Invoke output_nonspacing_property, output_width_property_test.
10886         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10887         U+1D173..U+1D17A.
10888         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10889         1.
10890         * modules/uniwidth/*: Bump version number of expected libunistring
10891         version.
10892         * modules/unilbrk/*: Likewise.
10893
10894 2011-01-08  Bruno Haible  <bruno@clisp.org>
10895
10896         uninorm tests: Preserve copyright of Unicode data file.
10897         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10898         Mention modifications.
10899
10900 2011-01-08  Bruno Haible  <bruno@clisp.org>
10901
10902         gen-uni-tables: Prepare for Unicode 5.2.0.
10903         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10904         (debug_output_lbp, output_lbp): Update.
10905
10906 2011-01-08  Bruno Haible  <bruno@clisp.org>
10907
10908         unilbrk: Clarify gen-uni-tables.c code.
10909         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10910         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10911         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10912
10913 2011-01-07  Bruno Haible  <bruno@clisp.org>
10914
10915         strtod: Restore errno when successfully parsing Infinity or NaN.
10916         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10917         restore the original errno.
10918
10919 2011-01-07  Bruno Haible  <bruno@clisp.org>
10920
10921         remove test: Avoid failure on HP-UX 11.
10922         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10923
10924 2011-01-07  Bruno Haible  <bruno@clisp.org>
10925
10926         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10927         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10928         error code.
10929
10930 2011-01-07  Pádraig Brady <P@draigBrady.com>
10931
10932         ignore-value: fixup comments, and add Eric Blake
10933         as an author since he rewrote the macros.
10934         * lib/ignore-value.h (ignore_value):  State that
10935         we now support aggregates.  Also specify exactly
10936         when the GCC warn_unused_result feature was added.
10937
10938 2011-01-06  Eric Blake  <eblake@redhat.com>
10939
10940         ignore-value: support aggregate types
10941         * lib/ignore-value.h (ignore_value): Provide separate gcc
10942         definition.
10943         * modules/ignore-value-tests: New test module.
10944         * tests/test-ignore-value.c: New test.
10945
10946         maint.mk: improve sc_prohibit_strcmp regex
10947         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10948         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10949         definition of STRNEQ.
10950
10951         signal: work around Haiku issue with SIGBUS
10952         * lib/siglist.h: Add comment.
10953         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10954         strsignal's favoring of SIGSEGV.
10955         * tests/test-signal.c (main): Avoid test failure.
10956         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10957         Reported by Scott McCreary.
10958
10959         maint.mk: add pre-release check to ensure submodule commits are public
10960         * top/maint.mk (public-submodule-commit): New rule.
10961         (submodule-checks): New variable.
10962         (alpha beta stable): Depend on the variable.
10963
10964 2011-01-05  Pádraig Brady <P@draigBrady.com>
10965         and Jim Meyering  <meyering@redhat.com>
10966
10967         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10968         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10969         (ATTRIBUTE_DEPRECATED): Define.
10970         (_ignore_case): New function.
10971         (ignore_value): New macro, to replace the old function.
10972         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10973         * modules/ignore-value (Depends-on): Add stdint.
10974
10975 2011-01-04  Eric Blake  <eblake@redhat.com>
10976
10977         doc: regenerate INSTALL
10978         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10979         @firstparagraphindent support, now that autoconf dropped it.
10980         (INSTALL_PRELUDE): Reinstate old macro.
10981         * doc/install.texi: Resync from autoconf.
10982         * doc/INSTALL: Reflect recent autoconf update.
10983         * doc/INSTALL.ISO: Likewise.
10984         * doc/INSTALL.UTF-8: Likewise.
10985         Reported by Karl Berry.
10986
10987 2011-01-04  Bruce Korb  <address@hidden>
10988
10989         git-version-gen: avoid a sub-shell
10990         * build-aux/git-version-gen: Redirect stderr in `...` via
10991         "exec 2>...", rather than via an added sub-shell.
10992
10993 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10994
10995         git-version-gen: use (...) rather than sh -c '...'
10996         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10997         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10998
10999 2011-01-03  Jim Meyering  <meyering@redhat.com>
11000
11001         git-version-gen: convert leading TABs to spaces
11002         * build-aux/git-version-gen: Expand leading TABs.
11003
11004         git-version-gen: handle failed "git rev-list"
11005         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11006         from git and proceeding as if it had succeeded but printed no SHA1
11007         checksums, suppress the diagnostic and handle the failure.
11008         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11009
11010         git-version-gen: include command name in one more diagnostic
11011         * build-aux/git-version-gen: When the required .tarball-version file
11012         was missing or unreadable, you might see the diagnostic from "cat",
11013         but no trace of the name of the invoking script.  Now, you still see
11014         the diagnostic from cat, but also get one from "git-version-gen: ".
11015         Inspired by a patch from Bruce Korb.
11016
11017         update-copyright: adjust test to match changed code
11018         * tests/test-update-copyright.sh: Change test's expected output
11019         to match new actual output.
11020
11021 2011-01-02  Bruno Haible  <bruno@clisp.org>
11022
11023         getlogin_r: Avoid test failure on HP-UX 11.
11024         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11025         ERANGE when the second argument is zero.
11026         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11027         portability problem.
11028
11029 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11030
11031         * build-aux/update-copyright: doc Simon's changes
11032
11033 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11034
11035         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11036         environment variable.
11037
11038 2011-01-02  Bruno Haible  <bruno@clisp.org>
11039
11040         unigbrk: Avoid gcc warnings.
11041         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11042         unused variable.
11043         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11044         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11045         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11046         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11047         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11048         Change type of first argument to 'const char *'.
11049         (main): Remove unused variable.
11050         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11051         type of first argument to 'const char *'.
11052         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11053         Likewise.
11054         (main): Change type of variable 's'.
11055         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11056         to 'int'.
11057
11058 2011-01-02  Bruno Haible  <bruno@clisp.org>
11059
11060         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11061         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11062         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11063         bug.
11064         * lib/pwrite.c: Undo 2010-12-31 patch.
11065         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11066
11067 2011-01-02  Bruno Haible  <bruno@clisp.org>
11068
11069         pread: Fix test whether it works.
11070         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11071
11072 2011-01-02  Bruno Haible  <bruno@clisp.org>
11073
11074         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11075         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11076         ends in "6". Don't require a specific month name. Try also the locale
11077         names found on HP-UX 11 and Solaris 7.
11078
11079 2011-01-02  Bruno Haible  <bruno@clisp.org>
11080
11081         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11082         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11083         C linkage.
11084         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11085
11086 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11087
11088         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11089         for consistency, since the "cluster" term is not used elsewhere.
11090         * lib/unigbrk.in.h: Update name.
11091         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11092         * lib/unigbrk/u16-grapheme-next.c: Update name.
11093         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11094         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11095         * lib/unigbrk/u32-grapheme-next.c: Update name.
11096         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11097         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11098         * lib/unigbrk/u8-grapheme-next.c: Update name.
11099         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11100         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11101         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11102         Suggested by Bruno Haible.
11103
11104 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11105
11106         Remove module 'u8-grapheme-len' as too redundant with
11107         'u8-grapheme-next'.
11108         * modules/unigbrk/u8-grapheme-len: Delete file.
11109         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11110         * lib/unigbrk.in.h: Remove prototype for deleted function.
11111         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11112         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11113
11114         Remove module 'u16-grapheme-len' as too redundant with
11115         'u16-grapheme-next'.
11116         * modules/unigbrk/u16-grapheme-len: Delete file.
11117         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11118         * lib/unigbrk.in.h: Remove prototype for deleted function.
11119         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11120         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11121
11122         Remove module 'u32-grapheme-len' as too redundant with
11123         'u32-grapheme-next'.
11124         * modules/unigbrk/u32-grapheme-len: Delete file.
11125         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11126         * lib/unigbrk.in.h: Remove prototype for deleted function.
11127         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11128         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11129
11130         Suggested by Bruno Haible.
11131
11132 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11133
11134         * unigbrk.in.h: Fix typo: "ben" => "been".
11135         Reported by Bruno Haible.
11136
11137 2011-01-01  Jim Meyering  <meyering@redhat.com>
11138
11139         maint: update almost all copyright ranges to include 2011
11140         Run the new "make update-copyright" rule.
11141
11142 2011-01-01  Jim Meyering  <meyering@redhat.com>
11143
11144         maint: update-copyright: exempt doc/INSTALL*
11145         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11146         since they are generated.  Suggested by Bruno Haible.
11147
11148 2011-01-01  Jim Meyering  <meyering@redhat.com>
11149
11150         maint: refine the update-copyright rule
11151         * Makefile (update-copyright): Also exclude any file that includes
11152         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11153         code that merely generates the comment.
11154
11155 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11156
11157         New module 'u8-grapheme-len'.
11158         * modules/unigbrk/u8-grapheme-len: New file.
11159         * modules/unigbrk/u8-grapheme-len-tests: New file.
11160         * lib/unigbrk.in.h: Add prototype for new function.
11161         * lib/unigbrk/u8-grapheme-len.c: New file.
11162         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11163
11164         New module 'u16-grapheme-len'.
11165         * modules/unigbrk/u16-grapheme-len: New file.
11166         * modules/unigbrk/u16-grapheme-len-tests: New file.
11167         * lib/unigbrk.in.h: Add prototype for new function.
11168         * lib/unigbrk/u16-grapheme-len.c: New file.
11169         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11170
11171         New module 'u32-grapheme-len'.
11172         * modules/unigbrk/u32-grapheme-len: New file.
11173         * modules/unigbrk/u32-grapheme-len-tests: New file.
11174         * lib/unigbrk.in.h: Add prototype for new function.
11175         * lib/unigbrk/u32-grapheme-len.c: New file.
11176         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11177
11178         New module 'u8-grapheme-next'.
11179         * modules/unigbrk/u8-grapheme-next: New file.
11180         * modules/unigbrk/u8-grapheme-next-tests: New file.
11181         * lib/unigbrk.in.h: Add prototype for new function.
11182         * lib/unigbrk/u8-grapheme-next.c: New file.
11183         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11184
11185         New module 'u16-grapheme-next'.
11186         * modules/unigbrk/u16-grapheme-next: New file.
11187         * modules/unigbrk/u16-grapheme-next-tests: New file.
11188         * lib/unigbrk.in.h: Add prototype for new function.
11189         * lib/unigbrk/u16-grapheme-next.c: New file.
11190         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11191
11192         New module 'u32-grapheme-next'.
11193         * modules/unigbrk/u32-grapheme-next: New file.
11194         * modules/unigbrk/u32-grapheme-next-tests: New file.
11195         * lib/unigbrk.in.h: Add prototype for new function.
11196         * lib/unigbrk/u32-grapheme-next.c: New file.
11197         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11198
11199         New module 'u8-grapheme-prev'.
11200         * modules/unigbrk/u8-grapheme-prev: New file.
11201         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11202         * lib/unigbrk.in.h: Add prototype for new function.
11203         * lib/unigbrk/u8-grapheme-prev.c: New file.
11204         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11205
11206         New module 'u16-grapheme-prev'.
11207         * modules/unigbrk/u16-grapheme-prev: New file.
11208         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11209         * lib/unigbrk.in.h: Add prototype for new function.
11210         * lib/unigbrk/u16-grapheme-prev.c: New file.
11211         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11212
11213         New module 'u32-grapheme-prev'.
11214         * modules/unigbrk/u32-grapheme-prev: New file.
11215         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11216         * lib/unigbrk.in.h: Add prototype for new function.
11217         * lib/unigbrk/u32-grapheme-prev.c: New file.
11218         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11219
11220         New module 'u8-grapheme-breaks'.
11221         * modules/unigbrk/u8-grapheme-breaks: New file.
11222         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11223         * lib/unigbrk.in.h: Add prototype for new function.
11224         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11225         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11226
11227         New module 'u16-grapheme-breaks'.
11228         * modules/unigbrk/u16-grapheme-breaks: New file.
11229         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11230         * lib/unigbrk.in.h: Add prototype for new function.
11231         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11232         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11233
11234         New module 'u32-grapheme-breaks'.
11235         * modules/unigbrk/u32-grapheme-breaks: New file.
11236         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11237         * lib/unigbrk.in.h: Add prototype for new function.
11238         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11239         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11240
11241         New module 'ulc-grapheme-breaks'.
11242         * modules/unigbrk/ulc-grapheme-breaks: New file.
11243         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11244         * m4/locale-ar.m4: New file.
11245         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11246         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11247         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11248
11249 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11250
11251         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11252         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11253         modified how this file was generated before I initially submitted
11254         the module, but failed to regenerate it.  This meant that several
11255         of the level2 entries were wrong.
11256         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11257         Remove the division-by-2 that is folded into the table now that
11258         gbrkprop.h has been regenerated properly.  Now -1 entries are
11259         handled correctly.
11260
11261         New module 'unigbrk/uc-gbrk-prop-tests'.
11262         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11263         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11264         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11265         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11266
11267 2011-01-01  Bruno Haible  <bruno@clisp.org>
11268
11269         Avoid use of hexadecimal escapes.
11270         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11271         instead of hexadecimal escapes.
11272
11273 2011-01-01  Jim Meyering  <meyering@redhat.com>
11274
11275         maint: new rule to update copyright year ranges
11276         * Makefile (update-copyright): New rule.
11277
11278         maint: indent with TABs in Makefile
11279         * Makefile: Expand leading sequences of spaces to TABs
11280
11281         version-etc: update the copyright year it reports
11282         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11283
11284 2010-12-31  Bruno Haible  <bruno@clisp.org>
11285
11286         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11287         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11288         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11289         zero.
11290
11291 2010-12-31  Bruno Haible  <bruno@clisp.org>
11292
11293         pwrite: Work around HP-UX 11.11 bug.
11294         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11295         works and set REPLACE_PWRITE if not.
11296         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11297         function.
11298         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11299
11300 2010-12-31  Bruno Haible  <bruno@clisp.org>
11301
11302         pread: Work around HP-UX 11 bugs.
11303         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11304         and set REPLACE_PREAD if not.
11305         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11306
11307 2010-12-31  Eric Blake  <eblake@redhat.com>
11308
11309         nl_langinfo: fix YESEXPR on Irix 6.5
11310         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11311         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11312         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11313         it.
11314
11315 2010-12-31  Bruno Haible  <bruno@clisp.org>
11316
11317         iconv: Document HP-UX 11 bug.
11318         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11319
11320 2010-12-31  Bruno Haible  <bruno@clisp.org>
11321
11322         ldexpl: Fix link error on HP-UX 11.
11323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11324         LDEXPL_LIBM, using $ISNANL_LIBM.
11325
11326 2010-12-31  Eric Blake  <eblake@redhat.com>
11327
11328         ftello: avoid compilation failure with SunStudio c89
11329         * lib/ftello.c (ftello): Use lseek, not llseek.
11330
11331         tests: avoid failing coreutils tests on cygwin
11332         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11333         (create_exe_shims_): Return 0 when skipping.
11334
11335 2010-12-31  Bruno Haible  <bruno@clisp.org>
11336
11337         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11338         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11339
11340 2010-12-31  Bruno Haible  <bruno@clisp.org>
11341
11342         waitpid: Fix link error in C++ mode.
11343         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11344
11345 2010-12-31  Bruno Haible  <bruno@clisp.org>
11346
11347         isnan: Use GCC built-ins when possible.
11348         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11349         __builtin_isnan.
11350         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11351         (isnan): Define using GCC built-ins for GCC >= 4.0.
11352
11353 2010-12-31  Bruno Haible  <bruno@clisp.org>
11354
11355         isnand: Fix mistake.
11356         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11357         __builtin_isnand.
11358
11359 2010-12-31  Bruno Haible  <bruno@clisp.org>
11360
11361         open: Avoid C++ error on HP-UX 11.
11362         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11363
11364 2010-12-31  Bruno Haible  <bruno@clisp.org>
11365
11366         time_r: Add missing declarations on HP-UX 11.
11367         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11368         instead of HAVE_LOCALTIME_R.
11369         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11370         HAVE_LOCALTIME_R always.
11371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11372         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11373         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11374         HAVE_LOCALTIME_R.
11375         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11376         * doc/posix-functions/localtime_r.texi: Likewise.
11377
11378 2010-12-29  Eric Blake  <eblake@redhat.com>
11379
11380         mountlist: tweak previous commit
11381         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11382         Reported by Paul Eggert.
11383
11384         mountlist: fix local drive detection on cygwin
11385         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11386         that works for cygwin.
11387
11388 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11389
11390         ftoastr, snprintf: ftoastr + snprintf module
11391         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11392         since the snprintf module now should be good enough here.
11393         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11394         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11395         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11396         GNULIB_SNPRINTF only for the test directory, and the latter
11397         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11398         seems to suffice by itself.
11399
11400 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11401
11402         alloca: one step towards thread-safety
11403         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11404         need for a static variable.  All callers changed.  This does not
11405         make the alloca replacement thread-safe, but it's one step.
11406
11407         tests: minor indenting change
11408         * tests/init.sh: Sync from coreutils housekeeping patch
11409         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11410         to keep lines within 80 columns.
11411
11412 2010-12-28  Jim Meyering  <meyering@redhat.com>
11413
11414         regex: don't infloop on persistent failing calloc
11415         * lib/regexec.c (build_trtable): Return failure indication upon
11416         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11417         In glibc, this was fixed for version 2.13:
11418         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11419
11420 2010-12-28  Bruno Haible  <bruno@clisp.org>
11421             Paul Eggert <eggert@cs.ucla.edu>
11422
11423         linkat: Make implementation robust against system behaviour variations.
11424         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11425         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11426         way, and to -2 if it needs a generic runtime test.
11427         * lib/linkat.c (solaris_optimized_link_immediate,
11428         solaris_optimized_link_follow): New functions.
11429         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11430         (check_same_link): Use it.
11431
11432 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11433
11434         New module 'unigbrk/base'.
11435         * modules/unigbrk/base: New file.
11436         * lib/unigbrk.in.h: New file.
11437
11438         New module 'unigbrk/uc-gbrk-prop'.
11439         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11440         * modules/unigbrk/uc-gbrk-prop: New file.
11441         * lib/unigbrk/gbrkprop.h: New file.
11442         * lib/unigbrk/uc-gbrk-prop.c: New file.
11443
11444         New module 'unigbrk/uc-is-grapheme-break'.
11445         * modules/unigbrk/uc-is-grapheme-break: New file.
11446         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11447         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11448         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11449         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11450         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11451
11452         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11453
11454 2010-12-27  Bruno Haible  <bruno@clisp.org>
11455
11456         linkat test: Avoid failure on Solaris 11 2010-11.
11457         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11458
11459 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11460
11461         utimens: work around glibc rounding bug on more platforms
11462         * lib/utimens.c (fdutimens): Work around rounding bug even if
11463         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11465
11466 2010-12-27  Bruno Haible  <bruno@clisp.org>
11467
11468         select tests: Improve comments.
11469         * tests/test-select.c (do_select): Add comments.
11470
11471 2010-12-27  Bruno Haible  <bruno@clisp.org>
11472
11473         select tests: Safer way of handling timeout.
11474         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11475         at every invocation.
11476
11477 2010-12-27  Bruno Haible  <bruno@clisp.org>
11478
11479         select tests: Use 'bool' where appropriate.
11480         * tests/test-select.c (connect_to_socket): Change argument type to
11481         'bool'.
11482
11483 2010-12-27  Bruno Haible  <bruno@clisp.org>
11484
11485         select tests: Use existing modules.
11486         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11487         (configure.ac): Don't test for unistd.h.
11488         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11489         declared in <unistd.h>.
11490
11491 2010-12-27  Bruno Haible  <bruno@clisp.org>
11492
11493         mbrtowc: Work around a Solaris 7 bug.
11494         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11495         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11496         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11497         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11498         MBRTOWC_NULL_ARG1_BUG.
11499         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11500         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11501         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11502         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11503
11504 2010-12-27  Jim Meyering  <meyering@redhat.com>
11505
11506         read-file.c: tweak syntax
11507         * lib/read-file.c (fread_file): Remove space after "*" in function
11508         definitions.
11509
11510 2010-12-27  Bruno Haible  <bruno@clisp.org>
11511
11512         times test: Avoid gcc warnings on OSF/1.
11513         * tests/test-times.c (main): Cast printf arguments from clock_t to
11514         'long int'.
11515
11516 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11517
11518         utimens: work around glibc rounding bug on older Linux kernels
11519         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11520         on Linux with a glibc whose utimes might not work, then work
11521         around a longstanding glibc bug involving rounding rather than
11522         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11524
11525 2010-12-26  Bruno Haible  <bruno@clisp.org>
11526
11527         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11528         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11529         _GL_CXXALIAS_SYS.
11530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11531
11532 2010-12-26  Bruno Haible  <bruno@clisp.org>
11533
11534         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11535         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11537         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11538         looking for the declaration.
11539         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11540         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11541         problem.
11542         * doc/posix-functions/inet_pton.texi: Likewise.
11543
11544 2010-12-26  Bruno Haible  <bruno@clisp.org>
11545
11546         arpa_inet: Use the common idioms with C++ support.
11547         * lib/arpa_inet.in.h: Include c++defs.h.
11548         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11549         support.
11550         * modules/arpa_inet (Depends-on): Add c++defs.
11551         (Makefile.am): Substitute the contents of c++defs.h.
11552         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11553         * modules/arpa_inet-c++-tests: New file.
11554         * tests/test-arpa_inet-c++.cc: New file.
11555
11556 2010-12-25  Bruno Haible  <bruno@clisp.org>
11557
11558         Fix more C++ link errors on Solaris 8.
11559         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11560         $(LIB_EACCESS).
11561         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11562         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11563         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11564         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11565         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11566
11567 2010-12-25  Bruno Haible  <bruno@clisp.org>
11568
11569         printf-posix: Fix link error when a non-GCC compiler is used.
11570         * lib/stdio.in.h (printf): When not using GCC, override printf
11571         correctly.
11572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11573
11574 2010-12-25  Bruno Haible  <bruno@clisp.org>
11575
11576         strerror_r-posix: Update doc.
11577         * doc/posix-functions/strerror_r.texi: Update doc about the return
11578         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11579
11580 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11581
11582         utimens: simplify the logic of the previous change
11583         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11584         This should not affect whether the test succeeds or fails.
11585
11586         utimens: configure better on hosts with NFS clock skew
11587         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11588         uses the clock of the local host.  It might use the clock of the
11589         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11591
11592 2010-12-25  Bruno Haible  <bruno@clisp.org>
11593
11594         ptsname test: Avoid failure on Solaris.
11595         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11596         open a pseudo-terminal; don't use BSD-style ptys.
11597         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11598
11599 2010-12-25  Bruno Haible  <bruno@clisp.org>
11600
11601         ptsname: Avoid ERANGE failure on some systems.
11602         * lib/ptsname.c (buffer): Increase size.
11603
11604 2010-12-25  Bruno Haible  <bruno@clisp.org>
11605
11606         rename, renameat: Avoid test failures at NFS mounted locations.
11607         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11608         so that subsequent mkdir calls succeed.
11609
11610 2010-12-25  Bruno Haible  <bruno@clisp.org>
11611
11612         iswblank: Fix C++ link error on Solaris 8.
11613         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11614         _GL_FUNCDECL_SYS.
11615
11616 2010-12-25  Bruno Haible  <bruno@clisp.org>
11617
11618         unistd: Fix C++ link error on Solaris 8.
11619         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11620
11621 2010-12-25  Bruno Haible  <bruno@clisp.org>
11622
11623         readlink doc: Mention an old glibc bug.
11624         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11625
11626 2010-12-25  Bruno Haible  <bruno@clisp.org>
11627
11628         fcntl-h: Fix for use of C++ on glibc systems.
11629         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11630         also on glibc systems in C++ mode.
11631         Reported by Gary V. Vaughan <gary@gnu.org>.
11632
11633 2010-12-25  Bruno Haible  <bruno@clisp.org>
11634
11635         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11636         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11637
11638 2010-12-25  Bruno Haible  <bruno@clisp.org>
11639
11640         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11641         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11642         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11643         test whether truncl works according to ISO C 99 with IEC 60559.
11644         * m4/truncl-ieee.m4: New file.
11645         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11646         m4/signbit.m4.
11647         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11648
11649 2010-12-25  Bruno Haible  <bruno@clisp.org>
11650
11651         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11652         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11653         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11654         test whether ceill works according to ISO C 99 with IEC 60559.
11655         * m4/ceill-ieee.m4: New file.
11656         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11657         m4/signbit.m4.
11658         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11659
11660 2010-12-25  Bruno Haible  <bruno@clisp.org>
11661
11662         Ensure all prerequisites of <wchar.h> are included.
11663         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11664         before <wchar.h>.
11665         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11666         gl_MBRLEN_NUL_RETVAL): Likewise.
11667         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11668         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11669         AC_FUNC_MBRTOWC): Likewise.
11670         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11671         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11673         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11674         Likewise.
11675         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11676         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11677         (gl_WCHAR_H): Improve comments.
11678         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11679
11680 2010-12-25  Bruno Haible  <bruno@clisp.org>
11681
11682         strtok_r: Fix C syntax error in autoconf macro.
11683         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11684         characters in test program.
11685
11686 2010-12-24  Bruno Haible  <bruno@clisp.org>
11687
11688         ceil, trunc, round: Fix gcc warnings.
11689         * lib/ceil.c (MIN): Undefine before redefining.
11690         * lib/trunc.c (MIN): Likewise.
11691         * lib/round.c (MIN): Likewise.
11692         Include <math.h> first.
11693
11694 2010-12-24  Bruno Haible  <bruno@clisp.org>
11695
11696         select tests: Avoid failures on OSF/1 5.1.
11697         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11698         failure of closing the last socket; it may fail with ECONNRESET.
11699
11700 2010-12-24  Eric Blake  <eblake@redhat.com>
11701
11702         stdint: avoid HP-UX 10.20 preprocessor bug
11703         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11704         than #if.
11705         * tests/test-floor2.c (main): Likewise.
11706         Reported by Peter O'Gorman.
11707
11708         pipe: make obsoletion transition easier
11709         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11710         * modules/pipe (Files): Include revived file.
11711         (Include): Drop reference, to mirror getdate's behavior.
11712
11713 2010-12-24  Bruno Haible  <bruno@clisp.org>
11714
11715         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11716         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11717         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11719
11720 2010-12-24  Bruno Haible  <bruno@clisp.org>
11721
11722         gethostname: Ensure declaration on NonStop Kernel.
11723         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11725
11726 2010-12-24  Bruno Haible  <bruno@clisp.org>
11727
11728         sys_select: Ensure all necessary types on NonStop Kernel.
11729         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11730         include <sys/time.h>.
11731         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11732         NonStop Kernel.
11733         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11734
11735 2010-12-24  Bruno Haible  <bruno@clisp.org>
11736
11737         sys_select: Remove unneeded include.
11738         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11739         have <sys/select.h>.
11740
11741 2010-12-24  Bruno Haible  <bruno@clisp.org>
11742
11743         gethostname: Provide a fallback for HOST_NAME_MAX.
11744         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11745         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11746         instead.
11747         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11748
11749 2010-12-24  Bruno Haible  <bruno@clisp.org>
11750
11751         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11752         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11753         (SA_RESTART): Likewise.
11754         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11755
11756 2010-12-24  Bruno Haible  <bruno@clisp.org>
11757
11758         signal: Define NSIG.
11759         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11760         * tests/test-signal.c (nsig): New variable.
11761         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11762
11763 2010-12-24  Bruno Haible  <bruno@clisp.org>
11764
11765         rename, renameat: Avoid test failures on OSF/1 5.1.
11766         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11767         alternative error codes.
11768         * tests/test-renameat.c (main): Likewise.
11769
11770 2010-12-24  Bruno Haible  <bruno@clisp.org>
11771
11772         *printf: Detect large precisions bug on Solaris 10/SPARC.
11773         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11774         by Paul Eggert.
11775         * tests/test-snprintf-posix.h (test_function): Add this test code here
11776         too.
11777         * tests/test-sprintf-posix.h (test_function): Likewise.
11778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11779         * tests/test-vasprintf-posix.c (test_function): Likewise.
11780         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11781         around by gnulib.
11782         * doc/posix-functions/printf.texi: Likewise.
11783         * doc/posix-functions/snprintf.texi: Likewise.
11784         * doc/posix-functions/sprintf.texi: Likewise.
11785         * doc/posix-functions/vfprintf.texi: Likewise.
11786         * doc/posix-functions/vprintf.texi: Likewise.
11787         * doc/posix-functions/vsnprintf.texi: Likewise.
11788         * doc/posix-functions/vsprintf.texi: Likewise.
11789         * doc/posix-functions/dprintf.texi: Undo last commit.
11790         * doc/posix-functions/vdprintf.texi: Likewise.
11791
11792 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11793
11794         tests: port test-fdutimensat.c to Solaris 8
11795         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11796         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11797         On Solaris 8, it fails with errno == ENOSYS, because there is no
11798         futimens (so it can't use the fd), and there is no lutimens (so it
11799         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11800
11801         vsnprintf: make more consistent with snprintf; doc fixes
11802
11803         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11804         the byte count return problem was promoted from the snprintf-posix
11805         to the snprintf module.
11806         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11808         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11809         * tests/test-snprintf.c (main): Check the byte count returned.
11810         * tests/test-vsnprintf.c (main): Likewise.
11811
11812 2010-12-23  Eric Blake  <eblake@redhat.com>
11813
11814         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11815         * modules/sigpipe (License): Relax license.
11816
11817 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11818
11819         doc: document Solaris printf bug with large float precisions
11820         * doc/posix-functions/dprintf.texi (dprintf):
11821         * doc/posix-functions/fprintf.texi (fprintf):
11822         * doc/posix-functions/printf.texi (printf):
11823         * doc/posix-functions/snprintf.texi (snprintf):
11824         * doc/posix-functions/sprintf.texi (sprintf):
11825         * doc/posix-functions/vdprintf.texi (vdprintf):
11826         * doc/posix-functions/vfprintf.texi (vfprintf):
11827         * doc/posix-functions/vprintf.texi (vprintf):
11828         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11829         * doc/posix-functions/vsprintf.texi (vsprintf):
11830         Mention that these functions mishandle large floating point
11831         precisions on Solaris 10.  The same bug is also present in Solaris
11832         8, and I assume earlier.  This causes "cd gnulib-tests; make
11833         check" to fail on Solaris 8 (and I assume, later) when building
11834         the latest coreutils, in test-vasprintf-posix's call to
11835         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11836         the wide flavors (e.g., wprintf) so this patch just updates the
11837         documentation for the narrow ones.
11838
11839         test-posixtm.c: add two tests
11840         * tests/test-posixtm.c: Add two tests, to highlight the
11841         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11842         around this bug; this is merely to document it.
11843
11844 2010-12-22  Bruno Haible  <bruno@clisp.org>
11845
11846         getlogin_r: Work around portability problem on OSF/1.
11847         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11848         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11849         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11850         test for a truncated result.
11851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11852         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11853         * modules/getlogin_r (Depends-on): Add memchr.
11854         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11855
11856 2010-12-22  Bruno Haible  <bruno@clisp.org>
11857
11858         ptsname: Avoid test failure on OSF/1 5.1.
11859         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11860         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11861         (same_slave): New function.
11862         (main): Use it to compare ptsname's result with the expected file name.
11863
11864 2010-12-22  Bruno Haible  <bruno@clisp.org>
11865
11866         Port extended stdio modules to HP NonStop Kernel.
11867         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11868         macros.
11869         * lib/fbufmode.c: Update comments.
11870         * lib/fflush.c: Likewise.
11871         * lib/fpurge.c: Likewise.
11872         * lib/freadable.c: Likewise.
11873         * lib/freadahead.c: Likewise.
11874         * lib/freading.c: Likewise.
11875         * lib/freadptr.c: Likewise.
11876         * lib/freadseek.c: Likewise.
11877         * lib/fseeko.c: Likewise.
11878         * lib/fseterr.c: Likewise.
11879         * lib/fwritable.c: Likewise.
11880         * lib/fwriting.c: Likewise.
11881         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11882
11883 2010-12-22  Bruno Haible  <bruno@clisp.org>
11884
11885         ttyname_r: Work around bug on OSF/1 5.1.
11886         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11887         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11888         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11889         present.
11890         * lib/ttyname_r.c (ttyname_r): Update comments.
11891
11892 2010-12-22  Bruno Haible  <bruno@clisp.org>
11893
11894         round: Implement result sign according to IEEE 754.
11895         * lib/round.c (MIN, MINUS_ZERO): New macros.
11896         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11897         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11898         * tests/test-round-ieee.c (main): Likewise.
11899         * tests/test-roundl-ieee.c (main): Likewise.
11900
11901         trunc: Implement result sign according to IEEE 754.
11902         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11903         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11904         * tests/test-trunc2.c: Include minus-zero.h.
11905         (MINUS_ZERO): New macro.
11906         (trunc_reference): Keep in sync with lib/trunc.c.
11907         * tests/test-truncf2.c: Include minus-zero.h.
11908         (MINUS_ZERO): New macro.
11909         (truncf_reference): Keep in sync with lib/trunc.c.
11910         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11911         * tests/test-trunc-ieee.c (main): Likewise.
11912         * tests/test-truncl-ieee.c (main): Likewise.
11913
11914         ceil: Implement result sign according to IEEE 754.
11915         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11916         (FUNC): Return -0.0 for -1 < x < 0.
11917         * tests/test-ceil2.c: Include minus-zero.h.
11918         (MINUS_ZERO): New macro.
11919         (ceil_reference): Keep in sync with lib/ceil.c.
11920         * tests/test-ceilf2.c: Include minus-zero.h.
11921         (MINUS_ZERO): New macro.
11922         (ceilf_reference): Keep in sync with lib/ceil.c.
11923         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11924         * tests/test-ceil-ieee.c (main): Likewise.
11925         * tests/test-ceill-ieee.c (main): Likewise.
11926
11927         floor: Implement result sign according to IEEE 754.
11928         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11929         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11930         * tests/test-floorf2.c (floorf_reference): Likewise.
11931         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11932         * tests/test-floor-ieee.c (main): Likewise.
11933         * tests/test-floorl-ieee.c (main): Likewise.
11934
11935 2010-12-22  Bruno Haible  <bruno@clisp.org>
11936
11937         getaddrinfo: Update doc.
11938         * doc/posix-functions/gai_strerror.texi: Return type is also different
11939         on AIX and HP-UX.
11940
11941 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11942
11943         getaddrinfo, inet_ntop: Update doc for Solaris.
11944         * doc/posix-functions/gai_strerror.texi: Return type is also an
11945         issue on Solaris 9 and earlier.
11946         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11947         on Solaris 10 and earlier.
11948
11949 2010-12-21  Bruno Haible  <bruno@clisp.org>
11950
11951         New module 'roundl-ieee'.
11952         * modules/roundl-ieee: New file.
11953         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11954         test whether roundl works according to ISO C 99 with IEC 60559.
11955         * m4/roundl-ieee.m4: New file.
11956         * modules/roundl-ieee-tests: New file.
11957         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11958         * tests/test-roundl.c (main): Remove signbit tests.
11959         * modules/roundl-tests (Depends-on): Remove signbit.
11960         * doc/posix-functions/roundl.texi: Mention the new module.
11961
11962 2010-12-21  Bruno Haible  <bruno@clisp.org>
11963
11964         New module 'truncl-ieee'.
11965         * modules/truncl-ieee: New file.
11966         * modules/truncl-ieee-tests: New file.
11967         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11968         * tests/test-truncl.c (main): Remove signbit tests.
11969         * modules/truncl-tests (Depends-on): Remove signbit.
11970         * doc/posix-functions/truncl.texi: Mention the new module.
11971
11972 2010-12-21  Bruno Haible  <bruno@clisp.org>
11973
11974         New module 'ceill-ieee'.
11975         * modules/ceill-ieee: New file.
11976         * modules/ceill-ieee-tests: New file.
11977         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11978         * tests/test-ceill.c (main): Remove signbit tests.
11979         * modules/ceill-tests (Depends-on): Remove signbit.
11980         * doc/posix-functions/ceill.texi: Mention the new module.
11981
11982 2010-12-21  Bruno Haible  <bruno@clisp.org>
11983
11984         New module 'floorl-ieee'.
11985         * modules/floorl-ieee: New file.
11986         * modules/floorl-ieee-tests: New file.
11987         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11988         * tests/test-floorl.c (main): Remove signbit tests.
11989         * modules/floorl-tests (Depends-on): Remove signbit.
11990         * doc/posix-functions/floorl.texi: Mention the new module.
11991
11992 2010-12-21  Bruno Haible  <bruno@clisp.org>
11993
11994         New module 'round-ieee'.
11995         * modules/round-ieee: New file.
11996         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11997         whether round works according to ISO C 99 with IEC 60559.
11998         * m4/round-ieee.m4: New file.
11999         * modules/round-ieee-tests: New file.
12000         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12001         * tests/test-round1.c (main): Remove signbit tests.
12002         * modules/round-tests (Depends-on): Remove 'signbit'.
12003         * doc/posix-functions/round.texi: Mention the new module.
12004
12005 2010-12-21  Bruno Haible  <bruno@clisp.org>
12006
12007         New module 'trunc-ieee'.
12008         * modules/trunc-ieee: New file.
12009         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12010         whether trunc works according to ISO C 99 with IEC 60559.
12011         * m4/trunc-ieee.m4: New file.
12012         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12014         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12015         * modules/trunc-ieee-tests: New file.
12016         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12017         * tests/test-trunc1.c (main): Remove signbit tests.
12018         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12019         * doc/posix-functions/trunc.texi: Mention the new module.
12020
12021 2010-12-21  Bruno Haible  <bruno@clisp.org>
12022
12023         New module 'ceil-ieee'.
12024         * modules/ceil-ieee: New file.
12025         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12026         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12027         ISO C 99 with IEC 60559.
12028         * m4/ceil-ieee.m4: New file.
12029         * modules/ceil (Files): Add lib/ceil.c.
12030         (Depends-on): Add 'float'.
12031         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12032         * lib/math.in.h (ceil): New declaration.
12033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12034         REPLACE_CEIL.
12035         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12036         * modules/ceil-ieee-tests: New file.
12037         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12038         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12039         * doc/posix-functions/ceil.texi: Mention the new module.
12040
12041 2010-12-21  Bruno Haible  <bruno@clisp.org>
12042
12043         New module 'floor-ieee'.
12044         * modules/floor-ieee: New file.
12045         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12046         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12047         ISO C 99 with IEC 60559.
12048         * m4/floor-ieee.m4: New file.
12049         * modules/floor (Files): Add lib/floor.c.
12050         (Depends-on): Add 'float'.
12051         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12052         * lib/math.in.h (floor): New declaration.
12053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12054         REPLACE_FLOOR.
12055         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12056         * modules/floor-ieee-tests: New file.
12057         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12058         * tests/test-math-c++.cc: Check the signature of 'floor'.
12059         * doc/posix-functions/floor.texi: Mention the new module.
12060
12061 2010-12-21  Bruno Haible  <bruno@clisp.org>
12062
12063         New module 'roundf-ieee'.
12064         * modules/roundf-ieee: New file.
12065         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12066         test whether roundf works according to ISO C 99 with IEC 60559.
12067         * m4/roundf-ieee.m4: New file.
12068         * modules/roundf-ieee-tests: New file.
12069         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12070         * tests/test-roundf1.c (main): Remove signbit tests.
12071         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12072         * doc/posix-functions/roundf.texi: Mention the new module.
12073
12074 2010-12-21  Bruno Haible  <bruno@clisp.org>
12075
12076         New module 'truncf-ieee'.
12077         * modules/truncf-ieee: New file.
12078         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12079         test whether truncf works according to ISO C 99 with IEC 60559.
12080         * m4/truncf-ieee.m4: New file.
12081         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12083         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12084         * modules/truncf-ieee-tests: New file.
12085         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12086         * tests/test-truncf1.c (main): Remove signbit tests.
12087         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12088         * doc/posix-functions/truncf.texi: Mention the new module.
12089
12090 2010-12-21  Bruno Haible  <bruno@clisp.org>
12091
12092         New module 'ceilf-ieee'.
12093         * modules/ceilf-ieee: New file.
12094         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12095         test whether ceilf works according to ISO C 99 with IEC 60559.
12096         * m4/ceilf-ieee.m4: New file.
12097         * modules/ceilf-ieee-tests: New file.
12098         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12099         * tests/test-ceilf1.c (main): Remove signbit tests.
12100         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12101         * doc/posix-functions/ceilf.texi: Mention the new module.
12102
12103 2010-12-21  Bruno Haible  <bruno@clisp.org>
12104
12105         New module 'floorf-ieee'.
12106         * modules/floorf-ieee: New file.
12107         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12108         test whether floorf works according to ISO C 99 with IEC 60559.
12109         * m4/floorf-ieee.m4: New file.
12110         * modules/floorf-ieee-tests: New file.
12111         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12112         * tests/test-floorf1.c (main): Remove signbit tests.
12113         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12114         * doc/posix-functions/floorf.texi: Mention the new module.
12115
12116 2010-12-21  Bruno Haible  <bruno@clisp.org>
12117
12118         Support for minus zero in autoconf macros.
12119         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12120         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12121         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12122         * tests/minus-zero.h: Update comments.
12123
12124 2010-12-21  Bruno Haible  <bruno@clisp.org>
12125
12126         Tests for module 'ceil'.
12127         * modules/ceil-tests: New file.
12128         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12129         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12130
12131 2010-12-21  Bruno Haible  <bruno@clisp.org>
12132
12133         Tests for module 'floor'.
12134         * modules/floor-tests: New file.
12135         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12136         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12137
12138 2010-12-21  Bruno Haible  <bruno@clisp.org>
12139
12140         math: Fix indentation.
12141         * lib/math.in.h (floorf): Fix indentation.
12142
12143 2010-12-21  Bruno Haible  <bruno@clisp.org>
12144
12145         Fix cross-compilation guesses on Solaris.
12146         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12147         not match "solaris2.10".
12148         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12149         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12150         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12151
12152 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12153
12154         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12155         This fixes a problem observed with the latest coreutils snapshot
12156         that caused a test to fail on Solaris 8.  src/csplit.c's call
12157         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12158         earlier, instead of returning the number of bytes that would have
12159         been generated; this causes csplit to incorrectly report memory
12160         exhaustion.
12161         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12162         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12163         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12164         comments to match.
12165         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12166         Fix typo in matching older versions of Solaris: "solaris2.10"
12167         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12168         only for guessing while cross-compiling.
12169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12170
12171 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12172
12173         ftoastr: fix comment again
12174         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12176         Also, simplify example a bit by using flags = 0.
12177
12178 2010-12-20  Bruno Haible  <bruno@clisp.org>
12179
12180         round*, trunc*: Update documentation regarding glibc.
12181         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12182         * doc/posix-functions/round.texi: Likewise.
12183         * doc/posix-functions/roundl.texi: Likewise.
12184         * doc/posix-functions/truncf.texi: Likewise.
12185         * doc/posix-functions/trunc.texi: Likewise.
12186         * doc/posix-functions/truncl.texi: Likewise.
12187
12188 2010-12-20  Bruno Haible  <bruno@clisp.org>
12189
12190         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12191         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12192         * doc/posix-functions/round.texi: Likewise.
12193         * doc/posix-functions/roundl.texi: Likewise.
12194
12195 2010-12-20  Bruno Haible  <bruno@clisp.org>
12196
12197         ttyname_r: Add missing declaration on HP-UX 11.
12198         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12199         HAVE_TTYNAME_R.
12200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12201         declared. Set HAVE_TTYNAME_R always.
12202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12203         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12204         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12205         HAVE_TTYNAME_R.
12206         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12207
12208 2010-12-20  Bruno Haible  <bruno@clisp.org>
12209
12210         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12211         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12212         * doc/posix-functions/getlogin_r.texi: Likewise.
12213         * tests/test-getlogin.c: Include <errno.h>.
12214         (main): Avoid test failure on HP-UX 11.11.
12215         * tests/test-getlogin_r.c (main): Likewise.
12216
12217 2010-12-20  Bruno Haible  <bruno@clisp.org>
12218
12219         getlogin_r: Add missing declaration on HP-UX 11.
12220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12221         declared also when it exists as a function.
12222         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12223
12224 2010-12-20  Bruno Haible  <bruno@clisp.org>
12225
12226         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12227         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12228         through wcrtomb.
12229
12230 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12231
12232         ftoastr: fix comment
12233         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12235
12236 2010-12-19  Bruno Haible  <bruno@clisp.org>
12237
12238         isnan: Ensure it is a macro.
12239         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12240         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12241         Solaris.
12242
12243 2010-12-19  Bruno Haible  <bruno@clisp.org>
12244
12245         ldexpl test: Fix link error on OSF/1 5.1.
12246         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12247
12248 2010-12-19  Bruno Haible  <bruno@clisp.org>
12249
12250         wctype: Make it work in C++ mode on OSF/1 5.1.
12251         * lib/wctype.in.h (iswblank): Declare but not define here.
12252         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12253         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12254         * modules/wctype (Files): Add lib/iswblank.c.
12255
12256 2010-12-19  Bruno Haible  <bruno@clisp.org>
12257
12258         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12259         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12260         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12261
12262 2010-12-19  Bruno Haible  <bruno@clisp.org>
12263
12264         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12266         _POSIX_PII_SOCKET.
12267         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12268         * doc/posix-functions/recvfrom.texi: Likewise.
12269         * doc/posix-functions/send.texi: Likewise.
12270         * doc/posix-functions/sendto.texi: Likewise.
12271
12272 2010-12-19  Bruno Haible  <bruno@clisp.org>
12273
12274         tcgetsid: Add missing declaration on OSF/1 5.1.
12275         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12276         HAVE_TCGETSID.
12277         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12278         Don't set HAVE_TCGETSID.
12279         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12280         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12281         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12282         HAVE_TCGETSID.
12283         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12284
12285 2010-12-19  Bruno Haible  <bruno@clisp.org>
12286
12287         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12288         * lib/stdio.in.h: During the include_next statement, let recursive
12289         includes of this file include only the system header file.
12290
12291 2010-12-19  Bruno Haible  <bruno@clisp.org>
12292
12293         iconv_open: Fix regression from 2010-12-04.
12294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12295         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12296
12297 2010-12-19  Bruno Haible  <bruno@clisp.org>
12298
12299         stdbool test: Avoid a gcc warning.
12300         * tests/test-stdbool.c (main): Fail if e1 is false.
12301         Reported by Jim Meyering.
12302
12303 2010-12-19  Jim Meyering  <meyering@redhat.com>
12304
12305         setenv: restore to working order
12306         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12307         mistakenly removed.
12308         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12309         HAVE_SETENV.
12310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12311         HAVE_SETENV.
12312
12313 2010-12-19  Bruno Haible  <bruno@clisp.org>
12314
12315         Document some different function declarations on OSF/1 5.1.
12316         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12317         * doc/posix-functions/inet_ntop.texi: Likewise.
12318         * doc/posix-functions/gethostname.texi: Likewise.
12319         * lib/unistd.in.h (gethostname): Update comment.
12320
12321 2010-12-19  Bruno Haible  <bruno@clisp.org>
12322
12323         doc: Mention vasprintf-posix module.
12324         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12325         the 'vasprintf-posix' module.
12326         * doc/glibc-functions/vasprintf.texi: Likewise.
12327
12328 2010-12-19  Bruno Haible  <bruno@clisp.org>
12329
12330         unsetenv: Add missing declaration on OSF/1 5.1.
12331         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12332         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12333         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12335         not HAVE_UNSETENV.
12336         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12337         HAVE_UNSETENV.
12338         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12339
12340 2010-12-19  Bruno Haible  <bruno@clisp.org>
12341
12342         setenv: Add missing declaration on OSF/1 5.1.
12343         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12344         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12345         declared. Don't set HAVE_SETENV.
12346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12347         not HAVE_SETENV.
12348         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12349         HAVE_SETENV.
12350         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12351
12352 2010-12-19  Bruno Haible  <bruno@clisp.org>
12353
12354         nl_langinfo tests: Avoid gcc warning.
12355         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12356
12357 2010-12-19  Bruno Haible  <bruno@clisp.org>
12358
12359         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12360         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12361         _GL_CXXALIAS_SYS.
12362
12363 2010-12-19  Bruno Haible  <bruno@clisp.org>
12364
12365         stdbool: Relax test.
12366         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12367         address to 'bool' work in static initializer, for compilers other than
12368         GCC.
12369
12370 2010-12-19  Bruno Haible  <bruno@clisp.org>
12371
12372         ftello: Add missing declaration on OSF/1 5.1.
12373         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12374         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12376         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12377         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12378
12379 2010-12-19  Bruno Haible  <bruno@clisp.org>
12380
12381         fseeko: Add missing declaration on OSF/1 5.1.
12382         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12385         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12386         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12387
12388 2010-12-19  Bruno Haible  <bruno@clisp.org>
12389
12390         fchdir: Add missing declaration on OSF/1 5.1.
12391         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12395         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12396
12397 2010-12-19  Bruno Haible  <bruno@clisp.org>
12398
12399         relocatable-prog-wrapper: Separate from relocatable-prog.
12400         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12401         uninstall-relocwrapper rule here.
12402         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12403         Reported by Ian Beckwith <ianb@erislabs.net>.
12404
12405 2010-12-19  Bruno Haible  <bruno@clisp.org>
12406
12407         unistr/u8-mbsnlen: Add missing dependency.
12408         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12409         Reported by Ian Beckwith <ianb@erislabs.net>.
12410
12411 2010-12-19  Bruno Haible  <bruno@clisp.org>
12412
12413         iconv: Make it possible again to use this module without 'iconv-h'.
12414         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12415         if it is not defined.
12416         Reported by Ian Beckwith <ianb@erislabs.net>.
12417
12418 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12419
12420         acl: port to Solaris 8 when copying from tmpfs to ufs
12421         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12422         error number.  Problem observed on Solaris 8 with latest
12423         coreutils, with "mv A B", where A is on a tmpfs file system and B
12424         is on a ufs file system.  This caused coreutils' mv/part-symlink
12425         test to fail.
12426
12427         tests: set fail=0 at start
12428         * tests/init.sh (setup_): Move fail=0 initialization here ...
12429         (mktempd_): ... from here, so that tests can rely on fail being
12430         set to 0 initially.  This fixes a problem in coreutils; see:
12431         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12432
12433 2010-12-18  Bruno Haible  <bruno@clisp.org>
12434
12435         memmem-simple: Stylistic changes.
12436         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12437         Fix preprocessor directive indentation.
12438
12439 2010-12-15  Pádraig Brady <P@draigBrady.com>
12440
12441         memmem, memmem-simple: reorganize and expand empty needle check
12442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12443         functional checks to memmem-simple so that one has a fully functional
12444         memmem by using just this module.
12445         Restrict the performance only check to the memmem module.
12446         Also expand the empty needle check to ensure the correct
12447         pointer is returned, not just a non NULL pointer.
12448         * doc/glibc-functions/memmem.texi: Rearrange the portability
12449         documentation to correlate with the rearranged checks.
12450         Clarify exactly how the memmem and memmem-simple modules
12451         relate to each other.
12452
12453 2010-12-15  Pádraig Brady <P@draigBrady.com>
12454             Bruno Haible  <bruno@clisp.org>
12455
12456         Improve cross-compilation guesses for uClibc.
12457         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12458         that uClibc does not have the glibc bug.
12459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12460         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12461
12462 2010-12-14  Eric Blake  <eblake@redhat.com>
12463
12464         configmake: provide fallbacks for oldest supported autotools
12465         * m4/configmake.m4: New file.
12466         * modules/configmake (Files): Ship it.
12467         (configure.ac): Use it to guarantee fallbacks.
12468
12469 2010-12-13  Pádraig Brady <P@draigBrady.com>
12470
12471         read-file: Improve handling of large files
12472         * lib/read-file.c (fread_file): Minimize realloc()s
12473         for regular files, and better manage sizes around SIZE_MAX.
12474
12475 2010-12-13  Eric Blake  <eblake@redhat.com>
12476
12477         cloexec, fcntl: relax license
12478         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12479         consent from all contributors.
12480         * modules/fcntl (License): Likewise.
12481
12482 2010-12-10  Bruno Haible  <bruno@clisp.org>
12483
12484         Tests for module 'pipe-posix'.
12485         * modules/pipe-posix-tests: New file.
12486         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12487
12488 2010-12-10  Bruno Haible  <bruno@clisp.org>
12489
12490         pipe-posix: Make it work in C++ mode.
12491         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12492         (pipe): Use common idiom, not a macro definition.
12493         * lib/pipe.c: New file.
12494         * m4/pipe.m4: New file.
12495         * modules/pipe-posix (Description): Enhance.
12496         (Files): Add lib/pipe.c, m4/pipe.m4.
12497         (configure.ac): Invoke gl_FUNC_PIPE.
12498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12499         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12500         * tests/test-unistd-c++.cc: Check the signature of pipe.
12501
12502 2010-12-10  Bruno Haible  <bruno@clisp.org>
12503
12504         Rename module 'pipe' to 'spawn-pipe'.
12505         * modules/spawn-pipe: New file, renamed from modules/pipe.
12506         (Files, configure.ac, Makefile.am): Update.
12507         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12508         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12509         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12510         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12511         "spawn-pipe.h" instead of "pipe.h".
12512         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12513         to gl_SPAWN_PIPE.
12514         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12515         (Files, Makefile.am): Update.
12516         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12517         Update.
12518         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12519         Include "spawn-pipe.h" instead of "pipe.h".
12520         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12521         * lib/javacomp.c: Likewise.
12522         * lib/javaversion.c: Likewise.
12523         * lib/pipe-filter-gi.c: Likewise.
12524         * lib/pipe-filter-ii.c: Likewise.
12525         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12526         * modules/javacomp (Depends-on): Likewise.
12527         * modules/javaversion (Depends-on): Likewise.
12528         * modules/pipe-filter-gi (Depends-on): Likewise.
12529         * modules/pipe-filter-ii (Depends-on): Likewise.
12530         * MODULES.html.sh (Executing programs): Update.
12531         * NEWS: Mention the change.
12532
12533 2010-12-10  Eric Blake  <eblake@redhat.com>
12534
12535         pipe-posix: new module
12536         * modules/pipe-posix: New file.
12537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12538         (gl_UNISTD_H): Check for declaration.
12539         * modules/unistd (Makefile.am): Substitute it.
12540         * lib/unistd.in.h (pipe): Provide it for mingw.
12541         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12542         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12543
12544 2010-12-07  Bruno Haible  <bruno@clisp.org>
12545
12546         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12547         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12548         u8_strcmp_gnu.
12549         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12550
12551 2010-12-06  Bruno Haible  <bruno@clisp.org>
12552
12553         Update internal documentation.
12554         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12555
12556 2010-12-04  Bruno Haible  <bruno@clisp.org>
12557
12558         Put more information about failed tests into the test return codes.
12559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12560         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12561         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12563         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12565         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12566         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12567         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12570         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12571         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12572         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12573         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12574         returns a bit mask.
12575         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12576         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12577         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12578         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12579         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12583         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12584         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12585         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12586         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12587         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12589         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12590         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12591         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12592         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12594         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12596         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12598         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12599         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12600         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12601         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12602         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12603         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12604         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12605         gl_PRINTF_PRECISION): Likewise.
12606         * m4/regex.m4 (gl_REGEX): Likewise.
12607         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12608         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12610         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12611         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12615         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12616         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12617         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12618         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12619         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12620         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12621         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12622         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12623         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12627         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12628         enumerated value.
12629         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12630
12631 2010-12-04  Bruno Haible  <bruno@clisp.org>
12632
12633         Update for Solaris 11 2010-11.
12634         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12635         Express, released in November 2010.
12636
12637 2010-12-04  Bruno Haible  <bruno@clisp.org>
12638
12639         nproc: Relax license.
12640         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12641         and Paul Eggert.
12642         Requested by Ludovic Courtès <ludo@gnu.org>.
12643
12644 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12645
12646         utimecmp: fine-grained src to nearby coarse-grained dest
12647
12648         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12649         and the source is on a file system with higher-resolution time
12650         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12651         not work, and the time stamps are close together, the algorithm to
12652         determine the exact resolution from the read-back mtime was buggy:
12653         it had a "!=" where it should have had an "==".  This bug has been
12654         in the code ever since it was introduced to gnulib.
12655         Problem reported by Dan Jacobson in
12656         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12657
12658 2010-11-30  Bruno Haible  <bruno@clisp.org>
12659
12660         strerror_r-posix: Fix autoconf test.
12661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12662
12663 2010-11-28  Bruno Haible  <bruno@clisp.org>
12664             Paul Eggert  <eggert@cs.ucla.edu>
12665
12666         Tests for module 'getdomainname'.
12667         * modules/getdomainname-tests: New file.
12668         * tests/test-getdomainname.c: New file, based on
12669         tests/test-gethostname.c.
12670
12671 2010-11-28  Bruno Haible  <bruno@clisp.org>
12672             Paul Eggert  <eggert@cs.ucla.edu>
12673
12674         getdomainname: Use the system function when possible.
12675         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12676         (getdomainname): Replace if needed. Provide the declaration if it is
12677         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12678         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12679         (getdomainname): When the system has getdomainname, call the system
12680         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12681         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12682         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12683         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12684         the function if its second argument is of type 'int' or if it is found
12685         in libnsl.
12686         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12687         <sys/systeminfo.h> and sysinfo().
12688         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12690         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12691         HAVE_GETDOMAINNAME.
12692         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12693         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12694         * doc/glibc-functions/getdomainname.texi: Document the problems with
12695         the getdomainname declaration.
12696
12697 2010-11-28  Bruno Haible  <bruno@clisp.org>
12698
12699         sys_socket: Ensure ss_family field on AIX.
12700         * lib/sys_socket.in.h (ss_family): New macro definition.
12701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12702         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12703         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12704         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12705         * modules/sys_socket (Makefile.am): Substitute
12706         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12707         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12708
12709 2010-11-27  Bruno Haible  <bruno@clisp.org>
12710
12711         readline: Improve configure output.
12712         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12713         "checking for readline..." result understandable.
12714
12715 2010-11-27  Bruno Haible  <bruno@clisp.org>
12716
12717         *printf-posix: Detect a bug on Solaris 10/x86.
12718         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12719         for floating-point output.
12720         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12721         directive.
12722         * tests/test-snprintf-posix.h (test_function): Likewise.
12723         * tests/test-sprintf-posix.h (test_function): Likewise.
12724         * tests/test-vasprintf-posix.c (test_function): Likewise.
12725         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12726         * doc/posix-functions/printf.texi: Likewise.
12727         * doc/posix-functions/snprintf.texi: Likewise.
12728         * doc/posix-functions/sprintf.texi: Likewise.
12729         * doc/posix-functions/vfprintf.texi: Likewise.
12730         * doc/posix-functions/vprintf.texi: Likewise.
12731         * doc/posix-functions/vsnprintf.texi: Likewise.
12732         * doc/posix-functions/vsprintf.texi: Likewise.
12733         * doc/glibc-functions/obstack_printf.texi: Likewise.
12734         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12735
12736 2010-11-27  Bruno Haible  <bruno@clisp.org>
12737
12738         Fix link error when module libunistring-optional is in use.
12739         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12740         * modules/striconveha-tests (Makefile.am): Likewise.
12741
12742 2010-11-27  Bruno Haible  <bruno@clisp.org>
12743
12744         regex: Mention link dependencies.
12745         * modules/regex (Link): New section.
12746         * modules/rpmatch (Link): Likewise.
12747         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12748
12749 2010-11-27  Bruno Haible  <bruno@clisp.org>
12750
12751         ftoastr: Fix compilation error on Solaris.
12752         * lib/ftoastr.c: Include <config.h>.
12753
12754 2010-11-27  Bruno Haible  <bruno@clisp.org>
12755
12756         getloadavg: Update documentation.
12757         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12758
12759 2010-11-27  Bruno Haible  <bruno@clisp.org>
12760
12761         sys_socket: Fix test whether the functions are declared.
12762         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12763         not <sys/select.h>.
12764
12765 2010-11-27  Bruno Haible  <bruno@clisp.org>
12766
12767         getpass: Make sure to get system declaration on some platforms.
12768         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12769         gl_USE_SYSTEM_EXTENSIONS.
12770         * modules/getpass (Depends-on): Add extensions.
12771
12772 2010-11-26  Bruno Haible  <bruno@clisp.org>
12773
12774         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12775         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12776         'iconv' module is present.
12777         (ICONV_CONST): New macro.
12778         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12779         ICONV_CONST.
12780         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12781         set ICONV_CONST.
12782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12783         here.
12784         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12785         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12786         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12787         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12788         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12789         present.
12790
12791 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12792
12793         ftoastr: comment fix
12794         * lib/ftoastr.c: "little" -> "little or no" in comment
12795
12796 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12797
12798         stdint: port to GCC 4.3 + OSX + Octave
12799         On this platform, stdint.h is buggy and defines int64_t to long
12800         long int.  The replacement defined it to long int, causing
12801         problems with C++ style name mangling.  Instead, trust the system
12802         definition if INT64_MAX is defined, and likewise for the unsigned
12803         variant.   Problem reported by Jarno Rajahalme in
12804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12805         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12806         and don't mess with int64_t and INT64_MAX in this case.
12807         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12808
12809 2010-11-24  Bruno Haible  <bruno@clisp.org>
12810
12811         doc: Corrections regarding MacOS X 10.4 and 10.5.
12812         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12813         MacOS X.
12814         Reported by Simon Josefsson.
12815
12816 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12817
12818         Uninstall ".bin" files installed by relocwrapper.
12819         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12820         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12821         unless it is already there.
12822
12823 2010-11-21  Bruno Haible  <bruno@clisp.org>
12824
12825         Update for NetBSD 5.0.
12826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12827         NetBSD; the test fails on NetBSD 5.0.
12828         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12829         about NetBSD.
12830
12831 2010-11-21  Bruno Haible  <bruno@clisp.org>
12832
12833         Update for HP-UX 11.23 and HP-UX 11.31.
12834         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12835         HP-UX.
12836
12837 2010-11-21  Bruno Haible  <bruno@clisp.org>
12838
12839         Update for MacOS X 10.5.
12840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12841         MacOS X; the test fails on MacOS X 10.5.8.
12842         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12843         about MacOS X.
12844
12845 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12846
12847         bootstrap: add bootstrap_sync option.
12848         See discussion at
12849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12851         * build-aux/bootstrap: Accept --bootstrap-sync to update
12852         bootstrap if it is not identical to the local gnulib's
12853         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12854         enable this by default.  Accept --no-bootstrap-sync to disable
12855         it.
12856
12857 2010-11-20  Bruno Haible  <bruno@clisp.org>
12858
12859         Ensure that <features.h> is included before __GLIBC__ is tested.
12860         * lib/printf-parse.h: Include <features.h>.
12861         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12862         Reported by Mike Frysinger <vapier@gentoo.org>.
12863
12864         Ensure that <features.h> is included before __GLIBC__ is tested.
12865         * lib/wchar.in.h: Include <features.h>.
12866         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12867         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12868         Reported by Mike Frysinger <vapier@gentoo.org>.
12869
12870         Ensure that <features.h> is included before __GLIBC__ is tested.
12871         * lib/arpa_inet.in.h: Include <features.h>.
12872         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12873         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12874         Reported by Mike Frysinger <vapier@gentoo.org>.
12875
12876         Ensure that <features.h> is included before __GLIBC__ is tested.
12877         * build-aux/link-warning.h: Include <features.h>.
12878         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12879         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12880         Reported by Mike Frysinger <vapier@gentoo.org>.
12881
12882         Ensure that <features.h> is included before __GLIBC__ is tested.
12883         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12884         Reported by Mike Frysinger <vapier@gentoo.org>.
12885
12886 2010-11-20  Bruno Haible  <bruno@clisp.org>
12887
12888         memmem: Fix autoconf test.
12889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12890
12891 2010-11-20  Bruno Haible  <bruno@clisp.org>
12892
12893         Port to uClibc.
12894         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12895         * lib/fcntl.in.h: Likewise.
12896         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12897         * lib/mbrtowc.c (mbrtowc): Likewise.
12898         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12899         * lib/strerror_r.c: Likewise.
12900         * lib/unistr/u8-strnlen.c: Likewise.
12901         * lib/vasnprintf.c (decimal_point_char): Likewise.
12902         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12903         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12905         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12906         * tests/test-sigaction.c (handler, main): Likewise.
12907         * lib/freading.h: Treat uClibc like a non-glibc platform.
12908         * lib/freading.c: Likewise.
12909         * lib/gettext.h: Likewise.
12910         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12911         Likewise.
12912         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12913         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12914         * lib/propername.c (proper_name_utf8): Likewise.
12915         * lib/spawn.in.h: Likewise.
12916         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12917         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12918         mem_cd_iconveh_internal): Likewise.
12919         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12920         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12921         strstr, strcasestr): Likewise.
12922         * lib/unicodeio.c (unicode_to_mb): Likewise.
12923         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12924         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12925         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12926         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12927         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12928         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12929         * lib/unistr/u8-stpncpy.c: Likewise.
12930         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12931         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12933         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12934         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12936         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12939         Likewise.
12940         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12941         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12944         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12945         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12946         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12947         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12948         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12949         * tests/test-striconveha.c (main): Likewise.
12950         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12951         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12952         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12953         * doc/posix-functions/getline.texi: Likewise.
12954         Reported by Mike Frysinger <vapier@gentoo.org>.
12955
12956 2010-11-20  Bruno Haible  <bruno@clisp.org>
12957
12958         nproc: Fix condition.
12959         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12960         HAVE_PTHREAD_AFFINITY_NP.
12961
12962 2010-11-20  Bruno Haible  <bruno@clisp.org>
12963
12964         Fix a comment.
12965         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12966
12967 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12968
12969         ftoastr: don't assume snprintf
12970         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12971         Implement a subset of snprintf here, by using sprintf safely.
12972         * modules/ftoastr (Depends-on): Remove snprintf.
12973
12974 2010-11-19  Jim Meyering  <meyering@redhat.com>
12975
12976         test-rename.h: fix compilation failure
12977         * tests/test-rename.h (test_rename): Add omitted "}".
12978
12979 2010-11-17  Jim Meyering  <meyering@redhat.com>
12980
12981         maint.mk: add a URL discussing the no-@acronym policy
12982         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12983
12984 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12985
12986         ftoastr: depend on snprintf, improve comments
12987         * lib/ftoastr.c: Also mention Loitsch's draft.
12988         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12989         needed in the current implementation, but it might simplify
12990         speeding up the code later.
12991         * modules/ftoastr: Depend on snprintf; this improves portability.
12992         Suggested by Bruno Haible in the same email.
12993
12994         ftoastr: port to hosts lacking strtof and strtold
12995         Problem reported by Bruno Haible in
12996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12997         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12998         environment and strtold (and presumably strtof) are not available.
12999         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13000         (configure.ac): Require gl_C99_STRTOLD.
13001
13002 2010-11-18  Bruno Haible  <bruno@clisp.org>
13003
13004         c-strtold: Avoid link error on AIX 7.
13005         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13006         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13007         (gl_C_STRTOLD): Test whether strtold_l exists.
13008         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13009
13010 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13011
13012         intprops: new macro INT_BITS_STRLEN_BOUND
13013         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13014         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13015         not exposed.  Also, it uses a slightly tighter bound than before;
13016         though this makes no practical difference, we might as well be as
13017         tight as we easily can.
13018
13019         ftoastr: new module, for lossless conversion of floats to short strings
13020         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13021         * modules/ftoastr: New files.
13022
13023 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13024
13025         bootstrap: port to Solaris sed
13026         * build-aux/bootstrap (get_version): Port to Solaris sed.
13027         See Ralf Wildenhues's note in
13028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13029
13030 2010-11-14  Jim Meyering  <meyering@redhat.com>
13031
13032         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13033         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13034         and move definition closer to sole use.
13035
13036 2010-11-13  Jim Meyering  <meyering@redhat.com>
13037
13038         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13039         Now we require at least autoconf-2.59, which means the work-around
13040         is no longer needed.
13041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13042         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13043         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13044         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13045         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13046
13047 2010-11-13  Bruno Haible  <bruno@clisp.org>
13048
13049         rename, renameat: Avoid test failures at NFS mounted locations.
13050         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13051         functions.
13052         (test_rename): Use assert_nonexistent.
13053         * tests/test-rename.c: Include <dirent.h>.
13054         * tests/test-renameat.c: Likewise.
13055         Reported by Gary V. Vaughan <gary@gnu.org>.
13056
13057         rename, renameat: Document Linux bug with NFS
13058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13059         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13060         * doc/posix-functions/renameat.texi: Likewise.
13061         Suggested by Eric Blake.
13062
13063 2010-11-13  Bruno Haible  <bruno@clisp.org>
13064
13065         rename test: Add comments.
13066         * tests/test-rename.h (test_rename): Add structure and comments.
13067
13068 2010-11-13  Eric Blake  <eblake@redhat.com>
13069
13070         maintainer-makefile: cover a few more files
13071         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13072         scripts generated within C files, for libvirt.
13073
13074 2010-11-13  Bruno Haible  <bruno@clisp.org>
13075
13076         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13077         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13078         character, return the number of bytes that belong together, not always
13079         1.
13080         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13081         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13082         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13083         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13084         number of bytes of an invalid character.
13085         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13086         (main): Invoke it.
13087         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13088         results.
13089         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13090         malformed byte sequences.
13091         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13092         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13093         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13094         Reported by Ben Pfaff and Paolo Bonzini.
13095
13096 2010-11-13  Bruno Haible  <bruno@clisp.org>
13097
13098         openat: Work around glibc bug with fchownat() and empty file names.
13099         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13100         (gl_FUNC_FCHOWNAT): Invoke it.
13101         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13102         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13103         Reported by Gary V. Vaughan <gary@gnu.org>.
13104
13105 2010-11-13  Bruno Haible  <bruno@clisp.org>
13106
13107         openat: Ensure autoconf macro ordering.
13108         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13109         gl_USE_SYSTEM_EXTENSIONS.
13110         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13111
13112 2010-11-13  Bruno Haible  <bruno@clisp.org>
13113
13114         Update comments.
13115         * lib/unistr/u8-check.c: Update file name in comments.
13116         * lib/unistr/u8-mblen.c: Likewise.
13117         * lib/unistr/u8-prev.c: Likewise.
13118         * lib/unistr/u8-strmblen.c: Likewise.
13119         * lib/unistr/u8-strmbtouc.c: Likewise.
13120
13121 2010-11-13  Jim Meyering  <meyering@redhat.com>
13122
13123         tests: avoid test failure on Solaris 10 due to lack of PATH export
13124         * tests/test-update-copyright.sh: Don't forget to export PATH.
13125
13126         init.sh: ensure that IFS is defined, just in case...
13127         * tests/init.sh (setup_): Ensure that IFS is defined,
13128         so that saving and restoring it works as expected.  This
13129         appears to be useful at least for an old version of dash
13130         from a long time ago (RH 6).  See here for details:
13131         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13132
13133         maint.mk: tighten "test a == b" check
13134         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13135         test to files that contain something like #!/bin/sh.
13136         Without this, coreutils would get two false positives in
13137         the comments of C source files.
13138
13139 2010-11-12  Eric Blake  <eblake@redhat.com>
13140
13141         bootstrap: fix typo in previous attempt
13142         * build-aux/bootstrap (buildreq): Correct the grouping.
13143         Reported by Paul Eggert.
13144
13145         maintainer-makefile: prohibit test x == x
13146         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13147         Based on a report by Matthias Bolte.
13148
13149         bootstrap: allow FreeBSD gzip
13150         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13151         which has no '.' and goes to stderr.
13152         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13153         Reported by Matthias Bolte.
13154
13155         maintainer-makefile: check for i18n setup
13156         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13157         will likely work.
13158
13159 2010-11-12  Bruno Haible  <bruno@clisp.org>
13160
13161         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13162         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13163         * lib/nanosleep.c (nanosleep): Likewise.
13164
13165 2010-11-11  Bruno Haible  <bruno@clisp.org>
13166
13167         fcntl-h: Fix for use of C++ on glibc systems.
13168         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13169         also on glibc systems in C++ mode.
13170         Reported by Gary V. Vaughan <gary@gnu.org>.
13171
13172 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13173
13174         mknod: avoid false failure with dash
13175         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13176
13177 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13178
13179         unlink: Fix "is it should" typo in diagnostic.
13180         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13182
13183 2010-11-11  Bruno Haible  <bruno@clisp.org>
13184
13185         Tests for module 'strerror_r-posix'.
13186         * modules/strerror_r-posix-tests: New file.
13187         * tests/test-strerror_r.c: New file.
13188         * tests/test-string-c++.cc: Check the signature of strerror_r.
13189
13190         New module 'strerror_r-posix'.
13191         * lib/string.in.h (strerror_r): New declaration.
13192         * lib/strerror_r.c: New file.
13193         * m4/strerror_r.m4: New file.
13194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13195         of strerror_r.
13196         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13197         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13198         * modules/strerror_r-posix: New file.
13199         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13200         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13201         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13202         portability problems.
13203
13204 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13205
13206         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13207         line is also considered for output. Quoted function name in shell
13208         command, so temporary files for functions like MyClass::operator()
13209         are removed correctly without errors.
13210
13211 2010-11-09  Bruno Haible  <bruno@clisp.org>
13212
13213         * doc/posix-functions/strerror.texi: List more failing platforms.
13214
13215         * doc/posix-functions/strerror.texi: Add a comment.
13216
13217 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13218
13219         fdopendir: fix bug on MacOS X when low on file descriptors
13220
13221         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13222         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13223         All callers changed.
13224         (fdopendir): Invoke save_cwd at the top level, not after using
13225         multiple dup() calls to use up file descriptors.  Then retry
13226         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13227         less than the maximum number of open file descriptors, because
13228         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13229         on Mac OS X 10.6.4 for tar 1.24
13230         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13231         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13232         and for tar 1.25
13233         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13234
13235 2010-11-07  Bruno Haible  <bruno@clisp.org>
13236
13237         vasnprintf: Support I flag on glibc systems.
13238         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13239         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13240         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13241         snprintf function.
13242         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13243         glibc systems.
13244         * tests/test-vasnprintf-posix3.c: New file.
13245         * modules/vasnprintf-posix-tests (Files): Add it.
13246         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13247
13248 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13249
13250         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13251         * MODULES.html.sh: For compiler warnings, use name
13252         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13253
13254 2010-11-05  Eric Blake  <eblake@redhat.com>
13255
13256         ceil, floor: avoid spurious failure with icc
13257         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13258         [denormals-as-zero] when optimizing without -mieee-fp option.
13259         * tests/test-floorf2.c (floorf_reference): Likewise.
13260         * tests/test-ceilf1.c (dummy): New function.
13261         (main): Use it to outsmart icc's optimization.
13262         * tests/test-floorf1.c (dummy, main): Likewise.
13263
13264         tests: require working signbit
13265         * modules/ceilf-tests (Depends-on): Add signbit.
13266         * modules/ceill-tests (Depends-on): Likewise.
13267         * modules/floorf-tests (Depends-on): Likewise.
13268         * modules/floorl-tests (Depends-on): Likewise.
13269         * modules/round-tests (Depends-on): Likewise.
13270         * modules/roundf-tests (Depends-on): Likewise.
13271         * modules/roundl-tests (Depends-on): Likewise.
13272         * modules/trunc-tests (Depends-on): Likewise.
13273         * modules/truncf-tests (Depends-on): Likewise.
13274         * modules/truncl-tests (Depends-on): Likewise.
13275
13276         strtod: work around icc bug
13277         * lib/strtod.c (minus_zero): Define to working value.
13278         (strtod): Use it to avoid icc bug.
13279
13280         copysign: enhance tests
13281         * modules/copysign-tests (Files): Add minus-zero.h.
13282         * tests/test-copysign.c (main): Also test zeros.
13283
13284 2010-11-04  Eric Blake  <eblake@redhat.com>
13285
13286         ceil, floor, round, trunc: enhance tests of -0
13287         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13288         * tests/test-ceill.c (main): Likewise.
13289         * tests/test-floorf1.c (main): Likewise.
13290         * tests/test-floorl.c (main): Likewise.
13291         * tests/test-round1.c (main): Likewise.
13292         * tests/test-roundf1.c (main): Likewise.
13293         * tests/test-roundl.c (main): Likewise.
13294         * tests/test-trunc1.c (main): Likewise.
13295         * tests/test-truncf1.c (main): Likewise.
13296         * tests/test-truncl.c (main): Likewise.
13297
13298 2010-11-04  Eric Blake  <eblake@redhat.com>
13299
13300         frexp, tests: work around ICC bug with -zero
13301         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13302         works with more compilers.
13303         * tests/minus-zero.h: New file.
13304         * modules/ceilf-tests (Files): Include it.
13305         * modules/ceill-tests (Files): Likewise.
13306         * modules/floorf-tests (Files): Likewise.
13307         * modules/floorl-tests (Files): Likewise.
13308         * modules/frexp-nolibm-tests (Files): Likewise.
13309         * modules/frexp-tests (Files): Likewise.
13310         * modules/frexpl-nolibm-tests (Files): Likewise.
13311         * modules/frexpl-tests (Files): Likewise.
13312         * modules/isnan-tests (Files): Likewise.
13313         * modules/isnand-nolibm-tests (Files): Likewise.
13314         * modules/isnand-tests (Files): Likewise.
13315         * modules/isnanf-nolibm-tests (Files): Likewise.
13316         * modules/isnanf-tests (Files): Likewise.
13317         * modules/isnanl-nolibm-tests (Files): Likewise.
13318         * modules/isnanl-tests (Files): Likewise.
13319         * modules/round-tests (Files): Likewise.
13320         * modules/roundf-tests (Files): Likewise.
13321         * modules/roundl-tests (Files): Likewise.
13322         * modules/ldexpl-tests (Files): Likewise.
13323         * modules/signbit-tests (Files): Likewise.
13324         * modules/snprintf-posix-tests (Files): Likewise.
13325         * modules/sprintf-posix-tests (Files): Likewise.
13326         * modules/strtod-tests (Files): Likewise.
13327         * modules/trunc-tests (Files): Likewise.
13328         * modules/truncf-tests (Files): Likewise.
13329         * modules/truncl-tests (Files): Likewise.
13330         * modules/vsnprintf-posix-tests (Files): Likewise.
13331         * modules/vsprintf-posix-tests (Files): Likewise.
13332         * modules/vasnprintf-posix-tests (Files): Likewise.
13333         * modules/vasprintf-posix-tests (Files): Likewise.
13334         * tests/test-ceilf1.c (main): Use it.
13335         * tests/test-ceill.c (main): Likewise.
13336         * tests/test-floorf1.c (main): Likewise.
13337         * tests/test-floorl.c (main): Likewise.
13338         * tests/test-frexp.c (main): Likewise.
13339         * tests/test-frexpl.c (main): Likewise.
13340         * tests/test-isnan.c (main): Likewise.
13341         * tests/test-isnand.h (main): Likewise.
13342         * tests/test-isnanf.h (main): Likewise.
13343         * tests/test-isnanl.h (main): Likewise.
13344         * tests/test-ldexpl.c (main): Likewise.
13345         * tests/test-round.c (main): Likewise.
13346         * tests/test-roundf.c (main): Likewise.
13347         * tests/test-roundl.c (main): Likewise.
13348         * tests/test-signbit.c (test_signbitf, test_signbitd)
13349         (test_signbitl): Likewise.
13350         * tests/test-snprintf-posix.h (test_function): Likewise.
13351         * tests/test-sprintf-posix.h (test_function): Likewise.
13352         * tests/test-strtod.c (main): Likewise.
13353         * tests/test-trunc1.c (main): Likewise.
13354         * tests/test-truncf1.c (main): Likewise.
13355         * tests/test-truncl.c (main): Likewise.
13356
13357         isnanl: work around icc bug
13358         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13359
13360 2010-11-03  Eric Blake  <eblake@redhat.com>
13361
13362         tests: fix compiler warnings
13363         * tests/test-getopt.h (test_getopt): Fix condition.
13364         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13365         * tests/test-pipe2.c (main): Likewise.
13366         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13367
13368         utimens: fix broken m4 test
13369         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13370
13371 2010-10-28  Bruno Haible  <bruno@clisp.org>
13372
13373         posix_spawn*, getdtablesize: Relax license.
13374         * modules/posix_spawn (License): Change to LGPLv2+.
13375         * modules/posix_spawnp (License): Likewise.
13376         * modules/posix_spawn-internal (License): Likewise.
13377         * modules/posix_spawnattr_init (License): Likewise.
13378         * modules/posix_spawnattr_getflags (License): Likewise.
13379         * modules/posix_spawnattr_setflags (License): Likewise.
13380         * modules/posix_spawnattr_getpgroup (License): Likewise.
13381         * modules/posix_spawnattr_setpgroup (License): Likewise.
13382         * modules/posix_spawnattr_getschedparam (License): Likewise.
13383         * modules/posix_spawnattr_setschedparam (License): Likewise.
13384         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13385         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13386         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13387         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13388         * modules/posix_spawnattr_getsigmask (License): Likewise.
13389         * modules/posix_spawnattr_setsigmask (License): Likewise.
13390         * modules/posix_spawnattr_destroy (License): Likewise.
13391         * modules/posix_spawn_file_actions_init (License): Likewise.
13392         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13393         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13394         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13395         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13396         * modules/getdtablesize (License): Likewise.
13397         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13398
13399 2010-10-26  Bruno Haible  <bruno@clisp.org>
13400
13401         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13402         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13403         Cygwin and mingw.
13404         Suggested by Eric Blake.
13405
13406 2010-10-26  Bruno Haible  <bruno@clisp.org>
13407
13408         stdio: Work around compilation error due to renameat() on Solaris 10.
13409         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13410         * lib/renameat.c: Don't include <unistd.h> here.
13411         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13412         Reported by Paul Eggert and Eric Blake.
13413
13414 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13415
13416         renameat: port to Solaris 10, which declares renameat in unistd.h
13417
13418         * lib/renameat.c: Include unistd.h before stdio.h, because
13419         Solaris 10 declares renameat in unistd.h.  Problem encountered
13420         when building GNU tar 1.24 on Solaris 10.
13421
13422 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13423
13424         fdopendir: fix C89 compilation
13425         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13426         compilers.
13427
13428 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13429
13430         inttostr: simplify by removing unnecessary redundancy
13431         * lib/anytostr.c: Don't include verify.h.
13432         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13433         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13434         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13435         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13436         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13437         Likewise.
13438         * modules/inttostr (Depends-on): Remove 'verify'.
13439
13440 2010-10-23  Bruno Haible  <bruno@clisp.org>
13441
13442         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13443         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13444         Reported by Eric Blake.
13445
13446 2010-10-23  Bruno Haible  <bruno@clisp.org>
13447
13448         Tests: Fix LOCALE_JA on MirBSD 10.
13449         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13450         to an UTF-8 locale.
13451         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13453         Reported by Eric Blake.
13454
13455 2010-10-21  Bruno Haible  <bruno@clisp.org>
13456
13457         nl_langinfo test: Avoid test failure on NetBSD 5.
13458         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13459         Reported by Eric Blake.
13460
13461 2010-10-21  Eric Blake  <eblake@redhat.com>
13462
13463         c-stack: work around libsigsegv 2.8 bug
13464         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13465         overflow on at least PowerPC64.
13466
13467 2010-10-17  Bruno Haible  <bruno@clisp.org>
13468
13469         userspec: Drop redundant file.
13470         * modules/userspec (Files): Remove lib/inttostr.h.
13471
13472 2010-10-17  Bruno Haible  <bruno@clisp.org>
13473
13474         nl_langinfo tests: Silence some warnings.
13475         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13476         Reported by Jim Meyering.
13477
13478 2010-10-17  Bruno Haible  <bruno@clisp.org>
13479
13480         Make use of GCC's attribute __alloc_size__.
13481         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13482         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13483         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13484         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13485         __alloc_size__.
13486         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13487         Suggested by Jim Meyering.
13488
13489 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13490
13491         bootstrap: anchor .gitignore entries.
13492         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13493         with...
13494         (insert_vc_ignore): ... this new function, which prepends `/' to
13495         all .gitignore entries before passing them to
13496         insert_sorted_if_absent.
13497
13498 2010-10-16  Bruno Haible  <bruno@clisp.org>
13499
13500         nextafter: Fix configure check.
13501         * modules/nextafter (configure.ac): Correct expected prototype.
13502
13503 2010-10-16  Bruno Haible  <bruno@clisp.org>
13504
13505         termios: Update documentation.
13506         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13507
13508 2010-10-16  Bruno Haible  <bruno@clisp.org>
13509
13510         tests: Make them compile with TinyCC.
13511         * tests/test-strstr.c (main): Remove parentheses around array
13512         initializer.
13513
13514 2010-10-15  Eric Blake  <eblake@redhat.com>
13515
13516         ignore-value: make header idempotent
13517         * lib/ignore-value.h: Add double-inclusion guards.
13518         Reported by Stefan Berger.
13519
13520 2010-10-15  Jim Meyering  <meyering@redhat.com>
13521
13522         GNUmakefile: handle "stable" target, not "major"
13523         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13524         lists in maint.mk and announce-gen.  Without this, "make stable"
13525         would fail to ensure that $(VERSION) is up to date.
13526
13527 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13528
13529         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13530         & co.
13531
13532 2010-10-14  Bruno Haible  <bruno@clisp.org>
13533
13534         vasnprintf: Don't set errno to 0.
13535         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13536         block that sets it to 0.
13537         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13538
13539 2010-10-14  Bruno Haible  <bruno@clisp.org>
13540
13541         socketlib: Fix.
13542         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13543         gl_PREREQ_SYS_H_WINSOCK2.
13544         Reported by Ian Beckwith <ianb@erislabs.net>.
13545
13546 2010-10-13  Jim Meyering  <meyering@redhat.com>
13547
13548         test-select-stdin.c: avoid warn_unused_result warnings
13549         * tests/test-select-stdin.c: Include "macros.h".
13550         ASSERT that read and fflush succeed.
13551
13552 2010-10-13  Jim Meyering  <meyering@redhat.com>
13553
13554         git-version-gen: do require git-VC'd files in cwd
13555         * build-aux/git-version-gen: Reject a git version string
13556         if there are no commits associated with the current directory.
13557         This avoids an unlikely false-positive (unrelated dir whose parent
13558         repository also contains a tag matching v*), as pointed out
13559         by Giuseppe Scrivano in
13560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13561
13562 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13563
13564         argv-iter: omit nonconforming declaration
13565         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13566         enum arg_iter_err declaration, which doesn't conform to C99.
13567         Solaris 10 cc warns about this.
13568
13569 2010-10-13  Eric Blake  <eblake@redhat.com>
13570
13571         termios: fix compilation on mingw
13572         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13573         (gl_TERMIOS_H): Adjust it on mingw.
13574         * modules/termios (Makefile.am): Substitute new key.
13575         * lib/termios.in.h (includes): Make include_next conditional.
13576         * doc/posix-headers/termios.texi (termios.h): Update
13577         documentation.
13578         Reported by Daniel P. Berrange.
13579
13580 2010-10-13  Jim Meyering  <meyering@redhat.com>
13581
13582         git-version-gen: don't require that .git/ be in the current dir
13583         * build-aux/git-version-gen: Adjust this script so that it works
13584         when run from any working directory beneath the top-level .git/-
13585         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13587
13588         test-select: avoid warn_unused_result warnings
13589         * tests/test-select.c: Include "macros.h".
13590         ASSERT that each call to read, write, and pipe succeeds.
13591         While not technically required, also check each "close".
13592         * modules/select-tests (Files): Add tests/macros.h.
13593
13594         test-symlinkat: remove declaration of unused local
13595         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13596
13597         test-inttostr: avoid shadowing warnings
13598         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13599         and use malloc rather than the stack for the same reason as
13600         mentioned in the comment justifying the other allocation.
13601
13602 2010-10-11  Bruno Haible  <bruno@clisp.org>
13603
13604         stdlib: Allow multiple gnulib generated replacements to coexist.
13605         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13606         Reported by Sam Steingold <sds@gnu.org>.
13607
13608 2010-10-11  Jim Meyering  <meyering@redhat.com>
13609
13610         fix a documentation typo
13611         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13612
13613 2010-10-11  Eric Blake  <eblake@redhat.com>
13614
13615         futimens: work around Solaris 11 bug
13616         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13617         * tests/test-futimens.h (test_futimens): Enhance, rather than
13618         weaken test.
13619         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13620
13621 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         Indentation.
13624         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13625         higher-level operators more to the left.
13626
13627 2010-10-11  Jim Meyering  <meyering@redhat.com>
13628
13629         test-futimens: avoid unwarranted test failure on Solaris 5.11
13630         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13631         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13632         because it tries to dereference the NULL name argument.
13633
13634 2010-10-11  Bruno Haible  <bruno@clisp.org>
13635
13636         Indentation.
13637         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13638         indentation.
13639
13640 2010-10-11  Jim Meyering  <meyering@redhat.com>
13641
13642         spawn.in.h: make indentation consistent with parentheses
13643         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13644         Make indentation consistent with parentheses.
13645
13646 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13647
13648         Fix mismatched parens in previous commit
13649         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13650         parens.
13651
13652 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13655
13656         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13657         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13658         * lib/malloca.c: Include "verify.h".
13659         (verify1): Remove, replacing with a verify call.
13660         * lib/relocwrapper.c (verify1): Likewise.
13661         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13662         Likewise.
13663         * modules/malloca (Depends-on): Add 'verify'.
13664         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13665         * modules/vasnprintf (Depends-on): Add 'verify'.
13666         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13668         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13669         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13670         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13672         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13673
13674         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13675
13676         Formerly the style was sometimes 2*X - 1, because the C standard
13677         was wrongly thought to disallow ?: in integral constant expressions.
13678         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13679         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13681         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13682         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13683         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13684         verify that time_t cannot be floating.
13685
13686 2010-10-08  Eric Blake  <eblake@redhat.com>
13687
13688         time: enforce recent POSIX ruling that time_t is integral
13689         * lib/time.in.h (__time_t_must_be_integral): Detect any
13690         problematic systems, allowing the rest of gnulib to assume POSIX.
13691
13692 2010-10-08  Jim Meyering  <meyering@redhat.com>
13693
13694         fdopendir: fix a bug on systems lacking openat and /proc support
13695         OpenBSD 4.7 is one such system.  The most noticeable effect was
13696         failure of any application making nontrivial use of fts: rm, du,
13697         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13698           ./rm: traversal failed: `a': Bad file descriptor
13699         Debugging that, you see that even though FD 6 was closed just
13700         prior to the opendir call in fd_clone_opendir, its resulting
13701         dir->dd_fd was 8, rather than the expected value of 6:
13702
13703         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13704         93                close (fd);
13705         (gdb) n
13706         94                dir = fd_clone_opendir (dupfd);
13707         (gdb) n
13708         95                saved_errno = errno;
13709         (gdb) p dir->dd_fd
13710         $11 = 8
13711
13712         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13713         The problem is that on OpenBSD, fd_clone_opendir has to resort
13714         to using the old-style save/restore CWD mechanism, due to its
13715         lack of openat/proc support, and *that* would steal the FD (6)
13716         that opendir was supposed to use.
13717
13718         The fix is to squirrel away the desired FD so that save_cwd uses a
13719         different one, and then free the dest FD right before calling opendir.
13720         That guarantees opendir will use the required file descriptor.
13721
13722         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13723
13724 2010-10-08  Bruno Haible  <bruno@clisp.org>
13725
13726         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13727         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13728
13729 2010-10-08  Bruno Haible  <bruno@clisp.org>
13730
13731         nanosleep: Make replacement POSIX compliant.
13732         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13733         is out of range.
13734         Reported by Jim Meyering.
13735
13736 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13737
13738         bootstrap: add hook for altering gnulib.mk, for Bison
13739         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13740         the Bison bootstrapping process can rewrite file names and variables
13741         in this file before later parts of 'bootstrap' use the file.
13742         Bison wants to include lib/gnulib.mk from the top-level makefile,
13743         so it needs the file names in this file to be relative to the top
13744         level, not relative to lib; plus it needs variable names to be
13745         rewritten.
13746         (slurp): Use the new function.
13747
13748         bootstrap: reformat for readability
13749         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13750
13751 2010-10-08  Eric Blake  <eblake@redhat.com>
13752
13753         docs: update cygwin progress
13754         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13755         1.7.7.
13756         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13757         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13758         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13759         * doc/posix-functions/carg.texi (carg): Likewise.
13760         * doc/posix-functions/cargf.texi (cargf): Likewise.
13761         * doc/posix-functions/casin.texi (casin): Likewise.
13762         * doc/posix-functions/casinf.texi (casinf): Likewise.
13763         * doc/posix-functions/casinh.texi (casinh): Likewise.
13764         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13765         * doc/posix-functions/catan.texi (catan): Likewise.
13766         * doc/posix-functions/catanf.texi (catanf): Likewise.
13767         * doc/posix-functions/catanh.texi (catanh): Likewise.
13768         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13769         * doc/posix-functions/ccos.texi (ccos): Likewise.
13770         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13771         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13772         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13773         * doc/posix-functions/cexp.texi (cexp): Likewise.
13774         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13775         * doc/posix-functions/cimag.texi (cimag): Likewise.
13776         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13777         * doc/posix-functions/clog.texi (clog): Likewise.
13778         * doc/posix-functions/clogf.texi (clogf): Likewise.
13779         * doc/posix-functions/conj.texi (conj): Likewise.
13780         * doc/posix-functions/conjf.texi (conjf): Likewise.
13781         * doc/posix-functions/cpow.texi (cpow): Likewise.
13782         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13783         * doc/posix-functions/cproj.texi (cproj): Likewise.
13784         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13785         * doc/posix-functions/creal.texi (creal): Likewise.
13786         * doc/posix-functions/crealf.texi (crealf): Likewise.
13787         * doc/posix-functions/csin.texi (csin): Likewise.
13788         * doc/posix-functions/csinf.texi (csinf): Likewise.
13789         * doc/posix-functions/csinh.texi (csinh): Likewise.
13790         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13791         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13792         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13793         * doc/posix-functions/ctan.texi (ctan): Likewise.
13794         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13795         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13796         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13797         * doc/posix-headers/complex.texi (complex.h): Likewise.
13798
13799 2010-10-07  Jim Meyering  <meyering@redhat.com>
13800
13801         parse-datetime: avoid compilation failure on OpenBSD 4.7
13802         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13803         This works around a compilation failure on OpenBSD 4.7:
13804         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13805
13806 2010-10-07  Eric Blake  <eblake@redhat.com>
13807
13808         docs: update cygwin progress
13809         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13810         1.7.6.
13811         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13812         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13813         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13814         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13815         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13816         Likewise.
13817         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13818         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13819         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13820         Likewise.
13821         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13822         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13823         Likewise.
13824         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13825         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13826         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13827         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13828         Likewise.
13829         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13830         Likewise.
13831         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13832
13833         docs: update parse-datetime history
13834         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13835         documentation of this function's history and alternatives.
13836
13837         cygwin: use more robust version check
13838         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13839         exclude an eventual cygwin 1.9.1.
13840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13842         (gl_FUNC_STRCASESTR): Likewise.
13843         Reported by Bruno Haible.
13844
13845 2010-10-06  Bruno Haible  <bruno@clisp.org>
13846
13847         string, sys_select: Avoid #including large headers unless necessary.
13848         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13849         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13850         OSF/1, BeOS, Haiku.
13851         Reported by Jim Meyering.
13852
13853 2010-10-05  Eric Blake  <eblake@redhat.com>
13854
13855         memmem, strstr, strcasestr: fix bug with long periodic needle
13856         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13857         periodic needle having false positive.
13858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13859         and cygwin 1.7.7.
13860         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13862         (gl_FUNC_STRCASESTR): Likewise.
13863         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13864         * tests/test-memmem.c (main): Expose the bug.
13865         * tests/test-strcasestr.c (main): Likewise.
13866         * tests/test-strstr.c (main): Likewise.
13867         * tests/test-c-strcasestr.c (main): Likewise.
13868         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13869         * doc/posix-functions/strstr.texi (strstr): Likewise.
13870         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13871         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13872
13873 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13874
13875         parse-datetime: do some more renaming
13876         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13877         parse_datetime, not get_date.  Mention the renaming.
13878         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13879         in comments.
13880         * m4/bison.m4: Likewise.
13881
13882 2010-10-05  Eric Blake  <eblake@redhat.com>
13883
13884         parse-datetime: better name than get_date
13885         * NEWS: Reword the deprecation notice.
13886         * modules/get_date: Rename to modules/parse-datetime.
13887         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13888         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13889         * lib/get_date.y: Rename to lib/parse-datetime.y.
13890         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13891         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13892         * doc/getdate.texi: Provide fallback wrapper.
13893         * lib/getdate.h: Move guts, and wrap...
13894         * lib/parse-datetime.h: ...new file.
13895         * lib/parse-datetime.y (get_date): Rename...
13896         (parse_datetime): ...to this.
13897         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13898         (gl_PARSE_DATETIME): ...to this.
13899         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13900         documentation.
13901         * modules/getdate (Files): Provide fallback docs and header.
13902         (Notice, Depends-on): Update references.
13903         * tests/test-parse-datetime.c: Likewise.
13904         * DEPENDENCIES: Likewise.
13905         * MODULES.html.sh (Date and time <time.h>): Likewise.
13906         * doc/parse-datetime.texi (Date input formats)
13907         (Authors of parse_datetime): Likewise.
13908         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13909         (Include): Likewise.
13910         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13911         * gnulib-tool: Likewise.
13912         * m4/bison.m4 (gl_BISON): Likewise.
13913         Suggested by Bruno Haible.
13914
13915 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13916
13917         more ports to Solaris tr, which needs [] around ranges
13918         * gnulib-tool: Solaris tr needs [] around ranges.
13919         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13920         * tests/test-pipe-filter-gi1.c (main): Likewise.
13921         * tests/test-pipe-filter-ii1.c (main): Likewise.
13922
13923 2010-10-05  Eric Blake  <eblake@redhat.com>
13924
13925         bootstrap: fix Solaris regression
13926         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13927         around ranges.
13928         Reported by Pádraig Brady.
13929
13930         bootstrap: work with pkg-config
13931         * build-aux/bootstrap (check_versions): Also transliterate - in
13932         prerequisite name.
13933         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13934         prerequisites that were already found, to avoid confusion.
13935         Reported by Justin Clift.
13936
13937         faccessat: remove unused wrappers
13938         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13939         presence of these wrappers dragged in -lgen on Solaris.
13940         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13941
13942 2010-10-05  Jim Meyering  <meyering@redhat.com>
13943
13944         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13945         * Makefile (sc_pragma_columns): New syntax-check rule.
13946
13947 2010-10-04  Bruno Haible  <bruno@clisp.org>
13948
13949         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13950         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13951         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13952         Reported by Bruce Korb and Eric Blake.
13953
13954 2010-10-04  Bruno Haible  <bruno@clisp.org>
13955
13956         threadlib: Make option --with-libpth-prefix work.
13957         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13958         use $LIBPTH, not just -lpth.
13959
13960 2010-10-04  Bruno Haible  <bruno@clisp.org>
13961
13962         Avoid line length limitation from HP NonStop system header files.
13963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13964         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13965         * lib/ctype.in.h: Likewise.
13966         * lib/dirent.in.h: Likewise.
13967         * lib/errno.in.h: Likewise.
13968         * lib/fcntl.in.h: Likewise.
13969         * lib/float.in.h: Likewise.
13970         * lib/getopt.in.h: Likewise.
13971         * lib/iconv.in.h: Likewise.
13972         * lib/inttypes.in.h: Likewise.
13973         * lib/langinfo.in.h: Likewise.
13974         * lib/locale.in.h: Likewise.
13975         * lib/math.in.h: Likewise.
13976         * lib/netdb.in.h: Likewise.
13977         * lib/netinet_in.in.h: Likewise.
13978         * lib/poll.in.h: Likewise.
13979         * lib/pthread.in.h: Likewise.
13980         * lib/pty.in.h: Likewise.
13981         * lib/sched.in.h: Likewise.
13982         * lib/se-selinux.in.h: Likewise.
13983         * lib/search.in.h: Likewise.
13984         * lib/signal.in.h: Likewise.
13985         * lib/spawn.in.h: Likewise.
13986         * lib/stdarg.in.h: Likewise.
13987         * lib/stddef.in.h: Likewise.
13988         * lib/stdint.in.h: Likewise.
13989         * lib/stdio.in.h: Likewise.
13990         * lib/stdlib.in.h: Likewise.
13991         * lib/string.in.h: Likewise.
13992         * lib/strings.in.h: Likewise.
13993         * lib/sys_file.in.h: Likewise.
13994         * lib/sys_ioctl.in.h: Likewise.
13995         * lib/sys_select.in.h: Likewise.
13996         * lib/sys_socket.in.h: Likewise.
13997         * lib/sys_stat.in.h: Likewise.
13998         * lib/sys_time.in.h: Likewise.
13999         * lib/sys_times.in.h: Likewise.
14000         * lib/sys_utsname.in.h: Likewise.
14001         * lib/sys_wait.in.h: Likewise.
14002         * lib/sysexits.in.h: Likewise.
14003         * lib/termios.in.h: Likewise.
14004         * lib/time.in.h: Likewise.
14005         * lib/unistd.in.h: Likewise.
14006         * lib/wchar.in.h: Likewise.
14007         * lib/wctype.in.h: Likewise.
14008         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14009         * modules/ctype (Makefile.am): Likewise.
14010         * modules/dirent (Makefile.am): Likewise.
14011         * modules/errno (Makefile.am): Likewise.
14012         * modules/fcntl-h (Makefile.am): Likewise.
14013         * modules/float (Makefile.am): Likewise.
14014         * modules/getopt-posix (Makefile.am): Likewise.
14015         * modules/iconv-h (Makefile.am): Likewise.
14016         * modules/inttypes (Makefile.am): Likewise.
14017         * modules/langinfo (Makefile.am): Likewise.
14018         * modules/locale (Makefile.am): Likewise.
14019         * modules/math (Makefile.am): Likewise.
14020         * modules/netdb (Makefile.am): Likewise.
14021         * modules/netinet_in (Makefile.am): Likewise.
14022         * modules/poll-h (Makefile.am): Likewise.
14023         * modules/pthread (Makefile.am): Likewise.
14024         * modules/pty (Makefile.am): Likewise.
14025         * modules/sched (Makefile.am): Likewise.
14026         * modules/search (Makefile.am): Likewise.
14027         * modules/selinux-h (Makefile.am): Likewise.
14028         * modules/signal (Makefile.am): Likewise.
14029         * modules/spawn (Makefile.am): Likewise.
14030         * modules/stdarg (Makefile.am): Likewise.
14031         * modules/stddef (Makefile.am): Likewise.
14032         * modules/stdint (Makefile.am): Likewise.
14033         * modules/stdio (Makefile.am): Likewise.
14034         * modules/stdlib (Makefile.am): Likewise.
14035         * modules/string (Makefile.am): Likewise.
14036         * modules/strings (Makefile.am): Likewise.
14037         * modules/sys_file (Makefile.am): Likewise.
14038         * modules/sys_ioctl (Makefile.am): Likewise.
14039         * modules/sys_select (Makefile.am): Likewise.
14040         * modules/sys_socket (Makefile.am): Likewise.
14041         * modules/sys_stat (Makefile.am): Likewise.
14042         * modules/sys_time (Makefile.am): Likewise.
14043         * modules/sys_times (Makefile.am): Likewise.
14044         * modules/sys_utsname (Makefile.am): Likewise.
14045         * modules/sys_wait (Makefile.am): Likewise.
14046         * modules/sysexits (Makefile.am): Likewise.
14047         * modules/termios (Makefile.am): Likewise.
14048         * modules/time (Makefile.am): Likewise.
14049         * modules/unistd (Makefile.am): Likewise.
14050         * modules/wchar (Makefile.am): Likewise.
14051         * modules/wctype (Makefile.am): Likewise.
14052
14053 2010-10-04  Bruno Haible  <bruno@clisp.org>
14054
14055         read-file tests: Avoid a test failure on NonStop Kernel.
14056         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14057         a regular file.
14058         Reported by Joachim Schmitz <schmitz@hp.com>.
14059
14060 2010-10-03  Bruno Haible  <bruno@clisp.org>
14061
14062         gnulib-tool: Fixes for --create-testdir with --libtool.
14063         * gnulib-tool (func_get_automake_snippet): Don't augment
14064         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14065         an executable.
14066         (func_create_testdir): Handle module 'alloca' like func_import.
14067         Reported by Bruce Korb <bruce.korb@gmail.com>.
14068
14069 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14070
14071         Avoid some lines longer than 80 characters.
14072         * lib/stdint.in.h: Break long comment lines.
14073         * lib/math.in.h: Likewise.
14074         (_GL_NUM_UINT_WORDS): New macro, for readability.
14075         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14076         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14077         * lib/stdlib.in.h: Likewise.
14078         * lib/spawn.in.h: Likewise.
14079         * lib/sys_socket.in.h: Update an URL.
14080         * lib/sys_stat.in.h: Break long line.
14081
14082 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14083
14084         Improve pmccabe2html.
14085         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14086         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14087         when the sources change. Remove the line in the HTML about "Used
14088         ranges" (which implied that there might be other unused ranges),
14089         rename "Resume" to "Summary" (easier to understand for more users).
14090         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14091         styles, and some unnecessary blank lines.
14092
14093 2010-10-03  Bruno Haible  <bruno@clisp.org>
14094             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14095
14096         acl: Add support for ACLs on NonStop Kernel.
14097         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14098         Check whether the function aclsort() exists.
14099         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14100         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14101         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14102         (acl_nontrivial [HAVE_ACLSORT]: New function.
14103         (file_has_acl): Implement for NonStop Kernel.
14104         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14105         (qset_acl): Implement for NonStop Kernel.
14106         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14107         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14108         (main): Implement for NonStop Kernel.
14109         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14110         Kernel. Handle this flavor.
14111         * tests/test-set-mode-acl.sh: Likewise.
14112         * tests/test-copy-acl.sh: Likewise.
14113         * tests/test-copy-file.sh: Likewise.
14114
14115 2010-10-03  Bruno Haible  <bruno@clisp.org>
14116
14117         Info about ACLs on NonStop Kernel.
14118         * doc/acl-resources.txt: Add info about NonStop Kernel.
14119         References by Joachim Schmitz <schmitz@hp.com>.
14120
14121 2010-10-02  Bruno Haible  <bruno@clisp.org>
14122
14123         Define missing EDQUOT on NonStop Kernel.
14124         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14125         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14127         missing.
14128         * doc/posix-headers/errno.texi: Mention the NSK bug.
14129         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14130         Reported by Joachim Schmitz <schmitz@hp.com>.
14131
14132 2010-10-02  Bruno Haible  <bruno@clisp.org>
14133
14134         Update doc for POSIX:2008.
14135         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14136         Update URL of POSIX specification.
14137
14138 2010-10-02  Bruno Haible  <bruno@clisp.org>
14139
14140         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14141         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14142         from gnulib, not from Automake.
14143
14144 2010-10-02  Bruno Haible  <bruno@clisp.org>
14145
14146         New module 'system-posix'.
14147         * modules/system-posix: New file.
14148         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14149         module is present.
14150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14151         GNULIB_SYSTEM_POSIX.
14152         * modules/stdlib (Depends-on): Remove sys_wait.
14153         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14154         * doc/posix-functions/system.texi: Mention the new module.
14155         * doc/posix-headers/stdlib.texi: Likewise.
14156         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14157         define test_sys_wait_macros to a no-op.
14158         Reported by Sam Steingold <sds@gnu.org>.
14159
14160 2010-09-30  Bruno Haible  <bruno@clisp.org>
14161
14162         More renaming from 'getdate' to 'get_date'.
14163         * doc/get_date.texi: Renamed from doc/getdate.texi.
14164         * modules/get_date (Files): Update.
14165         * MODULES.html.sh (Date and time <time.h>): Update.
14166         * DEPENDENCIES: Update.
14167         * gnulib-tool: Update comment.
14168         * m4/bison.m4 (gl_BISON): Likewise.
14169         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14170
14171 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14172
14173         bootstrap: support ACLOCAL_FLAGS during aclocal
14174         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14175         can add additional -I dir for third-party .m4 files.
14176
14177 2010-09-30  Eric Blake  <eblake@redhat.com>
14178
14179         bootstrap: use glibtoolize on MacOS
14180         * build-aux/bootstrap (check_versions): Convert libtool into
14181         libtoolize.
14182         (tool search): Move libtool check earlier, and look for
14183         glibtoolize for MacOS.
14184         (gnulib_tool_options): Auto-add --libtool when appropriate.
14185         Reported by Justin Clift.
14186
14187         poll: fix typo that broke test on MacOS
14188         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14189         Reported by Justin Clift.
14190
14191         getdate: rename to get_date
14192         Note: getdate.h is not renamed, to minimize client impact.
14193         * modules/getdate: Mark obsolete.  Move old contents...
14194         * modules/get_date: ...to new module name.
14195         * modules/getdate-tests: Move...
14196         * modules/get_date-tests: ...here.
14197         * m4/getdate.m4: Move...
14198         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14199         * lib/getdate.y: Move...
14200         * lib/get_date.y: ...here.
14201         * tests/test-getdate.c: Move...
14202         * tests/test-get_date.c: ...here.
14203         * doc/posix-functions/getdate.texi (getdate): Update name.
14204         * NEWS: Mention the change.
14205
14206 2010-09-29  Bruno Haible  <bruno@clisp.org>
14207
14208         Separate the module 'waitpid' from the module 'sys_wait'.
14209         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14210         present.
14211         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14212         gl_MODULE_INDICATOR_FOR_TESTS.
14213         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14214         * modules/sys_wait (Depends-on): Remove waitpid.
14215         (Makefile.am): Substitute GNULIB_WAITPID.
14216         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14217         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14218         signature only if the 'waitpid' module is present.
14219         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14220         * NEWS: Mention the change.
14221         * modules/grantpt (Depends-on): Add waitpid.
14222         * modules/wait-process (Depends-on): Likewise.
14223
14224 2010-09-29  Bruno Haible  <bruno@clisp.org>
14225
14226         More tests for module 'sys_wait'.
14227         * modules/sys_wait-c++-tests: New file.
14228         * tests/test-sys_wait-c++.cc: New file.
14229         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14230         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14231
14232 2010-09-29  Bruno Haible  <bruno@clisp.org>
14233
14234         New module 'waitpid'.
14235         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14236         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14237         Don't include <process.h>.
14238         (waitpid): Declare only, using modern idiom.
14239         * m4/waitpid.m4: New file.
14240         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14241         * modules/waitpid: New file.
14242         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14243         (Makefile.am): Update.
14244         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14245
14246 2010-09-28  Bruno Haible  <bruno@clisp.org>
14247
14248         poll: Assume ANSI C.
14249         * lib/poll.c (poll): Use an ANSI C declaration.
14250
14251 2010-09-28  Bruno Haible  <bruno@clisp.org>
14252
14253         poll-h: Create poll.h on all platforms.
14254         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14255         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14256         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14257         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14258         (gl_REPLACE_POLL_H): Don't set POLL_H.
14259         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14260         * modules/poll-h (Depends-on): Add include_next.
14261         (Makefile.am): Create poll.h unconditionally. Substitute also
14262         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14263
14264 2010-09-28  Bruno Haible  <bruno@clisp.org>
14265
14266         Tests for module 'poll-h'.
14267         * modules/poll-h-c++-tests: New file.
14268         * tests/test-poll-h-c++.cc: New file.
14269
14270         Tests for module 'poll-h'.
14271         * modules/poll-h-tests: New file.
14272         * tests/test-poll-h.c: New file.
14273
14274 2010-09-28  Bruno Haible  <bruno@clisp.org>
14275
14276         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14277         * modules/poll-h (Depends-on): Add 'extensions'.
14278
14279 2010-09-28  Bruno Haible  <bruno@clisp.org>
14280
14281         New module 'poll-h'.
14282         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14283         (poll): Use modern idiom.
14284         * modules/poll-h: New file.
14285         * modules/poll (Files): Remove lib/poll.in.h.
14286         (Depends-on): Add poll-h.
14287         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14288         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14289         * m4/poll_h.m4: New file.
14290         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14291         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14292         and invoke gl_REPLACE_POLL_H.
14293         * lib/poll.c: Use common idiom.
14294         * tests/test-poll.c: Likewise.
14295         * doc/posix-headers/poll.texi: Mention the poll-h module.
14296         Suggested by Eric Blake.
14297
14298 2010-09-26  Bruno Haible  <bruno@clisp.org>
14299
14300         sys_wait: Implement WSTOPSIG.
14301         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14302         Reported by Simon Josefsson.
14303
14304 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14305
14306         stdlib, sys_wait: Avoid compilation error on mingw.
14307         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14308
14309 2010-09-26  Bruno Haible  <bruno@clisp.org>
14310
14311         stdlib tests: Avoid code duplication.
14312         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14313         * modules/sys_wait-tests (Files): Likewise.
14314         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14315         * tests/test-stdlib.c: Include test-sys_wait.h.
14316         (main): Invoke test_sys_wait_macros.
14317         * tests/test-sys_wait.c: Include test-sys_wait.h.
14318         (main): Invoke test_sys_wait_macros.
14319
14320 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14321
14322         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14323         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14324         sure Windows sockets are working before calling getaddrinfo.
14325         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14326         * doc/gnulib.texi (Windows sockets): Fix typo.
14327
14328 2010-09-25  Bruno Haible  <bruno@clisp.org>
14329
14330         Tests for module 'regex-quote'.
14331         * modules/regex-quote-tests: New file.
14332         * tests/test-regex-quote.c: New file.
14333
14334         New module 'regex-quote'.
14335         * lib/regex-quote.h: New file.
14336         * lib/regex-quote.c: New file.
14337         * modules/regex-quote: New file.
14338         Suggested by Reuben Thomas <rrt@sc3d.org>.
14339
14340 2010-09-24  Bruno Haible  <bruno@clisp.org>
14341
14342         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14343         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14344
14345 2010-09-23  Bruno Haible  <bruno@clisp.org>
14346
14347         setenv: Relax license.
14348         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14349         Blake.
14350         Requested by Eric Blake.
14351
14352 2010-09-22  Bruno Haible  <bruno@clisp.org>
14353
14354         termios: Relax license.
14355         * modules/termios (License): Change to LGPLv2+.
14356         Requested by Eric Blake.
14357
14358 2010-09-22  Bruno Haible  <bruno@clisp.org>
14359
14360         threadlib: Allow the package to change the default to 'no'.
14361         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14362         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14363         Reported by Paul Eggert.
14364
14365 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14366             Bruno Haible  <bruno@clisp.org>
14367
14368         Fix endless loop in mbmemcasecoll.
14369         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14370         byte.
14371         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14372
14373 2010-09-22  Bruno Haible  <bruno@clisp.org>
14374
14375         Tests for module 'memcoll'.
14376         * modules/memcoll-tests: New file.
14377         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14378
14379         memcoll, xmemcoll: Clarify size vs. length.
14380         * modules/memcoll.c (memcoll0): Clarify specification.
14381         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14382         passed to collate_error.
14383
14384 2010-09-22  Bruno Haible  <bruno@clisp.org>
14385
14386         Tests for module 'memcasecmp'.
14387         * modules/memcasecmp-tests: New file.
14388         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14389
14390 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14391
14392         * lib/pthread.in.h: Add split double-inclusion guard, and include
14393         system <pthread.h> if there is one.  Use @@-style as in other
14394         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14395         pthread.h doesn't.
14396         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14397         (pthread_mutexattr_settype, pthread_mutex_trylock):
14398         New static inline functions, if there's no system <pthread.h>.
14399         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14400         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14401         Approximate with mutexes if the system lacks spinlocks, as in
14402         MacOS.
14403         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14404         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14405         @@-style.  Check for spinlocks separately.
14406         (gl_PTHREAD_DEFAULTS): New macro.
14407         * modules/pthread: Redo to use a more typical style for in.h files.
14408
14409 2010-09-21  Eric Blake  <eblake@redhat.com>
14410
14411         net_if: enhance tests
14412         * tests/test-net_if.c (main): Move signature checks earlier.
14413         Print failures to stderr.
14414         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14415         Document the bug that we do not yet fix.
14416
14417 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14418
14419         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14420         about gnulib, not GSS.
14421
14422 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14423
14424         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14425         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14426         for Emacs.
14427         * build-aux/pmccabe2html: Make Makefile.am example code more
14428         cut-and-paste friendly.
14429
14430 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14431
14432         * tests/test-net_if.c: New file.
14433         * modules/net_if-tests: New file.
14434
14435 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14436
14437         pthread: add pthread_spin_destroy
14438         * lib/pthread.in.h (pthread_spin_destroy): New function.
14439
14440 2010-09-19  Bruno Haible  <bruno@clisp.org>
14441
14442         gnulib-tool: Fix --help output.
14443         * gnulib-tool (func_usage): Fix help message.
14444         Reported by Reuben Thomas <rrt@sc3d.org>.
14445
14446 2010-09-18  Jim Meyering  <meyering@redhat.com>
14447
14448         maint.mk: avoid unexpanded \n in two diagnostics
14449         * top/maint.mk (sc_prohibit_always_true_header_tests):
14450         Don't use a literal \n in a halt=... assignment.  It would not be
14451         expanded, and the two \n bytes would appear in the diagnostic output
14452         rather than the desired newline.  Use halt=$$(printf ... instead.
14453         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14454
14455 2010-09-18  Bruno Haible  <bruno@clisp.org>
14456
14457         netinet_in: Doc tweak.
14458         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14459         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14460
14461 2010-09-18  Jim Meyering  <meyering@redhat.com>
14462
14463         init.sh: correct an outdated comment
14464         * tests/init.sh (create_exe_shims_):  s/function/alias/
14465
14466         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14467         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14468         a file named "*.exe" is removed between the glob expansion and the
14469         processing of that oddly named file.
14470
14471 2010-09-17  Eric Blake  <eblake@redhat.com>
14472
14473         mirbsd: add some more support
14474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14475         in BSD family.
14476         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14477         devices as OpenBSD.
14478         * m4/host-os.m4 (mirbsd): Add MirBSD.
14479
14480         tests: fix unportable assumption on sys/wait.h
14481         * tests/test-sys_wait.c (main): Relax test.
14482         * tests/test-stdlib.c (main): Likewise.
14483
14484         init.sh: accomodate directory with no .exes
14485         * tests/init.sh: Accomodate directory containing only scripts.
14486
14487         tests: avoid compiler warning
14488         * tests/test-stdlib.c (main): Use the variable.
14489
14490         fdutimens, fdutimensat: update signature, again
14491         * lib/utimens.h (gl_futimens): Delete, and move signature...
14492         (fdutimens): ...here.
14493         (fdutimensat): Rearrange signature.
14494         (lutimensat): Rename variable for clarity.
14495         * lib/fdutimensat.c (fdutimensat): Update signature.
14496         * lib/utimens.c (fdutimens): Likewise.
14497         (gl_futimens): Delete.
14498         (utimens, lutimens): Update callers.
14499         * lib/futimens.c (futimens): Likewise.
14500         * tests/test-fdutimensat.c: Likewise.
14501         * tests/test-utimens.c: Likewise.
14502         * tests/test-futimens.h: Update comment.
14503         * NEWS: Mention this.
14504         Suggested by Paul Eggert.
14505
14506 2010-09-17  Bruno Haible  <bruno@clisp.org>
14507
14508         Take over the maintenance of some older macros from Autoconf.
14509         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14510         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14511         GNU Autoconf.
14512         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14513         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14514
14515 2010-09-17  Eric Blake  <eblake@redhat.com>
14516
14517         fdutimensat: drop atflag validation
14518         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14519         with valid fd, to close a race scenario where futimens is
14520         unsupported and FILE was replaced by a symlink.
14521         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14522         accordingly.
14523         Suggested by Paul Eggert.
14524
14525 2010-09-16  Bruno Haible  <bruno@clisp.org>
14526
14527         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14528         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14529
14530 2010-09-16  Bruno Haible  <bruno@clisp.org>
14531
14532         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14533         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14534         login_tty exists.
14535         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14536
14537 2010-09-16  Bruno Haible  <bruno@clisp.org>
14538
14539         login_tty: Make the replacement code work on BSD systems.
14540         * lib/login_tty.c: Include <sys/ioctl.h>.
14541         (login_tty): Use ioctl TIOCSCTTY when available.
14542         * modules/login_tty (Depends-on): Add sys_ioctl.
14543         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14544
14545 2010-09-16  Bruno Haible  <bruno@clisp.org>
14546
14547         login_tty: Stricter unit test.
14548         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14549         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14550         and tcgetsid() after login_tty.
14551         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14552
14553 2010-09-16  Bruno Haible  <bruno@clisp.org>
14554
14555         New module 'tcgetsid'.
14556         * lib/tcgetsid.c: New file.
14557         * m4/tcgetsid.m4: New file.
14558         * modules/tcgetsid: New file.
14559         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14560         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14561         GNULIB_TCGETSID, HAVE_TCGETSID.
14562         * lib/termios.in.h: Include <sys/types.h>.
14563         (tcgetsid): New declaration.
14564         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14565         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14566         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14567         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14568
14569 2010-09-16  Bruno Haible  <bruno@clisp.org>
14570
14571         Tests for module 'termios'.
14572         * modules/termios-c++-tests: New file.
14573         * modules/termios-tests: New file.
14574         * tests/test-termios-c++.cc: New file.
14575         * tests/test-termios.c: New file.
14576
14577         New module 'termios'.
14578         * modules/termios: New file.
14579         * lib/termios.in.h: New file.
14580         * m4/termios_h.m4: New file.
14581         * doc/posix-headers/termios.texi: Mention the new module.
14582
14583 2010-09-16  Eric Blake  <eblake@redhat.com>
14584
14585         fdutimensat: add an atflag parameter
14586         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14587         * lib/utimens.h (fdutimensat): Update prototype.
14588         * tests/test-fdutimensat.c: Adjust test to match.
14589         * NEWS: Document the change.
14590         Suggested by Paul Eggert.
14591
14592 2010-09-16  Bruno Haible  <bruno@clisp.org>
14593
14594         Fix typos in comments.
14595         * lib/striconveh.h: Fix typo in comment.
14596         * lib/login_tty.c (login_tty): Likewise.
14597
14598 2010-09-15  Bruno Haible  <bruno@clisp.org>
14599
14600         stdlib: clarify MirBSD WEXITSTATUS bug
14601         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14602         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14603
14604 2010-09-15  Eric Blake  <eblake@redhat.com>
14605
14606         stdlib: work around MirBSD WEXITSTATUS bug
14607         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14608         * modules/stdlib (Depends-on): Add sys_wait.
14609         * tests/test-sys_wait.c (main): Enhance test.
14610         * tests/test-stdlib.c (main): Likewise.
14611         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14612
14613         docs: mention MacOS issue with WEXITSTATUS(constant)
14614         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14615         issue.
14616         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14617
14618         strnlen: add tests
14619         * modules/strnlen-tests: New file.
14620         * tests/test-strnlen.c: Likewise.
14621
14622 2010-09-14  Bruno Haible  <bruno@clisp.org>
14623
14624         unistr/base: Avoid link errors when module 'libunistring' is also used.
14625         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14626         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14627         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14628         Declare also when HAVE_LIBUNISTRING is set.
14629         Reported by Pádraig Brady <P@draigbrady.com>.
14630
14631 2010-09-14  Eric Blake  <eblake@redhat.com>
14632
14633         test-rawmemchr: make more robust
14634         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14635         (Depends-on, configure.ac): Add needed prerequisites to use it.
14636         * modules/memchr-tests (Files, Depends-on, configure.ac):
14637         Likewise, to avoid implicit reliance on memchr module prereqs.
14638         * tests/test-memchr.c (main): Ensure proper masking.
14639         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14640         reads.
14641
14642         memchr: detect glibc Alpha bug
14643         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14644         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14645         Alpha.
14646         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14647         * tests/test-memchr.c (main): Enhance test.
14648         Reported by Nelson H. F. Beebe.
14649
14650 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14651
14652         fts, getcwd, glob: audit for dirfd returning -1
14653         * lib/fts.c (opendir): Remove #define; no longer used.
14654         (opendirat): New arg PDIR_FD.  All callers changed.
14655         (fts_build, _opendir2): Use new opendirat to avoid the need for
14656         dirfd, or for checking whether dirfd returns a negative value.
14657         Don't use opendir; always use openat followed by fdopendir.
14658         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14659         it.
14660         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14661         returns -1 here.
14662         * modules/fts (Depends-on): Remove dirfd.
14663         * modules/getcwd (Depends-on): Likewise.
14664
14665 2010-09-13  Eric Blake  <eblake@redhat.com>
14666
14667         float: fix broken MirBSD header
14668         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14669         * doc/posix-headers/float.texi (float.h): Document it.
14670
14671 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14672
14673         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14674         * lib/fts.c (opendirat): New arg extra_flags.
14675         (__opendir2): Use it to avoid following symlinks when opening
14676         a directory, if symlinks are not supposed to be followed.  See
14677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14678
14679         fdopendir: preserve argument fd before returning
14680         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14681         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14682         (fdopendir): Use them, arranging for FD to be open to the same
14683         directory that it was when it started.  (It might be temporarily
14684         closed while fdopendir is running, so this not thread- or
14685         signal-safe.)  Be careful to do the right thing even when file
14686         descriptors are scarce and dup fails with errno == EMFILE.  See
14687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14688
14689 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14690
14691         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14692         * NEWS: Document change.
14693         * m4/regex.m4: Disable test for regoff_t size.
14694
14695 2010-09-13  Jim Meyering  <meyering@redhat.com>
14696
14697         fts: don't operate on an invalid file descriptor after failed dup
14698         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14699         negative file descriptor.
14700
14701 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14702
14703         savedir: add streamsavedir, deprecate fdsavedir
14704         * NEWS: Mention deprecation of fdsavedir.
14705         * lib/savedir.c (streamsavedir): New extern function, whose name
14706         ends in "savedir" to be consistent with the others.  This differs
14707         from savedirstream in that it doesn't close its argument.  The
14708         next version of GNU tar will use this instead of fdsavedir, to
14709         avoid some race conditions and conserve file descriptors.
14710         (savedirstream): Reimplement as a wrapper around streamsavedir.
14711         (fdsavedir): Add a comment deprecating this function.  As far as
14712         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14713         * lib/savedir.h (streamsavedir): New decl.
14714         (fdsavedir): Add a comment deprecating this.
14715
14716 2010-09-10  Bruno Haible  <bruno@clisp.org>
14717
14718         langinfo: Fix last commit.
14719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14720         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14722
14723 2010-09-10  Bruno Haible  <bruno@clisp.org>
14724
14725         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14726         * lib/progreloc.c (O_EXEC): Define fallback.
14727
14728 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14729
14730         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14731         * NEWS: Document recent changes to fcntl-h.
14732         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14733         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14734         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14735         Similarly for O_SEARCH; this last was already true, but not documented.
14736         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14737         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14738         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14739         Likewise.
14740         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14741         is zero, not whether it is defined.
14742         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14743         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14744         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14745
14746 2010-09-10  Bruno Haible  <bruno@clisp.org>
14747
14748         langinfo, nl_langinfo: Fix for IRIX 5.3.
14749         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14750         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14751         HAVE_LANGINFO_YESEXPR.
14752         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14753         HAVE_LANGINFO_YESEXPR.
14754         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14755         HAVE_LANGINFO_T_FMT_AMPM is 0.
14756         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14757         HAVE_LANGINFO_YESEXPR is 0.
14758         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14759         NOEXPR.
14760         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14761         * doc/posix-functions/nl_langinfo.texi: Likewise.
14762         Reported by Eric Blake.
14763
14764 2010-09-10  Bruno Haible  <bruno@clisp.org>
14765
14766         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14767         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14768         on FreeBSD 8.0 and OpenBSD 4.6.
14769         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14770         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14771         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14772         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14773         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14774         ac_includes_default.
14775         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14776
14777 2010-09-09  Eric Blake  <eblake@redhat.com>
14778
14779         strsignal: work around NetBSD bug
14780         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14781         * lib/string.in.h (includes): Likewise.
14782         * doc/posix-functions/strsignal.texi (strsignal): Document the
14783         bug.
14784         Reported by Nelson H. F. Beebe.
14785
14786         gnulib-tool: work with NetBSD /bin/sh
14787         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14788         (func_get_description, func_get_comment, func_get_status)
14789         (func_get_notice, func_get_applicability, func_get_filelist)
14790         (func_get_dependencies, func_get_autoconf_early_snippet)
14791         (func_get_autoconf_snippet, func_get_automake_snippet)
14792         (func_get_include_directive, func_get_link_directive)
14793         (func_get_license, func_get_maintainer, func_import): Avoid
14794         shell syntax errors from parsing syntax extensions.
14795
14796 2010-09-09  Bruno Haible  <bruno@clisp.org>
14797
14798         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14799         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14800         a reliable way to determine whether the 'alias' command works.
14801
14802 2010-09-08  Jim Meyering  <meyering@redhat.com>
14803
14804         init.sh: penalize a set-x-impaired shell; don't disqualify it
14805         * tests/init.sh: Too many shells corrupt application stderr when
14806         you set -x, so we can't afford to disqualify them, since at least
14807         on Irix-6.5, that would disqualify all bourne shells.
14808         Instead, use a two-pass approach.
14809         On the first pass, try to find a shell that meets the stricter
14810         condition that set -x does not corrupt stderr.
14811         If no shell meets the stricter condition, retest each candidate
14812         shell, but without that extra condition.  Finally, when
14813         VERBOSE=yes is requested and set -x might cause trouble, simply
14814         issue a warning and refrain from enabling debug output.
14815
14816 2010-09-08  Eric Blake  <eblake@redhat.com>
14817
14818         unsetenv: fix OpenBSD bug
14819         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14820         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14821         documentation.
14822         Reported by Jim Meyering.
14823
14824         strtod: work around IRIX 6.5 bug
14825         * lib/strtod.c (strtod): Reparse number on shorter string if
14826         exponent parse was invalid.
14827         * tests/test-strtod.c (main): Add check for "0x1p 2".
14828         Reported by Tom G. Christensen.
14829
14830         getopt: optimize previous patch
14831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14832         empty variable.  Speed up awk script.
14833         Reported by Paolo Bonzini.
14834
14835 2010-09-08  Jim Meyering  <meyering@redhat.com>
14836
14837         test.sh: disqualify shells for which set -x corrupts stderr
14838         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14839         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14840         appear in stderr output.  For example, this command:
14841             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14842         prints "P=1" on those two systems:
14843
14844 2010-09-08  Bruno Haible  <bruno@clisp.org>
14845
14846         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14847         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14848         commands, because some shells ignore redirections when there is an
14849         error in the command lookup.
14850         Reported by Eric Blake.
14851
14852 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14853
14854         * lib/regex.h: Fix a mention of `regex_compile' (should be
14855         `re_compile_pattern').
14856         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14857         (re_set_registers): Correct name of parameter in comment.
14858
14859         * doc/regex.texi: Add documentation for missing syntax flags.
14860         Remove commented-out documentation of defunct syntax option
14861         RE_NO_EMPTY_ALTS.
14862         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14863         Add documentation of re_set_registers.
14864         Document trick to re-use a pattern buffer by setting fastmap manually.
14865         Update documentation of struct re_pattern_buffer per public members.
14866         Uncomment documentation of equivalence class operators and
14867         collating symbol operators, since they are now implemented,
14868         Explain leftmost-longest matching in relation to alternatives.
14869         Tidy documentation of substring matching.
14870         Remove POSIX documentation, which is done better in
14871         glibc, and refer the reader there. Keep BSD API documentation, as
14872         that is not readily available elsewhere.
14873
14874 2010-09-07  Eric Blake  <eblake@redhat.com>
14875
14876         getopt: handle POSIXLY_CORRECT set but not exported
14877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14878         export state of POSIXLY_CORRECT, due to bash set -o posix.
14879         Reported by Dustin J. Mitchell.
14880
14881 2010-09-05  Bruno Haible  <bruno@clisp.org>
14882
14883         gnulib-tool: Highlight the changed options.
14884         * gnulib-tool (func_usage): Display the --import, --add-import,
14885         --remove-import explanations in bold font.
14886
14887 2010-09-06  Karl Berry  <karl@gnu.org>
14888
14889         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14890
14891 2010-09-05  Bruno Haible  <bruno@clisp.org>
14892
14893         uniwidth/width: Update comment.
14894         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14895         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14896
14897 2010-09-05  Bruno Haible  <bruno@clisp.org>
14898
14899         isinf, isnan: Relax license.
14900         * modules/isinf (License): Change from GPL to LGPL, with consent from
14901         Ben Pfaff.
14902         * modules/isnan (License): Likewise.
14903         Requested by Ludovic Courtès.
14904
14905 2010-09-04  Bruno Haible  <bruno@clisp.org>
14906
14907         gnulib-tool: Help migration from --import to --add-import or --update.
14908         * gnulib-tool: Emit a verbose error message when --import is used
14909         without any module name.
14910
14911 2010-09-04  Bruno Haible  <bruno@clisp.org>
14912
14913         Update doc about gnulib-tool.
14914         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14915         'gnulib-tool --update' in more detail.
14916         Reported by Eric Blake.
14917
14918 2010-09-04  Bruno Haible  <bruno@clisp.org>
14919
14920         gnulib-tool: Change --import. New options --add/remove-import.
14921         * gnulib-tool: New options --add-import, --remove-import.
14922         (func_usage): Document them.
14923         (have_associative): Define always.
14924         (func_import): In import mode, don't merge the specified settings with
14925         the cached settings. Implement remove-import mode.
14926         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14927         Explain when to use them versus --import.
14928         (Simple update): Use --add-import instead of --import.
14929         * NEWS: Mention the change.
14930
14931 2010-09-04  Bruno Haible  <bruno@clisp.org>
14932
14933         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14934         separate gnulib.mk.
14935
14936 2010-09-04  Bruno Haible  <bruno@clisp.org>
14937
14938         gnulib-tool: Don't talk about CVS any more.
14939         * gnulib-tool (func_usage, func_import): Write "version control"
14940         instead of CVS.
14941
14942 2010-09-04  Jim Meyering  <meyering@redhat.com>
14943
14944         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14945         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14946         false positives (whose names may be ill-chosen) when searching
14947         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14948         would cause a false-positive.
14949
14950         avoid coreutils "make distcheck" failure
14951         Coreutils tests with an absolute build directory name that contains
14952         a space.  Not quoting this directory name caused a failure.
14953         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14954         * tests/test-vc-list-files-cvs.sh: Likewise.
14955
14956 2010-09-04  Bruno Haible  <bruno@clisp.org>
14957
14958         gnulib-tool: Avoid error when run in a package without Makefile.am.
14959         * gnulib-tool: When collecting the m4dirs in a package that does not
14960         have a Makefile.am, eliminate those directories that contain no
14961         gnulib-cache.m4. Fix expression that counts these directories.
14962
14963 2010-09-04  Bruno Haible  <bruno@clisp.org>
14964
14965         update-copyright test: Improve output when perl is missing or too old.
14966         * tests/test-update-copyright.sh: Move test of Perl version down after
14967         the test whether Perl exists. Provide an explanation relating Perl's
14968         error message to Automake's SKIP: message.
14969
14970 2010-09-04  Bruno Haible  <bruno@clisp.org>
14971
14972         Don't augment PATH in TESTS_ENVIRONMENT.
14973         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14974         set abs_aux_dir instead of augmenting PATH.
14975         * modules/vc-list-files-tests (Makefile.am): Likewise.
14976         * tests/test-update-copyright.sh: Augment PATH here.
14977         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14978         path_prepend_.
14979         * tests/test-vc-list-files-git.sh: Likewise.
14980
14981 2010-09-04  Jim Meyering  <meyering@redhat.com>
14982
14983         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14984         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14985
14986 2010-09-04  Bruno Haible  <bruno@clisp.org>
14987
14988         strdup: Fix compilation error in C++ mode.
14989         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14990         the macro.
14991
14992 2010-09-04  Bruno Haible  <bruno@clisp.org>
14993
14994         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14995         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14996         macro into a function.
14997         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14998
14999 2010-09-04  Bruno Haible  <bruno@clisp.org>
15000
15001         Set PATH_SEPARATOR the same way autoconf does.
15002         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15003         the value of PATH_SEPARATOR the same way autoconf-generated configure
15004         scripts do.
15005         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15006         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15007
15008 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15009
15010         Set PATH_SEPARATOR the same way autoconf does.
15011         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15012         the same way autoconf-generated configure scripts do.
15013         * posix-modules: Likewise.
15014
15015 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15016
15017         hash: fix safe_hasher const typo
15018         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15019         const; otherwise, there is a type error later.
15020
15021 2010-09-02  Jim Meyering  <meyering@redhat.com>
15022
15023         test-update-copyright.sh: require perl 5.8.0
15024         * tests/test-update-copyright.sh: Require 5.8.0,
15025         which Tom G. Christensen has confirmed is adequate,
15026         while 5.6.1 is not.
15027
15028 2010-09-02  Eric Blake  <eblake@redhat.com>
15029
15030         tests: init.sh improvements for re-exec'ing with zsh
15031         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15032         -vx through shell re-exec.
15033         Reported by Tom G. Christensen.
15034
15035         wctype: fix typo in previous commit
15036         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15037         Reported by Ludovic Courtès.
15038
15039 2010-09-02  Jim Meyering  <meyering@redhat.com>
15040
15041         test-update-copyright.sh: skip test if Perl is too old
15042         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15043         Reported by Tom G. Christensen.
15044
15045 2010-09-02  Bruno Haible  <bruno@clisp.org>
15046
15047         wctype: Avoid compilation error on IRIX 6.5.30.
15048         * lib/wctype.in.h (iswblank): Declare with a replacement if
15049         REPLACE_ISWBLANK is set.
15050         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15051         declared. Set REPLACE_ISWBLANK.
15052         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15053         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15054         * doc/posix-headers/wctype.texi: Likewise.
15055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15056
15057 2010-09-01  Bruno Haible  <bruno@clisp.org>
15058
15059         New module 'socketlib'.
15060         * modules/socketlib: New file.
15061         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15062         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15063         * modules/sockets (Depends-on): Add socketlib.
15064         Suggested by Sam Steingold <sds@gnu.org>.
15065
15066 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15067
15068         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15069
15070         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15071         when one needs search access to a directory but not read access.
15072         On systems where it is available, it works in some cases where
15073         O_RDONLY does not, namely on directories that are searchable but
15074         not readable, and which need only to be searchable.  If O_SEARCH
15075         is not available, fall back to the traditional method of using
15076         O_RDONLY.
15077
15078         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15079         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15080         when opening a directory that needs only to be searchable.
15081         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15082         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15083         * lib/openat-proc.c (openat_proc_name): Likewise.
15084         * lib/openat.c (openat_needs_fchdir): Likewise.
15085         * lib/save-cwd.c (save_cwd): Likewise.
15086         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15087
15088 2010-08-28  Bruno Haible  <bruno@clisp.org>
15089
15090         New module 'host-cpu-c-abi'.
15091         * modules/host-cpu-c-abi: New file.
15092         * m4/host-cpu-c-abi.m4: New file, based on part of
15093         clisp/src/m4/general.m4.
15094         Requested by Sam Steingold <sds@gnu.org>.
15095
15096 2010-08-31  Eric Blake  <eblake@redhat.com>
15097         and Jim Meyering  <meyering@redhat.com>
15098
15099         hash: factor, and guard against misbehaving hasher function
15100         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15101         of table->hasher's return value.  Also protect against a hash value
15102         so large that adding it to table->bucket results in a NULL pointer.
15103         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15104         Use it in place of open-coded check-and-abort.
15105
15106 2010-08-30  Bruno Haible  <bruno@clisp.org>
15107
15108         hash: silence spurious clang warning
15109         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15110         Reported by Eric Blake.
15111
15112 2010-08-30  Eric Blake  <eblake@redhat.com>
15113
15114         strstr, memmem, strcasestr: avoid leaked shell message
15115         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15116         FreeBSD.
15117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15118         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15119
15120         tests: silence clang warning
15121         * tests/test-malloca.c (do_allocation): Avoid dead store.
15122
15123 2010-08-29  Bruno Haible  <bruno@clisp.org>
15124
15125         gettext: Fix recent mistake.
15126         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15127
15128 2010-08-29  Bruno Haible  <bruno@clisp.org>
15129
15130         selinux-h: Offer a --without-selinux option.
15131         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15132         --without-selinux was specified, skip all tests and define
15133         HAVE_SELINUX_SELINUX_H to 0.
15134         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15135         set LIB_SELINUX to empty.
15136         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15137         gl_LIBSELINUX. If --without-selinux was specified, replace
15138         selinux/context.h.
15139         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15140
15141 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15142             Bruno Haible  <bruno@clisp.org>
15143
15144         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15145         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15146         of HAVE_REALLOC.
15147         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15148         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15149         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15150         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15151
15152 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15153             Bruno Haible  <bruno@clisp.org>
15154
15155         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15156         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15157         HAVE_CALLOC.
15158         * lib/xmalloc.c: Update accordingly.
15159         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15160         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15161         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15162
15163 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15164             Bruno Haible  <bruno@clisp.org>
15165
15166         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15167         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15168         HAVE_MALLOC.
15169         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15170         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15171         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15172
15173 2010-08-29  Bruno Haible  <bruno@clisp.org>
15174
15175         Update modules list.
15176         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15177         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15178         (String handling <string.h>): Add astrxfrm.
15179         (File system functions): Add readlinkat.
15180
15181 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15182
15183         Tests for module 'realloc-gnu'.
15184         * modules/realloc-gnu-tests: New file.
15185         * tests/test-realloc-gnu.c: New file.
15186
15187         Tests for module 'calloc-gnu'.
15188         * modules/calloc-gnu-tests: New file.
15189         * tests/test-calloc-gnu.c: New file.
15190
15191         Tests for module 'malloc-gnu'.
15192         * modules/malloc-gnu-tests: New file.
15193         * tests/test-malloc-gnu.c: New file.
15194
15195 2010-08-28  Bruno Haible  <bruno@clisp.org>
15196
15197         Rename module 'realloc' -> 'realloc-gnu'.
15198         * modules/realloc-gnu: New file, copied from modules/realloc.
15199         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15200         obsolete.
15201         * modules/mgetgroups (Depends-on): Update.
15202         * doc/posix-functions/realloc.texi: Update.
15203         * NEWS: Mention the change.
15204
15205         Rename module 'calloc' -> 'calloc-gnu'.
15206         * modules/calloc-gnu: New file, copied from modules/calloc.
15207         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15208         obsolete.
15209         * doc/posix-functions/calloc.texi: Update.
15210         * NEWS: Mention the change.
15211
15212         Rename module 'malloc' -> 'malloc-gnu'.
15213         * modules/malloc-gnu: New file, copied from modules/malloc.
15214         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15215         obsolete.
15216         * modules/argp (Depends-on): Update.
15217         * modules/regex (Depends-on): Update.
15218         * doc/posix-functions/malloc.texi: Update.
15219         * NEWS: Mention the change.
15220
15221 2010-08-28  Eric Blake  <eblake@redhat.com>
15222
15223         pread, pwrite: add missing dependency
15224         * modules/pread (Depends-on): Add extensions.
15225         * modules/pwrite (Depends-on): Likewise.
15226
15227 2010-08-28  Bruno Haible  <bruno@clisp.org>
15228
15229         unistr/u*-strchr: Fix tests dependencies.
15230         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15231         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15232         Reported by Ian Beckwith <ianb@erislabs.net>.
15233
15234 2010-08-28  Bruno Haible  <bruno@clisp.org>
15235
15236         read-file: Don't occupy too much unused memory.
15237         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15238
15239 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15240             Eric Blake  <eblake@redhat.com>
15241             Bruno Haible  <bruno@clisp.org>
15242
15243         read-file: Avoid memory reallocations with regular files.
15244         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15245         (fread_file): With regular files, use the remaining length as the
15246         initial buffer size.  Check against overflow.
15247         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15248         sys_stat.
15249
15250 2010-08-28  Bruno Haible  <bruno@clisp.org>
15251
15252         ftello: Relax license.
15253         * modules/ftello (License): Relax to LGPLv2+.
15254         Reported by Eric Blake.
15255
15256 2010-08-28  Bruno Haible  <bruno@clisp.org>
15257
15258         Avoid relocwrapper link errors due to gnulib replacement functions.
15259         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15260         function.
15261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15262
15263 2010-08-28  Bruno Haible  <bruno@clisp.org>
15264
15265         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15266         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15267         defined.
15268         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15269         Suggested by Eric Blake.
15270
15271 2010-08-28  Bruno Haible  <bruno@clisp.org>
15272
15273         sys_socket, netdb: Ensure socklen_t gets defined.
15274         * modules/sys_socket (Depends-on): Add socklen.
15275         * modules/netdb (Depends-on): Likewise.
15276         * modules/getaddrinfo (Depends-on): Remove socklen.
15277         * modules/getsockopt (Depends-on): Likewise.
15278         * modules/setsockopt (Depends-on): Likewise.
15279         * tests/test-sys_socket.c: Check that socklen_t is defined.
15280         * tests/test-netdb.c: Likewise.
15281         * m4/socklen.m4: Update comments.
15282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15283
15284 2010-08-27  Eric Blake  <eblake@redhat.com>
15285
15286         login_tty: add missing dependency
15287         * modules/login_tty (Depends-on): Add pty.
15288
15289 2010-08-26  Eric Blake  <eblake@redhat.com>
15290
15291         lib-symbol-versions: fix m4 quoting
15292         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15293         format for AC_LINK_IFELSE.
15294
15295         glob: fix compile test
15296         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15297
15298         btowc: fix missing file
15299         * modules/btowc (Files): Also ship locale-fr.m4.
15300
15301         lseek: fix link test
15302         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15303         AC_LINK_IFELSE.
15304
15305         include_next: silence autoconf 2.68 warning
15306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15307         AC_COMPILE_IFELSE as special.
15308         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15309         autoconf < 2.68.
15310
15311         acl: fix compilation test
15312         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15313         AC_COMPILE_IFELSE.
15314
15315 2010-08-26  Bruno Haible  <bruno@clisp.org>
15316
15317         Modernize AC_TRY_RUN invocations.
15318         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15319         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15320         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15321         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15322         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15323         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15324         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15325         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15326         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15327         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15329         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15330         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15331         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15332         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15333         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15334         gl_MBRLEN_NUL_RETVAL): Likewise.
15335         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15336         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15337         Likewise.
15338         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15339         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15340         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15341         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15342         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15343         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15344         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15345         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15346         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15347         Likewise.
15348         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15349         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15350         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15351         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15352         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15353         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15355         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15356         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15358
15359 2010-08-26  Bruno Haible  <bruno@clisp.org>
15360
15361         Modernize AC_TRY_LINK invocations.
15362         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15363         AC_TRY_LINK.
15364         * m4/argp.m4 (gl_ARGP): Likewise.
15365         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15366         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15367         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15368         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15369         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15370         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15371         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15372         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15373         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15374         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15375         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15376         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15377         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15378         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15379         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15380         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15381         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15382         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15383         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15384         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15385         Likewise.
15386         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15387         Likewise.
15388         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15389         Likewise.
15390         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15392         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15393         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15394         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15395         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15396         * m4/servent.m4 (gl_SERVENT): Likewise.
15397         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15398         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15399         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15400         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15401         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15402         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15403         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15405         * modules/tsearch-tests (configure.ac): Likewise.
15406
15407 2010-08-26  Bruno Haible  <bruno@clisp.org>
15408
15409         Modernize AC_TRY_COMPILE invocations.
15410         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15411         AC_TRY_COMPILE.
15412         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15413         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15414         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15415         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15416         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15417         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15418         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15419         * m4/lock.m4 (gl_LOCK): Likewise.
15420         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15421         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15422         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15423         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15424         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15425         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15426         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15428         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15429         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15430         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15431         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15432         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15433         extraneous semicolon.
15434
15435 2010-08-26  Jim Meyering  <meyering@redhat.com>
15436
15437         stat-time: relax license LGPL
15438         * modules/stat-time (License): Change from GPL to LGPL,
15439         with consent from all contributors, for use in libguile.
15440         Requested by Ludovic Courtès.
15441
15442 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15443
15444         poll: return immediately on POLLHUP.
15445         * lib/poll.c (poll): Always set timeout before wait_timeout is
15446         computed.
15447
15448 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15449
15450         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15451         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15452         rmdir ("dir/.//"), unlinkat.
15453
15454 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15455
15456         stdbool: avoid spurious failure with modern xlc
15457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15458
15459 2010-08-24  Bruno Haible  <bruno@clisp.org>
15460
15461         getloadavg: simplify code
15462         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15463         gl_have_func. Update comments.
15464
15465 2010-08-24  Eric Blake  <eblake@redhat.com>
15466
15467         getloadavg: don't define SVR4 on cygwin
15468         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15469         only define SVR4 when -lkvm is required.
15470         Reported by Yaakov Selkowitz.
15471
15472 2010-08-24  Bruno Haible  <bruno@clisp.org>
15473
15474         priv-set: fix comment
15475         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15476
15477 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15478
15479         priv-set: fix comments
15480         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15481         to match code, as suggested by David Bartley in:
15482         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15483
15484 2010-08-23  Eric Blake  <eblake@redhat.com>
15485
15486         stdbool: avoid rejecting clang
15487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15488         * tests/test-stdbool.c: Enable more tests if using the system
15489         <stdbool.h> instead of the gnulib replacement.
15490         (main): Move xlc bug test to a runtime test for all compilers.
15491         Reported by Anders Kaseorg.
15492
15493         argz: fix shell quoting issue
15494         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15495         Reported by Charles Wilson.
15496
15497 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15498             Erik Faye-Lund <kusmabite@gmail.com>
15499
15500         poll, select: handle ERROR_BROKEN_PIPE.
15501         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15502         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15503         * lib/select.c (win32_compute_revents): Do not mark a pipe
15504         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15505
15506 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15507
15508         fts: allow compilation with C++
15509         * lib/fts_.h: Specify extern "C" linkage with C++.
15510
15511 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15512
15513         Fix gnulib-tool sed script de-commentation for AIX sed.
15514         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15515         sed.
15516
15517 2010-08-17  Eric Blake  <eblake@redhat.com>
15518
15519         test-stddef: test for (some) offsetof bugs
15520         * tests/test-stddef.c: Enhance test to ensure correct type of
15521         offsetof.
15522         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15523         that we are not fixing at this time.
15524
15525 2010-08-15  Bruno Haible  <bruno@clisp.org>
15526
15527         stpncpy: Allow stpncpy to be defined as a macro.
15528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15529         if it's already correctly declared.
15530         * lib/string.in.h (stpncpy): Undefine before redefining.
15531         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15532
15533 2010-08-14  Bruno Haible  <bruno@clisp.org>
15534
15535         Rename module 'memxfrm' to 'amemxfrm'.
15536         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15537         (amemxfrm): Renamed from memxfrm.
15538         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15539         (amemxfrm): Renamed from memxfrm.
15540         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15541         * NEWS: Mention the change.
15542         * MODULES.html.sh (String handling <string.h>): Update.
15543         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15544         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15545         * lib/unicase/u16-casexfrm.c: Likewise.
15546         * lib/unicase/u32-casexfrm.c: Likewise.
15547         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15548         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15549         * lib/uninorm/u16-normxfrm.c: Likewise.
15550         * lib/uninorm/u32-normxfrm.c: Likewise.
15551         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15552         memxfrm.
15553         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15554         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15555         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15556         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15557         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15558         Suggested by Paul Eggert.
15559
15560 2010-08-14  Bruno Haible  <bruno@clisp.org>
15561
15562         Tests for module 'astrxfrm'.
15563         * modules/astrxfrm-tests: New file.
15564         * tests/test-astrxfrm.c: New file.
15565
15566         New module 'astrxfrm'.
15567         * lib/astrxfrm.h: New file.
15568         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15569         * modules/astrxfrm: New file.
15570
15571 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15572
15573         regex: Tweak doc.
15574         * doc/regex.texi (Overview): Don't mention regex.c.
15575         (GNU Regular Expression Compiling): Likewise.
15576         (Match-end-of-line Operator): Mention 'not_eol'.
15577
15578 2010-08-14  Brian Gough  <bjg@gnu.org>
15579             Bruno Haible  <bruno@clisp.org>
15580
15581         git-merge-changelog: add doc relating to use with bzr and hg.
15582         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15583
15584 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15585
15586         pthread: fix pthread.h creation for srcdir != builddir
15587         * modules/pthread (Makefile.am): Fix the rule to work also in a
15588         non-srcdir build.
15589
15590 2010-08-13  Karl Berry  <karl@gnu.org>
15591
15592         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15593         * doc/posix-*/*: force line break before @url of POSIX
15594         specifications.
15595         Suggested by Werner Lemberg.
15596
15597 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15598
15599         strtod: fix const diagnostic
15600         * lib/strtod.c (strtod): Don't assign const char * to char *,
15601         as this elicits a warning from GCC when warnings are enabled.
15602
15603 2010-08-10  Pádraig Brady <P@draigbrady.com>
15604         and Eric Blake  <eblake@redhat.com>
15605
15606         copy-acl: ignore ENOTSUP on HP-UX
15607         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15608         so that it is available for HP-UX.
15609         * lib/copy-acl.c (qcopy_acl): Use it.
15610         Reported by Patrick M. Callahan.
15611
15612 2010-08-10  Eric Blake  <eblake@redhat.com>
15613
15614         open, chown: relax license
15615         * modules/open (License): Change to LGPLv2+, with consent by all
15616         authors, for use in augeas.
15617         * modules/chown (License): Likewise.
15618         * modules/lchown (Likewise): Likewise.
15619         Requested by Adam Stokes.
15620
15621 2010-08-09  Karl Berry  <karl@gnu.org>
15622
15623         * build-aux/ar-lib: new file, import from Automake.
15624         * config/srclist.txt: autocheck for updates.
15625
15626 2010-08-09  Eric Blake  <eblake@redhat.com>
15627
15628         readlinkat: adjust client modules
15629         * modules/areadlinkat (Depends-on): Use readlinkat, not
15630         symlinkat.
15631         * modules/areadlinkat-with-size (Depends-on): Likewise.
15632
15633         mknod: be more vocal about danger of running tests as root
15634         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15635         root, since that is just asking for problems.
15636         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15637
15638         readlinkat: split into its own module
15639         * modules/symlinkat: Split readlinkat...
15640         * modules/readlinkat: ...into separate module.
15641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15642         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15643         * lib/symlinkat.c (readlinkat): Move...
15644         * lib/readlinkat.c: ...into new file.
15645         * modules/symlinkat-tests: Split readlinkat test...
15646         * modules/readlinkat-tests: ...into separate module.
15647         * tests/test-symlinkat.c: Split...
15648         * tests/test-readlinkat.c: ...into new file.
15649         * NEWS: Document the split.
15650         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15651         * lib/unistd.in.h (readlinkat): Likewise.
15652         Suggested by Bruno Haible.
15653
15654 2010-08-08  Bruno Haible  <bruno@clisp.org>
15655
15656         memxfrm: Speed up.
15657         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15658         that usually only one call to strxfrm is necessary for each string
15659         part.
15660         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15661
15662 2010-08-07  Karl Berry  <karl@gnu.org>
15663
15664         * doc/posix-headers/limits.texi,
15665         * doc/posix-functions/malloc.texi,
15666         * doc/posix-functions/strsignal.texi: missing @item.
15667         * doc/ld-version-script.texi: spurious leading i.
15668         * doc/regex.texi (Interval Operators): no commas inside @var.
15669
15670 2010-08-01  Bruno Haible  <bruno@clisp.org>
15671
15672         Integrate the regex documentation.
15673         * doc/gnulib.texi: Define 'cn' index.
15674         (Regular expressions): New a chapter that includes regex.texi and
15675         regexprops-generic.texi.
15676         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15677         syntax.
15678
15679         Whitespace cleanup.
15680         * doc/regex.texi: Remove trailing spaces.
15681
15682         Add regex documentation.
15683         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15684         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15685         Written by Kathy A. Hargreaves and Karl Berry.
15686
15687 2010-08-01  Bruno Haible  <bruno@clisp.org>
15688
15689         link: Update documentation.
15690         * doc/posix-functions/link.texi: Update regarding Solaris.
15691
15692 2010-07-31  Bruno Haible  <bruno@clisp.org>
15693
15694         Update modules list.
15695         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15696         (String handling <string.h>): Add memcmp2, memxfrm.
15697         (Container data structures): Add xlist, xsublist, xoset.
15698         (Core language properties): Add alignof, unused-parameter.
15699         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15700         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15701         (Unibyte characters <ctype.h>): New section.
15702         (String handling <string.h>): New section.
15703         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15704         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15705         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15706         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15707         tan, tanh, tanl, y0, y1, yn.
15708         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15709         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15710         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15711         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15712         unlockpt, vdprintf, vdprintf-posix.
15713         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15714         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15715         xconcat-filename.
15716         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15717         getdtablesize, pipe2, pipe2-safer.
15718         (Security): New section.
15719         (Networking functions): Add accept4.
15720         (Signal handling): Add sigpipe.
15721         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15722         mbmemcasecoll.
15723         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15724         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15725         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15726         pipe-filter-ii.
15727         (Misc): Add argp-version-etc, login_tty, parse-duration.
15728
15729 2010-07-31  Bruno Haible  <bruno@clisp.org>
15730
15731         Improve doc in MODULES.html.
15732         * modules/linkat (Description): Add the word "function".
15733         * modules/mkfifo (Description): Likewise.
15734         * modules/mknod (Description): Likewise.
15735         * modules/remove (Description): Likewise.
15736         * modules/renameat (Description): Likewise.
15737         * modules/stat (Description): Likewise.
15738         * modules/symlink (Description): Likewise.
15739         * modules/unlink (Description): Likewise.
15740
15741 2010-07-31  Bruno Haible  <bruno@clisp.org>
15742
15743         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15744         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15745         option --enable/disable-c++ instead of --enable/disable-cxx.
15746         * NEWS: Mention the change.
15747
15748 2010-07-31  Bruno Haible  <bruno@clisp.org>
15749
15750         readlink, areadlink: Relax test a bit.
15751         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15752         alternative to ENOTDIR.
15753         * tests/test-areadlink.h (test_areadlink): Likewise.
15754         Reported by Rainer Tammer.
15755
15756 2010-07-31  Bruno Haible  <bruno@clisp.org>
15757
15758         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15759         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15760         character, perform the search using U_STRCHR.
15761         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15762         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15763         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15764         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15765         Suggested by Paolo Bonzini.
15766
15767 2010-07-31  Bruno Haible  <bruno@clisp.org>
15768
15769         unistr/u*-strstr: Fix dependencies.
15770         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15771         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15772         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15773
15774 2010-07-31  Bruno Haible  <bruno@clisp.org>
15775
15776         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15777         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15778         the beginning of the loop.
15779         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15780         cases in 'switch' statement.
15781
15782         unistr/u8-strchr: Fix several bugs.
15783         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15784         the string. When not found, return NULL, not a pointer near the end.
15785
15786         More tests for unistr/u8-strchr.
15787         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15788         that the function does not read past the first occurrence of the byte
15789         being searched.
15790         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15791         * tests/unistr/test-u16-strchr.c (main): New function.
15792         * tests/unistr/test-u32-strchr.c (main): New function.
15793
15794 2010-07-31  Bruno Haible  <bruno@clisp.org>
15795
15796         posix-modules: Ignore backup files of documentation files.
15797         * posix-modules: grep only through files named *.texi.
15798
15799 2010-07-31  Bruno Haible  <bruno@clisp.org>
15800
15801         symlinkat: Fix documentation.
15802         * doc/posix-functions/readlinkat.texi: Fix module name.
15803
15804 2010-07-31  Bruno Haible  <bruno@clisp.org>
15805
15806         fchownat: Replace also when chown has the trailing slash bug.
15807         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15808         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15809         introduced on 2010-04-10.
15810         Reported by Rainer Tammer.
15811
15812 2010-07-31  Bruno Haible  <bruno@clisp.org>
15813
15814         linkat: Work around AIX 7.1 bug.
15815         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15816         whether linkat handles trailing slash correctly. If not, replace linkat
15817         and define LINKAT_TRAILING_SLASH_BUG.
15818         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15819         check whether (fd1,file1) points to a directory if file1 or file2 ends
15820         in a slash. Code taken from lib/link.c.
15821         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15822         Reported by Rainer Tammer.
15823
15824 2010-07-31  Bruno Haible  <bruno@clisp.org>
15825
15826         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15827         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15828         This disables an xlc optimization that was causing wrong test results.
15829         Reported by Rainer Tammer.
15830
15831 2010-07-31  Bruno Haible  <bruno@clisp.org>
15832
15833         iconv: Work around AIX 6.1..7.1 bug.
15834         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15835         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15836         cross-compiling, guess no on all versions of AIX.
15837         Reported by Rainer Tammer.
15838
15839 2010-07-31  Bruno Haible  <bruno@clisp.org>
15840
15841         readlink: Relax test a bit.
15842         * tests/test-readlink.h (test_readlink): Allow different errno value
15843         when readlink is called with a file name that ends in / and refers to
15844         a file.
15845         Suggested by Eric Blake.
15846         Reported by Rainer Tammer.
15847
15848 2010-07-31  Bruno Haible  <bruno@clisp.org>
15849
15850         copysign: Does not require -lm on glibc systems.
15851         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15852         gl_COMMON_DOUBLE_MATHFUNC.
15853         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15854
15855 2010-07-31  Bruno Haible  <bruno@clisp.org>
15856
15857         duplocale: Work around AIX 7.1 bug.
15858         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15859         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15860         * lib/duplocale.c (rpl_duplocale): Update comment.
15861         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15862         Reported by Rainer Tammer.
15863
15864 2010-07-30  Bruno Haible  <bruno@clisp.org>
15865
15866         dirfd: Avoid link error on AIX 7.1.
15867         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15868         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15869         exist, set REPLACE_DIRFD.
15870         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15871         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15872         * doc/posix-functions/dirfd.texi: Update.
15873         Reported by Rainer Tammer.
15874
15875 2010-07-30  Eric Blake  <eblake@redhat.com>
15876
15877         strtod: next round of AIX fixes
15878         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15879         exponent.
15880         * tests/test-strtod.c (main): Enhance tests.
15881         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15882         Reported by Rainer Tammer.
15883
15884         futimens: fix configure check
15885         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15886         Reported by Bruno Haible.
15887
15888 2010-07-30  Bruno Haible  <bruno@clisp.org>
15889
15890         getline: Update regarding AIX.
15891         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15892         Reported by Rainer Tammer.
15893
15894 2010-07-30  Bruno Haible  <bruno@clisp.org>
15895
15896         wcwidth: Drop replacement on AIX 7.
15897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15898         AIX 7.
15899         Reported by Rainer Tammer.
15900
15901 2010-07-30  Bruno Haible  <bruno@clisp.org>
15902
15903         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15905         a 'char *'.
15906         Reported by Rainer Tammer.
15907
15908 2010-07-30  Bruno Haible  <bruno@clisp.org>
15909
15910         unlink: Update regarding AIX.
15911         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15912         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15913         Reported by Rainer Tammer.
15914
15915 2010-07-30  Bruno Haible  <bruno@clisp.org>
15916
15917         symlink: Update regarding AIX.
15918         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15919         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15920         Reported by Rainer Tammer.
15921
15922 2010-07-30  Bruno Haible  <bruno@clisp.org>
15923
15924         strndup: Update regarding AIX.
15925         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15926         AIX 7.
15927         Reported by Rainer Tammer.
15928
15929 2010-07-30  Bruno Haible  <bruno@clisp.org>
15930
15931         stat: Update regarding AIX.
15932         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15933         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15934         Reported by Rainer Tammer.
15935
15936 2010-07-30  Bruno Haible  <bruno@clisp.org>
15937
15938         truncl: Fix autoconf test.
15939         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15940         whether truncl works.
15941         Reported by Rainer Tammer.
15942
15943 2010-07-30  Bruno Haible  <bruno@clisp.org>
15944
15945         round: Update regarding AIX.
15946         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15947         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15948         Reported by Rainer Tammer.
15949
15950 2010-07-30  Bruno Haible  <bruno@clisp.org>
15951
15952         rename: Update regarding AIX.
15953         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15954         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15955         Reported by Rainer Tammer.
15956
15957 2010-07-30  Bruno Haible  <bruno@clisp.org>
15958
15959         printf.m4: Update regarding AIX.
15960         * m4/printf.m4: Update comments regarding AIX.
15961         Reported by Rainer Tammer.
15962
15963 2010-07-30  Bruno Haible  <bruno@clisp.org>
15964
15965         iconv: Update regarding AIX.
15966         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15967         AIX 7.
15968         Reported by Rainer Tammer.
15969
15970 2010-07-30  Bruno Haible  <bruno@clisp.org>
15971
15972         getopt: Update regarding AIX.
15973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15974         no on AIX.
15975         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15976         Reported by Rainer Tammer.
15977
15978 2010-07-30  Bruno Haible  <bruno@clisp.org>
15979
15980         ldexpl; Update regarding AIX.
15981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15982         on AIX 7.
15983         Reported by Rainer Tammer.
15984
15985 2010-07-30  Bruno Haible  <bruno@clisp.org>
15986
15987         frexpl: Update regarding AIX.
15988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15989         on AIX 7.
15990         Reported by Rainer Tammer.
15991
15992 2010-07-30  Bruno Haible  <bruno@clisp.org>
15993
15994         open, fopen: Update regarding AIX.
15995         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15996         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15997         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15998         * doc/posix-functions/fopen.texi: Likewise.
15999         Reported by Rainer Tammer.
16000
16001 2010-07-30  Bruno Haible  <bruno@clisp.org>
16002
16003         chown: Update doc regarding AIX.
16004         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16005         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16006         Reported by Rainer Tammer.
16007
16008 2010-07-30  Eric Blake  <eblake@redhat.com>
16009
16010         strtod: fix bug in replacement function on AIX
16011         * lib/strtod.c (strtod): Special case broken "0x" parse in
16012         underlying strtod.
16013         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16014         * doc/posix-functions/strtod.texi (strtod): Likewise.
16015         Reported by Rainer Tammer.
16016
16017 2010-07-30  Bruno Haible  <bruno@clisp.org>
16018
16019         mbrlen: Fix cross-compilation guess for AIX.
16020         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16021         guess. Leftover from 2008-12-22.
16022
16023 2010-07-30  Bruno Haible  <bruno@clisp.org>
16024
16025         mbrtowc: Fix cross-compilation guess for AIX.
16026         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16027         guess. Leftover from 2008-12-21.
16028
16029 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16030
16031         init.sh: work around trap limitation of some shells
16032         * tests/init.sh (setup_): Move exit trap outside of shell function.
16033
16034 2010-07-29  Eric Blake  <eblake@redhat.com>
16035
16036         strtod: aid debugging
16037         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16038         understanding why strtod is rejected.
16039
16040 2010-07-28  Bruno Haible  <bruno@clisp.org>
16041
16042         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16043         * lib/unistr/u8-chr.c: Include <string.h>.
16044         * tests/unistr/test-u8-chr.c: Likewise.
16045         * tests/unistr/test-u16-chr.c: Likewise.
16046         * tests/unistr/test-u32-chr.c: Likewise.
16047         * tests/unistr/test-u8-strchr.c: Likewise.
16048         * tests/unistr/test-u16-strchr.c: Likewise.
16049         * tests/unistr/test-u32-strchr.c: Likewise.
16050         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16051         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16052         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16053         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16054
16055 2010-07-28  Bruno Haible  <bruno@clisp.org>
16056
16057         Use spaces for indentation, not tabs.
16058         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16059
16060 2010-07-27  Bruno Haible  <bruno@clisp.org>
16061
16062         mbspcasecmp: Fix function specification.
16063         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16064         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16065         Reported by Eric Blake <eblake@redhat.com>.
16066
16067 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16068
16069         timespec: use cast and not conditional, as truncation isn't possible
16070         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16071         instead of a conditional.  Comment about the situation in more detail.
16072         This undoes most of the 2009-10-29 patch.
16073
16074 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16075
16076         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16077         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16078         * lib/unistr/u8-strchr.c: Likewise.
16079         * modules/unistr/u8-chr: Depend on memchr.
16080
16081         unistr/u*-strchr: add tests
16082         * modules/unistr/u8-strchr-tests: New file.
16083         * modules/unistr/u16-strchr-tests: New file.
16084         * modules/unistr/u32-strchr-tests: New file.
16085         * tests/unistr/test-strchr.h: New file.
16086         * tests/unistr/test-u8-strchr.c: New file.
16087         * tests/unistr/test-u16-strchr.c: New file.
16088         * tests/unistr/test-u32-strchr.c: New file.
16089
16090         unistr/u*-chr: test multibyte sequences more
16091         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16092         test vector.
16093         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16094         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16095         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16096
16097         unistr/u*-chr: test multibyte sequences
16098         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16099
16100         unistr/u*-chr: prepare for multibyte tests
16101         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16102         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16103         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16104         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16105         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16106         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16107
16108 2010-07-18  Bruno Haible  <bruno@clisp.org>
16109
16110         unistr/u8-strchr: Optimize non-ASCII argument case.
16111         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16112         because the first byte often matches anyway.
16113         Reported by Pádraig Brady <P@draigbrady.com>.
16114
16115 2010-07-15  Karl Berry  <karl@gnu.org>
16116
16117         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16118
16119 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16120
16121         getcwd: on Solaris, work better if ancestors are inaccessible
16122         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16123         buffer and size, try again with a large buffer.  This works better
16124         on Solaris, since its getcwd succeeds even if the path to the root
16125         is inaccessible, and this is helpful in common cases such as .zfs
16126         hidden directories.  Problem reported by J Chapman Flack in
16127         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16128         Use system getcwd if it's declared, not merely if it's partly
16129         working; use the partly-working test only to avoid needless effort
16130         if the system getcwd fails.
16131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16132         comment that was already obsolete and is now even more obsolete.
16133         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16134         now might call strdup.
16135
16136 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16137
16138         pthread: Add enough so that coreutils/src/sort.c compiles.
16139         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16140         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16141         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16142         Include <sys/types.h>, in case it defines pthread_t.
16143         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16144         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16145         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16146         (pthread_rwlockattr_t, pthread_spinlock_t):
16147         New typedefs, if HAVE_PTHREAD_T is not defined.
16148         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16149         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16150         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16151         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16152         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16153         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16154         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16155         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16156         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16157         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16158         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16159         New macros.
16160         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16161         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16162         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16163         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16164         (pthread_spin_unlock): New dummy functions.
16165         (pthread_create): Return EAGAIN; don't set errno.
16166         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16167         require AC_C_INLINE.
16168         * modules/pthread (Depends-on): Add sched, time.
16169         (pthread.h): Use AM_V_GEN.
16170
16171 2010-07-13  Bruno Haible  <bruno@clisp.org>
16172
16173         striconveh: Don't malloc memory if the result buffer is sufficient.
16174         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16175         buffer if its size is sufficient.
16176         Reported by Ludovic Courtès <ludo@gnu.org>.
16177
16178 2010-07-13  Bruno Haible  <bruno@clisp.org>
16179
16180         strtod: Add safety check.
16181         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16182
16183 2010-07-12  Bruno Haible  <bruno@clisp.org>
16184
16185         Unify tests that set gl_cv_func_ldexpl_no_libm.
16186         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16187         gl_FUNC_LDEXPL.
16188         (gl_FUNC_LDEXPL): Invoke it.
16189         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16190
16191 2010-07-12  Bruno Haible  <bruno@clisp.org>
16192
16193         Unify tests that set gl_cv_func_ldexp_no_libm.
16194         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16195         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16196         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16197         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16198         * modules/strtod (Files): Add m4/ldexp.m4.
16199
16200 2010-07-12  Bruno Haible  <bruno@clisp.org>
16201
16202         Unify tests that set gl_cv_func_frexpl_no_libm.
16203         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16204         gl_FUNC_FREXPL_NO_LIBM.
16205         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16207
16208 2010-07-12  Bruno Haible  <bruno@clisp.org>
16209
16210         Unify tests that set gl_cv_func_frexp_no_libm.
16211         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16212         gl_FUNC_FREXP_NO_LIBM.
16213         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16214         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16215
16216 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16217
16218         memcoll: clarify sizes versus lengths, document better, and tweak perf
16219         * lib/memcoll.c (strcoll_loop, memcoll0):
16220         Improve quality of descriptive comments.  Name variables
16221         consistently as to whether they are lengths (which do not include
16222         terminating null) versus sizes (which do).
16223         * lib/xmemcoll.c (xmemcoll0): Likewise.
16224         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16225         returned when s1size == 0; this is easier to compile and saves
16226         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16227
16228 2010-07-12  Bruno Haible  <bruno@clisp.org>
16229
16230         Tests for module '_Exit'.
16231         * modules/_Exit-tests: New file.
16232         * tests/test-_Exit.sh: New file.
16233         * tests/test-_Exit.c: New file.
16234
16235         New module '_Exit'.
16236         * lib/stdlib.in.h (__attribute__): New macro.
16237         (_Exit): New declaration.
16238         * lib/_Exit.c: New file.
16239         * m4/_Exit.m4: New file.
16240         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16241         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16242         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16243         * modules/_Exit: New file.
16244         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16245         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16246
16247 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16248
16249         strtod: make it more-accurate typically, and don't require libm
16250         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16251         Include limits.h.  Don't include string.h.
16252         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16253         (locale_isspace): New function, so that no casts are needed to
16254         check whether *s is a space.
16255         (ldexp): Provide an unused dummy if not available.
16256         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16257         (strtod): Use them.  This implementation prefers to use the
16258         underlying strtod if available, falling back on our own code
16259         only to fix known bugs.  This is more likely to produce an
16260         accurate result.  Also, it avoids the use of libm functions.
16261         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16262         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16263         was absent, but it caused a test failure with coreutils.
16264         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16265         with libm.
16266         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16267         * modules/strtod-tests (Makefile.am): Likewise.
16268
16269 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16270             Bruno Haible  <bruno@clisp.org>
16271
16272         unistr/u8-strchr: Optimize ASCII argument case.
16273         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16274
16275 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16276
16277         (x)memcoll: minor tweaks
16278         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16279         is after the type that it qualifies.
16280         (memcoll0): Likewise.
16281         * lib/memcoll.h (memcoll0): Likewise.
16282         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16283         * lib/xmemcoll.h (xmemcoll0): Likewise.
16284         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16285         differs from memcoll in that the NUL byte is part of the argument.
16286         Omit the abort-checks, as performance is a real issue here.  Plus,
16287         the checks were wrong anyway (an off-by-one error).  Omit local
16288         variable 'diff', as it's a bit clearer that way.
16289         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16290         no longer needed.
16291
16292 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16293
16294         (x)memcoll: speedup when input is known to be NUL delimited
16295         * lib/memcoll.c: Include stdlib.
16296         (memcoll0): New function.
16297         (strcoll_loop): New function, refactored for use in both memcoll
16298         and memcoll0.
16299         * lib/memcoll.h (memcoll0): Add prototype.
16300         * lib/xmemcoll.c (xmemcoll0): New function.
16301         (collate_error): New function, refactored for use in both xmemcoll
16302         and xmemcoll0.
16303         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16304         * m4/memcoll.m4: add inline invocation.
16305
16306 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16307
16308         * build-aux/bootstrap: Remove any local translations
16309         from the translation project synchronization directory,
16310         so that local only translations are not distributed.
16311
16312 2010-07-04  Bruno Haible  <bruno@clisp.org>
16313
16314         fsusage: Clarify which code applies to which platforms.
16315         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16316         platform.
16317         * lib/fsusage.c (get_fs_usage): Likewise.
16318
16319 2010-07-04  Bruno Haible  <bruno@clisp.org>
16320
16321         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16322         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16323         Reported by Martin Lambers <marlam@marlam.de>.
16324
16325 2010-07-04  Jim Meyering  <meyering@redhat.com>
16326
16327         hash: once again explicitly disallow insertion of NULL
16328         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16329         inserting a NULL pointer cannot work with these functions.
16330         Add a comment with details.
16331         This reverts part of the 2010-07-01 commit, 5bef1a35
16332         "hash: extend module to deal with non-pointer keys".
16333
16334 2010-07-01  Bruno Haible  <bruno@clisp.org>
16335
16336         stdbool: Update doc.
16337         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16338         Info from Christian Weisgerber <naddy@mips.inka.de>.
16339
16340 2010-07-01  Jim Meyering  <meyering@redhat.com>
16341
16342         hash: extend module to deal with non-pointer keys
16343         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16344         but that allows insertion of non-pointer entries.
16345         Do not disallow an ENTRY value of NULL.
16346         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16347         * lib/hash.h (hash_insert0): Declare.
16348
16349 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16350
16351         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16352         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16353         not present (i.e. with autoconf 2.59 and when using gettextize, not
16354         gnulib), require AC_GNU_SOURCE instead.
16355
16356 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16357
16358         idpriv-drop: Fix tests.
16359         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16360         not to the test-idpriv-droptemp program.
16361
16362 2010-06-29  Bruno Haible  <bruno@clisp.org>
16363
16364         string: Fix syntax error with g++ 2.96.
16365         * lib/string.in.h (__pure__): Remove definition.
16366         (_GL_ATTRIBUTE_PURE): New macro.
16367         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16368         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16369         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16370
16371 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16372
16373         unitypes: Fix bug introduced on 2010-05-18.
16374         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16375
16376 2010-06-22  Eric Blake  <eblake@redhat.com>
16377
16378         memmem: slight optimization
16379         * lib/str-two-way.h (critical_factorization): Update comments.
16380         Reduce work during factorization phase.
16381         Reported by Carlos Bueno <carlos@bueno.org>.
16382
16383 2010-06-21  Bruno Haible  <bruno@clisp.org>
16384
16385         Fix HAVE_CALLOC_POSIX misnomer.
16386         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16387         !HAVE_CALLOC_POSIX.
16388         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16389         HAVE_CALLOC_POSIX.
16390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16391         instead of HAVE_CALLOC_POSIX.
16392         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16393         HAVE_CALLOC_POSIX.
16394
16395         Use modern idiom for calloc() replacement.
16396         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16397         AC_FUNC_CALLOC.
16398         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16399         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16400         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16401         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16402         (gl_REPLACE_CALLOC): New macro.
16403
16404 2010-06-21  Bruno Haible  <bruno@clisp.org>
16405
16406         Fix HAVE_REALLOC_POSIX misnomer.
16407         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16408         !HAVE_REALLOC_POSIX.
16409         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16410         HAVE_REALLOC_POSIX.
16411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16412         instead of HAVE_REALLOC_POSIX.
16413         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16414         HAVE_REALLOC_POSIX.
16415
16416         Use modern idiom for realloc() replacement.
16417         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16418         AC_FUNC_REALLOC.
16419         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16420         Autoconf's AC_FUNC_REALLOC.
16421         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16422         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16423         (gl_REPLACE_REALLOC): New macro.
16424         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16425
16426 2010-06-21  Bruno Haible  <bruno@clisp.org>
16427
16428         Fix HAVE_MALLOC_POSIX misnomer.
16429         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16430         !HAVE_MALLOC_POSIX.
16431         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16432         HAVE_MALLOC_POSIX.
16433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16434         instead of HAVE_MALLOC_POSIX.
16435         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16436         HAVE_MALLOC_POSIX.
16437
16438         Use modern idiom for malloc() replacement.
16439         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16440         AC_FUNC_MALLOC.
16441         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16442         Autoconf's AC_FUNC_MALLOC.
16443         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16444         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16445         (gl_REPLACE_MALLOC): New macro.
16446         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16447
16448 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16449
16450         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16451         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16452         This macro takes 3 arguments, not 4.
16453
16454 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16455
16456         ipv6: fix detection under mingw
16457         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16458         in6_addr.
16459
16460 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16461
16462         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16463         that strtod() works when cross-compiling to a glibc version known
16464         to work.
16465
16466 2010-06-15  Bruno Haible  <bruno@clisp.org>
16467
16468         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16469
16470 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16471
16472         select: Correct timeout.
16473         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16474
16475 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16476
16477         git-version-gen: init shell var to avoid env var influence
16478         * build-aux/git-version-gen (v): Init shell var to empty.
16479
16480 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         priv-set: Don't assume that priv.h exists merely because getppriv does.
16483         See Jan Andersen's bug report about AIX 5L in
16484         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16485         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16486         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16487         * lib/priv-set.h: Likewise.
16488         * tests/test-priv-set.c: Likewise.
16489
16490 2010-06-13  Bruno Haible  <bruno@clisp.org>
16491
16492         relocatable: Make it easier to test whether to install wrappers.
16493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16494         RELOCATABLE_VIA_WRAPPER.
16495
16496 2010-06-13  Bruno Haible  <bruno@clisp.org>
16497
16498         gnulib-tool: Display specified modules and dependencies differently.
16499         * gnulib-tool (func_show_module_list): New function.
16500         (func_import, func_create_testdir): Invoke it.
16501         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16502
16503 2010-06-13  Bruno Haible  <bruno@clisp.org>
16504
16505         gnulib-tool: Align code of func_import and func_create_testdir.
16506         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16507         specified_modules.
16508
16509 2010-06-12  Jim Meyering  <meyering@redhat.com>
16510
16511         test-inttostr: avoid spurious failure on Solaris 9
16512         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16513         to accept "%ju".  Reported by Bruno Haible.
16514
16515 2010-06-11  Jim Meyering  <meyering@redhat.com>
16516
16517         test-sys_socket: mark variables as used more readably
16518         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16519         as "used" explicitly via (void) statement casts.  This is more
16520         readable than using them in an artificial return expression.
16521         Suggestion from Bruno Haible.
16522
16523 2010-06-11  Bruno Haible  <bruno@clisp.org>
16524
16525         Avoid some more warnings from "gcc -Wwrite-strings".
16526         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16527         to 'const char *'.
16528         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16529         * tests/test-c-strcasestr.c (main): Likewise.
16530         * tests/test-mbscasestr1.c (main): Likewise.
16531         * tests/test-mbscasestr2.c (main): Likewise.
16532         * tests/test-memmem.c (main): Likewise.
16533         * tests/test-strstr.c (main): Likewise.
16534         * tests/test-strcasestr.c (main): Likewise.
16535
16536 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16537
16538         init.sh: change framework_failure_ to fail with status 99, not 1
16539         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16540         automake's parallel-tests rule that this is an unexpected failure,
16541         even if the test is listed in XFAIL_TESTS.
16542
16543 2010-06-11  Jim Meyering  <meyering@redhat.com>
16544
16545         test-inttostr: avoid warnings about 4-6KB literal strings
16546         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16547         Include "macros.h", for its definition of ASSERT.
16548         (CK): s/assert/ASSERT/
16549         * modules/inttostr-tests (Files): Add macros.h.
16550
16551         init.sh: don't use $ME_ or skip_ before they are defined
16552         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16553         their first uses.  Also hoist their companions: warn_, fail_,
16554         framework_failure_, $stderr_fileno.  Prompted by a patch from
16555         Stefano Lattarini.
16556
16557         test-sys_socket: avoid set-but-not-used warnings from gcc
16558         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16559         avoid warning about set-but-not-used variables.
16560
16561         test-xvasprintf: avoid 'const' discard warnings
16562         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16563         "const" when assigning from literal strings.
16564         (test_xasprintf): Add "void" in function argument list to placate
16565         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16566
16567         tests: avoid compilation warnings in argmatch and exclude tests...
16568         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16569         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16570         Since it always exits, declare with the "noreturn" attribute.
16571         * tests/test-argmatch.c: Likewise.
16572
16573         tests: avoid 'const' discard warnings in mbsstr tests
16574         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16575         * tests/test-mbsstr2.c (main): Likewise.
16576
16577         test-verify: avoid warning from gcc's -Wmissing-declarations
16578         * tests/test-verify.c (function): Declare to be static.
16579
16580         test-inttostr.c: include <string.h> for use of strcmp
16581         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16582
16583         test-linkat: avoid failed assertion on "other" architectures
16584         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16585         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16586         sparc: https://bugs.launchpad.net/bugs/591968
16587
16588 2010-06-11  Jim Meyering  <meyering@redhat.com>
16589
16590         printf.m4: avoid autoconf's "Expanded Before Required" warning
16591         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16592         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16593         autoconf warning.
16594
16595 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16596
16597         Replacement header templates are now named with ".in", not "_".
16598         * doc/gnulib-intro.texi: Correct.
16599
16600 2010-06-10  Jim Meyering  <meyering@redhat.com>
16601
16602         inttostr-tests: depend on snprintf, not snprintf-posix
16603         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16604         snprintf-posix, to avoid this aclocal failure:
16605           missing file gnulib-tests/vasnprintf.c
16606           configure.ac:45: error: expected source file, required through \
16607           AC_LIBSOURCES, not found
16608
16609 2010-06-10  Jim Meyering  <meyering@redhat.com>
16610
16611         inttostr: add a new function, inttostr, and tests
16612         The namesake function was not available.  The existence of the
16613         template file, inttostr.c makes its addition nontrivial.
16614         * lib/anytostr.c: Rename from inttostr.c.
16615         (anytostr): Rename from inttostr.
16616         * lib/inttostr.c: New file.
16617         * modules/inttostr (Files): Add anytostr.c.
16618         (Makefile.am): Set lib_SOURCES instead of ...
16619         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16620         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16621         * lib/offtostr.c: Likewise.
16622         * lib/uinttostr.c: Likewise.
16623         * lib/umaxtostr.c: Likewise.
16624         * modules/inttostr-tests: New file.
16625         * tests/test-inttostr.c: New file.  Test these functions.
16626
16627 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16628             Bruno Haible  <bruno@clisp.org>
16629
16630         Add "Extending Gnulib" chapter to manual.
16631         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16632         chapter.
16633         (Extending Gnulib): New chapter.
16634         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16635         chapter.
16636
16637 2010-06-09  Bruno Haible  <bruno@clisp.org>
16638
16639         Avoid relocwrapper link errors due to gnulib replacement functions.
16640         * lib/areadlink.c: Use the system's malloc, realloc functions.
16641         (areadlink): Set errno to ENOMEM explicitly.
16642         * modules/areadlink (Depends-on): Remove malloc-posix.
16643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16644
16645 2010-06-09  Bruno Haible  <bruno@clisp.org>
16646
16647         Avoid relocwrapper link errors due to gnulib replacement functions.
16648         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16649         * lib/malloca.c: Likewise.
16650         * lib/relocatable.c: Likewise.
16651         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16652         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16653         * lib/setenv.c: Use the system's malloc, realloc functions.
16654         * lib/strerror.c: Use the system's sprintf function.
16655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16656
16657 2010-06-04  Bruno Haible  <bruno@clisp.org>
16658
16659         Prefer documented low-level autoconf macro names.
16660         * m4/lib-link.m4: Use m4_translit instead of translit.
16661         * m4/environ.m4: Likewise.
16662         * m4/mathfunc.m4: Likewise.
16663         * m4/onceonly.m4: Likewise.
16664         * m4/stdint.m4: Likewise.
16665         Suggested by Eric Blake.
16666
16667 2010-06-04  Martin Lambers  <marlam@marlam.de>
16668             Bruno Haible  <bruno@clisp.org>
16669
16670         havelib: Allow library names with '+' characters.
16671         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16672         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16673
16674 2010-06-09  Bruno Haible  <bruno@clisp.org>
16675
16676         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16677         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16678         realloc failed.
16679
16680 2010-06-08  Peter Simons  <simons@cryp.to>
16681
16682         maint.mk: make the news-check rule more configurable
16683         * top/maint.mk (news-check-lines-spec): New variable.
16684         (news-check): Use "sed -n 1,10p" in place of "head".
16685
16686 2010-06-07  Jim Meyering  <meyering@redhat.com>
16687
16688         do-release-commit-and-tag: fix typo in --help
16689         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16690
16691         regex: avoid new dead-code warning with gcc-4.6.0
16692         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16693         if-block containing a while-loop.  It's been unused for at least
16694         5 years.
16695
16696 2010-06-05  Bruno Haible  <bruno@clisp.org>
16697
16698         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16699         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16700
16701 2010-06-04  Bruno Haible  <bruno@clisp.org>
16702
16703         Update to GNU gettext 0.18.1.
16704         * modules/gettext (configure.ac): Require gettext infrastructure from
16705         version 0.18.1.
16706
16707 2010-06-03  Bruno Haible  <bruno@clisp.org>
16708
16709         Don't use AC_LIBOBJ with file names in subdirectories.
16710         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16711         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16712         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16713         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16714         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16715         gl_LIBUNISTRING_LIBSOURCE.
16716         (Makefile.am): Augment lib_SOURCES here, conditionally.
16717         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16718
16719 2010-06-03  Bruno Haible  <bruno@clisp.org>
16720
16721         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16722         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16723         expansion does not end with a newline.
16724         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16725         unnecessary newline.
16726
16727 2010-06-03  Bruno Haible  <bruno@clisp.org>
16728
16729         Reduce dependencies.
16730         * tests/test-quotearg.h: New file, extracted from
16731         tests/test-quotearg.c.
16732         * tests/test-quotearg-simple.c: New file, extracted from
16733         tests/test-quotearg.c.
16734         * tests/test-quotearg.c: Don't include <ctype.h>.
16735         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16736         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16737         use_quote_double_quotes, use_quotearg_colon): Moved to
16738         tests/test-quotearg.h.
16739         (results_g, flag_results, custom_quotes, custom_results): Moved
16740         to tests/test-quotearg-simple.c.
16741         (main): Moved the part that does not depend on gettext to
16742         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16743         performed.
16744         * modules/quotearg-simple: New file.
16745         * modules/quotearg-simple-tests: New file.
16746         * modules/quotearg (Depends-on): Add quotearg-simple.
16747         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16748         (Files): Add tests/test-quotearg.h.
16749         Reported by Paolo Bonzini.
16750
16751 2010-06-03  Bruno Haible  <bruno@clisp.org>
16752
16753         Reduce dependencies.
16754         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16755
16756 2010-06-03  Bruno Haible  <bruno@clisp.org>
16757
16758         time: Undefine more broken macros.
16759         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16760         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16761         Reported by Eric Blake.
16762
16763 2010-06-03  Bruno Haible  <bruno@clisp.org>
16764
16765         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16766         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16767         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16768         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16769         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16770         Reported by Ludovic Courtès <ludo@gnu.org>.
16771
16772 2010-06-02  Eric Blake  <eblake@redhat.com>
16773
16774         time: work with mingw + pthreads-win32 library
16775         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16776         if timespec is defined only in pthread.h.
16777         * modules/time (Makefile.am): Substitute it.
16778         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16779         <pthread.h>, when needed.
16780         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16781         from the library.
16782
16783 2010-05-31  Bruno Haible  <bruno@clisp.org>
16784
16785         Avoid expanding two macros in the wrong order.
16786         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16787         gl_LIBUNISTRING if it is defined.
16788         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16789         autoconf >= 2.64.
16790         Reported by Ludovic Courtès <ludo@gnu.org>.
16791
16792 2010-05-27  Jim Meyering  <meyering@redhat.com>
16793
16794         maint.mk: also prohibit "#undef" of always-defined symbols
16795         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16796         Allow more than one space before the symbol name.
16797         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16798         the regexp uses alternation.
16799
16800 2010-05-26  Eric Blake  <eblake@redhat.com>
16801
16802         maint.mk: avoid echo -e
16803         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16804         Convert all uses of echo -* to printf.
16805         Reported by Matthias Bolte.
16806
16807 2010-05-25  Bruno Haible  <bruno@clisp.org>
16808
16809         Update to GNU gettext 0.18, part 2.
16810         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16811         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16812
16813 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16814
16815         Add missing include in test-pwrite.c.
16816         * tests/test-pwrite.c: Include string.h, for strcmp.
16817
16818 2010-05-24  Bruno Haible  <bruno@clisp.org>
16819
16820         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16821
16822 2010-05-24  Bruno Haible  <bruno@clisp.org>
16823
16824         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16825         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16826         iconveh_error argument.
16827         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16828         U_STRCONV_TO_LOCALE.
16829         * lib/unistr/u16-strcoll.c: Likewise.
16830         * lib/unistr/u32-strcoll.c: Likewise.
16831         * modules/unistr/u8-strcoll (Depends-on): Add
16832         uniconv/u8-strconv-to-enc, localcharset. Remove
16833         uniconv/u8-strconv-to-locale.
16834         (configure.ac): Bump version number.
16835         * modules/unistr/u16-strcoll (Depends-on): Add
16836         uniconv/u16-strconv-to-enc, localcharset. Remove
16837         uniconv/u16-strconv-to-locale.
16838         (configure.ac): Bump version number.
16839         * modules/unistr/u32-strcoll (Depends-on): Add
16840         uniconv/u32-strconv-to-enc, localcharset. Remove
16841         uniconv/u32-strconv-to-locale.
16842         (configure.ac): Bump version number.
16843
16844 2010-05-24  Bruno Haible  <bruno@clisp.org>
16845
16846         Avoid a test failure on NetBSD 5.0.
16847         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16848         an iconv() bug.
16849
16850 2010-05-24  Bruno Haible  <bruno@clisp.org>
16851
16852         Adjust #include directive style.
16853         * modules/regex (Includes): Recommend to write <regex.h>.
16854
16855 2010-05-24  Bruno Haible  <bruno@clisp.org>
16856
16857         regex: Don't require alloca.
16858         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16859         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16860         only inside if (0).
16861
16862 2010-05-23  Jim Meyering  <meyering@redhat.com>
16863
16864         test-renameat.c: include <sys/stat.h>
16865         * tests/test-renameat.c: Include <sys/stat.h>; required for
16866         definition of S_IS* macros.
16867
16868 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16869
16870         Update maintainer documentation for 'relocatable-prog' module.
16871         * doc/relocatable-maint.texi: Update.
16872         Comments by Bruno Haible.
16873
16874 2010-05-23  Bruno Haible  <bruno@clisp.org>
16875
16876         git-merge-changelog: Enable --split-merged-entry by default.
16877         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16878         (usage): Don't mention this option any more.
16879         Reported by Ralf Wildenhues.
16880
16881 2010-05-23  Jim Meyering  <meyering@redhat.com>
16882
16883         test-pwrite: do not leave behind a test file named "out"
16884         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16885         The trivial-looking use of init.sh is really necessary.
16886         It ensures that the temporary file, "out", is created in
16887         a temporary directory, and removed upon termination.
16888         * tests/test-pwrite.sh: Re-add file.
16889         * modules/pwrite-tests: Reference it.
16890
16891 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16892
16893         Fix output redirection buglet in init.sh.
16894         * tests/init.sh: Fix redirection of stderr.
16895
16896 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16897
16898         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16899
16900 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16901
16902         * modules/valgrind-tests: New file.
16903         * m4/valgrind-tests.m4: New file.
16904         * doc/valgrind-tests.texi: New file.
16905         * doc/gnulib.texi (Running self-tests under valgrind): New
16906         section.
16907
16908 2010-05-19  Bruno Haible  <bruno@clisp.org>
16909
16910         Clean up dead code in recent commit.
16911         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16912         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16913         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16914         Suggested by Paolo Bonzini.
16915
16916 2010-05-19  Bruno Haible  <bruno@clisp.org>
16917
16918         Avoid valgrind error reports from libunistring.
16919         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16920         * modules/libunistring (Files): Add it.
16921         * modules/libunistring-optional (Files): Likewise.
16922
16923 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16924             Bruno Haible  <bruno@clisp.org>
16925
16926         New module 'libunistring-optional'.
16927         * modules/libunistring-optional: New file.
16928         * m4/libunistring-base.m4: New file.
16929         * m4/libunistring-optional.m4: New file.
16930         * lib/unicase.in.h: Renamed from lib/unicase.h.
16931         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16932         * lib/unictype.in.h: Renamed from lib/unictype.h.
16933         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16934         * lib/uniname.in.h: Renamed from lib/uniname.h.
16935         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16936         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16937         * lib/unistr.in.h: Renamed from lib/unistr.h.
16938         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16939         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16940         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16941         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16942         gl_LIBUNISTRING. If the library was found, determine the installed
16943         version and set LIBUNISTRING_VERSION.
16944         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16945         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16946         handle a configuration option --with-included-libunistring.
16947         * modules/libunistring (Files): Add m4/absolute-header.m4.
16948         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16949         Add m4/libunistring-base.m4.
16950         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16951         (Makefile.am): Build unicase.h from unicase.in.h.
16952         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16953         Add m4/libunistring-base.m4.
16954         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16955         (Makefile.am): Build uniconv.h from uniconv.in.h.
16956         * modules/unictype/base (Files): Use unictype.in.h instead of
16957         unictype.h. Add m4/libunistring-base.m4.
16958         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16959         (Makefile.am): Build unictype.h from unictype.in.h.
16960         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16961         Add m4/libunistring-base.m4.
16962         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16963         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16964         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16965         Add m4/libunistring-base.m4.
16966         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16967         (Makefile.am): Build uniname.h from uniname.in.h.
16968         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16969         Add m4/libunistring-base.m4.
16970         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16971         (Makefile.am): Build uninorm.h from uninorm.in.h.
16972         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16973         unistdio.h. Add m4/libunistring-base.m4.
16974         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16975         (Makefile.am): Build unistdio.h from unistdio.in.h.
16976         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16977         Add m4/libunistring-base.m4.
16978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16979         (Makefile.am): Build unistr.h from unistr.in.h.
16980         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16981         Add m4/libunistring-base.m4.
16982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16983         (Makefile.am): Build unitypes.h from unitypes.in.h.
16984         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16985         Add m4/libunistring-base.m4.
16986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16987         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16988         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16989         uniwidth.h. Add m4/libunistring-base.m4.
16990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16991         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16992         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16993         instead of augmenting lib_SOURCES.
16994         * modules/unicase/empty-suffix-context: Likewise.
16995         * modules/unicase/locale-language: Likewise.
16996         * modules/unicase/tolower: Likewise.
16997         * modules/unicase/totitle: Likewise.
16998         * modules/unicase/toupper: Likewise.
16999         * modules/unicase/u8-casecmp: Likewise.
17000         * modules/unicase/u8-casecoll: Likewise.
17001         * modules/unicase/u8-casefold: Likewise.
17002         * modules/unicase/u8-casexfrm: Likewise.
17003         * modules/unicase/u8-ct-casefold: Likewise.
17004         * modules/unicase/u8-ct-tolower: Likewise.
17005         * modules/unicase/u8-ct-totitle: Likewise.
17006         * modules/unicase/u8-ct-toupper: Likewise.
17007         * modules/unicase/u8-is-cased: Likewise.
17008         * modules/unicase/u8-is-casefolded: Likewise.
17009         * modules/unicase/u8-is-lowercase: Likewise.
17010         * modules/unicase/u8-is-titlecase: Likewise.
17011         * modules/unicase/u8-is-uppercase: Likewise.
17012         * modules/unicase/u8-prefix-context: Likewise.
17013         * modules/unicase/u8-suffix-context: Likewise.
17014         * modules/unicase/u8-tolower: Likewise.
17015         * modules/unicase/u8-totitle: Likewise.
17016         * modules/unicase/u8-toupper: Likewise.
17017         * modules/unicase/u16-casecmp: Likewise.
17018         * modules/unicase/u16-casecoll: Likewise.
17019         * modules/unicase/u16-casefold: Likewise.
17020         * modules/unicase/u16-casexfrm: Likewise.
17021         * modules/unicase/u16-ct-casefold: Likewise.
17022         * modules/unicase/u16-ct-tolower: Likewise.
17023         * modules/unicase/u16-ct-totitle: Likewise.
17024         * modules/unicase/u16-ct-toupper: Likewise.
17025         * modules/unicase/u16-is-cased: Likewise.
17026         * modules/unicase/u16-is-casefolded: Likewise.
17027         * modules/unicase/u16-is-lowercase: Likewise.
17028         * modules/unicase/u16-is-titlecase: Likewise.
17029         * modules/unicase/u16-is-uppercase: Likewise.
17030         * modules/unicase/u16-prefix-context: Likewise.
17031         * modules/unicase/u16-suffix-context: Likewise.
17032         * modules/unicase/u16-tolower: Likewise.
17033         * modules/unicase/u16-totitle: Likewise.
17034         * modules/unicase/u16-toupper: Likewise.
17035         * modules/unicase/u32-casecmp: Likewise.
17036         * modules/unicase/u32-casecoll: Likewise.
17037         * modules/unicase/u32-casefold: Likewise.
17038         * modules/unicase/u32-casexfrm: Likewise.
17039         * modules/unicase/u32-ct-casefold: Likewise.
17040         * modules/unicase/u32-ct-tolower: Likewise.
17041         * modules/unicase/u32-ct-totitle: Likewise.
17042         * modules/unicase/u32-ct-toupper: Likewise.
17043         * modules/unicase/u32-is-cased: Likewise.
17044         * modules/unicase/u32-is-casefolded: Likewise.
17045         * modules/unicase/u32-is-lowercase: Likewise.
17046         * modules/unicase/u32-is-titlecase: Likewise.
17047         * modules/unicase/u32-is-uppercase: Likewise.
17048         * modules/unicase/u32-prefix-context: Likewise.
17049         * modules/unicase/u32-suffix-context: Likewise.
17050         * modules/unicase/u32-tolower: Likewise.
17051         * modules/unicase/u32-totitle: Likewise.
17052         * modules/unicase/u32-toupper: Likewise.
17053         * modules/unicase/ulc-casecmp: Likewise.
17054         * modules/unicase/ulc-casecoll: Likewise.
17055         * modules/unicase/ulc-casexfrm: Likewise.
17056         * modules/uniconv/u8-conv-from-enc: Likewise.
17057         * modules/uniconv/u8-conv-to-enc: Likewise.
17058         * modules/uniconv/u8-strconv-from-enc: Likewise.
17059         * modules/uniconv/u8-strconv-from-locale: Likewise.
17060         * modules/uniconv/u8-strconv-to-enc: Likewise.
17061         * modules/uniconv/u8-strconv-to-locale: Likewise.
17062         * modules/uniconv/u16-conv-from-enc: Likewise.
17063         * modules/uniconv/u16-conv-to-enc: Likewise.
17064         * modules/uniconv/u16-strconv-from-enc: Likewise.
17065         * modules/uniconv/u16-strconv-from-locale: Likewise.
17066         * modules/uniconv/u16-strconv-to-enc: Likewise.
17067         * modules/uniconv/u16-strconv-to-locale: Likewise.
17068         * modules/uniconv/u32-conv-from-enc: Likewise.
17069         * modules/uniconv/u32-conv-to-enc: Likewise.
17070         * modules/uniconv/u32-strconv-from-enc: Likewise.
17071         * modules/uniconv/u32-strconv-from-locale: Likewise.
17072         * modules/uniconv/u32-strconv-to-enc: Likewise.
17073         * modules/uniconv/u32-strconv-to-locale: Likewise.
17074         * modules/unictype/bidicategory-byname: Likewise.
17075         * modules/unictype/bidicategory-name: Likewise.
17076         * modules/unictype/bidicategory-of: Likewise.
17077         * modules/unictype/bidicategory-test: Likewise.
17078         * modules/unictype/block-list: Likewise.
17079         * modules/unictype/block-test: Likewise.
17080         * modules/unictype/category-C: Likewise.
17081         * modules/unictype/category-Cc: Likewise.
17082         * modules/unictype/category-Cf: Likewise.
17083         * modules/unictype/category-Cn: Likewise.
17084         * modules/unictype/category-Co: Likewise.
17085         * modules/unictype/category-Cs: Likewise.
17086         * modules/unictype/category-L: Likewise.
17087         * modules/unictype/category-Ll: Likewise.
17088         * modules/unictype/category-Lm: Likewise.
17089         * modules/unictype/category-Lo: Likewise.
17090         * modules/unictype/category-Lt: Likewise.
17091         * modules/unictype/category-Lu: Likewise.
17092         * modules/unictype/category-M: Likewise.
17093         * modules/unictype/category-Mc: Likewise.
17094         * modules/unictype/category-Me: Likewise.
17095         * modules/unictype/category-Mn: Likewise.
17096         * modules/unictype/category-N: Likewise.
17097         * modules/unictype/category-Nd: Likewise.
17098         * modules/unictype/category-Nl: Likewise.
17099         * modules/unictype/category-No: Likewise.
17100         * modules/unictype/category-P: Likewise.
17101         * modules/unictype/category-Pc: Likewise.
17102         * modules/unictype/category-Pd: Likewise.
17103         * modules/unictype/category-Pe: Likewise.
17104         * modules/unictype/category-Pf: Likewise.
17105         * modules/unictype/category-Pi: Likewise.
17106         * modules/unictype/category-Po: Likewise.
17107         * modules/unictype/category-Ps: Likewise.
17108         * modules/unictype/category-S: Likewise.
17109         * modules/unictype/category-Sc: Likewise.
17110         * modules/unictype/category-Sk: Likewise.
17111         * modules/unictype/category-Sm: Likewise.
17112         * modules/unictype/category-So: Likewise.
17113         * modules/unictype/category-Z: Likewise.
17114         * modules/unictype/category-Zl: Likewise.
17115         * modules/unictype/category-Zp: Likewise.
17116         * modules/unictype/category-Zs: Likewise.
17117         * modules/unictype/category-and: Likewise.
17118         * modules/unictype/category-and-not: Likewise.
17119         * modules/unictype/category-byname: Likewise.
17120         * modules/unictype/category-name: Likewise.
17121         * modules/unictype/category-none: Likewise.
17122         * modules/unictype/category-of: Likewise.
17123         * modules/unictype/category-or: Likewise.
17124         * modules/unictype/category-test: Likewise.
17125         * modules/unictype/combining-class: Likewise.
17126         * modules/unictype/ctype-alnum: Likewise.
17127         * modules/unictype/ctype-alpha: Likewise.
17128         * modules/unictype/ctype-blank: Likewise.
17129         * modules/unictype/ctype-cntrl: Likewise.
17130         * modules/unictype/ctype-digit: Likewise.
17131         * modules/unictype/ctype-graph: Likewise.
17132         * modules/unictype/ctype-lower: Likewise.
17133         * modules/unictype/ctype-print: Likewise.
17134         * modules/unictype/ctype-punct: Likewise.
17135         * modules/unictype/ctype-space: Likewise.
17136         * modules/unictype/ctype-upper: Likewise.
17137         * modules/unictype/ctype-xdigit: Likewise.
17138         * modules/unictype/decimal-digit: Likewise.
17139         * modules/unictype/digit: Likewise.
17140         * modules/unictype/mirror: Likewise.
17141         * modules/unictype/numeric: Likewise.
17142         * modules/unictype/property-alphabetic: Likewise.
17143         * modules/unictype/property-ascii-hex-digit: Likewise.
17144         * modules/unictype/property-bidi-arabic-digit: Likewise.
17145         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17146         * modules/unictype/property-bidi-block-separator: Likewise.
17147         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17148         * modules/unictype/property-bidi-common-separator: Likewise.
17149         * modules/unictype/property-bidi-control: Likewise.
17150         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17151         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17152         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17153         * modules/unictype/property-bidi-european-digit: Likewise.
17154         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17155         * modules/unictype/property-bidi-left-to-right: Likewise.
17156         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17157         * modules/unictype/property-bidi-other-neutral: Likewise.
17158         * modules/unictype/property-bidi-pdf: Likewise.
17159         * modules/unictype/property-bidi-segment-separator: Likewise.
17160         * modules/unictype/property-bidi-whitespace: Likewise.
17161         * modules/unictype/property-byname: Likewise.
17162         * modules/unictype/property-combining: Likewise.
17163         * modules/unictype/property-composite: Likewise.
17164         * modules/unictype/property-currency-symbol: Likewise.
17165         * modules/unictype/property-dash: Likewise.
17166         * modules/unictype/property-decimal-digit: Likewise.
17167         * modules/unictype/property-default-ignorable-code-point: Likewise.
17168         * modules/unictype/property-deprecated: Likewise.
17169         * modules/unictype/property-diacritic: Likewise.
17170         * modules/unictype/property-extender: Likewise.
17171         * modules/unictype/property-format-control: Likewise.
17172         * modules/unictype/property-grapheme-base: Likewise.
17173         * modules/unictype/property-grapheme-extend: Likewise.
17174         * modules/unictype/property-grapheme-link: Likewise.
17175         * modules/unictype/property-hex-digit: Likewise.
17176         * modules/unictype/property-hyphen: Likewise.
17177         * modules/unictype/property-id-continue: Likewise.
17178         * modules/unictype/property-id-start: Likewise.
17179         * modules/unictype/property-ideographic: Likewise.
17180         * modules/unictype/property-ids-binary-operator: Likewise.
17181         * modules/unictype/property-ids-trinary-operator: Likewise.
17182         * modules/unictype/property-ignorable-control: Likewise.
17183         * modules/unictype/property-iso-control: Likewise.
17184         * modules/unictype/property-join-control: Likewise.
17185         * modules/unictype/property-left-of-pair: Likewise.
17186         * modules/unictype/property-line-separator: Likewise.
17187         * modules/unictype/property-logical-order-exception: Likewise.
17188         * modules/unictype/property-lowercase: Likewise.
17189         * modules/unictype/property-math: Likewise.
17190         * modules/unictype/property-non-break: Likewise.
17191         * modules/unictype/property-not-a-character: Likewise.
17192         * modules/unictype/property-numeric: Likewise.
17193         * modules/unictype/property-other-alphabetic: Likewise.
17194         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17195         * modules/unictype/property-other-grapheme-extend: Likewise.
17196         * modules/unictype/property-other-id-continue: Likewise.
17197         * modules/unictype/property-other-id-start: Likewise.
17198         * modules/unictype/property-other-lowercase: Likewise.
17199         * modules/unictype/property-other-math: Likewise.
17200         * modules/unictype/property-other-uppercase: Likewise.
17201         * modules/unictype/property-paired-punctuation: Likewise.
17202         * modules/unictype/property-paragraph-separator: Likewise.
17203         * modules/unictype/property-pattern-syntax: Likewise.
17204         * modules/unictype/property-pattern-white-space: Likewise.
17205         * modules/unictype/property-private-use: Likewise.
17206         * modules/unictype/property-punctuation: Likewise.
17207         * modules/unictype/property-quotation-mark: Likewise.
17208         * modules/unictype/property-radical: Likewise.
17209         * modules/unictype/property-sentence-terminal: Likewise.
17210         * modules/unictype/property-soft-dotted: Likewise.
17211         * modules/unictype/property-space: Likewise.
17212         * modules/unictype/property-terminal-punctuation: Likewise.
17213         * modules/unictype/property-test: Likewise.
17214         * modules/unictype/property-titlecase: Likewise.
17215         * modules/unictype/property-unassigned-code-value: Likewise.
17216         * modules/unictype/property-unified-ideograph: Likewise.
17217         * modules/unictype/property-uppercase: Likewise.
17218         * modules/unictype/property-variation-selector: Likewise.
17219         * modules/unictype/property-white-space: Likewise.
17220         * modules/unictype/property-xid-continue: Likewise.
17221         * modules/unictype/property-xid-start: Likewise.
17222         * modules/unictype/property-zero-width: Likewise.
17223         * modules/unictype/scripts: Likewise.
17224         * modules/unictype/syntax-c-ident: Likewise.
17225         * modules/unictype/syntax-c-whitespace: Likewise.
17226         * modules/unictype/syntax-java-ident: Likewise.
17227         * modules/unictype/syntax-java-whitespace: Likewise.
17228         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17229         * modules/unilbrk/u8-width-linebreaks: Likewise.
17230         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17231         * modules/unilbrk/u16-width-linebreaks: Likewise.
17232         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17233         * modules/unilbrk/u32-width-linebreaks: Likewise.
17234         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17235         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17236         * modules/uniname/uniname: Likewise.
17237         * modules/uninorm/canonical-decomposition: Likewise.
17238         * modules/uninorm/composition: Likewise.
17239         * modules/uninorm/decomposing-form: Likewise.
17240         * modules/uninorm/decomposition: Likewise.
17241         * modules/uninorm/filter: Likewise.
17242         * modules/uninorm/nfc: Likewise.
17243         * modules/uninorm/nfd: Likewise.
17244         * modules/uninorm/nfkc: Likewise.
17245         * modules/uninorm/nfkd: Likewise.
17246         * modules/uninorm/u8-normalize: Likewise.
17247         * modules/uninorm/u8-normcmp: Likewise.
17248         * modules/uninorm/u8-normcoll: Likewise.
17249         * modules/uninorm/u8-normxfrm: Likewise.
17250         * modules/uninorm/u16-normalize: Likewise.
17251         * modules/uninorm/u16-normcmp: Likewise.
17252         * modules/uninorm/u16-normcoll: Likewise.
17253         * modules/uninorm/u16-normxfrm: Likewise.
17254         * modules/uninorm/u32-normalize: Likewise.
17255         * modules/uninorm/u32-normcmp: Likewise.
17256         * modules/uninorm/u32-normcoll: Likewise.
17257         * modules/uninorm/u32-normxfrm: Likewise.
17258         * modules/unistdio/u8-asnprintf: Likewise.
17259         * modules/unistdio/u8-asprintf: Likewise.
17260         * modules/unistdio/u8-snprintf: Likewise.
17261         * modules/unistdio/u8-sprintf: Likewise.
17262         * modules/unistdio/u8-u8-asnprintf: Likewise.
17263         * modules/unistdio/u8-u8-asprintf: Likewise.
17264         * modules/unistdio/u8-u8-snprintf: Likewise.
17265         * modules/unistdio/u8-u8-sprintf: Likewise.
17266         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17267         * modules/unistdio/u8-u8-vasprintf: Likewise.
17268         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17269         * modules/unistdio/u8-u8-vsprintf: Likewise.
17270         * modules/unistdio/u8-vasnprintf: Likewise.
17271         * modules/unistdio/u8-vasprintf: Likewise.
17272         * modules/unistdio/u8-vsnprintf: Likewise.
17273         * modules/unistdio/u8-vsprintf: Likewise.
17274         * modules/unistdio/u16-asnprintf: Likewise.
17275         * modules/unistdio/u16-asprintf: Likewise.
17276         * modules/unistdio/u16-snprintf: Likewise.
17277         * modules/unistdio/u16-sprintf: Likewise.
17278         * modules/unistdio/u16-u16-asnprintf: Likewise.
17279         * modules/unistdio/u16-u16-asprintf: Likewise.
17280         * modules/unistdio/u16-u16-snprintf: Likewise.
17281         * modules/unistdio/u16-u16-sprintf: Likewise.
17282         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17283         * modules/unistdio/u16-u16-vasprintf: Likewise.
17284         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17285         * modules/unistdio/u16-u16-vsprintf: Likewise.
17286         * modules/unistdio/u16-vasnprintf: Likewise.
17287         * modules/unistdio/u16-vasprintf: Likewise.
17288         * modules/unistdio/u16-vsnprintf: Likewise.
17289         * modules/unistdio/u16-vsprintf: Likewise.
17290         * modules/unistdio/u32-asnprintf: Likewise.
17291         * modules/unistdio/u32-asprintf: Likewise.
17292         * modules/unistdio/u32-snprintf: Likewise.
17293         * modules/unistdio/u32-sprintf: Likewise.
17294         * modules/unistdio/u32-u32-asnprintf: Likewise.
17295         * modules/unistdio/u32-u32-asprintf: Likewise.
17296         * modules/unistdio/u32-u32-snprintf: Likewise.
17297         * modules/unistdio/u32-u32-sprintf: Likewise.
17298         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17299         * modules/unistdio/u32-u32-vasprintf: Likewise.
17300         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17301         * modules/unistdio/u32-u32-vsprintf: Likewise.
17302         * modules/unistdio/u32-vasnprintf: Likewise.
17303         * modules/unistdio/u32-vasprintf: Likewise.
17304         * modules/unistdio/u32-vsnprintf: Likewise.
17305         * modules/unistdio/u32-vsprintf: Likewise.
17306         * modules/unistdio/ulc-asnprintf: Likewise.
17307         * modules/unistdio/ulc-asprintf: Likewise.
17308         * modules/unistdio/ulc-fprintf: Likewise.
17309         * modules/unistdio/ulc-snprintf: Likewise.
17310         * modules/unistdio/ulc-sprintf: Likewise.
17311         * modules/unistdio/ulc-vasnprintf: Likewise.
17312         * modules/unistdio/ulc-vasprintf: Likewise.
17313         * modules/unistdio/ulc-vfprintf: Likewise.
17314         * modules/unistdio/ulc-vsnprintf: Likewise.
17315         * modules/unistdio/ulc-vsprintf: Likewise.
17316         * modules/unistr/u8-check: Likewise.
17317         * modules/unistr/u8-chr: Likewise.
17318         * modules/unistr/u8-cmp: Likewise.
17319         * modules/unistr/u8-cmp2: Likewise.
17320         * modules/unistr/u8-cpy: Likewise.
17321         * modules/unistr/u8-cpy-alloc: Likewise.
17322         * modules/unistr/u8-endswith: Likewise.
17323         * modules/unistr/u8-mblen: Likewise.
17324         * modules/unistr/u8-mbsnlen: Likewise.
17325         * modules/unistr/u8-mbtouc: Likewise.
17326         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17327         * modules/unistr/u8-mbtoucr: Likewise.
17328         * modules/unistr/u8-move: Likewise.
17329         * modules/unistr/u8-next: Likewise.
17330         * modules/unistr/u8-prev: Likewise.
17331         * modules/unistr/u8-set: Likewise.
17332         * modules/unistr/u8-startswith: Likewise.
17333         * modules/unistr/u8-stpcpy: Likewise.
17334         * modules/unistr/u8-stpncpy: Likewise.
17335         * modules/unistr/u8-strcat: Likewise.
17336         * modules/unistr/u8-strchr: Likewise.
17337         * modules/unistr/u8-strcmp: Likewise.
17338         * modules/unistr/u8-strcoll: Likewise.
17339         * modules/unistr/u8-strcpy: Likewise.
17340         * modules/unistr/u8-strcspn: Likewise.
17341         * modules/unistr/u8-strdup: Likewise.
17342         * modules/unistr/u8-strlen: Likewise.
17343         * modules/unistr/u8-strmblen: Likewise.
17344         * modules/unistr/u8-strmbtouc: Likewise.
17345         * modules/unistr/u8-strncat: Likewise.
17346         * modules/unistr/u8-strncmp: Likewise.
17347         * modules/unistr/u8-strncpy: Likewise.
17348         * modules/unistr/u8-strnlen: Likewise.
17349         * modules/unistr/u8-strpbrk: Likewise.
17350         * modules/unistr/u8-strrchr: Likewise.
17351         * modules/unistr/u8-strspn: Likewise.
17352         * modules/unistr/u8-strstr: Likewise.
17353         * modules/unistr/u8-strtok: Likewise.
17354         * modules/unistr/u8-to-u16: Likewise.
17355         * modules/unistr/u8-to-u32: Likewise.
17356         * modules/unistr/u8-uctomb: Likewise.
17357         * modules/unistr/u16-check: Likewise.
17358         * modules/unistr/u16-chr: Likewise.
17359         * modules/unistr/u16-cmp: Likewise.
17360         * modules/unistr/u16-cmp2: Likewise.
17361         * modules/unistr/u16-cpy: Likewise.
17362         * modules/unistr/u16-cpy-alloc: Likewise.
17363         * modules/unistr/u16-endswith: Likewise.
17364         * modules/unistr/u16-mblen: Likewise.
17365         * modules/unistr/u16-mbsnlen: Likewise.
17366         * modules/unistr/u16-mbtouc: Likewise.
17367         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17368         * modules/unistr/u16-mbtoucr: Likewise.
17369         * modules/unistr/u16-move: Likewise.
17370         * modules/unistr/u16-next: Likewise.
17371         * modules/unistr/u16-prev: Likewise.
17372         * modules/unistr/u16-set: Likewise.
17373         * modules/unistr/u16-startswith: Likewise.
17374         * modules/unistr/u16-stpcpy: Likewise.
17375         * modules/unistr/u16-stpncpy: Likewise.
17376         * modules/unistr/u16-strcat: Likewise.
17377         * modules/unistr/u16-strchr: Likewise.
17378         * modules/unistr/u16-strcmp: Likewise.
17379         * modules/unistr/u16-strcoll: Likewise.
17380         * modules/unistr/u16-strcpy: Likewise.
17381         * modules/unistr/u16-strcspn: Likewise.
17382         * modules/unistr/u16-strdup: Likewise.
17383         * modules/unistr/u16-strlen: Likewise.
17384         * modules/unistr/u16-strmblen: Likewise.
17385         * modules/unistr/u16-strmbtouc: Likewise.
17386         * modules/unistr/u16-strncat: Likewise.
17387         * modules/unistr/u16-strncmp: Likewise.
17388         * modules/unistr/u16-strncpy: Likewise.
17389         * modules/unistr/u16-strnlen: Likewise.
17390         * modules/unistr/u16-strpbrk: Likewise.
17391         * modules/unistr/u16-strrchr: Likewise.
17392         * modules/unistr/u16-strspn: Likewise.
17393         * modules/unistr/u16-strstr: Likewise.
17394         * modules/unistr/u16-strtok: Likewise.
17395         * modules/unistr/u16-to-u32: Likewise.
17396         * modules/unistr/u16-to-u8: Likewise.
17397         * modules/unistr/u16-uctomb: Likewise.
17398         * modules/unistr/u32-check: Likewise.
17399         * modules/unistr/u32-chr: Likewise.
17400         * modules/unistr/u32-cmp: Likewise.
17401         * modules/unistr/u32-cmp2: Likewise.
17402         * modules/unistr/u32-cpy: Likewise.
17403         * modules/unistr/u32-cpy-alloc: Likewise.
17404         * modules/unistr/u32-endswith: Likewise.
17405         * modules/unistr/u32-mblen: Likewise.
17406         * modules/unistr/u32-mbsnlen: Likewise.
17407         * modules/unistr/u32-mbtouc: Likewise.
17408         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17409         * modules/unistr/u32-mbtoucr: Likewise.
17410         * modules/unistr/u32-move: Likewise.
17411         * modules/unistr/u32-next: Likewise.
17412         * modules/unistr/u32-prev: Likewise.
17413         * modules/unistr/u32-set: Likewise.
17414         * modules/unistr/u32-startswith: Likewise.
17415         * modules/unistr/u32-stpcpy: Likewise.
17416         * modules/unistr/u32-stpncpy: Likewise.
17417         * modules/unistr/u32-strcat: Likewise.
17418         * modules/unistr/u32-strchr: Likewise.
17419         * modules/unistr/u32-strcmp: Likewise.
17420         * modules/unistr/u32-strcoll: Likewise.
17421         * modules/unistr/u32-strcpy: Likewise.
17422         * modules/unistr/u32-strcspn: Likewise.
17423         * modules/unistr/u32-strdup: Likewise.
17424         * modules/unistr/u32-strlen: Likewise.
17425         * modules/unistr/u32-strmblen: Likewise.
17426         * modules/unistr/u32-strmbtouc: Likewise.
17427         * modules/unistr/u32-strncat: Likewise.
17428         * modules/unistr/u32-strncmp: Likewise.
17429         * modules/unistr/u32-strncpy: Likewise.
17430         * modules/unistr/u32-strnlen: Likewise.
17431         * modules/unistr/u32-strpbrk: Likewise.
17432         * modules/unistr/u32-strrchr: Likewise.
17433         * modules/unistr/u32-strspn: Likewise.
17434         * modules/unistr/u32-strstr: Likewise.
17435         * modules/unistr/u32-strtok: Likewise.
17436         * modules/unistr/u32-to-u16: Likewise.
17437         * modules/unistr/u32-to-u8: Likewise.
17438         * modules/unistr/u32-uctomb: Likewise.
17439         * modules/uniwbrk/u8-wordbreaks: Likewise.
17440         * modules/uniwbrk/u16-wordbreaks: Likewise.
17441         * modules/uniwbrk/u32-wordbreaks: Likewise.
17442         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17443         * modules/uniwbrk/wordbreak-property: Likewise.
17444         * modules/uniwidth/u8-strwidth: Likewise.
17445         * modules/uniwidth/u8-width: Likewise.
17446         * modules/uniwidth/u16-strwidth: Likewise.
17447         * modules/uniwidth/u16-width: Likewise.
17448         * modules/uniwidth/u32-strwidth: Likewise.
17449         * modules/uniwidth/u32-width: Likewise.
17450         * modules/uniwidth/width: Likewise.
17451         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17452         with $(LIBUNISTRING).
17453         * modules/unicase/ignorable-tests: Likewise.
17454         * modules/unicase/locale-language-tests: Likewise.
17455         * modules/unicase/tolower-tests: Likewise.
17456         * modules/unicase/totitle-tests: Likewise.
17457         * modules/unicase/toupper-tests: Likewise.
17458         * modules/unicase/u8-casecmp-tests: Likewise.
17459         * modules/unicase/u8-casecoll-tests: Likewise.
17460         * modules/unicase/u8-casefold-tests: Likewise.
17461         * modules/unicase/u8-is-cased-tests: Likewise.
17462         * modules/unicase/u8-is-casefolded-tests: Likewise.
17463         * modules/unicase/u8-is-lowercase-tests: Likewise.
17464         * modules/unicase/u8-is-titlecase-tests: Likewise.
17465         * modules/unicase/u8-is-uppercase-tests: Likewise.
17466         * modules/unicase/u8-tolower-tests: Likewise.
17467         * modules/unicase/u8-totitle-tests: Likewise.
17468         * modules/unicase/u8-toupper-tests: Likewise.
17469         * modules/unicase/u16-casecmp-tests: Likewise.
17470         * modules/unicase/u16-casecoll-tests: Likewise.
17471         * modules/unicase/u16-casefold-tests: Likewise.
17472         * modules/unicase/u16-is-cased-tests: Likewise.
17473         * modules/unicase/u16-is-casefolded-tests: Likewise.
17474         * modules/unicase/u16-is-lowercase-tests: Likewise.
17475         * modules/unicase/u16-is-titlecase-tests: Likewise.
17476         * modules/unicase/u16-is-uppercase-tests: Likewise.
17477         * modules/unicase/u16-tolower-tests: Likewise.
17478         * modules/unicase/u16-totitle-tests: Likewise.
17479         * modules/unicase/u16-toupper-tests: Likewise.
17480         * modules/unicase/u32-casecmp-tests: Likewise.
17481         * modules/unicase/u32-casecoll-tests: Likewise.
17482         * modules/unicase/u32-casefold-tests: Likewise.
17483         * modules/unicase/u32-is-cased-tests: Likewise.
17484         * modules/unicase/u32-is-casefolded-tests: Likewise.
17485         * modules/unicase/u32-is-lowercase-tests: Likewise.
17486         * modules/unicase/u32-is-titlecase-tests: Likewise.
17487         * modules/unicase/u32-is-uppercase-tests: Likewise.
17488         * modules/unicase/u32-tolower-tests: Likewise.
17489         * modules/unicase/u32-totitle-tests: Likewise.
17490         * modules/unicase/u32-toupper-tests: Likewise.
17491         * modules/unicase/ulc-casecmp-tests: Likewise.
17492         * modules/unicase/ulc-casecoll-tests: Likewise.
17493         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17494         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17495         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17496         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17497         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17498         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17499         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17500         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17501         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17502         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17503         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17504         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17505         * modules/unictype/bidicategory-byname-tests: Likewise.
17506         * modules/unictype/bidicategory-name-tests: Likewise.
17507         * modules/unictype/bidicategory-of-tests: Likewise.
17508         * modules/unictype/bidicategory-test-tests: Likewise.
17509         * modules/unictype/block-list-tests: Likewise.
17510         * modules/unictype/block-of-tests: Likewise.
17511         * modules/unictype/block-test-tests: Likewise.
17512         * modules/unictype/category-C-tests: Likewise.
17513         * modules/unictype/category-Cc-tests: Likewise.
17514         * modules/unictype/category-Cf-tests: Likewise.
17515         * modules/unictype/category-Cn-tests: Likewise.
17516         * modules/unictype/category-Co-tests: Likewise.
17517         * modules/unictype/category-Cs-tests: Likewise.
17518         * modules/unictype/category-L-tests: Likewise.
17519         * modules/unictype/category-Ll-tests: Likewise.
17520         * modules/unictype/category-Lm-tests: Likewise.
17521         * modules/unictype/category-Lo-tests: Likewise.
17522         * modules/unictype/category-Lt-tests: Likewise.
17523         * modules/unictype/category-Lu-tests: Likewise.
17524         * modules/unictype/category-M-tests: Likewise.
17525         * modules/unictype/category-Mc-tests: Likewise.
17526         * modules/unictype/category-Me-tests: Likewise.
17527         * modules/unictype/category-Mn-tests: Likewise.
17528         * modules/unictype/category-N-tests: Likewise.
17529         * modules/unictype/category-Nd-tests: Likewise.
17530         * modules/unictype/category-Nl-tests: Likewise.
17531         * modules/unictype/category-No-tests: Likewise.
17532         * modules/unictype/category-P-tests: Likewise.
17533         * modules/unictype/category-Pc-tests: Likewise.
17534         * modules/unictype/category-Pd-tests: Likewise.
17535         * modules/unictype/category-Pe-tests: Likewise.
17536         * modules/unictype/category-Pf-tests: Likewise.
17537         * modules/unictype/category-Pi-tests: Likewise.
17538         * modules/unictype/category-Po-tests: Likewise.
17539         * modules/unictype/category-Ps-tests: Likewise.
17540         * modules/unictype/category-S-tests: Likewise.
17541         * modules/unictype/category-Sc-tests: Likewise.
17542         * modules/unictype/category-Sk-tests: Likewise.
17543         * modules/unictype/category-Sm-tests: Likewise.
17544         * modules/unictype/category-So-tests: Likewise.
17545         * modules/unictype/category-Z-tests: Likewise.
17546         * modules/unictype/category-Zl-tests: Likewise.
17547         * modules/unictype/category-Zp-tests: Likewise.
17548         * modules/unictype/category-Zs-tests: Likewise.
17549         * modules/unictype/category-and-not-tests: Likewise.
17550         * modules/unictype/category-and-tests: Likewise.
17551         * modules/unictype/category-byname-tests: Likewise.
17552         * modules/unictype/category-name-tests: Likewise.
17553         * modules/unictype/category-none-tests: Likewise.
17554         * modules/unictype/category-of-tests: Likewise.
17555         * modules/unictype/category-or-tests: Likewise.
17556         * modules/unictype/category-test-withtable-tests: Likewise.
17557         * modules/unictype/combining-class-tests: Likewise.
17558         * modules/unictype/ctype-alnum-tests: Likewise.
17559         * modules/unictype/ctype-alpha-tests: Likewise.
17560         * modules/unictype/ctype-blank-tests: Likewise.
17561         * modules/unictype/ctype-cntrl-tests: Likewise.
17562         * modules/unictype/ctype-digit-tests: Likewise.
17563         * modules/unictype/ctype-graph-tests: Likewise.
17564         * modules/unictype/ctype-lower-tests: Likewise.
17565         * modules/unictype/ctype-print-tests: Likewise.
17566         * modules/unictype/ctype-punct-tests: Likewise.
17567         * modules/unictype/ctype-space-tests: Likewise.
17568         * modules/unictype/ctype-upper-tests: Likewise.
17569         * modules/unictype/ctype-xdigit-tests: Likewise.
17570         * modules/unictype/decimal-digit-tests: Likewise.
17571         * modules/unictype/digit-tests: Likewise.
17572         * modules/unictype/mirror-tests: Likewise.
17573         * modules/unictype/numeric-tests: Likewise.
17574         * modules/unictype/property-alphabetic-tests: Likewise.
17575         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17576         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17577         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17578         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17579         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17580         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17581         * modules/unictype/property-bidi-control-tests: Likewise.
17582         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17583         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17584         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17585         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17586         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17587         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17588         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17589         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17590         * modules/unictype/property-bidi-pdf-tests: Likewise.
17591         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17592         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17593         * modules/unictype/property-byname-tests: Likewise.
17594         * modules/unictype/property-combining-tests: Likewise.
17595         * modules/unictype/property-composite-tests: Likewise.
17596         * modules/unictype/property-currency-symbol-tests: Likewise.
17597         * modules/unictype/property-dash-tests: Likewise.
17598         * modules/unictype/property-decimal-digit-tests: Likewise.
17599         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17600         * modules/unictype/property-deprecated-tests: Likewise.
17601         * modules/unictype/property-diacritic-tests: Likewise.
17602         * modules/unictype/property-extender-tests: Likewise.
17603         * modules/unictype/property-format-control-tests: Likewise.
17604         * modules/unictype/property-grapheme-base-tests: Likewise.
17605         * modules/unictype/property-grapheme-extend-tests: Likewise.
17606         * modules/unictype/property-grapheme-link-tests: Likewise.
17607         * modules/unictype/property-hex-digit-tests: Likewise.
17608         * modules/unictype/property-hyphen-tests: Likewise.
17609         * modules/unictype/property-id-continue-tests: Likewise.
17610         * modules/unictype/property-id-start-tests: Likewise.
17611         * modules/unictype/property-ideographic-tests: Likewise.
17612         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17613         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17614         * modules/unictype/property-ignorable-control-tests: Likewise.
17615         * modules/unictype/property-iso-control-tests: Likewise.
17616         * modules/unictype/property-join-control-tests: Likewise.
17617         * modules/unictype/property-left-of-pair-tests: Likewise.
17618         * modules/unictype/property-line-separator-tests: Likewise.
17619         * modules/unictype/property-logical-order-exception-tests: Likewise.
17620         * modules/unictype/property-lowercase-tests: Likewise.
17621         * modules/unictype/property-math-tests: Likewise.
17622         * modules/unictype/property-non-break-tests: Likewise.
17623         * modules/unictype/property-not-a-character-tests: Likewise.
17624         * modules/unictype/property-numeric-tests: Likewise.
17625         * modules/unictype/property-other-alphabetic-tests: Likewise.
17626         * modules/unictype/property-other-default-ignorable-code-point-tests:
17627         Likewise.
17628         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17629         * modules/unictype/property-other-id-continue-tests: Likewise.
17630         * modules/unictype/property-other-id-start-tests: Likewise.
17631         * modules/unictype/property-other-lowercase-tests: Likewise.
17632         * modules/unictype/property-other-math-tests: Likewise.
17633         * modules/unictype/property-other-uppercase-tests: Likewise.
17634         * modules/unictype/property-paired-punctuation-tests: Likewise.
17635         * modules/unictype/property-paragraph-separator-tests: Likewise.
17636         * modules/unictype/property-pattern-syntax-tests: Likewise.
17637         * modules/unictype/property-pattern-white-space-tests: Likewise.
17638         * modules/unictype/property-private-use-tests: Likewise.
17639         * modules/unictype/property-punctuation-tests: Likewise.
17640         * modules/unictype/property-quotation-mark-tests: Likewise.
17641         * modules/unictype/property-radical-tests: Likewise.
17642         * modules/unictype/property-sentence-terminal-tests: Likewise.
17643         * modules/unictype/property-soft-dotted-tests: Likewise.
17644         * modules/unictype/property-space-tests: Likewise.
17645         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17646         * modules/unictype/property-test-tests: Likewise.
17647         * modules/unictype/property-titlecase-tests: Likewise.
17648         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17649         * modules/unictype/property-unified-ideograph-tests: Likewise.
17650         * modules/unictype/property-uppercase-tests: Likewise.
17651         * modules/unictype/property-variation-selector-tests: Likewise.
17652         * modules/unictype/property-white-space-tests: Likewise.
17653         * modules/unictype/property-xid-continue-tests: Likewise.
17654         * modules/unictype/property-xid-start-tests: Likewise.
17655         * modules/unictype/property-zero-width-tests: Likewise.
17656         * modules/unictype/scripts-tests: Likewise.
17657         * modules/unictype/syntax-c-ident-tests: Likewise.
17658         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17659         * modules/unictype/syntax-java-ident-tests: Likewise.
17660         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17661         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17662         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17663         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17664         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17665         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17666         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17667         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17668         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17669         * modules/uniname/uniname-tests: Likewise.
17670         * modules/uninorm/canonical-decomposition-tests: Likewise.
17671         * modules/uninorm/compat-decomposition-tests: Likewise.
17672         * modules/uninorm/composition-tests: Likewise.
17673         * modules/uninorm/decomposing-form-tests: Likewise.
17674         * modules/uninorm/decomposition-tests: Likewise.
17675         * modules/uninorm/filter-tests: Likewise.
17676         * modules/uninorm/nfc-tests: Likewise.
17677         * modules/uninorm/nfd-tests: Likewise.
17678         * modules/uninorm/nfkc-tests: Likewise.
17679         * modules/uninorm/nfkd-tests: Likewise.
17680         * modules/uninorm/u8-normcmp-tests: Likewise.
17681         * modules/uninorm/u8-normcoll-tests: Likewise.
17682         * modules/uninorm/u16-normcmp-tests: Likewise.
17683         * modules/uninorm/u16-normcoll-tests: Likewise.
17684         * modules/uninorm/u32-normcmp-tests: Likewise.
17685         * modules/uninorm/u32-normcoll-tests: Likewise.
17686         * modules/unistdio/u8-asnprintf-tests: Likewise.
17687         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17688         * modules/unistdio/u8-vasprintf-tests: Likewise.
17689         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17690         * modules/unistdio/u8-vsprintf-tests: Likewise.
17691         * modules/unistdio/u16-asnprintf-tests: Likewise.
17692         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17693         * modules/unistdio/u16-vasprintf-tests: Likewise.
17694         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17695         * modules/unistdio/u16-vsprintf-tests: Likewise.
17696         * modules/unistdio/u32-asnprintf-tests: Likewise.
17697         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17698         * modules/unistdio/u32-vasprintf-tests: Likewise.
17699         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17700         * modules/unistdio/u32-vsprintf-tests: Likewise.
17701         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17702         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17703         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17704         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17705         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17706         * modules/unistr/u8-check-tests: Likewise.
17707         * modules/unistr/u8-chr-tests: Likewise.
17708         * modules/unistr/u8-cmp-tests: Likewise.
17709         * modules/unistr/u8-cmp2-tests: Likewise.
17710         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17711         * modules/unistr/u8-cpy-tests: Likewise.
17712         * modules/unistr/u8-mblen-tests: Likewise.
17713         * modules/unistr/u8-mbsnlen-tests: Likewise.
17714         * modules/unistr/u8-mbtouc-tests: Likewise.
17715         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17716         * modules/unistr/u8-mbtoucr-tests: Likewise.
17717         * modules/unistr/u8-move-tests: Likewise.
17718         * modules/unistr/u8-next-tests: Likewise.
17719         * modules/unistr/u8-prev-tests: Likewise.
17720         * modules/unistr/u8-set-tests: Likewise.
17721         * modules/unistr/u8-stpcpy-tests: Likewise.
17722         * modules/unistr/u8-stpncpy-tests: Likewise.
17723         * modules/unistr/u8-strcat-tests: Likewise.
17724         * modules/unistr/u8-strcmp-tests: Likewise.
17725         * modules/unistr/u8-strcoll-tests: Likewise.
17726         * modules/unistr/u8-strcpy-tests: Likewise.
17727         * modules/unistr/u8-strdup-tests: Likewise.
17728         * modules/unistr/u8-strlen-tests: Likewise.
17729         * modules/unistr/u8-strmblen-tests: Likewise.
17730         * modules/unistr/u8-strmbtouc-tests: Likewise.
17731         * modules/unistr/u8-strncat-tests: Likewise.
17732         * modules/unistr/u8-strncmp-tests: Likewise.
17733         * modules/unistr/u8-strncpy-tests: Likewise.
17734         * modules/unistr/u8-strnlen-tests: Likewise.
17735         * modules/unistr/u8-to-u16-tests: Likewise.
17736         * modules/unistr/u8-to-u32-tests: Likewise.
17737         * modules/unistr/u8-uctomb-tests: Likewise.
17738         * modules/unistr/u16-check-tests: Likewise.
17739         * modules/unistr/u16-chr-tests: Likewise.
17740         * modules/unistr/u16-cmp-tests: Likewise.
17741         * modules/unistr/u16-cmp2-tests: Likewise.
17742         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17743         * modules/unistr/u16-cpy-tests: Likewise.
17744         * modules/unistr/u16-mblen-tests: Likewise.
17745         * modules/unistr/u16-mbsnlen-tests: Likewise.
17746         * modules/unistr/u16-mbtouc-tests: Likewise.
17747         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17748         * modules/unistr/u16-mbtoucr-tests: Likewise.
17749         * modules/unistr/u16-move-tests: Likewise.
17750         * modules/unistr/u16-next-tests: Likewise.
17751         * modules/unistr/u16-prev-tests: Likewise.
17752         * modules/unistr/u16-set-tests: Likewise.
17753         * modules/unistr/u16-stpcpy-tests: Likewise.
17754         * modules/unistr/u16-stpncpy-tests: Likewise.
17755         * modules/unistr/u16-strcat-tests: Likewise.
17756         * modules/unistr/u16-strcmp-tests: Likewise.
17757         * modules/unistr/u16-strcoll-tests: Likewise.
17758         * modules/unistr/u16-strcpy-tests: Likewise.
17759         * modules/unistr/u16-strdup-tests: Likewise.
17760         * modules/unistr/u16-strlen-tests: Likewise.
17761         * modules/unistr/u16-strmblen-tests: Likewise.
17762         * modules/unistr/u16-strmbtouc-tests: Likewise.
17763         * modules/unistr/u16-strncat-tests: Likewise.
17764         * modules/unistr/u16-strncmp-tests: Likewise.
17765         * modules/unistr/u16-strncpy-tests: Likewise.
17766         * modules/unistr/u16-strnlen-tests: Likewise.
17767         * modules/unistr/u16-to-u32-tests: Likewise.
17768         * modules/unistr/u16-to-u8-tests: Likewise.
17769         * modules/unistr/u16-uctomb-tests: Likewise.
17770         * modules/unistr/u32-check-tests: Likewise.
17771         * modules/unistr/u32-chr-tests: Likewise.
17772         * modules/unistr/u32-cmp-tests: Likewise.
17773         * modules/unistr/u32-cmp2-tests: Likewise.
17774         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17775         * modules/unistr/u32-cpy-tests: Likewise.
17776         * modules/unistr/u32-mblen-tests: Likewise.
17777         * modules/unistr/u32-mbsnlen-tests: Likewise.
17778         * modules/unistr/u32-mbtouc-tests: Likewise.
17779         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17780         * modules/unistr/u32-mbtoucr-tests: Likewise.
17781         * modules/unistr/u32-move-tests: Likewise.
17782         * modules/unistr/u32-next-tests: Likewise.
17783         * modules/unistr/u32-prev-tests: Likewise.
17784         * modules/unistr/u32-set-tests: Likewise.
17785         * modules/unistr/u32-stpcpy-tests: Likewise.
17786         * modules/unistr/u32-stpncpy-tests: Likewise.
17787         * modules/unistr/u32-strcat-tests: Likewise.
17788         * modules/unistr/u32-strcmp-tests: Likewise.
17789         * modules/unistr/u32-strcoll-tests: Likewise.
17790         * modules/unistr/u32-strcpy-tests: Likewise.
17791         * modules/unistr/u32-strdup-tests: Likewise.
17792         * modules/unistr/u32-strlen-tests: Likewise.
17793         * modules/unistr/u32-strmblen-tests: Likewise.
17794         * modules/unistr/u32-strmbtouc-tests: Likewise.
17795         * modules/unistr/u32-strncat-tests: Likewise.
17796         * modules/unistr/u32-strncmp-tests: Likewise.
17797         * modules/unistr/u32-strncpy-tests: Likewise.
17798         * modules/unistr/u32-strnlen-tests: Likewise.
17799         * modules/unistr/u32-to-u16-tests: Likewise.
17800         * modules/unistr/u32-to-u8-tests: Likewise.
17801         * modules/unistr/u32-uctomb-tests: Likewise.
17802         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17803         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17804         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17805         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17806         * modules/uniwidth/u8-strwidth-tests: Likewise.
17807         * modules/uniwidth/u8-width-tests: Likewise.
17808         * modules/uniwidth/u16-strwidth-tests: Likewise.
17809         * modules/uniwidth/u16-width-tests: Likewise.
17810         * modules/uniwidth/u32-strwidth-tests: Likewise.
17811         * modules/uniwidth/u32-width-tests: Likewise.
17812         * modules/uniwidth/width-tests: Likewise.
17813
17814 2010-05-18  Richard Jones  <rjones@redhat.com>
17815
17816         doc: users.txt: list hivex
17817         * users.txt: Add hivex.
17818
17819 2010-05-18  Richard Jones  <rjones@redhat.com>
17820
17821         doc: users.txt: list febootstrap
17822         * users.txt: Add febootstrap.
17823
17824 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17825
17826         bootstrap: fix an error when gnulib is not used as a git submodule
17827         * build-aux/bootstrap (gnulib_path): If its length is zero then
17828         assign "gnulib" to it.
17829         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17830
17831 2010-05-16  Bruno Haible  <bruno@clisp.org>
17832
17833         Avoid autoconf warnings about AM_ICONV.
17834         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17835         2.64.
17836
17837 2010-05-16  Bruno Haible  <bruno@clisp.org>
17838
17839         absolute-header: Make the macro usable in more situations.
17840         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17841         from gl_ABSOLUTE_HEADER.
17842         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17843
17844 2010-05-16  James Youngman  <jay@gnu.org>
17845
17846         doc: update users.txt
17847         * users.txt: Add CSSC.
17848
17849 2010-05-16  Jim Meyering  <meyering@redhat.com>
17850
17851         init.sh: fix an error in the previous change; add more comments
17852         * tests/init.sh: Compare exit code in loop against 9, not 2.
17853         Patch by Bruno Haible.
17854         Make the two tests more similar by adding an empty "then" clause.
17855         Add comments.
17856
17857         init.sh: avoid unnecessary shell re-exec
17858         * tests/init.sh: Improve the re-exec-required check to first test the
17859         current shell.  If it passes the test, do not search for a shell that
17860         does pass, and do not re-exec.  This test is particularly contorted to
17861         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17862         of $(...) evokes a syntax error and causes immediate shell exit with
17863         status 2.  Bruno Haible reported that the re-exec made it impossible
17864         to single-step through any init.sh-using script.
17865
17866 2010-05-16  Bruno Haible  <bruno@clisp.org>
17867
17868         Fix collision between gnulib's and libintl's printf replacements.
17869         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17870         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17871         (printf): When using GNU C, map the __printf__ function to rpl_printf
17872         via __asm__. When not using GNU C, define rpl_printf instead of
17873         __printf__.
17874         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17875         commit.
17876         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17877         commit.
17878         * m4/asm-underscore.m4: New file.
17879         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17880         * modules/stdio (Files): Add m4/asm-underscore.m4.
17881         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17882         Reported by Ben Pfaff.
17883
17884 2010-05-16  Bruno Haible  <bruno@clisp.org>
17885
17886         verify: Avoid skipping the test on openSUSE 11.0.
17887         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17888
17889 2010-05-13  Bruno Haible  <bruno@clisp.org>
17890
17891         Avoid useless warnings from G++.
17892         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17893         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17894         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17895
17896 2010-05-11  Jim Meyering  <meyering@redhat.com>
17897
17898         maint.mk: tweak preceding change
17899         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17900         regexps tighter by anchoring at EOL, and make the new group "shy"
17901         for slightly decreased overhead.
17902
17903 2010-05-11  Eric Blake  <eblake@redhat.com>
17904
17905         maint.mk: gnulib doesn't guarantee NSIG
17906         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17907
17908 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17909
17910         test-pwrite.c: Remove unused variable declaration.
17911         * tests/test-pwrite.c (main): Remove read_buf declaration.
17912
17913         Remove useless test-pwrite.sh file.
17914         * tests/test-pwrite.sh: Delete file.
17915         * modules/pwrite-tests: Remove references.
17916         Reported by Bruno Haible.
17917
17918 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17919
17920         init.sh: fix a typo
17921         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17922
17923 2010-05-10  Jim Meyering  <meyering@redhat.com>
17924
17925         maint.mk: avoid using a temporary file in the always-defined-macros check
17926         * top/maint.mk (.re-defmac): Remove rule.
17927         (gl_trap_): Remove definition.
17928         (sc_prohibit_always-defined_macros): Rewrite not to create and
17929         depend on a temporary file.  Instead, depend on GNU grep's ability
17930         to read a list of regular expressions from stdin when given "-f -".
17931
17932 2010-05-09  Bruno Haible  <bruno@clisp.org>
17933
17934         Update to GNU gettext 0.18, part 1.
17935         * m4/gettext.m4: Update to GNU gettext 0.18.
17936         * m4/intl.m4: Likewise.
17937         * m4/po.m4: Likewise.
17938         * modules/gettext (Files): Add m4/fcntl-o.m4.
17939         (configure.ac): Require gettext infrastructure from version 0.18.
17940
17941 2010-05-09  Jim Meyering  <meyering@redhat.com>
17942
17943         init.sh: enable MALLOC_PERTURB_
17944         * tests/init.sh: Enable glibc's malloc-perturbing option.
17945
17946         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17947         With my recent change in init.sh from the two-line form:
17948             -#   : ${srcdir=.}
17949             -#   . "$srcdir/init.sh"; path_prepend_ .
17950             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17951         I noticed that using the one-line form would cause this test
17952         to fail with a false-positive, or to stop working altogether,
17953         depending on whether help-version changed or all the tests did.
17954         * top/maint.mk (_hv_regex): Remove this definition.
17955         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17956         (_hv_regex_strong): Use a stronger regex to check for conformance.
17957         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17958         Give a separate diagnostic for lack of conforming use.
17959
17960         maint.mk: prohibit definition of symbols defined by gnulib
17961         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17962         definition of symbols defined by gnulib.
17963
17964 2010-05-09  Bruno Haible  <bruno@clisp.org>
17965
17966         acl: Avoid test failure on Cygwin-hosted mingw.
17967         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17968
17969 2010-05-09  Bruno Haible  <bruno@clisp.org>
17970
17971         error: Use system's fcntl function.
17972         * lib/error.c (fcntl): Undefine.
17973
17974 2010-05-09  Jim Meyering  <meyering@redhat.com>
17975
17976         verify: adjust formatting to be more consistent
17977         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17978         argument-list '('s, and after one comma.
17979
17980 2010-05-09  Bruno Haible  <bruno@clisp.org>
17981
17982         error: More reliable output on mingw.
17983         * lib/error.c: Include <windows.h>.
17984         (is_open): New function.
17985         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17986         defined.
17987
17988 2010-05-09  Bruno Haible  <bruno@clisp.org>
17989
17990         vasnprintf: Fix syntax errors in libintl build on mingw.
17991         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17992         pad_ourselves and prec_ourselves after use.
17993
17994 2010-05-08  Bruno Haible  <bruno@clisp.org>
17995
17996         * lib/config.charset: Update comments for Cygwin 1.7.
17997         * lib/localcharset.c: Likewise.
17998
17999 2010-05-07  Jim Meyering  <meyering@redhat.com>
18000
18001         init.sh: improve comments
18002         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18003         . "${srcdir=.}/init.sh"; path_prepend_ .
18004         Add a note about path_prepend_ and the alternative of using
18005         TESTS_ENVIRONMENT.
18006
18007 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18008
18009         exclude: Unescape hashed patterns in wildcard mode.
18010         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18011         to the hash list.
18012         * tests/test-exclude8.sh: New test case.
18013         * modules/exclude-tests: Add new test.
18014
18015 2010-05-05  Eric Blake  <eblake@redhat.com>
18016
18017         verify: automate tests
18018         * modules/verify-tests: New module.
18019         * tests/test-verify.sh: New file.
18020         * tests/test-verify.c: Guard each negative test with a unique id.
18021         Also avoid warning about unused left hand of comma expressions.
18022
18023 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18024
18025         Further improvements to verify.h, suggested by Eric Blake.
18026         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18027         the GL_* versions, to avoid collision with OpenGL.
18028         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18029         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18030         than testing merely whether it's defined.
18031
18032         Modify verify.h to pacify gcc -Wredundant_decls.
18033         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18034         These use the prefix "GL_" since they're likely to be useful elsewhere.
18035         We may need to break them out into a different .h file.
18036         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18037         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18038         of verify_function__.
18039
18040 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18041
18042         Tests for module pwrite.
18043         * modules/pwrite-tests: New file.
18044         * tests/test-pwrite.sh: New file.
18045         * tests/test-pwrite.c: New file.
18046
18047         New module pwrite.
18048         * lib/unistd.in.h (pwrite): New declaration.
18049         * lib/pwrite.c: New file, from glibc with modifications.
18050         * m4/pwrite.m4: New file.
18051         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18052         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18053         REPLACE_PWRITE.
18054         * modules/pwrite: New file.
18055         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18056         REPLACE_PWRITE.
18057         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18058         * doc/posix-functions/pwrite.texi: Mention the new module.
18059
18060 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18061
18062         pread: Update documentation.
18063         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18064
18065 2010-05-04  Eric Blake  <eblake@redhat.com>
18066
18067         docs: update cygwin progress
18068         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18069         this bug.
18070         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18071         Added in cygwin 1.7.2.
18072         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18073         Likewise.
18074         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18075         Likewise.
18076         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18077         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18078         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18079         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18080         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18081         Mention nproc module.
18082         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18083         bug in cygwin 1.7.5 addition.
18084         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18085         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18086         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18087         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18088         1.7.5.
18089         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18090         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18091         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18092         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18093         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18094         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18095         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18096         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18097         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18098         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18099         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18100         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18101         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18102         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18103         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18104         Likewise.
18105         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18106         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18107         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18108         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18109         Likewise.
18110         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18111         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18112         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18113         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18114         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18115         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18116         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18117         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18118         Likewise.
18119         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18120         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18121         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18122         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18123         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18124         Likewise.
18125         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18126         Likewise.
18127         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18128         Likewise.
18129         * doc/glibc-functions/xdrrec_endofrecord.texi
18130         (xdrrec_endofrecord): Likewise.
18131         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18132         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18133         Likewise.
18134         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18135         Likewise.
18136
18137 2010-05-04  Jim Meyering  <meyering@redhat.com>
18138
18139         gendocs.sh: make its "-s FILE" option more useful
18140         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18141         $PACKAGE to reflect the probably-different basename of "FILE".
18142
18143 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18144
18145         bootstrap: don't ignore download_po_files failure
18146         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18147         failure.
18148
18149 2010-05-03  Jim Meyering  <meyering@redhat.com>
18150
18151         maint.mk: allow to pass options to gendocs.sh
18152         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18153         (gendocs_options_): New overridable variable.
18154
18155         gnu-web-doc-update: don't ignore configure or build failure
18156         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18157
18158         announce-gen: backslash-escape '@'s in --help output
18159         * build-aux/announce-gen: Fix syntax errors.
18160
18161         maint.mk, announce-gen: allow project-specific announcement mail headers
18162         * top/maint.mk (translation_project_): Define default.
18163         (announcement_Cc_, announcement_mail_headers_): Likewise.
18164         (announcement): Invoke announce-gen with new --mail-headers option.
18165         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18166
18167         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18168         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18169         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18170         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18171         line in the "err2" output file when running "make check" in verbose
18172         mode (i.e., with set -x enabled).
18173
18174 2010-05-03  Bruno Haible  <bruno@clisp.org>
18175
18176         wctob: Fix for weird platforms.
18177         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18178         argument value.
18179
18180 2010-05-03  Jim Meyering  <meyering@redhat.com>
18181
18182         maint.mk: prohibit unwarranted use of <strings.h>
18183         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18184         strings.h in a file that does not also use strcasecmp, strncasecmp,
18185         ffs or ffsll.
18186
18187         maint.mk: remove obsolete comments
18188         * top/maint.mk: Remove stale, commented-out rules.
18189
18190 2010-05-02  Bruno Haible  <bruno@clisp.org>
18191
18192         wcwidth: Declare also when it's aliased.
18193         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18194         macro.
18195
18196 2010-05-02  Bruno Haible  <bruno@clisp.org>
18197
18198         Fix regression from 2010-04-25.
18199         * gnulib-tool (func_modules_transitive_closure): Check the status of
18200         all modules, not only of the tests that are of the form foo-tests where
18201         foo is a module.
18202
18203 2010-05-02  Bruno Haible  <bruno@clisp.org>
18204
18205         wctob: Work around nasty Cygwin 1.7.2 bug.
18206         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18207         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18208
18209 2010-05-01  Bruno Haible  <bruno@clisp.org>
18210
18211         fpurge: Sharper test.
18212         * tests/test-fpurge.c (main): Add one more ftell check.
18213         * modules/fpurge-tests (Depends-on): Add ftell.
18214         Suggested by Eric Blake.
18215
18216 2010-05-01  Bruno Haible  <bruno@clisp.org>
18217
18218         ftello: Another test.
18219         * tests/test-ftello3.c: New file.
18220         * modules/ftello-tests (Files): Add it.
18221         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18222         MOSTLYCLEANFILES.
18223
18224         ftell: Another test.
18225         * tests/test-ftell3.c: New file.
18226         * modules/ftell-tests (Files): Add it.
18227         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18228         MOSTLYCLEANFILES.
18229
18230 2010-05-01  Bruno Haible  <bruno@clisp.org>
18231
18232         ftell, ftello: Work around Solaris bug.
18233         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18234         * lib/ftello.c: Include stdio-impl.h.
18235         (ftello): On Solaris, when _IOWRT is set, compute the result without
18236         looking at _IOREAD.
18237         * modules/ftello (Files): Add lib/stdio-impl.h.
18238         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18239         * doc/posix-functions/ftello.texi: Likewise.
18240         Reported by Eric Blake.
18241
18242 2010-05-01  Bruno Haible  <bruno@clisp.org>
18243
18244         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18245         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18246         the _IOWRT flag is also set.
18247
18248 2010-05-01  Bruno Haible  <bruno@clisp.org>
18249
18250         Fix doc about a HP-UX stdio bug.
18251         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18252         * doc/posix-functions/ftello.texi: Likewise.
18253
18254 2010-05-01  Bruno Haible  <bruno@clisp.org>
18255
18256         lseek test: Fix failure on Solaris.
18257         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18258         output.
18259
18260 2010-04-30  Jim Meyering  <meyering@redhat.com>
18261
18262         bootstrap: don't ignore failure to generate po*/Makevars
18263         * build-aux/bootstrap (with_gettext): Don't ignore failure
18264         to create po/Makevars or runtime-po/Makevars.
18265
18266 2010-04-29  Eric Blake  <eblake@redhat.com>
18267
18268         headers: relax license to LGPLv2+
18269         * modules/fcntl-h (License): Relax license.
18270         * modules/getopt-posix (License): Likewise.
18271         * modules/locale (License): Likewise.
18272         * modules/math (License): Likewise.
18273         * modules/pty (License): Likewise.
18274         * modules/sched (License): Likewise.
18275         * modules/search (License): Likewise.
18276         * modules/spawn (License): Likewise.
18277         * modules/stdarg (License): Likewise.
18278         * modules/sysexits (License): Likewise.
18279
18280 2010-04-29  Jim Meyering  <meyering@redhat.com>
18281
18282         inttypes: relax license to LGPLv2+
18283         * modules/inttypes (License): Relax license.
18284
18285 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18286
18287         * top/maint.mk (indent): Run twice to produce idempotent results.
18288
18289 2010-04-28  Bruno Haible  <bruno@clisp.org>
18290
18291         getdate: Generate getdate.c in the source directory.
18292         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18293         MOSTLYCLEANFILES.
18294         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18295
18296 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18297
18298         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18299         is not declared as a const *; avoid warnings in that case.
18300
18301 2010-04-28  Eric Blake  <eblake@redhat.com>
18302
18303         canonicalize-lgpl: avoid compiler warning
18304         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18305         declaration' / 'extraneous semicolon' warning with some compilers.
18306         Reported by Andreas Gruenbacher.
18307
18308 2010-04-28  Jim Meyering  <meyering@redhat.com>
18309
18310         init.sh: ensure a more reliable exit status when exiting via trap
18311         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18312         Inspired by patches from Dmitry V. Levin.
18313         Also trap on signal 3 (SIGQUIT).
18314
18315 2010-04-27  Bruno Haible  <bruno@clisp.org>
18316
18317         Update doc about utimes().
18318         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18319         'utimens' module.
18320         Reported by Andreas Gruenbacher <agruen@suse.de>.
18321
18322 2010-04-27  Eric Blake  <eblake@redhat.com>
18323
18324         full-read, full-write: relax license
18325         * modules/full-read (License): Drop to LGPLv2+.
18326         * modules/full-write (License): Likewise.
18327         * modules/safe-read (License): Likewise.
18328         * modules/safe-write (License): Likewise.
18329
18330         pthread: mention library for linking
18331         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18332
18333 2010-04-27  Jim Meyering  <meyering@redhat.com>
18334
18335         maint.mk: fix a bug introduced in last change
18336         * top/maint.mk (gl_assured_headers_): Now that all names are on
18337         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18338         is not anchored to end of word, it should be adequate.
18339
18340         maint.mk: avoid side-effect in latest syntax-check
18341         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18342         to run commands via $(shell...), and hence to incur cost only when
18343         the new rule is actually run.
18344
18345         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18346         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18347         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18348         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18349         (gl_assured_headers_, az_, AZ_): Define.
18350         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18351
18352 2010-04-26  Jim Meyering  <jim@meyering.net>
18353             Bruno Haible  <bruno@clisp.org>
18354
18355         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18356         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18357         Prompted by an exchange with Gilles Espinasse.
18358
18359 2010-04-26  Jim Meyering  <meyering@redhat.com>
18360
18361         git-version-gen: aesthetic tweak
18362         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18363         so that the command remains on a single line.
18364
18365 2010-04-26  Eric Blake  <eblake@redhat.com>
18366
18367         git-version-gen: allow use on EBCDIC hosts
18368         * build-aux/git-version-gen (dirty): Use literal rather than tying
18369         ourselves to ascii.
18370         Reported by Steve Goetze.
18371
18372 2010-04-25  Bruno Haible  <bruno@clisp.org>
18373
18374         netdb: Add support for GNULIB_POSIXCHECK.
18375         * lib/netdb.in.h: Include warn-on-use.h.
18376         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18377         functions are used when GNULIB_POSIXCHECK is defined and the
18378         getaddrinfo module is not in use.
18379         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18380         freeaddrinfo, gai_strerror, getnameinfo are declared.
18381         * modules/netdb (Depends-on): Add warn-on-use.
18382         (Makefile.am): Include warn-on-use.h in netdb.h.
18383
18384 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18385
18386         build: avoid "make check" failure without .git/ directory
18387         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18388         there is no .git/ directory.
18389
18390 2010-04-25  Bruno Haible  <bruno@clisp.org>
18391
18392         ptsname: Fix misuse of ttyname_r.
18393         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18394         of errno.
18395
18396 2010-04-25  Bruno Haible  <bruno@clisp.org>
18397
18398         ttyname_r: Make it work on Solaris 10.
18399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18400         if the system function has the POSIX declaration. Test whether the
18401         function fails if the buffer is less than 128 bytes large.
18402         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18403         system's ttyname_r function. Provide a reasonably large buffer.
18404         * modules/ttyname_r (Depends-on): Add extensions.
18405         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18406
18407 2010-04-25  Bruno Haible  <bruno@clisp.org>
18408
18409         Use the 'extensions' module for some more functions on Solaris.
18410         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18411         module.
18412         * doc/posix-functions/ctime_r.texi: Likewise.
18413         * doc/posix-functions/getgrgid_r.texi: Likewise.
18414         * doc/posix-functions/getgrnam_r.texi: Likewise.
18415         * doc/posix-functions/getpwnam_r.texi: Likewise.
18416         * doc/posix-functions/getpwuid_r.texi: Likewise.
18417         * doc/posix-functions/readdir_r.texi: Likewise.
18418         * doc/posix-functions/sigwait.texi: Likewise.
18419         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18420         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18421
18422 2010-04-25  Bruno Haible  <bruno@clisp.org>
18423
18424         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18425         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18426         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18427         * lib/ttyname_r.c: Include <limits.h>.
18428         (ttyname_r): Define using the system's ttyname_r function, if it exists
18429         and not on Solaris.
18430         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18431         set.
18432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18433         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18434         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18435         Reported by Simon Josefsson.
18436
18437 2010-04-25  Bruno Haible  <bruno@clisp.org>
18438
18439         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18440         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18441         * doc/posix-functions/ctime_r.texi: Likewise.
18442         * doc/posix-functions/getgrgid_r.texi: Likewise.
18443         * doc/posix-functions/getgrnam_r.texi: Likewise.
18444         * doc/posix-functions/getlogin_r.texi: Likewise.
18445         * doc/posix-functions/getpwnam_r.texi: Likewise.
18446         * doc/posix-functions/getpwuid_r.texi: Likewise.
18447         * doc/posix-functions/readdir_r.texi: Likewise.
18448         * doc/posix-functions/sigwait.texi: Likewise.
18449         * doc/posix-functions/ttyname_r.texi: Likewise.
18450         Reported by Simon Josefsson.
18451
18452 2010-04-25  Bruno Haible  <bruno@clisp.org>
18453
18454         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18455         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18456         also to --create-testdir.
18457         (func_acceptable): Don't consider the status of *-tests modules here.
18458         (func_modules_transitive_closure): Consider it here, before including a
18459         test module.
18460         (func_import, func_create_testdir): Set inc_all_direct_tests,
18461         inc_all_indirect_tests.
18462         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18463         --create-testdir and --create-megatestdir.
18464
18465 2010-04-25  Bruno Haible  <bruno@clisp.org>
18466
18467         gnulib-tool: Add --without-*-tests options.
18468         * gnulib-tool (func_usage): Document the --without-*-tests options.
18469         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18470         excl_unportable_tests): New variables.
18471         Fail if they are specified with --import or --update.
18472         (func_acceptable): Respect the excl_*_tests variables.
18473         (func_import): Set the excl_*_tests variables to empty.
18474
18475 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18476             Bruno Haible  <bruno@clisp.org>
18477
18478         Work around a MacOS X 10.4 bug with openpty.
18479         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18480         * tests/test-openpty.c (main): Close the master side explicitly.
18481
18482 2010-04-25  Bruno Haible  <bruno@clisp.org>
18483
18484         strnlen: Fix a C++ test error on MacOS X and Solaris.
18485         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18486         the function is not declared.
18487         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18488         Simon Josefsson.
18489
18490 2010-04-24  Bruno Haible  <bruno@clisp.org>
18491
18492         Avoid a gcc warning.
18493         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18494         of correct type for %08lx directive.
18495         Reported by Eric Blake.
18496
18497 2010-04-24  Bruno Haible  <bruno@clisp.org>
18498
18499         vasnprintf: Correct errno value in case of out-of-memory.
18500         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18501         or sprintf. Use the errno value from SNPRINTF or sprintf.
18502         Reported by Ian Beckwith <ianb@erislabs.net>.
18503
18504 2010-04-24  Bruno Haible  <bruno@clisp.org>
18505
18506         ansi-c++-opt: Find correct compiler when cross-compiling.
18507         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18508         AC_CHECK_PROGS.
18509         Reported by Simon Josefsson.
18510
18511 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18512
18513         vc-list-files: Add support for subversion
18514         * build-aux/vc-list-files: Use "svn list" to generate the list of
18515         files controlled by subversion.
18516
18517 2010-04-23  Jim Meyering  <meyering@redhat.com>
18518
18519         vc-list-files tests: convert to use init.sh
18520         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18521         path_prepend_.
18522         Use Exit, not exit.
18523         Use skip_ rather than open coding it.
18524         Remove trap set-up and compare definitions.
18525         * tests/test-vc-list-files-git.sh: Likewise.
18526         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18527
18528 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18529
18530         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18531         backup files.
18532
18533 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18534
18535         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18536
18537 2010-04-20  Eric Blake  <eblake@redhat.com>
18538
18539         tests: be robust to ignored SIGPIPE
18540         * tests/test-select-in.sh: Consume all output.
18541         * tests/test-lseek.sh: Check correct exit status, while avoiding
18542         EPIPE.
18543
18544 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18545             Bruno Haible  <bruno@clisp.org>
18546
18547         visibility: Don't use -fvisibility if it leads to a warning.
18548         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18549         yes, don't pretend that visibility works if it leads to a warning.
18550         Reported by Mike Gran <spk121@yahoo.com>.
18551
18552 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18553
18554         * build-aux/bootstrap: Use "git -h" for testing for supported options
18555         instead of "git --help".  The short-form option only shows a summary,
18556         and doesn't layout the full man page.  Grep for the full option name
18557         in the summary, too.
18558
18559 2010-04-19  Bruno Haible  <bruno@clisp.org>
18560
18561         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18562         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18563         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18564         mention of RELOCATABLE_STRIP.
18565         Reported by Sylvain Beucler <beuc@beuc.net>.
18566
18567 2010-04-19  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/diffseq.h: Fix typo in comment.
18570         Reported by Eric Blake.
18571
18572 2010-04-19  Bruno Haible  <bruno@clisp.org>
18573
18574         ioctl: Move autoconf macro to a .m4 file.
18575         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18576         * modules/ioctl (Files): Add it.
18577         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18578         Reported by Ian Beckwith <ianb@erislabs.net>.
18579
18580 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18581             Bruno Haible  <bruno@clisp.org>
18582
18583         diffseq: Accommodate use-case with abstract arrays.
18584         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18585         is not defined.
18586         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18587         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18588
18589 2010-04-18  Bruno Haible  <bruno@clisp.org>
18590
18591         * doc/posix-headers/stdbool.texi: More precise wording.
18592
18593 2010-04-17  Jim Meyering  <meyering@redhat.com>
18594
18595         maint.mk: use gnu-style indentation in an embedded perl script
18596         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18597         Rename variable: s/two/last_two_bytes/
18598
18599 2010-04-16  Eric Blake  <eblake@redhat.com>
18600
18601         test-stdbool: skip test that fails with Solaris CC
18602         * tests/test-stdbool.c (f): Skip test that causes compilation
18603         error under buggy C++ compiler.
18604         * lib/stdbool.in.h: Document the limitation.
18605         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18606
18607         setenv: allow compilation with C++
18608         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18609         register keyword.
18610
18611         stdint: allow test to pass with C++
18612         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18613
18614         getopt: allow compilation with C++
18615         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18616         struct.
18617         * lib/getopt.c (_getopt_internal_r): Use correct type.
18618         Reported by Dagobert Michelson, via Joel E. Denny.
18619
18620 2010-04-16  Bruno Haible  <bruno@clisp.org>
18621
18622         Override netdb.h always.
18623         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18624         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18625         Reported by Ludovic Courtès <ludo@gnu.org>.
18626
18627 2010-04-15  Bruno Haible  <bruno@clisp.org>
18628
18629         openpty: Fix mistake from 2010-03-21.
18630         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18631         Reported by Simon Josefsson.
18632
18633 2010-04-15  Eric Blake  <eblake@redhat.com>
18634
18635         test-forkpty: fix expected signature
18636         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18637         Reported by Simon Josefsson.
18638
18639 2010-04-15  Jim Meyering  <meyering@redhat.com>
18640
18641         maint.mk: texinfo_suffix_re_: correct the default regexp
18642         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18643
18644         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18645         make it configurable via texinfo_suffix_re_.
18646
18647 2010-04-14  Eric Blake  <eblake@redhat.com>
18648
18649         strtok_r: relax license to LGPLv2+
18650         * modules/strtok_r (License): Relax license.
18651         Reported by Matthias Bolte.
18652
18653 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18654
18655         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18656         version 1.4.4 by default instead of requiring the libgcrypt
18657         version used during build.  This makes it possible to use the
18658         application with older but still binary compatible libgcrypt
18659         versions.
18660
18661 2010-04-13  Eric Blake  <eblake@redhat.com>
18662
18663         getopt-gnu: match recent glibc fixes and posix ruling
18664         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18665         '+' handling, when requesting extensions.
18666         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18667         'W;' handling.
18668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18669         * doc/posix-functions/getopt.texi (getopt): Document this.
18670         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18671         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18672         Likewise.
18673
18674         getopt: merge bug fixes from glibc
18675         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18676         diagnostics.  Honor '+:' correctly.  Reject ';'.
18677
18678         getopt-posix: detect MacOS bug
18679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18680         optind when missing a required argument.
18681         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18682         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18683         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18684         Likewise.
18685
18686         getopt-posix: avoid spurious failure on Solaris
18687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18688         an indicator that setting optind=1 is sufficient for reset.
18689
18690         getopt-posix: avoid spurious failure on FreeBSD
18691         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18692         in POSIX mode, since the m4 test uses it.
18693
18694         gnulib-tool: silence warning on BSD sh
18695         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18696
18697 2010-04-13  Jim Meyering  <meyering@redhat.com>
18698
18699         doc: users.txt: GNU patch now uses gnulib
18700         * users.txt: Add patch.
18701
18702 2010-04-12  Jim Meyering  <meyering@redhat.com>
18703
18704         maint.mk: generate more concise timing data for syntax-check rules
18705         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18706         " done" from each line that reports a syntax-check test duration.
18707
18708 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18709
18710         git-version-gen: use "git update-index..." rather than "git status"
18711         * build-aux/git-version-gen: Use git update-index --refresh, not
18712         "git status".  With some versions of git, "git status" would fail
18713         to update the index and result in an unwarranted "-dirty" suffix.
18714
18715 2010-04-11  Jim Meyering  <meyering@redhat.com>
18716
18717         openat: correct formatting (no semantic change)
18718         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18719         Suggested by Bruno Haible.
18720
18721 2010-04-11  Bruno Haible  <bruno@clisp.org>
18722
18723         Stricter declaration checking in testdirs.
18724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18725         If for_tests is true, augment AM_CPPFLAGS to define
18726         GNULIB_STRICT_CHECKING.
18727         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18728         GNULIB_STRICT_CHECKING is defined, verify that the function is
18729         declared.
18730
18731 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18732             Bruno Haible  <bruno@clisp.org>
18733
18734         libunistring: Improve configure output.
18735         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18736         Don't say "consider installing GNU libunistring" when checking again
18737         with libiconv.
18738
18739 2010-04-11  Bruno Haible  <bruno@clisp.org>
18740
18741         libunistring: Correct value of $LTLIBUNISTRING.
18742         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18743         correct the value of $LTLIBUNISTRING.
18744
18745 2010-04-11  Bruno Haible  <bruno@clisp.org>
18746
18747         havelib: Add static libraries to LIBS in the right order.
18748         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18749         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18750
18751 2010-04-11  Bruno Haible  <bruno@clisp.org>
18752
18753         libunistring: Detect libunistring also when it depends on libiconv.
18754         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18755         the second AC_LIB_HAVE_LINKFLAGS invocation.
18756
18757 2010-04-11  James Youngman  <jay@gnu.org>
18758
18759         close-stream: declare local scalars to be "const"
18760         * lib/close-stream.c (close_stream): Make boolean variables const
18761         to document the fact that we set but do not change them.
18762
18763 2010-04-11  Bruno Haible  <bruno@clisp.org>
18764
18765         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18766
18767 2010-04-11  Jim Meyering  <meyering@redhat.com>
18768
18769         maint.mk: don't include dist-check.mk
18770         * top/maint.mk: Remove bogus include directive.
18771
18772         maint.mk: improve empty-line-at-EOF check
18773         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18774         solution, rather than tail+Perl-based one.  The latter would read
18775         a few kilobytes from the end of each file, and did not handle empty
18776         files properly.
18777
18778         maint.mk: print the elapsed time for each syntax-check rule
18779         * top/maint.mk (sc_m_rules_): Save start time in a file.
18780         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18781         (local-check): Interpose the .z rules
18782
18783 2010-04-11  Jim Meyering  <meyering@redhat.com>
18784
18785         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18786         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18787         empty file with one that ends in an empty line.
18788
18789 2010-04-10  Bruno Haible  <bruno@clisp.org>
18790
18791         mkdir: Make it work on mingw64.
18792         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18793         * lib/mkdir.c: Update comment.
18794         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18795
18796 2010-04-10  Bruno Haible  <bruno@clisp.org>
18797
18798         Don't override improved macro from newer autoconf.
18799         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18800         autoconf >= 2.62.
18801         Reported by Joel E. Denny <jdenny@clemson.edu>.
18802
18803 2010-04-10  Jim Meyering  <meyering@redhat.com>
18804
18805         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18806         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18807
18808         maint.mk: correct a diagnostic
18809         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18810         in diagnostic; now use $prohibit.
18811
18812 2010-04-10  Bruno Haible  <address@hidden>
18813
18814         fchownat: Fix a C++ test error on Solaris 8.
18815         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18816         the function does not exist.
18817
18818 2010-04-10  Bruno Haible  <bruno@clisp.org>
18819
18820         vasnprintf: Add more tests.
18821         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18822         (test_function): Test converting an invalid wide string.
18823
18824         vasnprintf: Correct handling of unconvertible wide string arguments.
18825         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18826         VASNPRINTF.
18827         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18828         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18829         smaller than the expected maximum need for the directive. Set errno to
18830         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18831         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18833         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18834         * modules/vasnprintf (Files): Add m4/printf.m4.
18835         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18836
18837 2010-04-10  Bruno Haible  <bruno@clisp.org>
18838
18839         vasnprintf: Fix crash in %ls directive.
18840         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18841         string is passed as argument to %ls, with no precision and no width.
18842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18843
18844 2010-04-10  Bruno Haible  <bruno@clisp.org>
18845
18846         vasnprintf: Fix multiple test failures on mingw.
18847         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18848         _snprintf, or snwprintf, not _snwprintf.
18849
18850 2010-04-10  Bruno Haible  <bruno@clisp.org>
18851
18852         write: Fix a C++ test error on mingw.
18853         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18854
18855 2010-04-10  Bruno Haible  <bruno@clisp.org>
18856
18857         vasnprintf test: Reduce code duplication.
18858         * tests/test-vasnprintf.c (test_function): New function, extracted from
18859         test_vasnprintf.
18860         (test_vasnprintf, test_asnprintf): Invoke it.
18861
18862 2010-04-10  Bruno Haible  <bruno@clisp.org>
18863
18864         strnlen: Fix warning in C++ mode on MacOS X.
18865         * lib/string.in.h (strnlen): Use the modern idiom.
18866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18867         defining strnlen as a macro already in <config.h>.
18868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18869         REPLACE_STRNLEN.
18870         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18871         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18872
18873 2010-04-08  James Youngman  <jay@gnu.org>
18874
18875         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18876         the example.
18877
18878 2010-04-09  Jim Meyering  <meyering@redhat.com>
18879
18880         maint.mk: print better diagnostic when there is no $(_hv_file)
18881         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18882         announce that when $(_hv_file) (aka help-version) does not exist.
18883
18884         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18885         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18886         not try to interpret its random input bytes.  Jarno Rajahalme reported
18887         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18888         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18889         (mktempd_): Likewise, just in case.
18890
18891         ftruncate: add two years to projected module removal date: 2012
18892         * m4/ftruncate.m4: Adjust comments.
18893
18894         ftruncate: mark module as obsolete; even MinGW provides it, now
18895         * modules/ftruncate (Status): Obsolete.
18896         (Notice): Say that.
18897         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18899
18900 2010-04-08  Bruno Haible  <bruno@clisp.org>
18901
18902         Fix side effects from tests-related modules.
18903         * modules/dprintf-posix (Comment): New section.
18904         * modules/fprintf-posix (Comment): Likewise.
18905         * modules/obstack-printf-posix (Comment): Likewise.
18906         * modules/printf-posix (Comment): Likewise.
18907         * modules/snprintf-posix (Comment): Likewise.
18908         * modules/sprintf-posix (Comment): Likewise.
18909         * modules/vasnprintf-posix (Comment): Likewise.
18910         * modules/vasprintf-posix (Comment): Likewise.
18911         * modules/vdprintf-posix (Comment): Likewise.
18912         * modules/vfprintf-posix (Comment): Likewise.
18913         * modules/vprintf-posix (Comment): Likewise.
18914         * modules/vsnprintf-posix (Comment): Likewise.
18915         * modules/vsprintf-posix (Comment): Likewise.
18916         * modules/xprintf-posix (Comment): Likewise.
18917         * modules/xvasprintf-posix (Comment): Likewise.
18918         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18919         * modules/floorf-tests (Depends-on): Likewise.
18920         * modules/round-tests (Depends-on): Likewise.
18921         * modules/roundf-tests (Depends-on): Likewise.
18922         * modules/trunc-tests (Depends-on): Likewise.
18923         * modules/truncf-tests (Depends-on): Likewise.
18924         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18925         'fprintf-posix' module is not present.
18926         * tests/test-floorf2.c (check): Likewise.
18927         * tests/test-trunc2.c (check): Likewise.
18928         * tests/test-truncf2.c (check): Likewise.
18929         * tests/test-round2.c (equal): Likewise.
18930         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18931
18932 2010-04-07  Karl Berry  <karl@gnu.org>
18933
18934         * config/srclist.txt,
18935         * config/srclistvars.sh,
18936         * config/srclist-update: doc fixes.
18937
18938 2010-04-07  Jim Meyering  <meyering@redhat.com>
18939
18940         maint.mk: add a PATH crosschecking syntax-check rule
18941         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18942         Useful if you use a test like the one in help-version (coreutils,
18943         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18944         printed by prog --version.
18945
18946 2010-04-06  Bruno Haible  <bruno@clisp.org>
18947
18948         Fix link error on mingw.
18949         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18950         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18951
18952 2010-04-06  Bruno Haible  <bruno@clisp.org>
18953
18954         Assume rmdir exists.
18955         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18956
18957 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18958
18959         doc: update users.txt
18960         * users.txt: Add gcal.
18961
18962 2010-04-06  Jim Meyering  <meyering@redhat.com>
18963
18964         init.sh: simply unset TMPDIR rather than risking env -i
18965         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18966         although it probably works fine on all Unix-based systems, some
18967         systems (Cygwin?) cannot tolerate a totally cleared environment.
18968         Suggestion from Eric Blake.
18969
18970 2010-04-06  Jim Meyering  <meyering@redhat.com>
18971
18972         init.sh: portability fix: use env's POSIX-specified -i option not -u
18973         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18974         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18975
18976 2010-04-05  Bruno Haible  <bruno@clisp.org>
18977
18978         btowc: Work around Cygwin 1.7.2 bug.
18979         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18980         does not map NUL to 0.
18981         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18982
18983 2010-04-05  Bruno Haible  <bruno@clisp.org>
18984
18985         Make the multithread modules work on Cygwin 1.7.2.
18986         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18987         imported symbols can be declared weak, so that it returns "no" on
18988         Cygwin 1.7.2.
18989
18990 2010-04-05  Bruno Haible  <bruno@clisp.org>
18991
18992         Use the module 'strncat'.
18993         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18994
18995         Tests for module 'strncat'.
18996         * modules/strncat-tests: New file.
18997         * tests/test-strncat.c: New file.
18998
18999         New module 'strncat'.
19000         * lib/string.in.h (strncat): New declaration.
19001         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19002         * m4/strncat.m4: New file, based on m4/memchr.m4.
19003         * modules/strncat: New file.
19004         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19005         is declared.
19006         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19007         REPLACE_STRNCAT.
19008         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19009         REPLACE_STRNCAT.
19010         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19011         module.
19012         * tests/test-string-c++.cc: Check signature of strncat.
19013
19014 2010-04-05  Jim Meyering  <meyering@redhat.com>
19015
19016         xstrtoumax-tests: convert to use init.sh
19017         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19018         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19019         Use Exit, not exit.
19020         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19021
19022         xstrtoimax-tests: convert to use init.sh
19023         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19024         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19025         Use Exit, not exit.
19026         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19027
19028 2010-04-05  Bruno Haible  <bruno@clisp.org>
19029
19030         sys_socket: Avoid #define replacements in C++ mode.
19031         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19032         warning to the function if possible, rather than #defining the symbol
19033         to a dysfunctional alias.
19034
19035 2010-04-05  Bruno Haible  <bruno@clisp.org>
19036
19037         fseeko: Fix C++ test error on mingw.
19038         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19039         gl_FUNC_FSEEKO.
19040         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19041         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19043         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19044
19045 2010-04-05  Bruno Haible  <bruno@clisp.org>
19046
19047         duplocale: Improve test output.
19048         * tests/test-duplocale.c (main): Print reason for skipped test.
19049
19050 2010-04-05  Bruno Haible  <bruno@clisp.org>
19051
19052         Assume rmdir exists.
19053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19054         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19055
19056 2010-04-05  Bruno Haible  <bruno@clisp.org>
19057
19058         Fix link error on Solaris 8 with cc.
19059         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19060
19061 2010-04-05  Bruno Haible  <bruno@clisp.org>
19062
19063         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19064         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19065
19066 2010-04-05  Bruno Haible  <bruno@clisp.org>
19067
19068         vasprintf: Update documentation.
19069         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19070
19071 2010-04-05  Bruno Haible  <bruno@clisp.org>
19072
19073         ptsname: Improve test.
19074         * tests/test-ptsname.c (main): Also try the various master names of BSD
19075         systems.
19076
19077 2010-04-05  Bruno Haible  <bruno@clisp.org>
19078
19079         memchr: Avoid a possible C++ test error.
19080         * lib/string.in.h (memchr): Provide declaration if function is missing.
19081         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19082         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19084         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19085
19086 2010-04-05  Bruno Haible  <bruno@clisp.org>
19087
19088         strtok_r: Improve idiom.
19089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19090         AC_LIBOBJ is used.
19091
19092 2010-04-05  Bruno Haible  <bruno@clisp.org>
19093
19094         strdup: Improve idiom.
19095         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19096         AC_LIBOBJ is used.
19097         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19098         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19099         when AC_LIBOBJ is used.
19100
19101 2010-04-05  Bruno Haible  <bruno@clisp.org>
19102
19103         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19104         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19105         don't set REPLACE_MBSINIT to 1.
19106         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19107         don't set REPLACE_MBRTOWC to 1.
19108         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19109         exist, don't set REPLACE_MBSRTOWCS to 1.
19110         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19111         exist, don't set REPLACE_MBSNRTOWCS to 1.
19112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19113         don't set REPLACE_WCRTOMB to 1.
19114         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19115         exist, don't set REPLACE_WCSRTOMBS to 1.
19116         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19117         exist, don't set REPLACE_WCSNRTOMBS to 1.
19118
19119 2010-04-05  Bruno Haible  <bruno@clisp.org>
19120
19121         ldexpl: Improve idiom.
19122         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19123         make sure to set HAVE_DECL_LDEXPL to 0.
19124
19125 2010-04-05  Jim Meyering  <meyering@redhat.com>
19126
19127         xstrtol-tests: convert to use init.sh
19128         * modules/xstrtol-tests (Files): Add tests/init.sh.
19129         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19130         Use Exit, not exit.
19131         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19132
19133         atexit-tests: convert to use init.sh
19134         * modules/atexit-tests (Files): Add tests/init.sh.
19135         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19136         Use Exit, not exit.
19137         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19138
19139         init.sh: fix typo
19140         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19141
19142         init.sh: make it easier for a test script to write to the tty, ...
19143         when using automake's parallel-tests mode.
19144         * tests/init.sh (stderr_fileno_): Define overridable variable.
19145         (warn_): New function, to use it.
19146         (fail_, skip_, framework_failure_): Use warn_.
19147
19148 2010-04-04  Bruno Haible  <bruno@clisp.org>
19149
19150         btowc: Avoid warning.
19151         * lib/btowc.c: Include <stdlib.h>.
19152         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19153
19154 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19155             Bruno Haible  <bruno@clisp.org>
19156
19157         wchar: Port to NetBSD 1.5.
19158         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19159         * lib/wctype.in.h (WEOF): Likewise.
19160
19161 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19162             Bruno Haible  <bruno@clisp.org>
19163
19164         Port extended stdio to NetBSD 1.5.
19165         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19166         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19167         older.
19168
19169 2010-04-04  Bruno Haible  <bruno@clisp.org>
19170
19171         string: Remove unused substitution.
19172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19173         HAVE_DECL_STRERROR.
19174         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19175
19176 2010-04-04  Bruno Haible  <bruno@clisp.org>
19177
19178         strtod: Avoid a possible C++ test error.
19179         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19180         set REPLACE_STRTOD.
19181
19182 2010-04-04  Bruno Haible  <bruno@clisp.org>
19183
19184         strerror: Update documentation.
19185         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19186
19187 2010-04-04  Bruno Haible  <bruno@clisp.org>
19188
19189         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19190         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19191         _GL_CXXALIAS_SYS_CAST.
19192
19193 2010-04-04  Bruno Haible  <bruno@clisp.org>
19194
19195         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19196         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19197         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19198         REPLACE_FREXPL to 1.
19199         * doc/posix-functions/frexpl.texi: Update documentation.
19200
19201 2010-04-04  Bruno Haible  <bruno@clisp.org>
19202
19203         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19204         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19205
19206 2010-04-04  Bruno Haible  <bruno@clisp.org>
19207
19208         Implement nanosleep for native Windows.
19209         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19210
19211 2010-04-04  Bruno Haible  <bruno@clisp.org>
19212
19213         math: Fix some C++ test errors on Solaris 8.
19214         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19215
19216 2010-04-04  Bruno Haible  <bruno@clisp.org>
19217
19218         math: Fix some C++ test errors on Cygwin.
19219         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19220         truncl): Provide declaration if the system does not have it.
19221         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19222         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19223         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19224         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19225         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19226         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19227         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19228         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19229         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19230         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19231         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19232         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19233         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19234         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19235         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19236         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19238         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19239         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19240         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19241         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19242         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19243
19244 2010-04-04  Bruno Haible  <bruno@clisp.org>
19245
19246         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19247         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19248         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19249         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19250         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19251         * m4/isinf.m4 (gl_ISINF): Likewise.
19252         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19253
19254 2010-04-04  Bruno Haible  <bruno@clisp.org>
19255
19256         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19257         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19258
19259 2010-04-04  Bruno Haible  <bruno@clisp.org>
19260
19261         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19262         * modules/tmpfile (configure.ac): Update.
19263
19264         tmpfile: Fix C++ test error on mingw.
19265         * lib/stdio.in.h (tmpfile): New declaration.
19266         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19267         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19268         * modules/tmpfile (Depends-on): Add stdio.
19269         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19270         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19272         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19273         REPLACE_TMPFILE.
19274         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19275
19276 2010-04-04  Bruno Haible  <bruno@clisp.org>
19277
19278         ioctl: Fix C++ test error on mingw.
19279         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19280         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19281         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19282
19283 2010-04-03  Bruno Haible  <bruno@clisp.org>
19284
19285         wcwidth: Fix C++ test error on mingw.
19286         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19288         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19289
19290 2010-04-03  Bruno Haible  <bruno@clisp.org>
19291
19292         nanosleep: Fix C++ test error on mingw.
19293         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19294         * lib/time.in.h (nanosleep): Use modern idiom.
19295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19296         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19297         REPLACE_NANOSLEEP to 1.
19298         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19299         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19300
19301 2010-04-03  Bruno Haible  <bruno@clisp.org>
19302
19303         strptime: Fix C++ test error on mingw.
19304         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19305         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19306         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19307         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19309         not REPLACE_STRPTIME.
19310         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19311         REPLACE_STRPTIME.
19312
19313 2010-04-03  Bruno Haible  <bruno@clisp.org>
19314
19315         timegm: Fix C++ test error on mingw.
19316         * lib/time.in.h (timegm): Use modern idiom.
19317         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19318         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19319         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19320         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19321
19322 2010-04-03  Bruno Haible  <bruno@clisp.org>
19323
19324         timegm: Assume declaration if function exists.
19325         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19326         if it exists. Don't clobber ac_cv_func_timegm.
19327
19328 2010-04-03  Bruno Haible  <bruno@clisp.org>
19329
19330         time_r: Fix C++ test error on mingw.
19331         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19332         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19333         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19334         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19335         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19336
19337 2010-04-03  Bruno Haible  <bruno@clisp.org>
19338
19339         time_r: Minor updates.
19340         * modules/time_r (Description): Mention the provided functions.
19341         * lib/time_r.c: Don't include <string.h>.
19342         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19343         * doc/posix-functions/localtime_r.texi: Likewise.
19344
19345 2010-04-03  Bruno Haible  <bruno@clisp.org>
19346
19347         time: Fix regression introduced on 2010-03-08.
19348         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19349         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19350
19351 2010-04-03  Jim Meyering  <meyering@redhat.com>
19352
19353         maint.mk: don't silently disable project-specific syntax-check rules
19354         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19355         that they need to convert their project-specific syntax-check rules
19356         to use the new _sc_search_regexp.
19357
19358 2010-04-03  Bruno Haible  <bruno@clisp.org>
19359
19360         fchdir: Fix regression introduced on 2010-03-08.
19361         * lib/unistd.in.h (fchdir): Fix declaration.
19362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19364         REPLACE_FCHDIR.
19365         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19366         REPLACE_FCHDIR.
19367
19368 2010-04-03  Bruno Haible  <bruno@clisp.org>
19369
19370         getpagesize: Fix C++ test error on mingw.
19371         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19372         system does not declare the function.
19373         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19374         declared.
19375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19376         HAVE_DECL_GETPAGESIZE.
19377         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19378
19379 2010-04-03  Bruno Haible  <bruno@clisp.org>
19380
19381         stdio: Make C++ tests work on mingw.
19382         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19383         does not declare the function.
19384
19385 2010-04-03  Bruno Haible  <bruno@clisp.org>
19386
19387         ftello: Fix C++ test error on mingw.
19388         * lib/stdio.in.h (ftello): Use modern idiom.
19389         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19390         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19391         is missing and that it needs to be replaced.
19392         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19394         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19395
19396 2010-04-03  Bruno Haible  <bruno@clisp.org>
19397
19398         fseeko: Fix C++ test error on mingw.
19399         * lib/stdio.in.h (fseeko): Use modern idiom.
19400         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19401         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19402         is missing and that it needs to be replaced.
19403         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19405         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19406
19407 2010-04-03  Bruno Haible  <bruno@clisp.org>
19408
19409         mkstemp: Fix C++ test error on mingw.
19410         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19412         function is missing and that it needs to be replaced.
19413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19414         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19415
19416 2010-04-03  Bruno Haible  <bruno@clisp.org>
19417
19418         stpncpy: Fix C++ test error on mingw.
19419         * lib/string.in.h (stpncpy): Use modern idiom.
19420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19421         function is missing and that it needs to be replaced.
19422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19423         REPLACE_STPNCPY.
19424         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19425
19426 2010-04-03  Bruno Haible  <bruno@clisp.org>
19427
19428         sys_stat: Fix C++ test error on mingw.
19429         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19430         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19431
19432 2010-04-03  Bruno Haible  <bruno@clisp.org>
19433
19434         pty: Update doc.
19435         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19436
19437 2010-04-03  Bruno Haible  <bruno@clisp.org>
19438
19439         unistd: Fix C++ test error on mingw.
19440         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19441
19442 2010-04-03  Bruno Haible  <bruno@clisp.org>
19443
19444         Update doc regarding mingw.
19445         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19446         * doc/glibc-functions/login_tty.texi: Likewise.
19447         * doc/glibc-functions/forkpty.texi: Likewise.
19448
19449 2010-04-03  Bruno Haible  <bruno@clisp.org>
19450
19451         stdlib: Avoid compilation failure of c-strtold on mingw.
19452         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19453
19454 2010-04-03  Bruno Haible  <bruno@clisp.org>
19455
19456         locale: Make C++ tests work on Cygwin and mingw.
19457         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19458         cannot provide the function.
19459         Reported by Simon Josefsson.
19460
19461 2010-04-03  Bruno Haible  <bruno@clisp.org>
19462
19463         localename: Port to MacOS X 10.6.
19464         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19465         memory layout of the locales in MacOS X 10.6 as well.
19466         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19467
19468 2010-04-02  Bruno Haible  <bruno@clisp.org>
19469
19470         gnulib-tool: Ensure that long-running tests are executed last.
19471         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19472         running tests after the one for the other tests.
19473
19474 2010-04-02  Bruno Haible  <bruno@clisp.org>
19475
19476         gnulib-tool: Ensure the tests in the main directory are executed first.
19477         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19478         start with the current directory.
19479
19480 2010-04-02  Bruno Haible  <bruno@clisp.org>
19481
19482         Tests for module 'havelib', moved here from GNU gettext.
19483         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19484         modifications.
19485         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19486         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19487         with modifications.
19488         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19489         modifications.
19490         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19491         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19492         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19493         with modifications.
19494         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19495         with modifications.
19496         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19497         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19498         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19499         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19500         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19501         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19502         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19503         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19504         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19505         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19506         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19507         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19508         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19509         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19510         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19511         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19512         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19513         with modifications.
19514         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19515         with modifications.
19516         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19517         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19518         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19519         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19520         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19521         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19522         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19523         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19524         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19525         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19526         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19527         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19528         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19529         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19530         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19531         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19532         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19533         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19534         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19535         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19536         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19537         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19538         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19539         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19540         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19541         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19542         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19543         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19544         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19545         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19546         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19547         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19548         * tests/havelib/rpathx/rpathx.c: New file, from
19549         gettext/autoconf-lib-link.
19550         * tests/havelib/rpathx/Makefile.am: New file, from
19551         gettext/autoconf-lib-link.
19552         * tests/havelib/rpathx/configure.ac: New file, from
19553         gettext/autoconf-lib-link with modifications.
19554         * tests/havelib/rpathy/rpathy.c: New file, from
19555         gettext/autoconf-lib-link.
19556         * tests/havelib/rpathy/Makefile.am: New file, from
19557         gettext/autoconf-lib-link.
19558         * tests/havelib/rpathy/configure.ac: New file, from
19559         gettext/autoconf-lib-link with modifications.
19560         * tests/havelib/rpathz/rpathz.c: New file, from
19561         gettext/autoconf-lib-link.
19562         * tests/havelib/rpathz/Makefile.am: New file, from
19563         gettext/autoconf-lib-link.
19564         * tests/havelib/rpathz/configure.ac: New file, from
19565         gettext/autoconf-lib-link with modifications.
19566         * tests/havelib/rpathlx/usex.c: New file, from
19567         gettext/autoconf-lib-link.
19568         * tests/havelib/rpathlx/Makefile.am: New file, from
19569         gettext/autoconf-lib-link.
19570         * tests/havelib/rpathlx/configure.ac: New file, from
19571         gettext/autoconf-lib-link with modifications.
19572         * tests/havelib/rpathly/usey.c: New file, from
19573         gettext/autoconf-lib-link.
19574         * tests/havelib/rpathly/Makefile.am: New file, from
19575         gettext/autoconf-lib-link.
19576         * tests/havelib/rpathly/configure.ac: New file, from
19577         gettext/autoconf-lib-link with modifications.
19578         * tests/havelib/rpathlz/usez.c: New file, from
19579         gettext/autoconf-lib-link.
19580         * tests/havelib/rpathlz/Makefile.am: New file, from
19581         gettext/autoconf-lib-link.
19582         * tests/havelib/rpathlz/configure.ac: New file, from
19583         gettext/autoconf-lib-link with modifications.
19584         * tests/havelib/rpathlyx/usey.c: New file, from
19585         gettext/autoconf-lib-link.
19586         * tests/havelib/rpathlyx/Makefile.am: New file, from
19587         gettext/autoconf-lib-link.
19588         * tests/havelib/rpathlyx/configure.ac: New file, from
19589         gettext/autoconf-lib-link with modifications.
19590         * tests/havelib/rpathlzyx/usez.c: New file, from
19591         gettext/autoconf-lib-link.
19592         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19593         gettext/autoconf-lib-link.
19594         * tests/havelib/rpathlzyx/configure.ac: New file, from
19595         gettext/autoconf-lib-link with modifications.
19596         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19597         with modifications.
19598
19599 2010-04-02  Bruno Haible  <bruno@clisp.org>
19600
19601         gnulib-tool: Create distributed built sources also for the tests.
19602         * gnulib-tool (func_create_testdir): Also generate distributed built
19603         sources in the tests directory.
19604
19605 2010-04-02  Bruno Haible  <bruno@clisp.org>
19606
19607         gnulib-tool: Obey user's environment variables.
19608         * gnulib-tool (func_create_testdir): When creating built sources,
19609         respect the environment variables for autoconf, automake, etc. given by
19610         the user.
19611
19612 2010-04-02  Bruno Haible  <bruno@clisp.org>
19613
19614         gnulib-tool: Provide the value of --m4-base to modules.
19615         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19616         of gl_m4_base.
19617
19618 2010-04-02  Eric Blake  <eblake@redhat.com>
19619
19620         maint.mk: fix some fallout
19621         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19622         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19623
19624 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19625
19626         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19627         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19628         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19629         (sc_cast_of_x_alloc_return_value): Likewise.
19630         (sc_cast_of_alloca_return_value): Likewise.
19631         (sc_space_tab): Likewise.
19632         (sc_prohibit_atoi_atof): Likewise.
19633         (sc_prohibit_magic_number_exit): Likewise.
19634         (sc_error_exit_success): Likewise.
19635         (sc_file_system): Likewise.
19636         (sc_prohibit_have_config_h): Likewise.
19637         (sc_require_config_h): Likewise.
19638         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19639         (sc_obsolete_symbols): Likewise.
19640         (sc_changelog): Likewise.
19641         (sc_program_name): Likewise.
19642         (sc_the_the): Likewise.
19643         (sc_trailing_blank): Likewise.
19644         (sc_two_space_separator_in_usage): Likewise.
19645         (sc_useless_cpp_parens): Likewise.
19646         (sc_GPL_version): Likewise.
19647         (sc_GFDL_version): Likewise.
19648         (sc_texinfo_acronym): Likewise.
19649         (sc_prohibit_cvs_keyword): Likewise.
19650         (sc_prohibit_stat_st_blocks): Likewise.
19651         (sc_prohibit_S_IS_definition): Likewise.
19652         (sc_redundant_const): Likewise.
19653         (sc_makefile_TAB_only_indentation): Likewise.
19654         (sc_m4_quote_check): Likewise.
19655         (sc_makefile_path_separator_check): Likewise.
19656         (sc_copyright_check): Likewise.
19657         (sc_Wundef_boolean): Likewise.
19658         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19659
19660         maint.mk: match 0 or more whitespace-before-function-call '('
19661         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19662         that have zero or two-and-more spaces between the function name
19663         and the open parenthesis.
19664         (sc_error_message_warn_fatal): Likewise.
19665         (sc_error_message_uppercase): Likewise.
19666         (sc_error_message_period): Likewise.
19667
19668 2010-03-31  Eric Blake  <eblake@redhat.com>
19669
19670         maint.mk: check for [ as well as test
19671         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19672         Based on a libvirt report by Matthias Bolte.
19673
19674         gnumakefile: don't squelch _version output
19675         * top/GNUmakefile (_version): Create one-shot dependency rather
19676         than using $(shell) when version must be regenerated.
19677         (_autoreconf): Run verbosely, by default.
19678
19679         sys_time: avoid compiler warnings
19680         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19681         unconditional, fixing regression from 2010-03-29.
19682         Reported by Simon Josefsson.
19683
19684 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19685
19686         maint.mk: s/_header_without_use/_sc_header_without_use/
19687         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19688         (sc_prohibit_assert_without_use): Use the new name.
19689         (sc_prohibit_close_stream_without_use): Likewise.
19690         (sc_prohibit_getopt_without_use): Likewise.
19691         (sc_prohibit_quotearg_without_use): Likewise.
19692         (sc_prohibit_quote_without_use): Likewise.
19693         (sc_prohibit_long_options_without_use): Likewise.
19694         (sc_prohibit_inttostr_without_use): Likewise.
19695         (sc_prohibit_ignore_value_without_use): Likewise.
19696         (sc_prohibit_error_without_use): Likewise.
19697         (sc_prohibit_xalloc_without_use): Likewise.
19698         (sc_prohibit_hash_without_use): Likewise.
19699         (sc_prohibit_hash_pjw_without_use): Likewise.
19700         (sc_prohibit_safe_read_without_use): Likewise.
19701         (sc_prohibit_argmatch_without_use): Likewise.
19702         (sc_prohibit_canonicalize_without_use): Likewise.
19703         (sc_prohibit_root_dev_ino_without_use): Likewise.
19704         (sc_prohibit_openat_without_use): Likewise.
19705         (sc_prohibit_c_ctype_without_use): Likewise.
19706         (sc_prohibit_signal_without_use): Likewise.
19707         (sc_prohibit_intprops_without_use): Likewise.
19708
19709 2010-03-30  Eric Blake  <eblake@redhat.com>
19710
19711         maint: improve module indicators
19712         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19713         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19714         columns, and avoid extra macro expansion.
19715
19716         fdopendir: work around FreeBSD bug
19717         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19718         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19719         * modules/dirent (Makefile.am): Substitute it.
19720         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19721         declaration.
19722         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19723         fix.
19724         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19725
19726 2010-03-29  Bruno Haible  <bruno@clisp.org>
19727
19728         Emit #pragma system_header after the inclusion guard, not before.
19729         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19730         guard that spans the entire file, not before. This enables an
19731         optimization in GCC's preprocessor.
19732         * lib/ctype.in.h: Likewise.
19733         * lib/dirent.in.h: Likewise.
19734         * lib/errno.in.h: Likewise.
19735         * lib/float.in.h: Likewise.
19736         * lib/getopt.in.h: Likewise.
19737         * lib/iconv.in.h: Likewise.
19738         * lib/langinfo.in.h: Likewise.
19739         * lib/locale.in.h: Likewise.
19740         * lib/math.in.h: Likewise.
19741         * lib/netdb.in.h: Likewise.
19742         * lib/netinet_in.in.h: Likewise.
19743         * lib/pty.in.h: Likewise.
19744         * lib/sched.in.h: Likewise.
19745         * lib/se-selinux.in.h: Likewise.
19746         * lib/search.in.h: Likewise.
19747         * lib/spawn.in.h: Likewise.
19748         * lib/stdarg.in.h: Likewise.
19749         * lib/stdint.in.h: Likewise.
19750         * lib/string.in.h: Likewise.
19751         * lib/strings.in.h: Likewise.
19752         * lib/sys_file.in.h: Likewise.
19753         * lib/sys_ioctl.in.h: Likewise.
19754         * lib/sys_time.in.h: Likewise.
19755         * lib/sys_times.in.h: Likewise.
19756         * lib/sys_utsname.in.h: Likewise.
19757         * lib/sys_wait.in.h: Likewise.
19758         * lib/sysexits.in.h: Likewise.
19759         * lib/wctype.in.h: Likewise.
19760
19761 2010-03-28  James Youngman  <jay@gnu.org>
19762
19763         save-cwd: don't leak a file descriptor when the caller execs.
19764         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19765         saved file descriptor.
19766         * modules/save-cwd (Depends-on): Depend on cloexec.
19767
19768 2010-03-29  Bruno Haible  <bruno@clisp.org>
19769
19770         Remove vestiges of fts-lgpl module.
19771         * lib/fts_.h: Assume GNULIB_FTS is 1.
19772         * lib/fts.c: Likewise.
19773         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19774
19775 2010-03-28  Bruno Haible  <bruno@clisp.org>
19776
19777         Fix definition of tests witness macro.
19778         * gnulib-tool (func_import): Fix definition of witness macro.
19779
19780 2010-03-28  Bruno Haible  <bruno@clisp.org>
19781
19782         Fix ioctl's protoype on glibc systems.
19783         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19784         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19785         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19786         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19787         signature. If not, arrange to replace the ioctl function.
19788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19789         REPLACE_IOCTL.
19790         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19791         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19792         Reported by Ludovic Courtès <ludo@gnu.org>.
19793
19794 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19795
19796         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19797         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19798         made it so grep -r --include=GLOB* ... did not work.
19799
19800 2010-03-26  Jim Meyering  <meyering@redhat.com>
19801             Eric Blake  <eblake@redhat.com>
19802
19803         maint.mk: prohibit use of test's -o and -a operators
19804         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19805
19806 2010-03-28  Bruno Haible  <bruno@clisp.org>
19807
19808         Remove unused GNULIB_XYZ macro definitions.
19809         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19810         invocation.
19811
19812 2010-03-28  Bruno Haible  <bruno@clisp.org>
19813
19814         Mark privileged tests modules.
19815         * modules/idpriv-drop-tests (Status): New section.
19816         * modules/idpriv-droptemp-tests (Status): New section.
19817
19818 2010-03-28  Bruno Haible  <bruno@clisp.org>
19819
19820         Split C++ tests into separate tests modules.
19821         * modules/dirent-c++-tests: New file, extracted from
19822         modules/dirent-tests.
19823         * modules/dirent-tests: Depend on it.
19824         * modules/fcntl-h-c++-tests: New file, extracted from
19825         modules/fcntl-h-tests.
19826         * modules/fcntl-h-tests: Depend on it.
19827         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19828         * modules/glob-tests: Depend on it.
19829         * modules/iconv-h-c++-tests: New file, extracted from
19830         modules/iconv-h-tests.
19831         * modules/iconv-h-tests: Depend on it.
19832         * modules/langinfo-c++-tests: New file, extracted from
19833         modules/langinfo-tests.
19834         * modules/langinfo-tests: Depend on it.
19835         * modules/locale-c++-tests: New file, extracted from
19836         modules/locale-tests.
19837         * modules/locale-tests: Depend on it.
19838         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19839         * modules/math-tests: Depend on it.
19840         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19841         * modules/pty-tests: Depend on it.
19842         * modules/search-c++-tests: New file, extracted from
19843         modules/search-tests.
19844         * modules/search-tests: Depend on it.
19845         * modules/signal-c++-tests: New file, extracted from
19846         modules/signal-tests.
19847         * modules/signal-tests: Depend on it.
19848         * modules/spawn-c++-tests: New file, extracted from
19849         modules/spawn-tests.
19850         * modules/spawn-tests: Depend on it.
19851         * modules/stdio-c++-tests: New file, extracted from
19852         modules/stdio-tests.
19853         * modules/stdio-tests: Depend on it.
19854         * modules/stdlib-c++-tests: New file, extracted from
19855         modules/stdlib-tests.
19856         * modules/stdlib-tests: Depend on it.
19857         * modules/string-c++-tests: New file, extracted from
19858         modules/string-tests.
19859         * modules/string-tests: Depend on it.
19860         * modules/sys_ioctl-c++-tests: New file, extracted from
19861         modules/sys_ioctl-tests.
19862         * modules/sys_ioctl-tests: Depend on it.
19863         * modules/sys_select-c++-tests: New file, extracted from
19864         modules/sys_select-tests.
19865         * modules/sys_select-tests: Depend on it.
19866         * modules/sys_socket-c++-tests: New file, extracted from
19867         modules/sys_socket-tests.
19868         * modules/sys_socket-tests: Depend on it.
19869         * modules/sys_stat-c++-tests: New file, extracted from
19870         modules/sys_stat-tests.
19871         * modules/sys_stat-tests: Depend on it.
19872         * modules/sys_time-c++-tests: New file, extracted from
19873         modules/sys_time-tests.
19874         * modules/sys_time-tests: Depend on it.
19875         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19876         * modules/time-tests: Depend on it.
19877         * modules/unistd-c++-tests: New file, extracted from
19878         modules/unistd-tests.
19879         * modules/unistd-tests: Depend on it.
19880         * modules/wchar-c++-tests: New file, extracted from
19881         modules/wchar-tests.
19882         * modules/wchar-tests: Depend on it.
19883         * modules/wctype-c++-tests: New file, extracted from
19884         modules/wctype-tests.
19885         * modules/wctype-tests: Depend on it.
19886         Reported by Simon Josefsson.
19887
19888 2010-03-28  Bruno Haible  <bruno@clisp.org>
19889
19890         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19891         * gnulib-tool (func_exists_module): New function, extracted from
19892         func_verify_module.
19893         (func_verify_module): Use it.
19894         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19895         'foo' only if 'foo' exists.
19896         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19897         module.
19898
19899 2010-03-28  Bruno Haible  <bruno@clisp.org>
19900
19901         gnulib-tool: Add support for special categories of tests.
19902         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19903         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19904         (func_usage): Document them.
19905         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19906         inc_unportable_tests, inc_all_tests): New variables.
19907         (func_acceptable): Consider these variables.
19908         (func_modules_transitive_closure): Make it work when the 'Status' field
19909         consists of multiple words.
19910         (func_import): Store and restore the values of inc_cxx_tests,
19911         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19912         inc_all_tests in gnulib-comp.m4.
19913         (func_create_testdir): Set inc_all_tests to true.
19914         * doc/gnulib.texi (Extra tests modules): New section.
19915         Suggested by Jim Meyering.
19916
19917 2010-03-28  Bruno Haible  <bruno@clisp.org>
19918
19919         ansi-c++-opt: Allow turning off the C++ build by default.
19920         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19921         gl_CXX_CHOICE_DEFAULT_NO is defined.
19922         Requested by Eric Blake.
19923
19924 2010-03-28  Bruno Haible  <bruno@clisp.org>
19925
19926         unistd: Avoid #define replacements in C++ mode.
19927         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19928         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19929         setsockopt, shutdown, select): In C++, attach a warning to the function
19930         if possible, rather than #defining the symbol to a dysfunctional alias.
19931         Reported by John W. Eaton <jwe@gnu.org>.
19932
19933 2010-03-28  Bruno Haible  <bruno@clisp.org>
19934
19935         Fix link errors on mingw.
19936         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19937         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19938         $(LIBSOCKET).
19939         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19940         $(LIBSOCKET).
19941
19942 2010-03-28  Bruno Haible  <bruno@clisp.org>
19943             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19944
19945         lib-ignore: Determine different options for different compilers.
19946         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19947         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19948         Add comments.
19949         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19950         * NEWS: Mention the change.
19951
19952 2010-03-27  Bruno Haible  <bruno@clisp.org>
19953
19954         Remove unused GNULIB_XYZ macro definitions.
19955         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19956         * modules/fseek (configure.ac): Likewise.
19957         * modules/ioctl (configure.ac): Likewise.
19958         * modules/open (configure.ac): Likewise.
19959         * modules/stdlib-safer (configure.ac): Likewise.
19960
19961 2010-03-27  Bruno Haible  <bruno@clisp.org>
19962
19963         Add a remark about certain modules.
19964         * modules/malloc (Comment): New section.
19965         * modules/realloc (Comment): Likewise.
19966         * modules/sigpipe (Comment): Likewise.
19967
19968 2010-03-27  Bruno Haible  <bruno@clisp.org>
19969
19970         Resolve conflict between the two kinds of module indicators.
19971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19972         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19973         * modules/canonicalize (configure.ac): Invoke
19974         gl_MODULE_INDICATOR_FOR_TESTS.
19975         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19976         GNULIB_XYZ.
19977         * tests/test-dirent-c++.cc: Likewise.
19978         * tests/test-dirent-safer.c: Likewise.
19979         * tests/test-dup2.c: Likewise.
19980         * tests/test-fchdir.c: Likewise.
19981         * tests/test-fcntl-h-c++.cc: Likewise.
19982         * tests/test-getopt.c: Likewise.
19983         * tests/test-getopt.h: Likewise.
19984         * tests/test-langinfo-c++.cc: Likewise.
19985         * tests/test-locale-c++.cc: Likewise.
19986         * tests/test-math-c++.cc: Likewise.
19987         * tests/test-pty-c++.cc: Likewise.
19988         * tests/test-search-c++.cc: Likewise.
19989         * tests/test-signal-c++.cc: Likewise.
19990         * tests/test-spawn-c++.cc: Likewise.
19991         * tests/test-stdio-c++.cc: Likewise.
19992         * tests/test-stdlib-c++.cc: Likewise.
19993         * tests/test-string-c++.cc: Likewise.
19994         * tests/test-sys_ioctl-c++.cc: Likewise.
19995         * tests/test-sys_select-c++.cc: Likewise.
19996         * tests/test-sys_socket-c++.cc: Likewise.
19997         * tests/test-sys_stat-c++.cc: Likewise.
19998         * tests/test-sys_time-c++.cc: Likewise.
19999         * tests/test-time-c++.cc: Likewise.
20000         * tests/test-unistd-c++.cc: Likewise.
20001         * tests/test-wchar-c++.cc: Likewise.
20002         * tests/uninorm/test-u8-nfc.c: Likewise.
20003         * tests/uninorm/test-u8-nfd.c: Likewise.
20004         * tests/uninorm/test-u8-nfkc.c: Likewise.
20005         * tests/uninorm/test-u8-nfkd.c: Likewise.
20006         * tests/uninorm/test-u16-nfc.c: Likewise.
20007         * tests/uninorm/test-u16-nfd.c: Likewise.
20008         * tests/uninorm/test-u16-nfkc.c: Likewise.
20009         * tests/uninorm/test-u16-nfkd.c: Likewise.
20010         * tests/uninorm/test-u32-nfc.c: Likewise.
20011         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20012         * tests/uninorm/test-u32-nfd.c: Likewise.
20013         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20014         * tests/uninorm/test-u32-nfkc.c: Likewise.
20015         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20016         * tests/uninorm/test-u32-nfkd.c: Likewise.
20017         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20018         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20019
20020 2010-03-27  Bruno Haible  <bruno@clisp.org>
20021
20022         Distinguish two kinds of module indicators.
20023         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20024         gl_MODULE_INDICATOR.
20025         (gl_MODULE_INDICATOR): New macro.
20026         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20027         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20028         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20029         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20030         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20031         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20032         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20033         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20034         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20035         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20036         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20037         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20039         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20040         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20042         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20043         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20045         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20046         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20047         * modules/cloexec (configure.ac): Likewise.
20048         * modules/getopt-gnu (configure.ac): Likewise.
20049         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20050         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20051         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20052         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20053
20054 2010-03-27  Bruno Haible  <bruno@clisp.org>
20055
20056         New module description field 'Comment'.
20057         * gnulib-tool: New option --extract-comment.
20058         (func_usage): Document it.
20059         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20060         (func_get_comment): New function.
20061         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20062
20063 2010-03-27  Bruno Haible  <bruno@clisp.org>
20064
20065         Addendum to 2010-02-07 commit.
20066         * gnulib-tool (func_usage): Document --extract-applicability option.
20067
20068 2010-03-27  Bruno Haible  <bruno@clisp.org>
20069
20070         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20071         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20072         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20073         rather than link errors.
20074
20075 2010-03-27  Bruno Haible  <bruno@clisp.org>
20076
20077         Avoid side effects from tests-related modules on the compilation of lib.
20078         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20079         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20080         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20081         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20082         macro.
20083         (func_import): Define a witness macro. Assign it a value that depends
20084         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20085         tests-related modules.
20086         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20087         Reported by Jim Meyering.
20088
20089 2010-03-27  Bruno Haible  <bruno@clisp.org>
20090
20091         Factorize common .m4 code.
20092         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20093         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20094         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20095         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20096         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20097         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20098         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20099         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20100         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20101         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20102         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20103         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20104         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20105         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20106         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20107         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20108         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20109         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20111         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20112         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20114         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20116         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20117         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20118         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20120         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20121         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20122         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20123         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20124
20125 2010-03-27  Bruno Haible  <bruno@clisp.org>
20126
20127         Fix a compilation error on Cygwin with g++ >= 4.3.
20128         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20129         if it is undefined or if we alias it to chmod.
20130         (lstat): Don't warn about the use of this function if it is undefined
20131         or if we alias it to stat.
20132         Reported by Simon Josefsson.
20133
20134 2010-03-27  Bruno Haible  <bruno@clisp.org>
20135
20136         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20137         * modules/getlogin (configure.ac): Update.
20138
20139         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20140         * modules/getlogin_r (configure.ac): Update.
20141
20142         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20144         * modules/inet_ntop (configure.ac): Update.
20145
20146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20147         * modules/inet_pton (configure.ac): Update.
20148
20149         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20150         * modules/mbslen (configure.ac): Update.
20151
20152         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20153         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20154         * modules/forkpty (configure.ac): Update.
20155         * modules/openpty (configure.ac): Update.
20156
20157 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20158
20159         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20160         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20161
20162 2010-03-25  Eric Blake  <eblake@redhat.com>
20163
20164         maint: use pragma consistently across replacement headers
20165         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20166         * lib/dirent.in.h (system_header): Likewise.
20167         * lib/errno.in.h (system_header): Likewise.
20168         * lib/float.in.h (system_header): Likewise.
20169         * lib/getopt.in.h (system_header): Likewise.
20170         * lib/iconv.in.h (system_header): Likewise.
20171         * lib/inttypes.in.h (system_header): Likewise.
20172         * lib/langinfo.in.h (system_header): Likewise.
20173         * lib/locale.in.h (system_header): Likewise.
20174         * lib/math.in.h (system_header): Likewise.
20175         * lib/netdb.in.h (system_header): Likewise.
20176         * lib/netinet_in.in.h (system_header): Likewise.
20177         * lib/pty.in.h (system_header): Likewise.
20178         * lib/sched.in.h (system_header): Likewise.
20179         * lib/se-selinux.in.h (system_header): Likewise.
20180         * lib/search.in.h (system_header): Likewise.
20181         * lib/spawn.in.h (system_header): Likewise.
20182         * lib/stdarg.in.h (system_header): Likewise.
20183         * lib/stdint.in.h (system_header): Likewise.
20184         * lib/string.in.h (system_header): Likewise.
20185         * lib/strings.in.h (system_header): Likewise.
20186         * lib/sys_file.in.h (system_header): Likewise.
20187         * lib/sys_ioctl.in.h (system_header): Likewise.
20188         * lib/sys_socket.in.h (system_header): Likewise.
20189         * lib/sys_times.in.h (system_header): Likewise.
20190         * lib/sys_utsname.in.h (system_header): Likewise.
20191         * lib/sys_wait.in.h (system_header): Likewise.
20192         * lib/sysexits.in.h (system_header): Likewise.
20193         * lib/unistd.in.h (system_header): Likewise.
20194         * lib/wctype.in.h (system_header): Likewise.
20195
20196         arpa/inet: fix mingw compilation warning
20197         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20198         Reported by Matthew Bolte.
20199
20200 2010-03-25  Bruno Haible  <bruno@clisp.org>
20201
20202         Avoid collision between gnulib wrapper and libintl wrapper.
20203         * lib/printf.c (printf): Don't define if a printf wrapper is already
20204         defined in intl/printf.c.
20205         Reported by Michel Boaventura <michel@michelboaventura.com>.
20206
20207 2010-03-25  Bruno Haible  <bruno@clisp.org>
20208
20209         Use ANSI C.
20210         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20211
20212 2010-03-25  Bruno Haible  <bruno@clisp.org>
20213
20214         Minor formatting changes.
20215         * lib/acosl.c: Insert space before function argument list.
20216         * lib/argz.c: Likewise.
20217         * lib/asinl.c: Likewise.
20218         * lib/expl.c: Likewise.
20219         * lib/gen-uni-tables.c: Likewise.
20220         * lib/gettext.h: Likewise.
20221         * lib/glthread/lock.h: Likewise.
20222         * lib/tanl.c: Likewise.
20223         * lib/uniname/uniname.c: Likewise.
20224         * tests/test-idpriv-drop.c: Likewise.
20225         * tests/test-idpriv-droptemp.c: Likewise.
20226         * tests/test-lock.c: Likewise.
20227         * tests/test-tls.c: Likewise.
20228         * lib/argp-help.c: Insert space before function-like macro argument
20229         list.
20230         * lib/memcmp.c: Likewise.
20231         * tests/test-base64.c: Likewise.
20232         * lib/localename.c: Insert space before sizeof's argument list.
20233         * lib/safe-alloc.h: Likewise.
20234         * lib/file-set.h: Insert space before macro argument list.
20235         * tests/test-argp.c: Likewise.
20236         * lib/argp-namefrob.h: Insert space before function parameter list.
20237         * lib/getaddrinfo.c: Likewise.
20238         * lib/netdb.in.h: Likewise.
20239         * lib/parse-duration.h: Likewise.
20240         * lib/parse-duration.c: Likewise.
20241         * lib/poll.c: Likewise.
20242         * lib/select.c: Likewise.
20243         * lib/trim.h: Likewise.
20244         * tests/test-usleep.c: Likewise.
20245         * lib/ldexpl.c: Insert space before function parameter list and before
20246         function argument list.
20247         * lib/logl.c: Likewise.
20248         * lib/sqrtl.c: Likewise.
20249         * lib/trim.c: Likewise.
20250         * lib/cosl.c: Use GNU style indentation. Insert space before function
20251         argument list.
20252         * lib/sinl.c: Likewise.
20253         * lib/tsearch.c: Insert space after 'for'.
20254         Reported by Jim Meyering.
20255
20256 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20257
20258         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20259         config header before grepping, as it's not present before
20260         autoreconf/configure are run.  Reported by Simon Josefsson.
20261
20262 2010-03-23  Bruno Haible  <bruno@clisp.org>
20263
20264         pt_chown: Make it work with automake < 1.11.
20265         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20266         Reported by Simon Josefsson.
20267
20268 2010-03-23  Bruno Haible  <bruno@clisp.org>
20269
20270         pt_chown: Don't depend on GPLed modules.
20271         * lib/pt_chown.c: Don't include idpriv.h.
20272         (main): Don't drop privileges.
20273         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20274         Reported by Simon Josefsson.
20275
20276 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20277
20278         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20279         suggestions from karl@freefriends.org (Karl Berry).
20280
20281 2010-03-22  Eric Blake  <eblake@redhat.com>
20282
20283         gethostname: further tweaks
20284         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20285         are overriding gethostname.
20286         Suggested by Bruno Haible.
20287
20288 2010-03-21  Bruno Haible  <bruno@clisp.org>
20289
20290         Fix comments.
20291         * lib/forkpty.c (rpl_forkpty): Fix comment.
20292         * lib/openpty.c (rpl_openpty): Likewise.
20293         Reported by Eric Blake.
20294
20295 2010-03-22  Eric Blake  <eblake@redhat.com>
20296
20297         gethostname: fix build on mingw
20298         * lib/unistd.in.h (includes): Work around fact that mingw
20299         <winsock2.h> re-includes <unistd.h>, by avoiding any
20300         redeclarations if we are being included by <winsock2.h>.
20301         Reported by Matthias Bolte.
20302
20303 2010-03-21  Bruno Haible  <bruno@clisp.org>
20304
20305         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20306         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20307         modifications.
20308         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20309         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20310         provide the replacement.
20311         * modules/forkpty (Depends-on): Add openpty, login_tty.
20312         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20313         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20314         * doc/glibc-functions/forkpty.texi: More supported platforms.
20315         * config/srclist.txt: Add forkpty.c (commented).
20316
20317 2010-03-21  Bruno Haible  <bruno@clisp.org>
20318
20319         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20320         (Makefile.am): Verify that PTY_LIB is defined.
20321
20322         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20323
20324 2010-03-21  Bruno Haible  <bruno@clisp.org>
20325
20326         Tests for module 'login_tty'.
20327         * modules/login_tty-tests: New file.
20328         * tests/test-login_tty.c: New file.
20329
20330         New module 'login_tty'.
20331         * lib/login_tty.c: New file.
20332         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20333         * modules/login_tty: New file.
20334         * doc/glibc-functions/login_tty.texi: Mention the new module.
20335
20336 2010-03-21  Bruno Haible  <bruno@clisp.org>
20337
20338         login_tty: Documentation.
20339         * doc/glibc-functions/login_tty.texi: New file.
20340         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20341
20342 2010-03-21  Bruno Haible  <bruno@clisp.org>
20343
20344         pty: Consistent macro naming.
20345         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20346         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20347         * modules/pty (configure.ac): Update.
20348
20349 2010-03-21  Bruno Haible  <bruno@clisp.org>
20350
20351         Tests for openpty: Make stricter.
20352         * tests/test-openpty.c (main): Add test of canonical processing and
20353         erase.
20354         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20355
20356         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20357         * lib/openpty.c (openpty): New replacement function.
20358         * lib/pty.in.h: Include <termios.h>.
20359         (openpty): Update declaration. Add comments.
20360         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20361         is not declared, arrange to provide the replacement. Check for _getpty
20362         and posix_openpt.
20363         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20364         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20365         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20366         * modules/pty-tests (test_pty_c___LDADD): New variable.
20367         * doc/glibc-functions/openpty.texi: More supported platforms.
20368
20369 2010-03-21  Bruno Haible  <bruno@clisp.org>
20370
20371         setenv: Tweaks.
20372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20373         the test program.
20374         * doc/posix-functions/setenv.texi: Update platforms list.
20375
20376 2010-03-21  Bruno Haible  <bruno@clisp.org>
20377
20378         New module 'unlockpt'.
20379         * lib/unlockpt.c: New file, from glibc with modifications.
20380         * m4/unlockpt.m4: New file.
20381         * modules/unlockpt: New file.
20382         * lib/stdlib.in.h (unlockpt): New declaration.
20383         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20384         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20385         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20386         HAVE_UNLOCKPT.
20387         * doc/posix-functions/unlockpt.texi: Mention the new module.
20388         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20389         * config/srclist.txt: Add unlockpt.c (commented).
20390
20391 2010-03-21  Jim Meyering  <meyering@redhat.com>
20392
20393         maint.mk: prohibit inclusion of "intprops.h" without use
20394         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20395
20396 2010-03-21  Bruno Haible  <bruno@clisp.org>
20397
20398         New module 'grantpt'.
20399         * lib/grantpt.c: New file, from glibc with modifications.
20400         * m4/grantpt.m4: New file.
20401         * modules/grantpt: New file.
20402         * lib/stdlib.in.h (grantpt): New declaration.
20403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20404         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20405         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20406         HAVE_GRANTPT.
20407         * doc/posix-functions/grantpt.texi: Mention the new module.
20408         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20409         * config/srclist.txt: Add grantpt.c (commented).
20410
20411 2010-03-21  Bruno Haible  <bruno@clisp.org>
20412
20413         New module 'pt_chown'.
20414         * lib/pt_chown.c: New file, from glibc with modifications.
20415         * lib/pty-private.h: New file, from glibc with modifications.
20416         * modules/pt_chown: New file.
20417         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20418
20419 2010-03-21  Bruno Haible  <bruno@clisp.org>
20420
20421         Tests for module 'ptsname'.
20422         * modules/ptsname-tests: New file.
20423         * tests/test-ptsname.c: New file.
20424
20425         New module 'ptsname'.
20426         * lib/ptsname.c: New file, from glibc with modifications.
20427         * m4/ptsname.m4: New file.
20428         * modules/ptsname: New file.
20429         * lib/stdlib.in.h (ptsname): New declaration.
20430         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20431         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20432         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20433         HAVE_PTSNAME.
20434         * doc/posix-functions/ptsname.texi: Mention the new module.
20435         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20436         * config/srclist.txt: Add ptsname.c (commented).
20437
20438 2010-03-21  Bruno Haible  <bruno@clisp.org>
20439
20440         Tests for module 'ttyname_r'.
20441         * modules/ttyname_r-tests: New file.
20442         * tests/test-ttyname_r.c: New file.
20443
20444         New module 'ttyname_r'.
20445         * lib/ttyname_r.c: New file.
20446         * m4/ttyname_r.m4: New file.
20447         * modules/ttyname_r: New file.
20448         * lib/unistd.in.h (ttyname_r): New declaration.
20449         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20451         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20452         HAVE_TTYNAME_R.
20453         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20454         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20455
20456 2010-03-20  Bruno Haible  <bruno@clisp.org>
20457
20458         signal: Undefine macro definitions in C++ mode.
20459         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20460         sigfillset): Undefine macro definitions from the system header in C++
20461         mode.
20462         Reported by John W. Eaton <jwe@gnu.org>.
20463
20464 2010-03-20  Bruno Haible  <bruno@clisp.org>
20465
20466         Ensure no #include statements inside extern "C" { ... }.
20467         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20468         contain #include statements.
20469         * lib/time.in.h: Likewise.
20470
20471 2010-03-20  Bruno Haible  <bruno@clisp.org>
20472
20473         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20474         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20475         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20476         Reported by John W. Eaton <jwe@gnu.org>.
20477
20478 2010-03-20  Bruno Haible  <bruno@clisp.org>
20479
20480         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20481         Reported by Jim Meyering.
20482
20483 2010-03-20  Bruno Haible  <bruno@clisp.org>
20484
20485         pipe: Set errno upon failure.
20486         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20487         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20488         errno value in error message.
20489
20490 2010-03-20  Bruno Haible  <bruno@clisp.org>
20491             Jim Meyering  <meyering@redhat.com>
20492
20493         lchown: Avoid "unused variable" warning.
20494         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20495
20496 2010-03-20  Bruno Haible  <bruno@clisp.org>
20497
20498         Work around unlink() bug on MacOS X 10.5.6.
20499         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20500         attempting to unlink a parent directory.
20501         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20502         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20503         activate for the replacement function.
20504         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20505
20506 2010-03-20  Bruno Haible  <bruno@clisp.org>
20507
20508         Fix link errors on Solaris 8.
20509         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20510         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20511
20512 2010-03-19  Jim Meyering  <meyering@redhat.com>
20513
20514         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20515         The _LIBC implementation of build_range_exp correctly honors the
20516         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20517         However, the non-_LIBC implementation would ignore that syntax-bit
20518         flag and return REG_ERANGE unconditionally.
20519         This change makes it honor that flag.
20520         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20521         Make two pointer parameters "const".
20522         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20523         (parse_bracket_exp): Update caller.
20524
20525         regex.m4: correct the reversed range endpoint ([b-a]) test
20526         * m4/regex.m4: When requiring that [b-a] evoke failure,
20527         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20528         test pass once again for x86-based systems.
20529
20530 2010-03-19  Bruno Haible  <bruno@clisp.org>
20531
20532         scandir: Fix link error on Solaris 8.
20533         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20534         macros.
20535
20536 2010-03-19  Bruno Haible  <bruno@clisp.org>
20537
20538         getusershell: Fix documentation.
20539         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20540         module.
20541         * doc/glibc-functions/setusershell.texi: Likewise.
20542
20543         getusershell: Provide declaration, missing on Solaris 9.
20544         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20545         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20546         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20547         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20549         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20551         HAVE_GETUSERSHELL.
20552         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20553
20554 2010-03-19  Bruno Haible  <bruno@clisp.org>
20555
20556         wctype: Provide iswblank function.
20557         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20558         exists and is fine.
20559         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20560         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20561         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20562         * doc/posix-functions/iswblank.texi: Update.
20563
20564 2010-03-19  Bruno Haible  <bruno@clisp.org>
20565
20566         Tests of module 'pty' in C++ mode.
20567         * modules/pty-tests: New file.
20568         * tests/test-pty-c++.cc: New file.
20569         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20570
20571 2010-03-19  Eric Blake  <eblake@redhat.com>
20572
20573         logb: fix documentation
20574         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20575         1.5 declaration bug.
20576
20577         forkpty, openpty: prefer glibc's const-safe prototype
20578         * lib/forkpty.c (rpl_forkpty): New file.
20579         * lib/openpty.c (rpl_openpty): Likewise.
20580         * modules/forkpty (Files): Distribute it.
20581         * modules/openpty (Files): Likewise.
20582         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20583         check...
20584         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20585         replacement for for non-const BSD signature.
20586         * modules/pty (Makefile.am): Substitute witnesses.
20587         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20588         * tests/test-forkpty.c: Update signature check.
20589         * tests/test-openpty.c: Likewise.
20590         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20591         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20592
20593         forkpty, openpty: split functions into new modules
20594         * modules/pty (Makefile.am): Substitute new witnesses.
20595         (Libraries): Move library detection...
20596         * modules/forkpty: ...into new module.
20597         * modules/openpty: Another new module.
20598         * modules/pty-tests: Rename and split...
20599         * modules/forkpty-tests: ...to this...
20600         * modules/openpty-tests: ...and this.
20601         * tests/test-pty.c: Rename and split...
20602         * tests/test-forkpty.c: ...to this...
20603         * tests/test-openpty.c: ...and this.
20604         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20605         (gl_PTY): Split library searching...
20606         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20607         (gl_FORKPTY, gl_OPENPTY): New macros.
20608         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20609         * NEWS: Mention the split.
20610         * MODULES.html.sh (Misc): Document the modules.
20611         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20612         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20613
20614         pty: improve replacement header
20615         * lib/pty.in.h: New file.
20616         * modules/pty (Files): Ship it.
20617         (Makefile.am): Always build replacement.
20618         * m4/pty.m4: Rename...
20619         * m4/pty_h.m4: ...to this.
20620         (gl_PTY): Modernize setting of witness macros; update check of
20621         forkpty to take proper advantage of cache.
20622         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20623
20624         getopt: avoid compiler warning
20625         * lib/getopt.c (attribute_hidden): Remove unused macro.
20626
20627 2010-03-18  Bruno Haible  <bruno@clisp.org>
20628
20629         Fix link errors on Solaris 8.
20630         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20631         * modules/search-tests (test_search_c___LDADD): Likewise.
20632         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20633         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20634         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20635         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20636         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20637         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20638         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20639
20640 2010-03-18  Bruno Haible  <bruno@clisp.org>
20641
20642         Fix bug introduced on 2010-03-14.
20643         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20644         (gl_SPAWN_H): Require it.
20645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20646         Reported by Simon Josefsson.
20647
20648 2010-03-18  Bruno Haible  <bruno@clisp.org>
20649
20650         Fix typo introduced on 2009-12-31.
20651         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20652         posix_spawn_file_actions_adddup2.
20653
20654 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20655         and Eric Blake  <eblake@redhat.com>
20656
20657         test-vc-list-files-git: make more robust
20658         * tests/test-vc-list-files-git.sh: Unset problematic environment
20659         variables.  Chain commands together.
20660
20661 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20662
20663         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20664         `AC_CHECK_DECL' invocation.
20665
20666 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20667
20668         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20669         appears before executable statements. Suggested by Petr Sumbera
20670         <Petr.Sumbera@Sun.COM>.
20671
20672 2010-03-14  Bruno Haible  <bruno@clisp.org>
20673
20674         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20675         portability problems. Instead use a simpler test.
20676         (main): Check that invalid arguments are rejected only on Linux.
20677
20678 2010-03-14  Bruno Haible  <bruno@clisp.org>
20679
20680         Fix bug introduced on 2009-12-31.
20681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20682         gl_PREREQ_SYS_H_WINSOCK2 always.
20683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20684         SYS_SOCKET_H variable.
20685         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20686         Update comments.
20687         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20688         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20689         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20690         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20691         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20692
20693 2010-03-14  Bruno Haible  <bruno@clisp.org>
20694
20695         Fix values returned by sinl, cosl.
20696         * lib/trigl.h: Add specification comments.
20697         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20698         that combines the values from the precomputed table with the values of
20699         the Chebyshev polynomials.
20700
20701 2010-03-14  Bruno Haible  <bruno@clisp.org>
20702
20703         Fix compilation error when modules 'posix_spawn[p]' are not used.
20704         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20705         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20706
20707 2010-03-14  Bruno Haible  <bruno@clisp.org>
20708
20709         Fix compilation error on mingw when module 'time_r' is not used.
20710         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20711         is 1.
20712         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20713         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20714         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20715         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20716
20717 2010-03-14  Bruno Haible  <bruno@clisp.org>
20718
20719         Fix compilation error with Sun C.
20720         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20721         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20722         instead of GCC specific ULONG_LONG_MAX.
20723         * lib/xstrtoll.c: Likewise.
20724         * lib/xstrtoull.c: Likewise.
20725
20726 2010-03-13  Bruno Haible  <bruno@clisp.org>
20727
20728         Allow the user to disable C++ code and tests.
20729         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20730         (gl_PROG_ANSI_CXX): Require it.
20731
20732 2010-03-13  Bruno Haible  <bruno@clisp.org>
20733
20734         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20735         cases.
20736
20737 2010-03-13  Bruno Haible  <bruno@clisp.org>
20738
20739         Test that gnulib does not break the standard C++ headers.
20740         * tests/test-locale-c++2.cc: New file.
20741         * modules/locale-tests (Files): Add it.
20742         (Makefile.am): Compile it for test-locale-c++.
20743         * tests/test-math-c++2.cc: New file.
20744         * modules/math-tests (Files): Add it.
20745         (Makefile.am): Compile it for test-math-c++.
20746         * tests/test-signal-c++2.cc: New file.
20747         * modules/signal-tests (Files): Add it.
20748         (Makefile.am): Compile it for test-signal-c++.
20749         * tests/test-stdio-c++2.cc: New file.
20750         * modules/stdio-tests (Files): Add it.
20751         (Makefile.am): Compile it for test-stdio-c++.
20752         * tests/test-stdlib-c++2.cc: New file.
20753         * modules/stdlib-tests (Files): Add it.
20754         (Makefile.am): Compile it for test-stdlib-c++.
20755         * tests/test-string-c++2.cc: New file.
20756         * modules/string-tests (Files): Add it.
20757         (Makefile.am): Compile it for test-string-c++.
20758         * tests/test-time-c++2.cc: New file.
20759         * modules/time-tests (Files): Add it.
20760         (Makefile.am): Compile it for test-time-c++.
20761         Reported by John W. Eaton <jwe@gnu.org>.
20762
20763 2010-03-13  Bruno Haible  <bruno@clisp.org>
20764
20765         * gnulib-tool (func_usage): Clarify which options are available for
20766         --create-testdir and --create-megatestdir.
20767
20768 2010-03-13  Bruno Haible  <bruno@clisp.org>
20769
20770         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20771         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20772         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20773         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20774         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20775         when appropriate.
20776         Reported by Jim Meyering.
20777
20778 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20779
20780         * gnulib-tool (func_import): Explain origin of code.
20781
20782 2010-03-12  Bruno Haible  <bruno@clisp.org>
20783
20784         Fix problem with automake's definition of CXXLINK.
20785         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20786         Reported by Simon Josefsson and Ludovic Courtès.
20787
20788 2010-03-12  Bruno Haible  <bruno@clisp.org>
20789
20790         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20791         stable releases.
20792
20793 2010-03-11  Bruno Haible  <bruno@clisp.org>
20794
20795         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20796         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20797         whether the system provides one variant or multiple variants of the
20798         function.
20799         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20800         C++ compilers.
20801         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20802         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20803         Reported by Jim Meyering.
20804
20805 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20806
20807         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20808
20809 2010-03-08  Bruno Haible  <bruno@clisp.org>
20810
20811         gnulib-tool: Add support for --libtool in --create-testdir.
20812         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20813         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20814
20815 2010-03-08  Eric Blake  <eblake@redhat.com>
20816
20817         gnulib-tool.texi: mention possibility of git submodule
20818         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20819         submodules.
20820         * doc/.gitignore: Ignore another generated file.
20821
20822 2010-03-08  Karl Berry  <karl@gnu.org>
20823
20824         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20825         of committing gnulib files while skipping others.
20826
20827 2010-03-07  Bruno Haible  <bruno@clisp.org>
20828
20829         Tests of module 'wctype' in C++ mode.
20830         * tests/test-wctype-c++.cc: New file.
20831         * modules/wctype-tests (Files): Add it and tests/signature.h.
20832         (Depends-on): Add ansi-c++-opt.
20833         (Makefile.am): Arrange to compile and run test-wctype-c++.
20834
20835         Tests of module 'wchar' in C++ mode.
20836         * tests/test-wchar-c++.cc: New file.
20837         * modules/wchar-tests (Files): Add it and tests/signature.h.
20838         (Depends-on): Add ansi-c++-opt.
20839         (Makefile.am): Arrange to compile and run test-wchar-c++.
20840         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20841         gl_MODULE_INDICATOR.
20842
20843         Tests of module 'unistd' in C++ mode.
20844         * tests/test-unistd-c++.cc: New file.
20845         * modules/unistd-tests (Files): Add it and tests/signature.h.
20846         (Depends-on): Add ansi-c++-opt.
20847         (Makefile.am): Arrange to compile and run test-unistd-c++.
20848         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20849         gl_MODULE_INDICATOR.
20850
20851         Tests of module 'time' in C++ mode.
20852         * tests/test-time-c++.cc: New file.
20853         * modules/time-tests (Files): Add it and tests/signature.h.
20854         (Depends-on): Add ansi-c++-opt.
20855         (Makefile.am): Arrange to compile and run test-time-c++.
20856         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20857
20858         Tests of module 'sys_time' in C++ mode.
20859         * tests/test-sys_time-c++.cc: New file.
20860         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20861         (Depends-on): Add ansi-c++-opt.
20862         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20863         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20864         gl_MODULE_INDICATOR.
20865
20866         Tests of module 'sys_stat' in C++ mode.
20867         * tests/test-sys_stat-c++.cc: New file.
20868         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20869         (Depends-on): Add ansi-c++-opt.
20870         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20872         gl_MODULE_INDICATOR.
20873
20874         Tests of module 'sys_socket' in C++ mode.
20875         * tests/test-sys_socket-c++.cc: New file.
20876         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20877         (Depends-on): Add ansi-c++-opt.
20878         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20880         gl_MODULE_INDICATOR.
20881
20882         Tests of module 'sys_select' in C++ mode.
20883         * tests/test-sys_select-c++.cc: New file.
20884         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20885         (Depends-on): Add ansi-c++-opt.
20886         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20887         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20888         gl_MODULE_INDICATOR.
20889
20890         Tests of module 'sys_ioctl' in C++ mode.
20891         * tests/test-sys_ioctl-c++.cc: New file.
20892         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20893         (Depends-on): Add ansi-c++-opt.
20894         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20896         gl_MODULE_INDICATOR.
20897
20898         Tests of module 'string' in C++ mode.
20899         * tests/test-string-c++.cc: New file.
20900         * modules/string-tests (Files): Add it and tests/signature.h.
20901         (Depends-on): Add ansi-c++-opt.
20902         (Makefile.am): Arrange to compile and run test-string-c++.
20903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20904         gl_MODULE_INDICATOR.
20905
20906         Tests of module 'stdlib' in C++ mode.
20907         * tests/test-stdlib-c++.cc: New file.
20908         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20909         (Depends-on): Add ansi-c++-opt.
20910         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20911         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20912         gl_MODULE_INDICATOR.
20913
20914         Tests of module 'stdio' in C++ mode.
20915         * tests/test-stdio-c++.cc: New file.
20916         * modules/stdio-tests (Files): Add it and tests/signature.h.
20917         (Depends-on): Add ansi-c++-opt.
20918         (Makefile.am): Arrange to compile and run test-stdio-c++.
20919         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20920         gl_MODULE_INDICATOR.
20921
20922         Tests of module 'spawn' in C++ mode.
20923         * tests/test-spawn-c++.cc: New file.
20924         * modules/spawn-tests (Files): Add it and tests/signature.h.
20925         (Depends-on): Add ansi-c++-opt.
20926         (Makefile.am): Arrange to compile and run test-spawn-c++.
20927         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20928         gl_MODULE_INDICATOR.
20929
20930         Tests of module 'signal' in C++ mode.
20931         * tests/test-signal-c++.cc: New file.
20932         * modules/signal-tests (Files): Add it and tests/signature.h.
20933         (Depends-on): Add ansi-c++-opt.
20934         (Makefile.am): Arrange to compile and run test-signal-c++.
20935         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20936         gl_MODULE_INDICATOR.
20937
20938         Tests of module 'search' in C++ mode.
20939         * tests/test-search-c++.cc: New file.
20940         * modules/search-tests (Files): Add it and tests/signature.h.
20941         (Depends-on): Add ansi-c++-opt.
20942         (Makefile.am): Arrange to compile and run test-search-c++.
20943         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20944         gl_MODULE_INDICATOR.
20945
20946         Tests of module 'math' in C++ mode.
20947         * tests/test-math-c++.cc: New file.
20948         * modules/math-tests (Files): Add it and tests/signature.h.
20949         (Depends-on): Add ansi-c++-opt.
20950         (Makefile.am): Arrange to compile and run test-math-c++.
20951         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20952
20953         Tests of module 'locale' in C++ mode.
20954         * tests/test-locale-c++.cc: New file.
20955         * modules/locale-tests (Files): Add it and tests/signature.h.
20956         (Depends-on): Add ansi-c++-opt.
20957         (Makefile.am): Arrange to compile and run test-locale-c++.
20958         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20959         gl_MODULE_INDICATOR.
20960
20961         Tests of module 'langinfo' in C++ mode.
20962         * tests/test-langinfo-c++.cc: New file.
20963         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20964         (Depends-on): Add ansi-c++-opt.
20965         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20966         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20967         gl_MODULE_INDICATOR.
20968
20969         Tests of module 'iconv-h' in C++ mode.
20970         * tests/test-iconv-h-c++.cc: New file.
20971         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20972         (Depends-on): Add ansi-c++-opt.
20973         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20974
20975         Tests of module 'glob' in C++ mode.
20976         * tests/test-glob-c++.cc: New file.
20977         * modules/glob-tests (Files): Add it.
20978         (Depends-on): Add ansi-c++-opt.
20979         (Makefile.am): Arrange to compile and run test-glob-c++.
20980
20981         Tests of module 'fcntl-h' in C++ mode.
20982         * tests/test-fcntl-h-c++.cc: New file.
20983         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20984         (Depends-on): Add ansi-c++-opt.
20985         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20986         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20987         gl_MODULE_INDICATOR.
20988
20989         Tests of module 'dirent' in C++ mode.
20990         * tests/test-dirent-c++.cc: New file.
20991         * modules/dirent-tests (Files): Add it and tests/signature.h.
20992         (Depends-on): Add ansi-c++-opt.
20993         (Makefile.am): Arrange to compile and run test-dirent-c++.
20994         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20995         gl_MODULE_INDICATOR.
20996
20997         New module 'ansi-c++-opt'.
20998         * modules/ansi-c++-opt: New file.
20999         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21000
21001         Document C++ namespace mode.
21002         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21003
21004         wctype: Avoid #define replacements in C++ mode.
21005         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21006         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21007         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21008         In C++, define a namespaced alias symbol.
21009         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21010         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21011         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21012         rule.
21013
21014         wchar: Avoid #define replacements in C++ mode.
21015         * lib/wchar.in.h: Include c++defs.h.
21016         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21017         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21018         symbol.
21019         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21020         * modules/wchar (Depends-on): Add c++defs.
21021         (Makefile.am): Update wchar.h rule.
21022
21023         unistd: Avoid #define replacements in C++ mode.
21024         * lib/unistd.in.h: Include c++defs.h.
21025         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21026         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21027         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21028         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21029         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21030         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21031         symbol.
21032         (environ): Update.
21033         * modules/unistd (Depends-on): Add c++defs.
21034         (Makefile.am): Update unistd.h rule.
21035
21036         time: Avoid #define replacements in C++ mode.
21037         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21038         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21039         define a namespaced alias symbol.
21040         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21041         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21042         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21043         * modules/time (Depends-on): Add c++defs, warn-on-use.
21044         (Makefile.am): Update time.h rule.
21045         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21046         * modules/nanosleep (configure.ac): Likewise.
21047         * modules/strptime (configure.ac): Likewise.
21048         * modules/timegm (configure.ac): Likewise.
21049
21050         sys_time: Avoid #define replacements in C++ mode.
21051         * lib/sys_time.in.h: Include c++defs.h.
21052         (gettimeofday): In C++, define a namespaced alias symbol.
21053         * modules/sys_time (Depends-on): Add c++defs.
21054         (Makefile.am): Update sys/time.h rule.
21055
21056         sys_stat: Avoid #define replacements in C++ mode.
21057         * lib/sys_stat.in.h: Include c++defs.h.
21058         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21059         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21060         namespaced alias symbol.
21061         In C++, define a namespaced alias symbol.
21062         * modules/sys_stat (Depends-on): Add c++defs.
21063         (Makefile.am): Update sys/stat.h rule.
21064
21065         sys_socket: Avoid #define replacements in C++ mode.
21066         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21067         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21068         definitions also when the system has a <sys/socket.h>.
21069         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21070         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21071         In C++, define a namespaced alias symbol.
21072         * modules/sys_socket (Depends-on): Add c++defs.
21073         (Makefile.am): Update sys/socket.h rule.
21074
21075         sys_select: Avoid #define replacements in C++ mode.
21076         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21077         definitions also when the system has a <sys/select.h>.
21078         (select): In C++, define a namespaced alias symbol.
21079         * modules/sys_select (Depends-on): Add c++defs.
21080         (Makefile.am): Update sys/select.h rule.
21081
21082         sys_ioctl: Avoid #define replacements in C++ mode.
21083         * lib/sys_ioctl.in.h: Include c++defs.h.
21084         (ioctl): In C++, define a namespaced alias symbol.
21085         * modules/sys_ioctl (Depends-on): Add c++defs.
21086         (Makefile.am): Update sys/ioctl.h rule.
21087
21088         string: Avoid #define replacements in C++ mode.
21089         * lib/string.in.h: Include c++defs.h.
21090         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21091         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21092         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21093         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21094         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21095         * modules/string (Depends-on): Add c++defs.
21096         (Makefile.am): Update string.h rule.
21097
21098         stdlib: Avoid #define replacements in C++ mode.
21099         * lib/stdlib.in.h: Include c++defs.h.
21100         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21101         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21102         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21103         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21104         symbol.
21105         * modules/stdlib (Depends-on): Add c++defs.
21106         (Makefile.am): Update stdlib.h rule.
21107
21108         stdio: Avoid #define replacements in C++ mode.
21109         * lib/stdio.in.h: Include c++defs.h.
21110         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21111         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21112         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21113         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21114         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21115         namespaced alias symbol.
21116         * modules/stdio (Depends-on): Add c++defs.
21117         (Makefile.am): Update stdio.h rule.
21118
21119         spawn: Avoid #define replacements in C++ mode.
21120         * lib/spawn.in.h: Include c++defs.h.
21121         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21122         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21123         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21124         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21125         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21126         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21127         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21128         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21129         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21130         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21131         In C++, define a namespaced alias symbol.
21132         * modules/spawn (Depends-on): Add c++defs.
21133         (Makefile.am): Update spawn.h rule.
21134
21135         signal: Avoid #define replacements in C++ mode.
21136         * lib/signal.in.h: Include c++defs.h.
21137         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21138         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21139         namespaced alias symbol.
21140         * modules/signal (Depends-on): Add c++defs.
21141         (Makefile.am): Update signal.h rule.
21142
21143         search: Avoid #define replacements in C++ mode.
21144         * lib/search.in.h: Include c++defs.h.
21145         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21146         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21147         symbol.
21148         * modules/search (Depends-on): Add c++defs.
21149         (Makefile.am): Update search.h rule.
21150
21151         math: Avoid #define replacements in C++ mode.
21152         * lib/math.in.h: Include c++defs.h.
21153         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21154         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21155         trunc, truncl): In C++, define a namespaced alias symbol.
21156         * modules/math (Depends-on): Add c++defs.
21157         (Makefile.am): Update math.h rule.
21158
21159         locale: Avoid #define replacements in C++ mode.
21160         * lib/locale.in.h: Include c++defs.h.
21161         (duplocale): In C++, define a namespaced alias symbol.
21162         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21163         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21164         * modules/locale (Depends-on): Add c++defs.
21165         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21166
21167         langinfo: Avoid #define replacements in C++ mode.
21168         * lib/langinfo.in.h: Include c++defs.h.
21169         (nl_langinfo): In C++, define a namespaced alias symbol.
21170         * modules/langinfo (Depends-on): Add c++defs.
21171         (Makefile.am): Update langinfo.h rule.
21172
21173         iconv-h: Avoid #define replacements in C++ mode.
21174         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21175         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21176         symbol.
21177         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21178         whenever iconv is present.
21179         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21180         (Makefile.am): Update iconv.h rule.
21181
21182         glob: Avoid #define replacements in C++ mode.
21183         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21184         (_gl_glob_errfunc_fn): New type.
21185         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21186         symbol.
21187         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21188         (Makefile.am): Update glob.h rule.
21189
21190         fcntl-h: Avoid #define replacements in C++ mode.
21191         * lib/fcntl.in.h: Include c++defs.h.
21192         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21193         * modules/fcntl-h (Depends-on): Add c++defs.
21194         (Makefile.am): Update fcntl.h rule.
21195
21196         dirent: Avoid #define replacements in C++ mode.
21197         * lib/dirent.in.h: Include c++defs.h.
21198         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21199         namespaced alias symbol.
21200         (dirfd): Update declaration.
21201         * modules/dirent (Depends-on): Add c++defs.
21202         (Makefile.am): Update dirent.h rule.
21203
21204         ctype: Make it usable in C++ code.
21205         * lib/ctype.in.h: Include c++defs.h.
21206         (isblank): Declare as extern "C".
21207         * modules/ctype (Depends-on): Add c++defs.
21208         (Makefile.am): Update ctype.h rule.
21209
21210         New module 'c++defs'.
21211         * modules/c++defs: New file.
21212         * build-aux/c++defs.h: New file.
21213         Reported by John W. Eaton <jwe@gnu.org>.
21214
21215 2010-03-07  Bruno Haible  <bruno@clisp.org>
21216
21217         logb: Provide missing declaration for Cygwin.
21218         * lib/math.in.h (logb): New declaration.
21219         * m4/logb.m4: New file.
21220         * modules/logb (Files): Add m4/logb.m4.
21221         (Depends-on): Add math.
21222         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21223         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21225         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21226         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21227
21228 2010-03-07  Bruno Haible  <bruno@clisp.org>
21229
21230         Fix test-cond link error.
21231         * tests/test-cond.c: Include <stdio.h>.
21232
21233 2010-03-07  Bruno Haible  <bruno@clisp.org>
21234
21235         Fix test-dirent-safer link error.
21236         * modules/dirent-safer-tests (Makefile.am): Define
21237         test_dirent_safer_LDADD.
21238
21239 2010-03-07  Bruno Haible  <bruno@clisp.org>
21240
21241         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21242         among default module list.
21243
21244 2010-03-07  Bruno Haible  <bruno@clisp.org>
21245
21246         Fix link error on platforms with GNU libiconv.
21247         * modules/unistr/u8-strcoll-tests (Makefile): Define
21248         test_u8_strcoll_LDADD.
21249         * modules/unistr/u16-strcoll-tests (Makefile): Define
21250         test_u16_strcoll_LDADD.
21251         * modules/unistr/u32-strcoll-tests (Makefile): Define
21252         test_u32_strcoll_LDADD.
21253
21254 2010-03-07  Bruno Haible  <bruno@clisp.org>
21255
21256         Use POSIX declarations for socket functions.
21257         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21258         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21259         rpl_sendto): Change declaration to match POSIX.
21260         * lib/connect.c (rpl_connect): Likewise.
21261         * lib/accept.c (rpl_accept): Likewise.
21262         * lib/bind.c (rpl_bind): Likewise.
21263         * lib/getpeername.c (rpl_getpeername): Likewise.
21264         * lib/getsockname.c (rpl_getsockname): Likewise.
21265         * lib/recv.c (rpl_recv): Likewise.
21266         * lib/send.c (rpl_send): Likewise.
21267         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21268         * lib/sendto.c (rpl_sendto): Likewise.
21269
21270 2010-03-06  Bruno Haible  <bruno@clisp.org>
21271
21272         Clarify access, euidaccess, faccessat.
21273         * doc/posix-functions/faccessat.texi: Mention security problem under
21274         "Other problems", not "Portability problems".
21275         * doc/posix-functions/access.texi: Likewise. Mention a related security
21276         problem.
21277         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21278         * lib/euidaccess.c: Add comments about platforms.
21279         * lib/unistd.in.h (access, euidaccess): Add warnings.
21280
21281 2010-03-07  Bruno Haible  <bruno@clisp.org>
21282
21283         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21284         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21285         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21286         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21287         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21288         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21289         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21290         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21291         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21293         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21294         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21295         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21296         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21297         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21298         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21299         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21300         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21301         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21302         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21303         Likewise.
21304         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21305         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21306         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21307         Likewise.
21308         * tests/test-spawn.c (main): Make it work when
21309         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21310
21311 2010-03-07  Bruno Haible  <bruno@clisp.org>
21312
21313         Fix incorrect Makefile.am generation in German locale.
21314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21315         Execute sed command with character range in C locale.
21316
21317 2010-03-06  Bruno Haible  <bruno@clisp.org>
21318
21319         Tests for module 'iconv-h'.
21320         * modules/iconv-h-tests: New file.
21321         * tests/test-iconv-h.c: New file.
21322
21323         New module 'iconv-h'.
21324         * modules/iconv-h: New file.
21325         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21326         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21327         (configure.ac): Remove gl_ICONV_H.
21328         (Makefile.am): Remove rule for iconv.h.
21329
21330 2010-03-06  Bruno Haible  <bruno@clisp.org>
21331
21332         More consistent naming of *.m4 files.
21333         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21334         * modules/wctype (Files): Update.
21335
21336         More consistent naming of *.m4 files.
21337         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21338         * modules/wchar (Files): Update.
21339
21340 2010-03-06  Jim Meyering  <meyering@redhat.com>
21341
21342         euidaccess: relax license to LGPLv2+
21343         * modules/euidaccess (License): Relax to LGPLv2+.
21344
21345 2010-03-06  Bruno Haible  <bruno@clisp.org>
21346
21347         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21348         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21349         (Makefile.am): Augment lib_SOURCES instead.
21350
21351 2010-03-04  Jim Meyering  <meyering@redhat.com>
21352
21353         utime: remove obsolete module
21354         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21355         unnecessary for years, and has been marked as obsolete for 10 months.
21356         * modules/utime: Remove file.
21357         * lib/utime.c: Remove file.
21358         * m4/utime.m4: Remove file.
21359         * m4/utimes-null.m4: Remove file.
21360         * doc/posix-functions/utime.texi (utime): Remove reference to
21361         the module.  Move the sole "fixed by gnulib" item into the
21362         "problems not fixed by Gnulib" list.
21363         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21364
21365 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21366
21367         * modules/exit (License): Relax license to LGPLv2+.
21368         (Status): Mark as obsolete.
21369         * NEWS: Mention deprecated 'exit' module.
21370         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21371         of now obsolete 'exit'.
21372
21373 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21374
21375         fts-lgpl: remove unused module
21376         * modules/fts-lgpl: Remove.
21377         * MODULES.html.sh (func_all_modules): Adjust.
21378         * check-module (find_included_lib_files): Adjust.
21379         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21380
21381 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21382
21383         copy-acl: enhance Solaris ACL error handling
21384         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21385         * lib/set-mode-acl.c (qset_acl): Likewise.
21386
21387 2010-03-02  Bruno Haible  <bruno@clisp.org>
21388
21389         spawn: Don't override the system defined values on FreeBSD 8.
21390         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21391         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21392         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21393         if HAVE_POSIX_SPAWN is 1.
21394         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21395
21396 2010-03-01  Bruno Haible  <bruno@clisp.org>
21397
21398         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21399         regarding Automake.
21400
21401 2010-02-25  Bruno Haible  <bruno@clisp.org>
21402
21403         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21404         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21405         setting, not afterwards.
21406         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21407
21408 2010-02-24  Eric Blake  <eblake@redhat.com>
21409
21410         bootstrap, git-version-gen: use timestamp
21411         * build-aux/git-version-gen (scriptversion): Force UTC.
21412         * build-aux/bootstrap (scriptversion): New variable.
21413
21414         bootstrap: allow older git
21415         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21416         older than 1.6.4.  Requested by the libvirt project.
21417
21418 2010-02-23  Eric Blake  <eblake@redhat.com>
21419
21420         warn-on-use: work with old autoconf
21421         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21422         AS_VAR semantics of autoconf 2.60.
21423         Reported by Bruno Haible.
21424
21425         bootstrap: improve some comments
21426         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21427         clarification comments.
21428
21429         gettimeofday: provide correct function
21430         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21431         when replacement is declared, otherwise provide gettimeofday.
21432         Reported by Michael Goffioul.
21433
21434 2010-02-23  Jim Meyering  <meyering@redhat.com>
21435
21436         lib-ignore: relax license to "unlimited", not LGPLv2+
21437         * modules/lib-ignore (License): Relax to "unlimited".
21438
21439 2010-02-23  Jim Meyering  <meyering@redhat.com>
21440
21441         lib-ignore: relax license to LGPLv2+
21442         * modules/lib-ignore (License): Relax to LGPLv2+.
21443
21444 2010-02-22  Eric Blake  <eblake@redhat.com>
21445
21446         lseek: avoid bash 3.2 broken pipe bug
21447         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21448         warning from bash 3.2.
21449         Reported by Ben Pfaff, with analysis from Bruno Haible.
21450
21451         bootstrap: support non-FSF copyright holder
21452         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21453         bootstrap.conf override of COPYRIGHT_HOLDER.
21454         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21455
21456         bootstrap: interoperate with gettext 0.14.1
21457         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21458
21459         bootstrap: allow for alternate submodule location
21460         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21461         hardcoding submodule location.
21462         (gnulib_mk): Allow direct use of Makefile.am.
21463
21464         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21465         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21466         rather than reconfiguring where the submodule points.
21467
21468         gettimeofday: restore support for platforms that lack function
21469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21470         replacement if function is missing.
21471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21472         * modules/sys_time (Makefile.am): Substitute it.
21473         * lib/sys_time.in.h (gettimeofday): Check it.
21474         Reported by Michael Goffioul.
21475
21476 2010-02-21  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/stdio.in.h (obstack_printf): Fix typo.
21479
21480 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21481
21482         vc-list-files: use bzr ls's -R option
21483         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21484         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21485
21486 2010-02-21  Jim Meyering  <meyering@redhat.com>
21487
21488         init.sh: fix EXEEXT shims to work also for names like test-prog
21489         * tests/init.sh: Re-exec a better shell, when needed.
21490         If the current shell lacks support for posix $(...), an init.sh-using
21491         test will now try to find a shell that supports that.  If EXEEXT is
21492         nonempty, we also require support for hyphen-in-alias-name and shell
21493         substitutions like ${var#glob}.  Failure to find such a shell results
21494         in a skipped test.
21495
21496 2010-02-21  Bruno Haible  <bruno@clisp.org>
21497
21498         Really work around around "broken pipe" error message from bash 3.2.
21499         * gnulib-tool (func_reset_sigpipe): Remove function.
21500         (echo): In bash 3.2, define to a function that uses printf.
21501         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21502
21503 2010-02-20  Bruno Haible  <bruno@clisp.org>
21504
21505         Restore support for automake 1.9.6 with autoconf 2.61.
21506         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21507         Reported by James Youngman <jay@gnu.org>.
21508
21509 2010-02-20  Bruno Haible  <bruno@clisp.org>
21510
21511         Improve *printf warning condition.
21512         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21513         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21514         and the function is overridden due to SIGPIPE emulation.
21515
21516 2010-02-20  Bruno Haible  <bruno@clisp.org>
21517
21518         * lib/stdio.in.h: Tweak comments.
21519
21520 2010-02-19  Bruno Haible  <bruno@clisp.org>
21521
21522         Make it easier to find modules. New gnulib-tool option '--find'.
21523         * gnulib-tool: New option --find.
21524         (func_usage): Document it.
21525         (func_sanitize_modulelist): New function, extracted from
21526         func_all_modules.
21527         (func_all_modules): Invoke it.
21528         * doc/gnulib-tool.texi (Which modules?): New node.
21529
21530 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21531
21532         * lib/sys_select.in.h: Provide select replacement even if
21533         sys/select.h exists on a system, for Interix.
21534
21535 2010-02-18  Jim Meyering  <meyering@redhat.com>
21536
21537         init.sh: don't use $(...) just yet
21538         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21539         to accommodate e.g., Solaris' /bin/sh.
21540
21541 2010-02-17  Bruno Haible  <bruno@clisp.org>
21542
21543         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21544         Reported by Ludovic Courtès <ludo@gnu.org>.
21545
21546 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21547
21548         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21549         linking with -lintl.
21550
21551 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21552
21553         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21554         if not provided by the system's netdb.h.  Reported by
21555         ludo@gnu.org (Ludovic Courtès).
21556
21557 2010-02-15  Jim Meyering  <meyering@redhat.com>
21558
21559         init.sh: improve portability and efficiency
21560         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21561         "dummy" in a for loop.
21562         Use '!', not '^' to select the complement of a character set used
21563         in a "case" statement.
21564         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21565         Suggestions from Eric Blake.
21566
21567         init.sh: automatically accommodate programs with the .exe suffix
21568         Automatically arrange for an invocation of "prog" to execute the
21569         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21570         may use the simpler "prog", yet still work when built on a system
21571         that requires specifying the added suffix.
21572         Do this by constructing a function named "prog" that invokes
21573         "prog.exe" for each .exe file in selected directories.
21574         * tests/init.sh (find_exe_basenames_): New function.
21575         (create_exe_shim_functions_): New function.
21576         (path_prepend_): Use it.
21577
21578         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21579         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21580         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21581
21582 2010-02-14  Jim Meyering  <meyering@redhat.com>
21583
21584         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21585         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21586         (sc_prohibit_hash_pjw_without_use): New rule.
21587
21588         maint.mk: allow the default upload destination dir to be overridden
21589         * top/maint.mk (upload_dest_dir_): Define with a default that
21590         preserves the status quo.
21591         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21592         Reported by Peter Simons.
21593
21594         maint.mk: prohibit inclusion of "hash.h" without_use
21595         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21596
21597 2010-02-10  Jim Meyering  <meyering@redhat.com>
21598
21599         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21600         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21601
21602 2010-02-09  Eric Blake  <ebb9@byu.net>
21603         and Bruno Haible  <bruno@clisp.org>
21604
21605         obstack-printf-posix: ensure declaration
21606         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21607         extracted from gl_FUNC_OBSTACK_PRINTF.
21608         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21609         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21610         Likewise.
21611         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21612         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21613         0.
21614
21615 2010-02-08  Bruno Haible  <bruno@clisp.org>
21616
21617         gnulib-tool: Fix typo in 2010-02-07 commit.
21618         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21619         Reported by Eric Blake.
21620
21621 2010-02-07  Bruno Haible  <bruno@clisp.org>
21622
21623         gnulib-tool: Fix up caching patches.
21624         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21625         option --no-cache. Use associative arrays when supported by the shell.
21626         (sed_comments): New variable.
21627         (modcache): Renamed from do_cache.
21628         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21629         abbreviate unnecessarily.
21630         (have_associative): New variable.
21631         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21632         way also for ksh and zsh.
21633         (func_init_sed_convert_to_cache_statements): New function, extracted
21634         from func_cache_lookup_module. Add support for associative arrays.
21635         Don't set the c_MODULE_cached variable here. Ignore all lines before
21636         the first field header. Remove only the final newline, not all trailing
21637         newlines. Support empty fields correctly. Limit the use of 'eval' to
21638         assignments.
21639         (func_get_description, func_get_status, func_get_notice,
21640         func_get_applicability, func_get_filelist, func_get_dependencies,
21641         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21642         func_get_automake_snippet, func_get_include_directive,
21643         func_get_link_directive, func_get_license, func_get_maintainer):
21644         Update documentation. List the unoptimized code first. Add support for
21645         associative arrays. Limit the use of 'eval' to assignments.
21646         (func_get_applicability): Undo stylistic pessimisations.
21647         (func_get_automake_snippet, func_get_include_directive): Reduce code
21648         duplication.
21649         (func_modules_transitive_closure, func_modules_add_dummy,
21650         func_modules_notice, func_modules_to_filelist, func_add_file,
21651         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21652         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21653         func_create_testdir, func_create_megatestdir): Update documentation.
21654
21655 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21656
21657         * gnulib-tool (func_cache_lookup_module): Store the module name
21658         belonging to the cache variable; error out if two different
21659         module names map to the same cache variable name.
21660
21661 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21662
21663         gnulib-tool: Make caching optional.
21664         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21665         Update matching short versions of --no-changelog.
21666         (func_usage): Update.
21667         (sed_extract_cache_prog): Renamed from ...
21668         (sed_extract_prog): ... this; revert to old extraction script.
21669         (func_get_description, func_get_status)
21670         (func_get_notice, func_get_applicability, func_get_filelist)
21671         (func_get_dependencies, func_get_autoconf_early_snippet)
21672         (func_get_autoconf_snippet, func_get_automake_snippet)
21673         (func_get_include_directive, func_get_link_directive)
21674         (func_get_license, func_get_maintainer): If $do_cache is false,
21675         use old, non-caching extraction scripts.
21676         Suggestion by Bruno Haible.
21677
21678 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21679
21680         gnulib-tool: cache module metainformation.
21681         * gnulib-tool (sed_extract_prog): Match newline before each
21682         header, and rewrite header to a shell variable suffix.
21683         (func_cache_var, func_cache_lookup_module): New functions,
21684         to turn a module name into a cache variable prefix, and to
21685         look up and cache module metainformation.
21686         (func_get_description, func_get_status)
21687         (func_get_notice, func_get_applicability, func_get_filelist)
21688         (func_get_dependencies, func_get_autoconf_early_snippet)
21689         (func_get_autoconf_snippet, func_get_automake_snippet)
21690         (func_get_include_directive, func_get_link_directive)
21691         (func_get_license, func_get_maintainer): Use
21692         func_cache_lookup_module.
21693
21694 2010-02-07  Bruno Haible  <bruno@clisp.org>
21695
21696         fnctl: Fix missing dependency.
21697         * modules/fcntl (Depends-on): Add getdtablesize.
21698         Reported by John W. Eaton <jwe@gnu.org>.
21699
21700 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21701
21702         Argp: fix recognition of short alias options.
21703
21704         * lib/argp-parse.c (convert_options): Fix improper use of
21705         `|' between character values.
21706         * tests/test-argp.c (group1_option): New alias option
21707         --read (-r).
21708         (group1_parser): Special handling for 'r'.
21709         (test15): New test case.
21710         (test_fun): Add test15.
21711         * tests/test-argp-2.sh: Update expected --help and --usage
21712         outputs.
21713
21714 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21715
21716         * tests/test-argp.c: Fix indentation.
21717
21718 2010-02-04  Eric Blake  <ebb9@byu.net>
21719
21720         gettimeofday: expose type of second argument
21721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21722         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21723         * tests/test-gettimeofday.c: Use it to silence warning.
21724         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21725         the issue.
21726
21727 2010-02-03  Jim Meyering  <meyering@redhat.com>
21728
21729         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21730         * lib/regcomp.c (TYPE_SIGNED): Define.
21731         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21732
21733         regcomp.c: avoid a new -Wshadow warning
21734         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21735
21736 2010-02-01  Jim Meyering  <meyering@redhat.com>
21737
21738         removing useless parentheses in cpp #define directives
21739         For motivation, see commit c0221df4, "define STREQ(a,b)
21740         consistently, removing useless parentheses"
21741         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21742         * lib/mountlist.c (MNT_IGNORE): Likewise.
21743         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21744
21745 2010-02-01  Eric Blake  <ebb9@byu.net>
21746
21747         sys_time: use link-warning
21748         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21749         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21750         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21751         * modules/sys_time (Depends-on): Add warn-on-use.
21752         (Makefile.am): Always build replacement.
21753         (configure.ac): Update substitutions.
21754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21755         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21756         bother with SYS_TIME_H.
21757         * modules/gettimeofday (configure.ac): Declare indicator.
21758         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21759         in use.
21760
21761         closein-tests: silence compiler warning
21762         * tests/test-closein.c (main): Ignore fread result.
21763         * modules/closein-tests (Depends-on): Add ignore-value.
21764
21765         tests: silence warning about system return
21766         * tests/test-areadlink-with-size.c (main): Ignore system result.
21767         * tests/test-areadlink.c (main): Likewise.
21768         * tests/test-areadlinkat-with-size.c (main): Likewise.
21769         * tests/test-areadlinkat.c (main): Likewise.
21770         * tests/test-canonicalize-lgpl.c (main): Likewise.
21771         * tests/test-canonicalize.c (main): Likewise.
21772         * tests/test-chown.c (main): Likewise.
21773         * tests/test-fchownat.c (main): Likewise.
21774         * tests/test-fdutimensat.c (main): Likewise.
21775         * tests/test-fstatat.c (main): Likewise.
21776         * tests/test-futimens.c (main): Likewise.
21777         * tests/test-lchown.c (main): Likewise.
21778         * tests/test-link.c (main): Likewise.
21779         * tests/test-linkat.c (main): Likewise.
21780         * tests/test-lstat.c (main): Likewise.
21781         * tests/test-mkdir.c (main): Likewise.
21782         * tests/test-mkdirat.c (main): Likewise.
21783         * tests/test-mkfifo.c (main): Likewise.
21784         * tests/test-mkfifoat.c (main): Likewise.
21785         * tests/test-mknod.c (main): Likewise.
21786         * tests/test-readlink.c (main): Likewise.
21787         * tests/test-remove.c (main): Likewise.
21788         * tests/test-rename.c (main): Likewise.
21789         * tests/test-renameat.c (main): Likewise.
21790         * tests/test-rmdir.c (main): Likewise.
21791         * tests/test-symlink.c (main): Likewise.
21792         * tests/test-symlinkat.c (main): Likewise.
21793         * tests/test-unlink.c (main): Likewise.
21794         * tests/test-unlinkat.c (main): Likewise.
21795         * tests/test-utimens.c (main): Likewise.
21796         * tests/test-utimensat.c (main): Likewise.
21797         * modules/areadlink-tests (Depends-on): Add ignore-value.
21798         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21799         * modules/areadlinkat-tests (Depends-on): Likewise.
21800         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21801         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21802         * modules/canonicalize-tests (Depends-on): Likewise.
21803         * modules/chown-tests (Depends-on): Likewise.
21804         * modules/fdutimensat-tests (Depends-on): Likewise.
21805         * modules/futimens-tests (Depends-on): Likewise.
21806         * modules/lchown-tests (Depends-on): Likewise.
21807         * modules/link-tests (Depends-on): Likewise.
21808         * modules/linkat-tests (Depends-on): Likewise.
21809         * modules/lstat-tests (Depends-on): Likewise.
21810         * modules/mkdir-tests (Depends-on): Likewise.
21811         * modules/mkfifo-tests (Depends-on): Likewise.
21812         * modules/mkfifoat-tests (Depends-on): Likewise.
21813         * modules/mknod-tests (Depends-on): Likewise.
21814         * modules/openat-tests (Depends-on): Likewise.
21815         * modules/readlink-tests (Depends-on): Likewise.
21816         * modules/remove-tests (Depends-on): Likewise.
21817         * modules/rename-tests (Depends-on): Likewise.
21818         * modules/renameat-tests (Depends-on): Likewise.
21819         * modules/rmdir-tests (Depends-on): Likewise.
21820         * modules/symlink-tests (Depends-on): Likewise.
21821         * modules/symlinkat-tests (Depends-on): Likewise.
21822         * modules/unlink-tests (Depends-on): Likewise.
21823         * modules/utimens-tests (Depends-on): Likewise.
21824         * modules/utimensat-tests (Depends-on): Likewise.
21825
21826 2010-01-31  Bruno Haible  <bruno@clisp.org>
21827
21828         Perform the same test for many <math.h> functions.
21829         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21830         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21831         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21832         of gl_MATHFUNC.
21833         * modules/acos (configure.ac): Likewise.
21834         * modules/asin (configure.ac): Likewise.
21835         * modules/atan (configure.ac): Likewise.
21836         * modules/atan2 (configure.ac): Likewise.
21837         * modules/cbrt (configure.ac): Likewise.
21838         * modules/copysign (configure.ac): Likewise.
21839         * modules/cos (configure.ac): Likewise.
21840         * modules/cosh (configure.ac): Likewise.
21841         * modules/erf (configure.ac): Likewise.
21842         * modules/erfc (configure.ac): Likewise.
21843         * modules/exp (configure.ac): Likewise.
21844         * modules/fmod (configure.ac): Likewise.
21845         * modules/hypot (configure.ac): Likewise.
21846         * modules/j0 (configure.ac): Likewise.
21847         * modules/j1 (configure.ac): Likewise.
21848         * modules/jn (configure.ac): Likewise.
21849         * modules/lgamma (configure.ac): Likewise.
21850         * modules/log (configure.ac): Likewise.
21851         * modules/log10 (configure.ac): Likewise.
21852         * modules/log1p (configure.ac): Likewise.
21853         * modules/pow (configure.ac): Likewise.
21854         * modules/remainder (configure.ac): Likewise.
21855         * modules/sin (configure.ac): Likewise.
21856         * modules/sinh (configure.ac): Likewise.
21857         * modules/tan (configure.ac): Likewise.
21858         * modules/tanh (configure.ac): Likewise.
21859         * modules/y0 (configure.ac): Likewise.
21860         * modules/y1 (configure.ac): Likewise.
21861         * modules/yn (configure.ac): Likewise.
21862         Suggested by Paolo Bonzini.
21863
21864 2010-01-31  Bruno Haible  <bruno@clisp.org>
21865
21866         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21867
21868 2010-01-31  Bruno Haible  <bruno@clisp.org>
21869
21870         Work around getdelim() bug on FreeBSD 8.0.
21871         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21872         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21873         not work.
21874         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21875         is 1.
21876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21877         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21878         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21879         a non-zero size.
21880         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21881
21882 2010-01-31  Bruno Haible  <bruno@clisp.org>
21883
21884         Work around getline() bug on FreeBSD 8.0.
21885         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21886         and a non-zero size.
21887         * tests/test-getline.c (main): Likewise.
21888         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21889         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21890
21891 2010-01-28  Eric Blake  <ebb9@byu.net>
21892
21893         regex: fix build failure
21894         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21895         platforms.
21896
21897 2010-01-28  Jim Meyering  <meyering@redhat.com>
21898
21899         regex: do not ignore memory allocation failure
21900         * lib/regex_internal.c (create_cd_newstate): Detect
21901         re_node_set_init_copy failure.   Extracted from glibc commit
21902         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21903
21904         regex: sync more white-space changes from libc
21905         * lib/regex_internal.c: White-space only changes.
21906         * lib/regexec.c: Likewise.
21907
21908         regex: add many uses of __attribute_warn_unused_result__
21909         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21910         * lib/regexec.c: Likewise.
21911         Extracted from a messy glibc commit.
21912
21913         regcomp.c: spelling and merge-artifact from glibc
21914         * lib/regcomp.c: Merge remainder of glibc's
21915         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21916
21917         regcomp.c: sync white-space changes from glibc
21918         * lib/regcomp.c: Merge to accommodate white space
21919         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21920
21921         regcomp.c: do not ignore internal return values
21922         * lib/regcomp.c: Do not ignore internal return values.
21923         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21924         but without its white-space changes and spelling fixes.
21925
21926         regex_internal.h: define __attribute_warn_unused_result__
21927         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21928
21929         maint: add a syntax-check rule to check for vulnerable Makefile.in
21930         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21931
21932 2010-01-27  Jim Meyering  <meyering@redhat.com>
21933
21934         ncftpput-ftp: clean up spaces
21935         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21936         Remove trailing blanks.
21937
21938 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21939
21940         * build-aux/git-version-gen: Fix copyright statement.
21941         * build-aux/gnupload: Likewise.
21942         * tests/test-arcfour.c: Likewise.
21943         * tests/test-arctwo.c: Likewise.
21944         * tests/test-count-one-bits.c: Likewise.
21945         * tests/test-crc.c: Likewise.
21946         * tests/test-des.c: Likewise.
21947         * tests/test-gc-arcfour.c: Likewise.
21948         * tests/test-gc-arctwo.c: Likewise.
21949         * tests/test-gc-des.c: Likewise.
21950         * tests/test-gc-hmac-md5.c: Likewise.
21951         * tests/test-gc-hmac-sha1.c: Likewise.
21952         * tests/test-gc-md2.c: Likewise.
21953         * tests/test-gc-md4.c: Likewise.
21954         * tests/test-gc-md5.c: Likewise.
21955         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21956         * tests/test-gc-rijndael.c: Likewise.
21957         * tests/test-gc-sha1.c: Likewise.
21958         * tests/test-gc.c: Likewise.
21959         * tests/test-gethostname.c: Likewise.
21960         * tests/test-gettimeofday.c: Likewise.
21961         * tests/test-hash.c: Likewise.
21962         * tests/test-hmac-md5.c: Likewise.
21963         * tests/test-hmac-sha1.c: Likewise.
21964         * tests/test-md2.c: Likewise.
21965         * tests/test-md4.c: Likewise.
21966         * tests/test-md5.c: Likewise.
21967         * tests/test-memchr.c: Likewise.
21968         * tests/test-memchr2.c: Likewise.
21969         * tests/test-memcmp.c: Likewise.
21970         * tests/test-memmem.c: Likewise.
21971         * tests/test-memrchr.c: Likewise.
21972         * tests/test-rawmemchr.c: Likewise.
21973         * tests/test-read-file.c: Likewise.
21974         * tests/test-rijndael.c: Likewise.
21975         * tests/test-sockets.c: Likewise.
21976         * tests/test-strchrnul.c: Likewise.
21977         * tests/test-strstr.c: Likewise.
21978         * tests/test-strtod.c: Likewise.
21979         * build-aux/ncftpput-ftp: Likewise.
21980
21981 2010-01-26  Eric Blake  <ebb9@byu.net>
21982
21983         ignore-value: update recommended header name
21984         * modules/ignore-value (Include): Only use <> for headers that
21985         exist in glibc.
21986
21987 2010-01-26  Jim Meyering  <meyering@redhat.com>
21988
21989         test-userspec.c: avoid compiler warnings
21990         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21991         and "initialization discards qualifiers..." warnings.
21992         Put the first "uid" in its own scope, and make char* members "const".
21993
21994 2010-01-25  Bruno Haible  <bruno@clisp.org>
21995
21996         gnulib-tool: Make warning diagnostics consistent.
21997         * gnulib-tool (func_warning): New function.
21998         Use it everywhere where gnulib-tool produces output to stderr and it is
21999         not a fatal error.
22000
22001 2010-01-25  Bruno Haible  <bruno@clisp.org>
22002
22003         Fix test dependencies.
22004         * modules/xstrtol-tests (Depends-on): Add inttypes.
22005         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22006
22007 2010-01-25 Pádraig Brady <P@draigBrady.com>
22008
22009         syntax-check: detect incorrect boolean macro values in config.h
22010         * modules/maintainer-makefile (configure.ac): Parameterize the location
22011         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22012         The logic is from Eric Blake and the location indicated by Jim Meyering.
22013         Note the more natural CONFIG_HEADER name is prohibited by automake
22014         for backwards compatibility reasons.
22015         * top/maint.mk (sc_Wundef_boolean): New rule.
22016
22017 2010-01-25  Jim Meyering  <meyering@redhat.com>
22018
22019         bootstrap: detect MacOS 10.6's shasum, too
22020         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22021         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22022
22023 2010-01-23  Jim Meyering  <meyering@redhat.com>
22024
22025         xstrtoll: new module
22026         * modules/xstrtoll: New file.
22027         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22028         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22029         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22030         ./configure fails if you use this module and lack "long long".
22031         * modules/xstrtoll-tests: New module.
22032         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22033         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22034         new init.sh-based test framework.
22035
22036 2010-01-24  Bruno Haible  <bruno@clisp.org>
22037
22038         Tests for module 'yn'.
22039         * modules/yn-tests: New file.
22040         * tests/test-yn.c: New file.
22041
22042         Tests for module 'y1'.
22043         * modules/y1-tests: New file.
22044         * tests/test-y1.c: New file.
22045
22046         Tests for module 'y0'.
22047         * modules/y0-tests: New file.
22048         * tests/test-y0.c: New file.
22049
22050         Tests for module 'tanh'.
22051         * modules/tanh-tests: New file.
22052         * tests/test-tanh.c: New file.
22053
22054         Tests for module 'tan'.
22055         * modules/tan-tests: New file.
22056         * tests/test-tan.c: New file.
22057
22058         Tests for module 'sqrt'.
22059         * modules/sqrt-tests: New file.
22060         * tests/test-sqrt.c: New file.
22061
22062         Tests for module 'sinh'.
22063         * modules/sinh-tests: New file.
22064         * tests/test-sinh.c: New file.
22065
22066         Tests for module 'sin'.
22067         * modules/sin-tests: New file.
22068         * tests/test-sin.c: New file.
22069
22070         Tests for module 'rint'.
22071         * modules/rint-tests: New file.
22072         * tests/test-rint.c: New file.
22073
22074         Tests for module 'remainder'.
22075         * modules/remainder-tests: New file.
22076         * tests/test-remainder.c: New file.
22077
22078         Tests for module 'pow'.
22079         * modules/pow-tests: New file.
22080         * tests/test-pow.c: New file.
22081
22082         Tests for module 'nextafter'.
22083         * modules/nextafter-tests: New file.
22084         * tests/test-nextafter.c: New file.
22085
22086         Tests for module 'modf'.
22087         * modules/modf-tests: New file.
22088         * tests/test-modf.c: New file.
22089
22090         Tests for module 'logb'.
22091         * modules/logb-tests: New file.
22092         * tests/test-logb.c: New file.
22093
22094         Tests for module 'log1p'.
22095         * modules/log1p-tests: New file.
22096         * tests/test-log1p.c: New file.
22097
22098         Tests for module 'log10'.
22099         * modules/log10-tests: New file.
22100         * tests/test-log10.c: New file.
22101
22102         Tests for module 'log'.
22103         * modules/log-tests: New file.
22104         * tests/test-log.c: New file.
22105
22106         Tests for module 'lgamma'.
22107         * modules/lgamma-tests: New file.
22108         * tests/test-lgamma.c: New file.
22109
22110         Tests for module 'ldexp'.
22111         * modules/ldexp-tests: New file.
22112         * tests/test-ldexp.c: New file.
22113
22114         Tests for module 'jn'.
22115         * modules/jn-tests: New file.
22116         * tests/test-jn.c: New file.
22117
22118         Tests for module 'j1'.
22119         * modules/j1-tests: New file.
22120         * tests/test-j1.c: New file.
22121
22122         Tests for module 'j0'.
22123         * modules/j0-tests: New file.
22124         * tests/test-j0.c: New file.
22125
22126         Tests for module 'hypot'.
22127         * modules/hypot-tests: New file.
22128         * tests/test-hypot.c: New file.
22129
22130         Tests for module 'fmod'.
22131         * modules/fmod-tests: New file.
22132         * tests/test-fmod.c: New file.
22133
22134         Tests for module 'fabs'.
22135         * modules/fabs-tests: New file.
22136         * tests/test-fabs.c: New file.
22137
22138         Tests for module 'exp'.
22139         * modules/exp-tests: New file.
22140         * tests/test-exp.c: New file.
22141
22142         Tests for module 'erfc'.
22143         * modules/erfc-tests: New file.
22144         * tests/test-erfc.c: New file.
22145
22146         Tests for module 'erf'.
22147         * modules/erf-tests: New file.
22148         * tests/test-erf.c: New file.
22149
22150         Tests for module 'cosh'.
22151         * modules/cosh-tests: New file.
22152         * tests/test-cosh.c: New file.
22153
22154         Tests for module 'cos'.
22155         * modules/cos-tests: New file.
22156         * tests/test-cos.c: New file.
22157
22158         Tests for module 'copysign'.
22159         * modules/copysign-tests: New file.
22160         * tests/test-copysign.c: New file.
22161
22162         Tests for module 'cbrt'.
22163         * modules/cbrt-tests: New file.
22164         * tests/test-cbrt.c: New file.
22165
22166         Tests for module 'atan2'.
22167         * modules/atan2-tests: New file.
22168         * tests/test-atan2.c: New file.
22169
22170         Tests for module 'atan'.
22171         * modules/atan-tests: New file.
22172         * tests/test-atan.c: New file.
22173
22174         Tests for module 'asin'.
22175         * modules/asin-tests: New file.
22176         * tests/test-asin.c: New file.
22177
22178         Tests for module 'acos'.
22179         * modules/acos-tests: New file.
22180         * tests/test-acos.c: New file.
22181
22182 2010-01-24  Bruno Haible  <bruno@clisp.org>
22183
22184         Fix tests for common <math.h> functions.
22185         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22186         code snippet that references the function pointer, rather than merely
22187         calling the function. Substitute the FUNC_LIBM variable.
22188         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22189         * modules/acos (configure.ac): Likewise.
22190         * modules/asin (configure.ac): Likewise.
22191         * modules/atan (configure.ac): Likewise.
22192         * modules/atan2 (configure.ac): Likewise.
22193         * modules/cbrt (configure.ac): Likewise.
22194         * modules/copysign (configure.ac): Likewise.
22195         * modules/cos (configure.ac): Likewise.
22196         * modules/cosh (configure.ac): Likewise.
22197         * modules/erf (configure.ac): Likewise.
22198         * modules/erfc (configure.ac): Likewise.
22199         * modules/exp (configure.ac): Likewise.
22200         * modules/fabs (configure.ac): Likewise.
22201         * modules/fmod (configure.ac): Likewise.
22202         * modules/hypot (configure.ac): Likewise.
22203         * modules/j0 (configure.ac): Likewise.
22204         * modules/j1 (configure.ac): Likewise.
22205         * modules/jn (configure.ac): Likewise.
22206         * modules/ldexp (configure.ac): Likewise.
22207         * modules/lgamma (configure.ac): Likewise.
22208         * modules/log (configure.ac): Likewise.
22209         * modules/log10 (configure.ac): Likewise.
22210         * modules/log1p (configure.ac): Likewise.
22211         * modules/logb (configure.ac): Likewise.
22212         * modules/modf (configure.ac): Likewise.
22213         * modules/nextafter (configure.ac): Likewise.
22214         * modules/pow (configure.ac): Likewise.
22215         * modules/remainder (configure.ac): Likewise.
22216         * modules/rint (configure.ac): Likewise.
22217         * modules/sin (configure.ac): Likewise.
22218         * modules/sinh (configure.ac): Likewise.
22219         * modules/tan (configure.ac): Likewise.
22220         * modules/tanh (configure.ac): Likewise.
22221         * modules/y0 (configure.ac): Likewise.
22222         * modules/y1 (configure.ac): Likewise.
22223         * modules/yn (configure.ac): Likewise.
22224
22225 2010-01-24  Bruno Haible  <bruno@clisp.org>
22226
22227         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22228         * tests/test-acosl.c (x): New variable.
22229         (main): Store argument in x and fetch it from x.
22230         * tests/test-asinl.c (x): New variable.
22231         (main): Store argument in x and fetch it from x.
22232         * tests/test-atanl.c (x): New variable.
22233         (main): Store argument in x and fetch it from x.
22234         * tests/test-cosl.c (x): New variable.
22235         (main): Store argument in x and fetch it from x.
22236         * tests/test-expl.c (x): New variable.
22237         (main): Store argument in x and fetch it from x.
22238         * tests/test-logl.c (x): New variable.
22239         (main): Store argument in x and fetch it from x.
22240         * tests/test-sinl.c (x): New variable.
22241         (main): Store argument in x and fetch it from x.
22242         * tests/test-sqrtl.c (x): New variable.
22243         (main): Store argument in x and fetch it from x.
22244         * tests/test-tanl.c (x): New variable.
22245         (main): Store argument in x and fetch it from x.
22246
22247 2010-01-24  Bruno Haible  <bruno@clisp.org>
22248
22249         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22250         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22251         assignments to the initial TESTS_ENVIRONMENT.
22252         * doc/gnulib.texi (Unit test modules): Document it.
22253         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22254         TESTS_ENVIRONMENT.
22255         * modules/btowc-tests (Makefile.am): Likewise.
22256         * modules/c-stack-tests (Makefile.am): Likewise.
22257         * modules/c-strcase-tests (Makefile.am): Likewise.
22258         * modules/copy-file-tests (Makefile.am): Likewise.
22259         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22260         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22261         * modules/mbrtowc-tests (Makefile.am): Likewise.
22262         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22263         * modules/mbscasestr-tests (Makefile.am): Likewise.
22264         * modules/mbschr-tests (Makefile.am): Likewise.
22265         * modules/mbscspn-tests (Makefile.am): Likewise.
22266         * modules/mbsinit-tests (Makefile.am): Likewise.
22267         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22268         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22269         * modules/mbspbrk-tests (Makefile.am): Likewise.
22270         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22271         * modules/mbsrchr-tests (Makefile.am): Likewise.
22272         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22273         * modules/mbsspn-tests (Makefile.am): Likewise.
22274         * modules/mbsstr-tests (Makefile.am): Likewise.
22275         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22276         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22277         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22278         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22279         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22280         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22281         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22282         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22283         * modules/wcrtomb-tests (Makefile.am): Likewise.
22284         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22285         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22286         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22287         assignments from TESTS_ENVIRONMENT.
22288         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22289         augmentation.
22290         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22291         * modules/atexit-tests (Makefile.am): Likewise.
22292         * modules/binary-io-tests (Makefile.am): Likewise.
22293         * modules/closein-tests (Makefile.am): Likewise.
22294         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22295         * modules/exclude-tests (Makefile.am): Likewise.
22296         * modules/fflush-tests (Makefile.am): Likewise.
22297         * modules/fpending-tests (Makefile.am): Likewise.
22298         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22299         * modules/freadahead-tests (Makefile.am): Likewise.
22300         * modules/freadptr-tests (Makefile.am): Likewise.
22301         * modules/freadseek-tests (Makefile.am): Likewise.
22302         * modules/fseek-tests (Makefile.am): Likewise.
22303         * modules/fseeko-tests (Makefile.am): Likewise.
22304         * modules/ftell-tests (Makefile.am): Likewise.
22305         * modules/ftello-tests (Makefile.am): Likewise.
22306         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22307         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22308         * modules/lseek-tests (Makefile.am): Likewise.
22309         * modules/parse-duration-tests (Makefile.am): Likewise.
22310         * modules/perror-tests (Makefile.am): Likewise.
22311         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22312         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22313         * modules/pipe-tests (Makefile.am): Likewise.
22314         * modules/pread-tests (Makefile.am): Likewise.
22315         * modules/printf-posix-tests (Makefile.am): Likewise.
22316         * modules/select-tests (Makefile.am): Likewise.
22317         * modules/sigpipe-tests (Makefile.am): Likewise.
22318         * modules/tsearch-tests (Makefile.am): Likewise.
22319         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22320         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22321         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22322         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22323         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22324         * modules/version-etc-tests (Makefile.am): Likewise.
22325         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22326         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22327         * modules/xalloc-die-tests (Makefile.am): Likewise.
22328         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22329         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22330         * modules/xstrtol-tests (Makefile.am): Likewise.
22331         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22332         * modules/yesno-tests (Makefile.am): Likewise.
22333         Suggested by Jim Meyering.
22334
22335 2010-01-24  Bruno Haible  <bruno@clisp.org>
22336
22337         More documentation.
22338         * doc/gnulib.texi (Writing modules): New chapter.
22339         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22340         the new chapter.
22341
22342 2010-01-24  Jim Meyering  <meyering@redhat.com>
22343
22344         maint.mk: do not prepend "./" after filtering
22345         * top/maint.mk (_prepend_srcdir_prefix): New variable
22346         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22347         "./" when $(srcdir) is ".".
22348
22349         define STREQ(a,b) consistently, removing useless parentheses
22350         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22351         since the only risk is that "a" or "b" contains an unparenthesized
22352         comma, but if either did that, STREQ would have 3 or more arguments.
22353         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22354         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22355         * lib/hash-triple.c (STREQ): Likewise.
22356         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22357         * lib/getugroups.c (STREQ): Likewise.
22358
22359 2010-01-23  Jim Meyering  <meyering@redhat.com>
22360
22361         maint.mk: fix syntax-check in a non-srcdir build directory
22362         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22363         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22364
22365 2010-01-22  Jim Meyering  <meyering@redhat.com>
22366
22367         userspec: add unit tests
22368         * tests/test-userspec.c: New file.
22369         * modules/userspec-tests: Likewise.
22370
22371 2010-01-21  Jim Meyering  <meyering@redhat.com>
22372
22373         maint.mk: handle source file names containing "." robustly
22374         * top/maint.mk (_dot_escaped_srcdir): Define.
22375         (VC_LIST): Use it in LHS of sed substitution.
22376
22377 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22378
22379         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22380         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22381         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22382         from a non-srcdir build.
22383
22384 2010-01-20  Eric Blake  <ebb9@byu.net>
22385
22386         warn-on-use: use instead of link-warning
22387         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22388         * modules/unistd (Depends-on, Makefile.am): Likewise.
22389         * modules/arpa_inet (Depends-on): Replace link-warning with
22390         warn-on-use.
22391         (Makefile.am): Update rules accordingly.
22392         * modules/ctype (Depends-on, Makefile.am): Likewise.
22393         * modules/dirent (Depends-on, Makefile.am): Likewise.
22394         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22395         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22396         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22397         * modules/locale (Depends-on, Makefile.am): Likewise.
22398         * modules/math (Depends-on, Makefile.am): Likewise.
22399         * modules/search (Depends-on, Makefile.am): Likewise.
22400         * modules/signal (Depends-on, Makefile.am): Likewise.
22401         * modules/spawn (Depends-on, Makefile.am): Likewise.
22402         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22403         * modules/string (Depends-on, Makefile.am): Likewise.
22404         * modules/strings (Depends-on, Makefile.am): Likewise.
22405         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22406         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22407         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22408         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22409         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22410         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22411         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22412         * modules/wchar (Depends-on, Makefile.am): Likewise.
22413         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22414         should be poisoned.
22415         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22416         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22417         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22420         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22421         * m4/math_h.m4 (gl_MATH_H): Likewise.
22422         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22423         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22425         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22426         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22427         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22428         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22429         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22434         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22436         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22437         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22438         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22439         GL_LINK_WARNING.
22440         * lib/ctype.in.h: Likewise.
22441         * lib/dirent.in.h: Likewise.
22442         * lib/fcntl.in.h: Likewise.
22443         * lib/inttypes.in.h: Likewise.
22444         * lib/langinfo.in.h: Likewise.
22445         * lib/locale.in.h: Likewise.
22446         * lib/math.in.h: Likewise.
22447         * lib/search.in.h: Likewise.
22448         * lib/signal.in.h: Likewise.
22449         * lib/spawn.in.h: Likewise.
22450         * lib/stdio.in.h: Likewise.
22451         * lib/stdlib.in.h: Likewise.
22452         * lib/string.in.h: Likewise.
22453         * lib/strings.in.h: Likewise.
22454         * lib/sys_file.in.h: Likewise.
22455         * lib/sys_ioctl.in.h: Likewise.
22456         * lib/sys_select.in.h: Likewise.
22457         * lib/sys_socket.in.h: Likewise.
22458         * lib/sys_stat.in.h: Likewise.
22459         * lib/sys_times.in.h: Likewise.
22460         * lib/sys_utsname.in.h: Likewise.
22461         * lib/unistd.in.h: Likewise.
22462         * lib/wchar.in.h: Likewise.
22463
22464 2010-01-20  Bruno Haible  <bruno@clisp.org>
22465
22466         Avoid duplicate -lm.
22467         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22468         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22471         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22472         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22473         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22474         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22475         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22476         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22477         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22478         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22479         Reported by Paolo Bonzini.
22480
22481 2010-01-19  Bruno Haible  <bruno@clisp.org>
22482
22483         langinfo, nl_langinfo: Relicense under LGPLv2+.
22484         * modules/langinfo (License): Change to LGPLv2+.
22485         * modules/nl_langinfo (License): Likewise.
22486         Patch by David Lutterkort <lutter@redhat.com>.
22487
22488 2010-01-19  Bruno Haible  <bruno@clisp.org>
22489
22490         Avoid compilation error with cc on OSF/1 5.1.
22491         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22492         statement, not before.
22493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22494
22495 2010-01-18  Bruno Haible  <bruno@clisp.org>
22496
22497         Avoid a link error due to the __printf__ symbol.
22498         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22499         and 2.6.x.
22500         (__format__, __printf__): Remove definitions.
22501         * lib/argp-fmtstream.h: Likewise.
22502         * lib/argp.h: Likewise.
22503         * lib/error.h: Likewise.
22504         * lib/vasnprintf.h: Likewise.
22505         * lib/xprintf.h: Likewise.
22506         * lib/xvasprintf.h: Likewise.
22507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22508
22509 2010-01-18  Bruno Haible  <bruno@clisp.org>
22510
22511         Tests for module 'tanl'.
22512         * modules/tanl-tests: New file.
22513         * tests/test-tanl.c: New file.
22514
22515         Tests for module 'sqrtl'.
22516         * modules/sqrtl-tests: New file.
22517         * tests/test-sqrtl.c: New file.
22518
22519         Tests for module 'sinl'.
22520         * modules/sinl-tests: New file.
22521         * tests/test-sinl.c: New file.
22522
22523         Tests for module 'logl'.
22524         * modules/logl-tests: New file.
22525         * tests/test-logl.c: New file.
22526
22527         Tests for module 'expl'.
22528         * modules/expl-tests: New file.
22529         * tests/test-expl.c: New file.
22530
22531         Tests for module 'cosl'.
22532         * modules/cosl-tests: New file.
22533         * tests/test-cosl.c: New file.
22534
22535         Tests for module 'atanl'.
22536         * modules/atanl-tests: New file.
22537         * tests/test-atanl.c: New file.
22538
22539         Tests for module 'asinl'.
22540         * modules/asinl-tests: New file.
22541         * tests/test-asinl.c: New file.
22542
22543         Tests for module 'acosl'.
22544         * modules/acosl-tests: New file.
22545         * tests/test-acosl.c: New file.
22546
22547         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22548         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22549         tanl): Use the standard gnulib idiom.
22550         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22551         * lib/sinl.c: Likewise.
22552         * lib/tanl.c: Don't include trigl.c.
22553         (kernel_tanl): Make static.
22554         * lib/sincosl.c: Include trigl.h first.
22555         * lib/trigl.c: Likewise.
22556         * m4/acosl.m4: New file.
22557         * m4/asinl.m4: New file.
22558         * m4/atanl.m4: New file.
22559         * m4/cosl.m4: New file.
22560         * m4/expl.m4: New file.
22561         * m4/logl.m4: New file.
22562         * m4/sinl.m4: New file.
22563         * m4/sqrtl.m4: New file.
22564         * m4/tanl.m4: New file.
22565         * m4/mathl.m4: Remove file.
22566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22567         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22568         Don't initialize GNULIB_MATHL.
22569         * modules/acosl: New file.
22570         * modules/asinl: New file.
22571         * modules/atanl: New file.
22572         * modules/cosl: New file.
22573         * modules/expl: New file.
22574         * modules/logl: New file.
22575         * modules/sinl: New file.
22576         * modules/sqrtl: New file.
22577         * modules/tanl: New file.
22578         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22579         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22580         substitute GNULIB_MATHL.
22581         * modules/mathl: Rewritten.
22582         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22583         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22584         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22585         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22586         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22587         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22588         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22589         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22590         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22591
22592 2010-01-18  Bruno Haible  <bruno@clisp.org>
22593
22594         sqrt: Make gl_FUNC_SQRT requirable.
22595         * m4/sqrt.m4: New file.
22596         * modules/sqrt (Files): Add it.
22597         (configure.ac): Invoke gl_FUNC_SQRT.
22598
22599 2010-01-18  Bruno Haible  <bruno@clisp.org>
22600
22601         New modules for common <math.h> functions.
22602         * m4/mathfunc.m4: New file.
22603         * modules/acos: New file.
22604         * modules/asin: New file.
22605         * modules/atan: New file.
22606         * modules/atan2: New file.
22607         * modules/cbrt: New file.
22608         * modules/copysign: New file.
22609         * modules/cos: New file.
22610         * modules/cosh: New file.
22611         * modules/erf: New file.
22612         * modules/erfc: New file.
22613         * modules/exp: New file.
22614         * modules/fabs: New file.
22615         * modules/fmod: New file.
22616         * modules/hypot: New file.
22617         * modules/j0: New file.
22618         * modules/j1: New file.
22619         * modules/jn: New file.
22620         * modules/ldexp: New file.
22621         * modules/lgamma: New file.
22622         * modules/log: New file.
22623         * modules/log10: New file.
22624         * modules/log1p: New file.
22625         * modules/logb: New file.
22626         * modules/modf: New file.
22627         * modules/nextafter: New file.
22628         * modules/pow: New file.
22629         * modules/remainder: New file.
22630         * modules/rint: New file.
22631         * modules/sin: New file.
22632         * modules/sinh: New file.
22633         * modules/sqrt: New file.
22634         * modules/tan: New file.
22635         * modules/tanh: New file.
22636         * modules/y0: New file.
22637         * modules/y1: New file.
22638         * modules/yn: New file.
22639         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22640         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22641         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22642         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22643         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22644         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22645         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22646         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22647         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22648         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22649         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22650         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22651         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22652         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22653         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22654         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22655         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22656         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22657         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22658         * doc/posix-functions/log.texi: Mention the 'log' module.
22659         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22660         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22661         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22662         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22663         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22664         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22665         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22666         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22667         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22668         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22669         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22670         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22671         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22672         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22673         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22674         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22675
22676 2010-01-18  Jim Meyering  <meyering@redhat.com>
22677
22678         ignore-value: relax license to LGPLv2+
22679         * modules/ignore-value (License): Relax to LGPLv2+.
22680
22681         getdate: don't leak when TZ contains two or more '"'s
22682         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22683         double quote in TZ after the first one.
22684
22685         readtokens: do not leak internal token_lengths buffer
22686         * lib/readtokens.c (readtokens): Free the local, lengths,
22687         when the supplied "token_lengths" parameter is NULL.
22688
22689 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22690
22691         Fix a couple of missing LIBTHREAD link failures on AIX.
22692         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22693         $(LIBTHREAD).
22694         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22695
22696         Link test-poll against INET_PTON_LIB.
22697         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22698         for inet_pton on Solaris 10.
22699
22700 2010-01-17  Bruno Haible  <bruno@clisp.org>
22701
22702         unistdio/*-sprintf: Fix typo in module description.
22703         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22704         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22705         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22706         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22707         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22708         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22709         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22711
22712 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22713
22714         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22715         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22716         variables in shell case patterns, for AIX and HP-UX ksh.
22717
22718         Split large sed scripts, for HP-UX sed.
22719         * modules/stdio: Split sed scripts around 50 sed commands,
22720         to avoid HP-UX limit of 99 commands, in the near future.
22721         * modules/string: Likewise.
22722         * modules/unistd: Likewise.
22723
22724         gnulib-tool: avoid writing in the current directory.
22725         * gnulib-tool (func_emit_lib_Makefile_am)
22726         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22727         not in the current directory, so concurrent gnulib-tool
22728         instances do not interfere.
22729
22730 2010-01-16  Jim Meyering  <meyering@redhat.com>
22731
22732         doc: update users.txt
22733         * users.txt: Add grep.
22734         (diffutils, gzip): Update URLs.
22735
22736 2010-01-12  Bruno Haible  <bruno@clisp.org>
22737
22738         posix_spawn: Avoid test failure on Cygwin.
22739         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22740         characters.
22741         Reported by Simon Josefsson.
22742
22743 2010-01-12  Bruno Haible  <bruno@clisp.org>
22744
22745         * tests/test-cond.c (main): When skipping the test, show the reason.
22746
22747 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22748
22749         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22750
22751 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22752
22753         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22754         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22755
22756 2010-01-12  Eric Blake  <ebb9@byu.net>
22757
22758         build: guarantee AS_VAR_IF
22759         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22760         (gl_AS_VAR_IF): Move...
22761         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22762         Reported by Simon Josefsson.
22763
22764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22765
22766         * lib/stdio.in.h: Fix typo.
22767
22768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22769
22770         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22771         libgpg-error.
22772
22773 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22774
22775         * tests/test-xalloc-die.sh: Use $EXEEXT.
22776
22777 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22778             Bruno Haible  <bruno@clisp.org>
22779
22780         getlogin, getlogin_r: Avoid test failure.
22781         * tests/test-getlogin.c: Include <stdio.h>.
22782         (main): Skip the test when the function fails because stdin is not a
22783         tty.
22784         * tests/test-getlogin_r.c: Include <stdio.h>.
22785         (main): Skip the test when the function fails because stdin is not a
22786         tty.
22787
22788 2010-01-11  Eric Blake  <ebb9@byu.net>
22789
22790         tests: avoid more large file warnings
22791         * tests/test-fflush.c: Avoid warning about ftell use.
22792         * tests/test-fseek.c: Avoid warning about fseek use.
22793
22794 2010-01-10  Bruno Haible  <bruno@clisp.org>
22795
22796         nproc: Work better on Linux when /proc and /sys are not mounted.
22797         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22798         as lower bound when, on glibc/Linux systems,
22799         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22800         Suggested by Pádraig Brady <P@draigbrady.com>.
22801         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22802
22803         nproc: Refactor.
22804         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22805         extracted from num_processors.
22806         (num_processors): Call it.
22807
22808 2010-01-11  Jim Meyering  <meyering@redhat.com>
22809
22810         utimecmp: avoid new warning from upcoming gcc-4.5.0
22811         * lib/utimecmp.c (BILLION): Define using #define rather than an
22812         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22813
22814 2010-01-11  Eric Blake  <ebb9@byu.net>
22815
22816         math: add portability warnings for classification macros
22817         * modules/math (Depends-on): Add warn-on-use.
22818         (Makefile.am): Provide new substitutions.
22819         * m4/math_h.m4 (gl_MATH_H): Require inline.
22820         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22821         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22822         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22823         implement warnings.
22824
22825         unistd: warn on use of environ without module
22826         * modules/unistd (Depends-on): Add warn-on-use.
22827         (Makefile.am): Provide new substitutions.
22828         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22829         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22830
22831         stdio: warn on suspicious uses
22832         * modules/stdio (Depends-on): Add warn-on-use.
22833         (Makefile.am): Provide new substitutions.
22834         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22835         fseeko.
22836         * lib/stdio.in.h (gets): Always warn on use.
22837         (fseek, ftell): Adjust when warnings are issued, and honor
22838         _GL_NO_LARGE_FILES as a way to silence the warning.
22839         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22840         any warning about large file offsets.
22841         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22842         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22843         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22844         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22845         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22846         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22847         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22848         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22849
22850         warn-on-use: new module
22851         * modules/warn-on-use: New file.
22852         * build-aux/warn-on-use.h: Likewise.
22853         * m4/warn-on-use.m4: Likewise.
22854         * MODULES.html.sh (Support for building): Mention it.
22855
22856 2010-01-10  Bruno Haible  <bruno@clisp.org>
22857
22858         Tests for module 'unistr/u32-strdup'.
22859         * modules/unistr/u32-strdup-tests: New file.
22860         * tests/unistr/test-u32-strdup.c: New file.
22861
22862         Tests for module 'unistr/u16-strdup'.
22863         * modules/unistr/u16-strdup-tests: New file.
22864         * tests/unistr/test-u16-strdup.c: New file.
22865
22866         Tests for module 'unistr/u8-strdup'.
22867         * modules/unistr/u8-strdup-tests: New file.
22868         * tests/unistr/test-u8-strdup.c: New file.
22869         * tests/unistr/test-strdup.h: New file.
22870
22871         Tests for module 'unistr/u32-strncmp'.
22872         * modules/unistr/u32-strncmp-tests: New file.
22873         * tests/unistr/test-u32-strncmp.c: New file.
22874
22875         Tests for module 'unistr/u16-strncmp'.
22876         * modules/unistr/u16-strncmp-tests: New file.
22877         * tests/unistr/test-u16-strncmp.c: New file.
22878
22879         Tests for module 'unistr/u8-strncmp'.
22880         * modules/unistr/u8-strncmp-tests: New file.
22881         * tests/unistr/test-u8-strncmp.c: New file.
22882         * tests/unistr/test-strncmp.h: New file.
22883
22884         Tests for module 'unistr/u32-strcoll'.
22885         * modules/unistr/u32-strcoll-tests: New file.
22886         * tests/unistr/test-u32-strcoll.c: New file.
22887
22888         Tests for module 'unistr/u16-strcoll'.
22889         * modules/unistr/u16-strcoll-tests: New file.
22890         * tests/unistr/test-u16-strcoll.c: New file.
22891
22892         Tests for module 'unistr/u8-strcoll'.
22893         * modules/unistr/u8-strcoll-tests: New file.
22894         * tests/unistr/test-u8-strcoll.c: New file.
22895
22896         Tests for module 'unistr/u32-strcmp'.
22897         * modules/unistr/u32-strcmp-tests: New file.
22898         * tests/unistr/test-u32-strcmp.c: New file.
22899         * tests/unistr/test-u32-strcmp.h: New file.
22900
22901         Tests for module 'unistr/u16-strcmp'.
22902         * modules/unistr/u16-strcmp-tests: New file.
22903         * tests/unistr/test-u16-strcmp.c: New file.
22904         * tests/unistr/test-u16-strcmp.h: New file.
22905
22906         Tests for module 'unistr/u8-strcmp'.
22907         * modules/unistr/u8-strcmp-tests: New file.
22908         * tests/unistr/test-u8-strcmp.c: New file.
22909         * tests/unistr/test-u8-strcmp.h: New file.
22910         * tests/unistr/test-strcmp.h: New file.
22911
22912         Tests for module 'unistr/u32-strncat'.
22913         * modules/unistr/u32-strncat-tests: New file.
22914         * tests/unistr/test-u32-strncat.c: New file.
22915
22916         Tests for module 'unistr/u16-strncat'.
22917         * modules/unistr/u16-strncat-tests: New file.
22918         * tests/unistr/test-u16-strncat.c: New file.
22919
22920         Tests for module 'unistr/u8-strncat'.
22921         * modules/unistr/u8-strncat-tests: New file.
22922         * tests/unistr/test-u8-strncat.c: New file.
22923         * tests/unistr/test-strncat.h: New file.
22924
22925         Tests for module 'unistr/u32-strcat'.
22926         * modules/unistr/u32-strcat-tests: New file.
22927         * tests/unistr/test-u32-strcat.c: New file.
22928
22929         Tests for module 'unistr/u16-strcat'.
22930         * modules/unistr/u16-strcat-tests: New file.
22931         * tests/unistr/test-u16-strcat.c: New file.
22932
22933         Tests for module 'unistr/u8-strcat'.
22934         * modules/unistr/u8-strcat-tests: New file.
22935         * tests/unistr/test-u8-strcat.c: New file.
22936         * tests/unistr/test-strcat.h: New file.
22937
22938         Tests for module 'unistr/u32-stpncpy'.
22939         * modules/unistr/u32-stpncpy-tests: New file.
22940         * tests/unistr/test-u32-stpncpy.c: New file.
22941
22942         Tests for module 'unistr/u16-stpncpy'.
22943         * modules/unistr/u16-stpncpy-tests: New file.
22944         * tests/unistr/test-u16-stpncpy.c: New file.
22945
22946         Tests for module 'unistr/u8-stpncpy'.
22947         * modules/unistr/u8-stpncpy-tests: New file.
22948         * tests/unistr/test-u8-stpncpy.c: New file.
22949         * tests/unistr/test-stpncpy.h: New file.
22950
22951         Tests for module 'unistr/u32-strncpy'.
22952         * modules/unistr/u32-strncpy-tests: New file.
22953         * tests/unistr/test-u32-strncpy.c: New file.
22954
22955         Tests for module 'unistr/u16-strncpy'.
22956         * modules/unistr/u16-strncpy-tests: New file.
22957         * tests/unistr/test-u16-strncpy.c: New file.
22958
22959         Tests for module 'unistr/u8-strncpy'.
22960         * modules/unistr/u8-strncpy-tests: New file.
22961         * tests/unistr/test-u8-strncpy.c: New file.
22962         * tests/unistr/test-strncpy.h: New file.
22963
22964         Tests for module 'unistr/u32-stpcpy'.
22965         * modules/unistr/u32-stpcpy-tests: New file.
22966         * tests/unistr/test-u32-stpcpy.c: New file.
22967
22968         Tests for module 'unistr/u16-stpcpy'.
22969         * modules/unistr/u16-stpcpy-tests: New file.
22970         * tests/unistr/test-u16-stpcpy.c: New file.
22971
22972         Tests for module 'unistr/u8-stpcpy'.
22973         * modules/unistr/u8-stpcpy-tests: New file.
22974         * tests/unistr/test-u8-stpcpy.c: New file.
22975         * tests/unistr/test-stpcpy.h: New file.
22976
22977         Tests for module 'unistr/u32-strcpy'.
22978         * modules/unistr/u32-strcpy-tests: New file.
22979         * tests/unistr/test-u32-strcpy.c: New file.
22980
22981         Tests for module 'unistr/u16-strcpy'.
22982         * modules/unistr/u16-strcpy-tests: New file.
22983         * tests/unistr/test-u16-strcpy.c: New file.
22984
22985         Tests for module 'unistr/u8-strcpy'.
22986         * modules/unistr/u8-strcpy-tests: New file.
22987         * tests/unistr/test-u8-strcpy.c: New file.
22988         * tests/unistr/test-strcpy.h: New file.
22989
22990         Tests for module 'unistr/u32-strnlen'.
22991         * modules/unistr/u32-strnlen-tests: New file.
22992         * tests/unistr/test-u32-strnlen.c: New file.
22993
22994         Tests for module 'unistr/u16-strnlen'.
22995         * modules/unistr/u16-strnlen-tests: New file.
22996         * tests/unistr/test-u16-strnlen.c: New file.
22997
22998         Tests for module 'unistr/u8-strnlen'.
22999         * modules/unistr/u8-strnlen-tests: New file.
23000         * tests/unistr/test-u8-strnlen.c: New file.
23001         * tests/unistr/test-strnlen.h: New file.
23002
23003         Tests for module 'unistr/u32-strlen'.
23004         * modules/unistr/u32-strlen-tests: New file.
23005         * tests/unistr/test-u32-strlen.c: New file.
23006
23007         Tests for module 'unistr/u16-strlen'.
23008         * modules/unistr/u16-strlen-tests: New file.
23009         * tests/unistr/test-u16-strlen.c: New file.
23010
23011         Tests for module 'unistr/u8-strlen'.
23012         * modules/unistr/u8-strlen-tests: New file.
23013         * tests/unistr/test-u8-strlen.c: New file.
23014
23015         Tests for module 'unistr/u32-prev'.
23016         * modules/unistr/u32-prev-tests: New file.
23017         * tests/unistr/test-u32-prev.c: New file.
23018
23019         Tests for module 'unistr/u16-prev'.
23020         * modules/unistr/u16-prev-tests: New file.
23021         * tests/unistr/test-u16-prev.c: New file.
23022
23023         Tests for module 'unistr/u8-prev'.
23024         * modules/unistr/u8-prev-tests: New file.
23025         * tests/unistr/test-u8-prev.c: New file.
23026
23027         Tests for module 'unistr/u32-next'.
23028         * modules/unistr/u32-next-tests: New file.
23029         * tests/unistr/test-u32-next.c: New file.
23030
23031         Tests for module 'unistr/u16-next'.
23032         * modules/unistr/u16-next-tests: New file.
23033         * tests/unistr/test-u16-next.c: New file.
23034
23035         Tests for module 'unistr/u8-next'.
23036         * modules/unistr/u8-next-tests: New file.
23037         * tests/unistr/test-u8-next.c: New file.
23038
23039         Tests for module 'unistr/u32-strmbtouc'.
23040         * modules/unistr/u32-strmbtouc-tests: New file.
23041         * tests/unistr/test-u32-strmbtouc.c: New file.
23042
23043         Tests for module 'unistr/u16-strmbtouc'.
23044         * modules/unistr/u16-strmbtouc-tests: New file.
23045         * tests/unistr/test-u16-strmbtouc.c: New file.
23046
23047         Tests for module 'unistr/u8-strmbtouc'.
23048         * modules/unistr/u8-strmbtouc-tests: New file.
23049         * tests/unistr/test-u8-strmbtouc.c: New file.
23050
23051         Tests for module 'unistr/u32-strmblen'.
23052         * modules/unistr/u32-strmblen-tests: New file.
23053         * tests/unistr/test-u32-strmblen.c: New file.
23054
23055         Tests for module 'unistr/u16-strmblen'.
23056         * modules/unistr/u16-strmblen-tests: New file.
23057         * tests/unistr/test-u16-strmblen.c: New file.
23058
23059         Tests for module 'unistr/u8-strmblen'.
23060         * modules/unistr/u8-strmblen-tests: New file.
23061         * tests/unistr/test-u8-strmblen.c: New file.
23062
23063         Tests for module 'unistr/u32-cpy-alloc'.
23064         * modules/unistr/u32-cpy-alloc-tests: New file.
23065         * tests/unistr/test-u32-cpy-alloc.c: New file.
23066
23067         Tests for module 'unistr/u16-cpy-alloc'.
23068         * modules/unistr/u16-cpy-alloc-tests: New file.
23069         * tests/unistr/test-u16-cpy-alloc.c: New file.
23070
23071         Tests for module 'unistr/u8-cpy-alloc'.
23072         * modules/unistr/u8-cpy-alloc-tests: New file.
23073         * tests/unistr/test-u8-cpy-alloc.c: New file.
23074         * tests/unistr/test-cpy-alloc.h: New file.
23075
23076         Tests for module 'unistr/u32-mbsnlen'.
23077         * modules/unistr/u32-mbsnlen-tests: New file.
23078         * tests/unistr/test-u32-mbsnlen.c: New file.
23079
23080         Tests for module 'unistr/u16-mbsnlen'.
23081         * modules/unistr/u16-mbsnlen-tests: New file.
23082         * tests/unistr/test-u16-mbsnlen.c: New file.
23083
23084         Tests for module 'unistr/u8-mbsnlen'.
23085         * modules/unistr/u8-mbsnlen-tests: New file.
23086         * tests/unistr/test-u8-mbsnlen.c: New file.
23087
23088         Tests for module 'unistr/u32-chr'.
23089         * modules/unistr/u32-chr-tests: New file.
23090         * tests/unistr/test-u32-chr.c: New file.
23091
23092         Tests for module 'unistr/u16-chr'.
23093         * modules/unistr/u16-chr-tests: New file.
23094         * tests/unistr/test-u16-chr.c: New file.
23095
23096         Tests for module 'unistr/u8-chr'.
23097         * modules/unistr/u8-chr-tests: New file.
23098         * tests/unistr/test-u8-chr.c: New file.
23099         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23100
23101         Tests for module 'unistr/u32-cmp2'.
23102         * modules/unistr/u32-cmp2-tests: New file.
23103         * tests/unistr/test-u32-cmp2.c: New file.
23104
23105         Tests for module 'unistr/u16-cmp2'.
23106         * modules/unistr/u16-cmp2-tests: New file.
23107         * tests/unistr/test-u16-cmp2.c: New file.
23108
23109         Tests for module 'unistr/u8-cmp2'.
23110         * modules/unistr/u8-cmp2-tests: New file.
23111         * tests/unistr/test-u8-cmp2.c: New file.
23112         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23113
23114         Tests for module 'unistr/u32-cmp'.
23115         * modules/unistr/u32-cmp-tests: New file.
23116         * tests/unistr/test-u32-cmp.c: New file.
23117
23118         Tests for module 'unistr/u16-cmp'.
23119         * modules/unistr/u16-cmp-tests: New file.
23120         * tests/unistr/test-u16-cmp.c: New file.
23121
23122         Tests for module 'unistr/u8-cmp'.
23123         * modules/unistr/u8-cmp-tests: New file.
23124         * tests/unistr/test-u8-cmp.c: New file.
23125         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23126
23127         Tests for module 'unistr/u32-set'.
23128         * modules/unistr/u32-set-tests: New file.
23129         * tests/unistr/test-u32-set.c: New file.
23130
23131         Tests for module 'unistr/u16-set'.
23132         * modules/unistr/u16-set-tests: New file.
23133         * tests/unistr/test-u16-set.c: New file.
23134
23135         Tests for module 'unistr/u8-set'.
23136         * modules/unistr/u8-set-tests: New file.
23137         * tests/unistr/test-u8-set.c: New file.
23138         * tests/unistr/test-set.h: New file.
23139
23140         Tests for module 'unistr/u32-move'.
23141         * modules/unistr/u32-move-tests: New file.
23142         * tests/unistr/test-u32-move.c: New file.
23143
23144         Tests for module 'unistr/u16-move'.
23145         * modules/unistr/u16-move-tests: New file.
23146         * tests/unistr/test-u16-move.c: New file.
23147
23148         Tests for module 'unistr/u8-move'.
23149         * modules/unistr/u8-move-tests: New file.
23150         * tests/unistr/test-u8-move.c: New file.
23151         * tests/unistr/test-move.h: New file.
23152
23153         Tests for module 'unistr/u32-cpy'.
23154         * modules/unistr/u32-cpy-tests: New file.
23155         * tests/unistr/test-u32-cpy.c: New file.
23156
23157         Tests for module 'unistr/u16-cpy'.
23158         * modules/unistr/u16-cpy-tests: New file.
23159         * tests/unistr/test-u16-cpy.c: New file.
23160
23161         Tests for module 'unistr/u8-cpy'.
23162         * modules/unistr/u8-cpy-tests: New file.
23163         * tests/unistr/test-u8-cpy.c: New file.
23164         * tests/unistr/test-cpy.h: New file.
23165
23166 2010-01-09  Bruno Haible  <bruno@clisp.org>
23167
23168         Tests for module 'unistr/u32-uctomb'.
23169         * modules/unistr/u32-uctomb-tests: New file.
23170         * tests/unistr/test-u32-uctomb.c: New file.
23171
23172         Tests for module 'unistr/u16-uctomb'.
23173         * modules/unistr/u16-uctomb-tests: New file.
23174         * tests/unistr/test-u16-uctomb.c: New file.
23175
23176         Tests for module 'unistr/u8-uctomb'.
23177         * modules/unistr/u8-uctomb-tests: New file.
23178         * tests/unistr/test-u8-uctomb.c: New file.
23179
23180         Tests for module 'unistr/u32-mbtoucr'.
23181         * modules/unistr/u32-mbtoucr-tests: New file.
23182         * tests/unistr/test-u32-mbtoucr.c: New file.
23183
23184         Tests for module 'unistr/u16-mbtoucr'.
23185         * modules/unistr/u16-mbtoucr-tests: New file.
23186         * tests/unistr/test-u16-mbtoucr.c: New file.
23187
23188         Tests for module 'unistr/u8-mbtoucr'.
23189         * modules/unistr/u8-mbtoucr-tests: New file.
23190         * tests/unistr/test-u8-mbtoucr.c: New file.
23191
23192         Tests for module 'unistr/u32-mbtouc'.
23193         * modules/unistr/u32-mbtouc-tests: New file.
23194         * tests/unistr/test-u32-mbtouc.c: New file.
23195
23196         Tests for module 'unistr/u16-mbtouc'.
23197         * modules/unistr/u16-mbtouc-tests: New file.
23198         * tests/unistr/test-u16-mbtouc.c: New file.
23199
23200         Tests for module 'unistr/u8-mbtouc'.
23201         * modules/unistr/u8-mbtouc-tests: New file.
23202         * tests/unistr/test-u8-mbtouc.c: New file.
23203
23204         Tests for module 'unistr/u32-mbtouc-unsafe'.
23205         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23206         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23207         * tests/unistr/test-u32-mbtouc.h: New file.
23208
23209         Tests for module 'unistr/u16-mbtouc-unsafe'.
23210         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23211         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23212         * tests/unistr/test-u16-mbtouc.h: New file.
23213
23214         Tests for module 'unistr/u8-mbtouc-unsafe'.
23215         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23216         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23217         * tests/unistr/test-u8-mbtouc.h: New file.
23218
23219         Tests for module 'unistr/u32-mblen'.
23220         * modules/unistr/u32-mblen-tests: New file.
23221         * tests/unistr/test-u32-mblen.c: New file.
23222
23223         Tests for module 'unistr/u16-mblen'.
23224         * modules/unistr/u16-mblen-tests: New file.
23225         * tests/unistr/test-u16-mblen.c: New file.
23226
23227         Tests for module 'unistr/u8-mblen'.
23228         * modules/unistr/u8-mblen-tests: New file.
23229         * tests/unistr/test-u8-mblen.c: New file.
23230
23231         Tests for module 'unistr/u32-to-u16'.
23232         * modules/unistr/u32-to-u16-tests: New file.
23233         * tests/unistr/test-u32-to-u16.c: New file.
23234
23235         Tests for module 'unistr/u32-to-u8'.
23236         * modules/unistr/u32-to-u8-tests: New file.
23237         * tests/unistr/test-u32-to-u8.c: New file.
23238
23239         Tests for module 'unistr/u16-to-u32'.
23240         * modules/unistr/u16-to-u32-tests: New file.
23241         * tests/unistr/test-u16-to-u32.c: New file.
23242
23243         Tests for module 'unistr/u16-to-u8'.
23244         * modules/unistr/u16-to-u8-tests: New file.
23245         * tests/unistr/test-u16-to-u8.c: New file.
23246
23247         Tests for module 'unistr/u8-to-u32'.
23248         * modules/unistr/u8-to-u32-tests: New file.
23249         * tests/unistr/test-u8-to-u32.c: New file.
23250
23251         Tests for module 'unistr/u8-to-u16'.
23252         * modules/unistr/u8-to-u16-tests: New file.
23253         * tests/unistr/test-u8-to-u16.c: New file.
23254
23255         Tests for module 'unistr/u32-check'.
23256         * modules/unistr/u32-check-tests: New file.
23257         * tests/unistr/test-u32-check.c: New file.
23258
23259         Tests for module 'unistr/u16-check'.
23260         * modules/unistr/u16-check-tests: New file.
23261         * tests/unistr/test-u16-check.c: New file.
23262
23263         Tests for module 'unistr/u8-check'.
23264         * modules/unistr/u8-check-tests: New file.
23265         * tests/unistr/test-u8-check.c: New file.
23266
23267         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23268         (category_equals): New function.
23269         (main): Add more tests.
23270         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23271
23272         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23273
23274 2010-01-10  Bruno Haible  <bruno@clisp.org>
23275
23276         unistr/u*-strcoll: Try harder to distinguish different strings.
23277         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23278         compare s1 and s2 to see if they are different.
23279
23280 2010-01-10  Bruno Haible  <bruno@clisp.org>
23281
23282         unistr/u*-stpncpy: Fix the return value.
23283         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23284         description of the return value consistent with stpncpy in glibc.
23285         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23286         written non-NUL unit.
23287
23288 2010-01-10  Bruno Haible  <bruno@clisp.org>
23289
23290         unistr/u*-next: Add missing dependencies.
23291         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23292         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23293         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23294
23295 2010-01-10  Bruno Haible  <bruno@clisp.org>
23296
23297         unistr/u8-mbsnlen: Fix return value for incomplete character.
23298         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23299         u8_mblen.
23300         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23301         Remove unistr/u8-mblen.
23302         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23303         u16_mblen.
23304         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23305         Remove unistr/u16-mblen.
23306
23307 2010-01-10  Bruno Haible  <bruno@clisp.org>
23308
23309         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23310         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23311         Reported by Brian Gough <bjg@gnu.org> and
23312         Chris Clayton <chris2553@googlemail.com> via
23313         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23314
23315 2010-01-09  Bruno Haible  <bruno@clisp.org>
23316
23317         unistr/u16-to-u32: Reject invalid input.
23318         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23319         u16_mbtouc.
23320         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23321         Remove unistr/u16-mbtouc.
23322
23323         unistr/u16-to-u8: Reject invalid input.
23324         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23325         u16_mbtouc.
23326         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23327         Remove unistr/u16-mbtouc.
23328
23329         unistr/u8-to-u32: Reject invalid input.
23330         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23331         u8_mbtouc.
23332         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23333         Remove unistr/u8-mbtouc.
23334
23335         unistr/u8-to-u16: Reject invalid input.
23336         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23337         u8_mbtouc.
23338         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23339         Remove unistr/u8-mbtouc.
23340
23341 2010-01-09  Bruno Haible  <bruno@clisp.org>
23342
23343         Tests for module 'getlogin'.
23344         * modules/getlogin-tests: New file.
23345         * tests/test-getlogin.c: New file.
23346
23347         New module 'getlogin'.
23348         * lib/unistd.in.h (getlogin): New declaration.
23349         * lib/getlogin.c: New file.
23350         * m4/getlogin.m4: New file.
23351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23352         HAVE_GETLOGIN.
23353         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23354         HAVE_GETLOGIN.
23355         * modules/getlogin: New file.
23356         * doc/posix-functions/getlogin.texi: Mention the new module.
23357         Reported by John W. Eaton <jwe@gnu.org>.
23358
23359 2010-01-09  Bruno Haible  <bruno@clisp.org>
23360
23361         getlogin_r: Support for native Windows.
23362         * lib/getlogin_r.c: Include <windows.h>
23363         (getlogin_r): Implement for native Windows.
23364         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23365         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23366         via John W. Eaton <jwe@gnu.org>.
23367
23368 2010-01-09  Bruno Haible  <bruno@clisp.org>
23369
23370         getlogin_r: Small fixes.
23371         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23372         succeeds.
23373         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23374         before testing whether getlogin_r is declared. No need to set
23375         HAVE_DECL_GETLOGIN_R to 1.
23376         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23377
23378 2010-01-09  Bruno Haible  <bruno@clisp.org>
23379
23380         * lib/unistd.in.h (getlogin_r): Add comment.
23381
23382 2010-01-09  Bruno Haible  <bruno@clisp.org>
23383
23384         Tests for module 'getlogin_r'.
23385         * modules/getlogin_r-tests: New file.
23386         * tests/test-getlogin_r.c: New file.
23387
23388 2010-01-09  Jim Meyering  <meyering@redhat.com>
23389
23390         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23391         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23392         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23393
23394 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23395
23396         * lib/dup2.c (rpl_dup2): Improve comment.
23397
23398 2010-01-08  Eric Blake  <ebb9@byu.net>
23399
23400         maint.mk: allow packages to add makefile @@ exceptions
23401         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23402         (sc_makefile_check): Rename...
23403         (sc_makefile_at_at_check): ...to this, and use hook.
23404
23405         dup2: work around mingw bug
23406         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23407         Reported by Simon Josefsson.
23408
23409 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23410
23411         glob: Fix C++ compilation.
23412         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23413         C++.
23414
23415 2010-01-07  Bruno Haible  <bruno@clisp.org>
23416
23417         Fix indentation of wctype.in.h, broken since 2007-01-06.
23418         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23419
23420 2010-01-07  Bruno Haible  <bruno@clisp.org>
23421
23422         mbslen: Avoid collision with system function.
23423         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23424         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23425         * m4/mbslen.m4: New file.
23426         * modules/mbslen (Files): Add it.
23427         (configure.ac): Invoke gl_MBSLEN.
23428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23429         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23431         via Ian Beckwith <ianb@erislabs.net>.
23432
23433 2010-01-07  Bruno Haible  <bruno@clisp.org>
23434
23435         dirent: Document the last fix.
23436         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23437
23438 2010-01-07  Bruno Haible  <bruno@clisp.org>
23439
23440         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23441         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23442         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23443         va_list are defined.
23444         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23445         Reported by Eric Blake.
23446
23447 2010-01-07  Bruno Haible  <bruno@clisp.org>
23448
23449         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23450         * modules/xlist (Depends-on): Add 'list',
23451         * modules/xoset (Depends-on): Add 'oset'.
23452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23453
23454 2010-01-07  Bruno Haible  <bruno@clisp.org>
23455
23456         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23457         * doc/posix-functions/strncasecmp.texi: Likewise.
23458
23459 2010-01-07  Bruno Haible  <bruno@clisp.org>
23460
23461         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23462
23463 2010-01-07  John W. Eaton  <jwe@octave.org>
23464
23465         wctype: allow C++ use
23466         * lib/wctype.in.h: Add extern "C" block for C++.
23467
23468 2010-01-06  Eric Blake  <ebb9@byu.net>
23469
23470         maint.mk: detect incorrect GFDL usage
23471         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23472
23473 2010-01-06  Jim Meyering  <meyering@redhat.com>
23474         and Eric Blake  <ebb9@byu.net>
23475
23476         maint.mk: ignore multi-line copyright in NEWS
23477         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23478
23479 2010-01-06  Eric Blake  <ebb9@byu.net>
23480
23481         select: add missing dependency
23482         * modules/select-tests (Depends-on): Move sockets dependency...
23483         * modules/select (Depends-on): ...here.
23484         Reported by Ian Beckwith.
23485
23486         doc: regenerate INSTALL
23487         * doc/INSTALL: Reflect recent autoconf update.
23488         * doc/INSTALL.ISO: Likewise.
23489         * doc/INSTALL.UTF-8: Likewise.
23490
23491         pread: fix compilation on glibc
23492         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23493         Reported by Ralf Wildenhues.
23494
23495         dirent: fix test failure
23496         * lib/dirent.in.h (includes): Guarantee ino_t.
23497         Reported by Ralf Wildenhues.
23498
23499 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23500
23501         linkat, renameat: avoid bad free
23502         * lib/at-func2.c (at_func2): Fix typo.
23503         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23504
23505 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23506
23507         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23508         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23509         to avoid failure of symlink test later.
23510
23511 2010-01-06  Eric Blake  <ebb9@byu.net>
23512
23513         stdio, unistd: guarantee ssize_t
23514         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23515         2008 are exposed when needed.
23516         * lib/stdio.in.h (includes): Likewise.
23517         Reported by Ralf Wildenhues.
23518
23519 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23520
23521         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23522         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23523         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23524
23525 2010-01-06  Jim Meyering  <meyering@redhat.com>
23526
23527         readtokens: this module *does* require xalloc.h
23528         It uses only functions that were omitted by the old syntax-check rule.
23529         * lib/readtokens.c: Include "xalloc.h" once again.
23530         * modules/readtokens (Depends-on): Add xalloc.
23531         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23532
23533 2010-01-05  Eric Blake  <ebb9@byu.net>
23534
23535         maint: support 'make announcement' from a VPATH build
23536         * top/maint.mk (announcement): Look for correct NEWS file.
23537
23538 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23539
23540         utimens (fdutimens): ignore a negative FD, per contract
23541         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23542         when we have a valid file descriptor.  Otherwise, using a brand
23543         new glibc (with just-patched futimens that now fails with EBADF)
23544         would cause this function to fail with ENOSYS.
23545         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23546         See also http://bugzilla.redhat.com/552320.
23547
23548 2010-01-05  Eric Blake  <ebb9@byu.net>
23549
23550         strcase: document what it provides
23551         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23552         gnulib module.
23553         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23554         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23555
23556 2010-01-05  Jim Meyering  <meyering@redhat.com>
23557
23558         maint: remove useless inclusions of "xalloc.h"
23559         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23560         * lib/readtokens.c: Likewise.
23561         * lib/same.c: Likewise.
23562         * modules/getloadavg (Depends-on): Remove xalloc.
23563         * modules/readtokens: Likewise.
23564         * modules/same: Likewise.
23565
23566         maint.mk: include 4 more function names in alloca.h-checking regexp
23567         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23568         regexp.  Before, we would give a false-positive (saying alloca.h
23569         is included unnecessarily) when the only uses involved omitted symbols.
23570
23571         xalloc.h: use consistent formatting
23572         * lib/xalloc.h: Move declarations to start in the first column.
23573
23574 2010-01-05  Eric Blake  <ebb9@byu.net>
23575
23576         mkdir: avoid xalloc
23577         * lib/mkdir.c (includes): Drop unused header.
23578         Reported by John W. Eaton.
23579
23580 2010-01-04  Jim Meyering  <meyering@redhat.com>
23581
23582         nl_langinfo: avoid configure-time syntax error
23583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23584         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23585         the empty string.  Don't let that provoke a shell syntax error.
23586
23587         regcomp, regexec, fnmatch: avoid array bounds read error
23588         * lib/regcomp.c (build_equiv_class): From glibc:
23589         Use only the low 24 bits of a findidx return value as an index
23590         into the weights array.  Patch by Ulrich Drepper:
23591         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23592         * lib/regexec.c (check_node_accept_bytes): Likewise.
23593         * lib/fnmatch_loop.c (FCT): Likewise.
23594
23595         regcomp: skip collseq lookup when there are no rules
23596         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23597         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23598
23599         regcomp: recognize ill-formed { } expressions
23600         * lib/regcomp.c (parse_dup_op): From glibc:
23601         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23602
23603         regcomp: fix typo in comment
23604         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23605         s/satisfy/satisfies/.
23606
23607         regcomp: sync from glibc: remove dead store
23608         * lib/regcomp.c (duplicate_node_closure): Remove useless
23609         search_duplicated_node call and dead store.
23610
23611         regcomp: sync from glibc; always use nl_langinfo
23612         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23613         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23614         * modules/regex (Depends-on): Add nl_langinfo.
23615
23616 2010-01-04  Eric Blake  <ebb9@byu.net>
23617
23618         fdopendir: fix configure test
23619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23620
23621 2010-01-01  Bruno Haible  <bruno@clisp.org>
23622
23623         wchar: Remove unused configure check.
23624         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23625
23626 2010-01-01  Eric Blake  <ebb9@byu.net>
23627
23628         headers: make check of system header explicit
23629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23630         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23631         ourselves.
23632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23636         internals.
23637         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23638         missing.
23639         Suggested by Bruno Haible.
23640
23641 2010-01-01  Jim Meyering  <meyering@redhat.com>
23642
23643         ChangeLog: tweak to eliminate unnecessary copyright line
23644         * ChangeLog: Remove a copyright line that was mistakenly updated
23645         by today's update-copyright run.  Reported by Eric Blake.
23646
23647         test-update-copyright: don't let envvar setting cause test failure
23648         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23649
23650 2010-01-01  Bruno Haible  <bruno@clisp.org>
23651
23652         localename: Avoid gcc warning.
23653         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23654         function if it is not used.
23655
23656 2010-01-01  Jim Meyering  <meyering@redhat.com>
23657
23658         update nearly all FSF copyright year lists to include 2010
23659         Use the same procedure as for 2009, outlined in
23660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23661
23662         version-etc: set COPYRIGHT_YEAR to 2010
23663         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23664
23665 2009-12-31  Eric Blake  <ebb9@byu.net>
23666
23667         doc: correct availability of cygwin 1.5.x getopt
23668         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23669         variables.
23670         * doc/posix-functions/opterr.texi (opterr): Likewise.
23671         * doc/posix-functions/optind.texi (optind): Likewise.
23672         * doc/posix-functions/optopt.texi (optopt): Likewise.
23673         * doc/posix-functions/tzname.texi (tzname): Likewise.
23674
23675         openat: update maintainer
23676         * modules/openat (Maintainer): Add myself.
23677
23678         utimens: avoid shadowing warning
23679         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23680         buffers into one, to avoid shadowing, as well as avoiding a
23681         redundant stat.
23682         Reported by Jim Meyering.
23683
23684         test-dup2: avoid compiler warning
23685         * tests/test-dup2.c (is_inheritable): Only define if used.
23686
23687 2010-01-01  Bruno Haible  <bruno@clisp.org>
23688
23689         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23690         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23691         defined, use wctomb instead of wcrtomb.
23692
23693 2010-01-01  Bruno Haible  <bruno@clisp.org>
23694
23695         iconv: Reject native Solaris iconv.
23696         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23697         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23698
23699 2009-12-31  Bruno Haible  <bruno@clisp.org>
23700
23701         * tests/test-signal.c (main): Remove test of 'SIG'.
23702
23703 2009-12-31  Bruno Haible  <bruno@clisp.org>
23704
23705         spawn: Fix incomplete fix.
23706         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23707         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23708         warnings for GNULIB_POSIXCHECK again.
23709         Reported by Eric Blake.
23710
23711 2009-12-31  Bruno Haible  <bruno@clisp.org>
23712
23713         Avoid namespace pollution on glibc systems.
23714         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23715         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23716         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23717         glibc systems.
23718
23719 2009-12-31  Bruno Haible  <bruno@clisp.org>
23720
23721         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23722         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23723         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23724         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23725         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23726         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23727         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23728
23729 2009-12-31  Bruno Haible  <bruno@clisp.org>
23730
23731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23732         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23733         afterwards.
23734
23735 2009-12-31  Bruno Haible  <bruno@clisp.org>
23736
23737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23738         SYS_UTSNAME_H.
23739
23740 2009-12-31  Bruno Haible  <bruno@clisp.org>
23741
23742         spawn: Fix misapplied patch.
23743         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23744         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23745         warnings for GNULIB_POSIXCHECK.
23746
23747 2009-12-31  Bruno Haible  <bruno@clisp.org>
23748
23749         times: Update after sys_times changed.
23750         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23751         * modules/times (Files): Add it.
23752         (configure.ac): Invoke gl_FUNC_TIMES.
23753
23754 2009-12-31  Bruno Haible  <bruno@clisp.org>
23755
23756         Use AC_C_INLINE where necessary.
23757         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23760         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23761         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23762         * m4/mbiter.m4 (gl_MBITER): Likewise.
23763         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23764         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23765         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23766         * modules/u64 (configure.ac): Likewise.
23767
23768 2009-12-31  Bruno Haible  <bruno@clisp.org>
23769
23770         Use AC_C_INLINE instead of module 'inline' where possible.
23771         * modules/inline (Description): Clarify purpose.
23772         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23773         * modules/count-one-bits (Depends-on): Remove inline.
23774         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23775         * modules/openat (Depends-on): Remove inline.
23776         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23777         instead of depending on module 'inline'.
23778         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23779         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23780         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23781         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23782         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23783         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23784         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23785         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23786         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23787         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23788         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23789         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23790         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23791         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23792         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23793         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23794         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23795         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23796         Likewise.
23797         * modules/unictype/property-ascii-hex-digit (Depends-on,
23798         configure.ac): Likewise.
23799         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23800         configure.ac): Likewise.
23801         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23802         configure.ac): Likewise.
23803         * modules/unictype/property-bidi-block-separator (Depends-on,
23804         configure.ac): Likewise.
23805         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23806         configure.ac): Likewise.
23807         * modules/unictype/property-bidi-common-separator (Depends-on,
23808         configure.ac): Likewise.
23809         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23810         Likewise.
23811         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23812         configure.ac): Likewise.
23813         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23814         configure.ac): Likewise.
23815         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23816         configure.ac): Likewise.
23817         * modules/unictype/property-bidi-european-digit (Depends-on,
23818         configure.ac): Likewise.
23819         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23820         configure.ac): Likewise.
23821         * modules/unictype/property-bidi-left-to-right (Depends-on,
23822         configure.ac): Likewise.
23823         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23824         configure.ac): Likewise.
23825         * modules/unictype/property-bidi-other-neutral (Depends-on,
23826         configure.ac): Likewise.
23827         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23828         Likewise.
23829         * modules/unictype/property-bidi-segment-separator (Depends-on,
23830         configure.ac): Likewise.
23831         * modules/unictype/property-bidi-whitespace (Depends-on,
23832         configure.ac): Likewise.
23833         * modules/unictype/property-combining (Depends-on, configure.ac):
23834         Likewise.
23835         * modules/unictype/property-composite (Depends-on, configure.ac):
23836         Likewise.
23837         * modules/unictype/property-currency-symbol (Depends-on,
23838         configure.ac): Likewise.
23839         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23840         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23841         Likewise.
23842         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23843         configure.ac): Likewise.
23844         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23845         Likewise.
23846         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23847         Likewise.
23848         * modules/unictype/property-extender (Depends-on, configure.ac):
23849         Likewise.
23850         * modules/unictype/property-format-control (Depends-on, configure.ac):
23851         Likewise.
23852         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23853         Likewise.
23854         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23855         Likewise.
23856         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23857         Likewise.
23858         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23859         Likewise.
23860         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23861         Likewise.
23862         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23863         Likewise.
23864         * modules/unictype/property-id-start (Depends-on, configure.ac):
23865         Likewise.
23866         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23867         Likewise.
23868         * modules/unictype/property-ids-binary-operator (Depends-on,
23869         configure.ac): Likewise.
23870         * modules/unictype/property-ids-trinary-operator (Depends-on,
23871         configure.ac): Likewise.
23872         * modules/unictype/property-ignorable-control (Depends-on,
23873         configure.ac): Likewise.
23874         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23875         Likewise.
23876         * modules/unictype/property-join-control (Depends-on, configure.ac):
23877         Likewise.
23878         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23879         Likewise.
23880         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23881         Likewise.
23882         * modules/unictype/property-logical-order-exception (Depends-on,
23883         configure.ac): Likewise.
23884         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23885         Likewise.
23886         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23887         * modules/unictype/property-non-break (Depends-on, configure.ac):
23888         Likewise.
23889         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23890         Likewise.
23891         * modules/unictype/property-numeric (Depends-on, configure.ac):
23892         Likewise.
23893         * modules/unictype/property-other-alphabetic (Depends-on,
23894         configure.ac): Likewise.
23895         * modules/unictype/property-other-default-ignorable-code-point
23896         (Depends-on, configure.ac): Likewise.
23897         * modules/unictype/property-other-grapheme-extend (Depends-on,
23898         configure.ac): Likewise.
23899         * modules/unictype/property-other-id-continue (Depends-on,
23900         configure.ac): Likewise.
23901         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23902         Likewise.
23903         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23904         Likewise.
23905         * modules/unictype/property-other-math (Depends-on, configure.ac):
23906         Likewise.
23907         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23908         Likewise.
23909         * modules/unictype/property-paired-punctuation (Depends-on,
23910         configure.ac): Likewise.
23911         * modules/unictype/property-paragraph-separator (Depends-on,
23912         configure.ac): Likewise.
23913         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23914         Likewise.
23915         * modules/unictype/property-pattern-white-space (Depends-on,
23916         configure.ac): Likewise.
23917         * modules/unictype/property-private-use (Depends-on, configure.ac):
23918         Likewise.
23919         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23920         Likewise.
23921         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23922         Likewise.
23923         * modules/unictype/property-radical (Depends-on, configure.ac):
23924         Likewise.
23925         * modules/unictype/property-sentence-terminal (Depends-on,
23926         configure.ac): Likewise.
23927         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23928         Likewise.
23929         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23930         * modules/unictype/property-terminal-punctuation (Depends-on,
23931         configure.ac): Likewise.
23932         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23933         Likewise.
23934         * modules/unictype/property-unassigned-code-value (Depends-on,
23935         configure.ac): Likewise.
23936         * modules/unictype/property-unified-ideograph (Depends-on,
23937         configure.ac): Likewise.
23938         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23939         Likewise.
23940         * modules/unictype/property-variation-selector (Depends-on,
23941         configure.ac): Likewise.
23942         * modules/unictype/property-white-space (Depends-on, configure.ac):
23943         Likewise.
23944         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23945         Likewise.
23946         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23947         Likewise.
23948         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23949         Likewise.
23950         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23951         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23952         Likewise.
23953
23954 2009-12-31  Bruno Haible  <bruno@clisp.org>
23955
23956         Remove unnecessary AC_C_INLINE invocation.
23957         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23958         since 2009-08-21.
23959
23960 2009-12-31  Jim Meyering  <meyering@redhat.com>
23961
23962         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23963         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23964         With this change, we can all remove the gpg_key_ID = ... definition
23965         from our respective cfg.mk files.
23966
23967         maint.mk: create announcement template in ~/, not in /tmp
23968         * top/maint.mk (emit_upload_commands): Adjust.
23969         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23970         Remove temporary file, .ci-msg.
23971
23972 2009-12-31  Eric Blake  <ebb9@byu.net>
23973
23974         link-warning: always build headers with link warnings
23975         * modules/arpa_inet (Makefile.am): Always build replacement
23976         header.
23977         * modules/ctype (Makefile.am): Likewise.
23978         * modules/dirent (Makefile.am): Likewise.
23979         * modules/inttypes (Makefile.am): Likewise.
23980         * modules/langinfo (Makefile.am): Likewise.
23981         * modules/locale (Makefile.am): Likewise.
23982         * modules/spawn (Makefile.am): Likewise.
23983         * modules/sys_file (Makefile.am): Likewise.
23984         * modules/sys_ioctl (Makefile.am): Likewise.
23985         * modules/sys_select (Makefile.am): Likewise.
23986         * modules/sys_socket (Makefile.am): Likewise.
23987         * modules/sys_times (Makefile.am): Likewise.
23988         * modules/sys_utsname (Makefile.am): Likewise.
23989         * modules/sys_wait (Makefile.am): Likewise.
23990         * modules/wchar (Makefile.am): Likewise.
23991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23992         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23993         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23994         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23995         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23996         Likewise.
23997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23999         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24000         Likewise.
24001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24002         Likewise.
24003         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24005         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24007         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24008         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24009         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24010         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24011         (gl_WCHAR_H_DEFAULTS): Likewise.
24012
24013 2009-12-31  Eric Blake  <ebb9@byu.net>
24014
24015         signal, spawn: use link warnings
24016         * lib/signal.in.h (sigset_t): Make unconditional.
24017         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24018         (sigpending, sigprocmask, sigaction): Add link warnings.
24019         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24020         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24021         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24022         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24023         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24024         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24025         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24026         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24027         (posix_spawn_file_actions_destroy)
24028         (posix_spawn_file_actions_addopen)
24029         (posix_spawn_file_actions_addclose)
24030         (posix_spawn_file_actions_adddup2): Likewise.
24031         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24032         * tests/test-signal.c (main): Enhance test.
24033
24034         spawn: improve wrapper support
24035         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24036         (gl_SPAWN_H_DEFAULTS): New defaults.
24037         * modules/spawn (Makefile.am): Substitute them.
24038         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24039         Only declare if missing or broken.
24040
24041         sys_times, sys_utsname: use include_next
24042         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24043         header.
24044         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24046         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24047         * modules/sys_times (Depends-on): Add include_next.
24048         (Makefile.am): Substitute additional values.
24049         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24050         * lib/sys_times.in.h (includes): Include native header, if
24051         available.
24052         * lib/sys_utsname.in.h (includes): Likewise.
24053         * tests/test-sys_times.c (main): Enhance test.
24054
24055         fdutimensat: revert prior patch
24056         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24057         utimens.h.
24058         Reported by Bruno Haible.
24059
24060 2009-12-30  Eric Blake  <ebb9@byu.net>
24061
24062         sys_wait: drop link-warning dependency
24063         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24064         link-warning efforts.
24065         * lib/sys_wait.in.h: Likewise.
24066
24067         fdutimensat: remove bogus dependency
24068         * modules/fdutimensat (Depends-on): Drop inline.
24069
24070         unistd: fix typo
24071         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24072
24073 2009-12-30  Bruno Haible  <bruno@clisp.org>
24074
24075         Fix compilation error with Solaris cc.
24076         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24077         * lib/unicase/u16-is-invariant.c: Likewise.
24078         * lib/unicase/u32-is-invariant.c: Likewise.
24079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24080
24081 2009-12-30  Bruno Haible  <bruno@clisp.org>
24082
24083         Fix test crash.
24084         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24085         locales.
24086         Reported by Simon Josefsson <simon@josefsson.org>.
24087
24088 2009-12-30  Bruno Haible  <bruno@clisp.org>
24089
24090         Fix compilation error on most platforms.
24091         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24092         Reported by Simon Josefsson <simon@josefsson.org>
24093         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24094
24095 2009-12-30  Eric Blake  <ebb9@byu.net>
24096
24097         futimens, utimensat: work around ntfs-3g bug
24098         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24099         a ctime bug is present, and expand workaround to cover ntfs-3g.
24100         * lib/utimens.c (fdutimens, lutimens): Likewise.
24101         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24102         (validate_timespec): Adjust return value.
24103         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24104         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24105         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24106
24107 2009-12-29  Eric Blake  <ebb9@byu.net>
24108
24109         link-warning: make usage consistent
24110         * modules/ctype (Depends-on): Add link-warning.
24111         (Makefile.am): Update rules accordingly.
24112         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24113         * modules/locale (Depends-on, Makefile.am): Likewise.
24114         * modules/sys_file (Makefile.am): Likewise.
24115         * modules/getopt-posix (Makefile.am): Delete unused link warning
24116         efforts.
24117         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24118         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24119         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24120         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24121
24122         stdio: remove unused variables
24123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24125         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24126
24127         tests: test more substitute headers
24128         * modules/ctype-tests: New file.
24129         * modules/dirent-tests: Likewise.
24130         * modules/spawn-tests: Likewise.
24131         * modules/sys_file-tests: Likewise.
24132         * modules/sys_ioctl-tests: Likewise.
24133         * modules/sys_wait-tests: Likewise.
24134         * tests/test-ctype.c: Likewise.
24135         * tests/test-dirent.c: Likewise.
24136         * tests/test-spawn.c: Likewise.
24137         * tests/test-sys_file.c: Likewise.
24138         * tests/test-sys_ioctl.c: Likewise.
24139         * tests/test-sys_wait.c: Likewise.
24140         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24141         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24142         whether or not flock is in use.
24143
24144         tests: remove License section from module
24145         * modules/arpa_inet-tests: Remove unneeded section.
24146         * modules/byteswap-tests: Likewise.
24147         * modules/ceilf-tests: Likewise.
24148         * modules/ceill-tests: Likewise.
24149         * modules/crypto/des-tests: Likewise.
24150         * modules/crypto/gc-arcfour-tests: Likewise.
24151         * modules/crypto/gc-arctwo-tests: Likewise.
24152         * modules/crypto/gc-des-tests: Likewise.
24153         * modules/crypto/gc-hmac-md5-tests: Likewise.
24154         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24155         * modules/crypto/gc-md2-tests: Likewise.
24156         * modules/crypto/gc-md4-tests: Likewise.
24157         * modules/crypto/gc-md5-tests: Likewise.
24158         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24159         * modules/crypto/gc-rijndael-tests: Likewise.
24160         * modules/crypto/gc-sha1-tests: Likewise.
24161         * modules/crypto/gc-tests: Likewise.
24162         * modules/crypto/md2-tests: Likewise.
24163         * modules/crypto/md4-tests: Likewise.
24164         * modules/fcntl-h-tests: Likewise.
24165         * modules/floorf-tests: Likewise.
24166         * modules/floorl-tests: Likewise.
24167         * modules/frexp-nolibm-tests: Likewise.
24168         * modules/frexp-tests: Likewise.
24169         * modules/frexpl-nolibm-tests: Likewise.
24170         * modules/frexpl-tests: Likewise.
24171         * modules/getaddrinfo-tests: Likewise.
24172         * modules/inttypes-tests: Likewise.
24173         * modules/isfinite-tests: Likewise.
24174         * modules/isinf-tests: Likewise.
24175         * modules/ldexpl-tests: Likewise.
24176         * modules/locale-tests: Likewise.
24177         * modules/math-tests: Likewise.
24178         * modules/netdb-tests: Likewise.
24179         * modules/netinet_in-tests: Likewise.
24180         * modules/printf-frexp-tests: Likewise.
24181         * modules/printf-frexpl-tests: Likewise.
24182         * modules/priv-set-tests: Likewise.
24183         * modules/random_r-tests: Likewise.
24184         * modules/round-tests: Likewise.
24185         * modules/roundf-tests: Likewise.
24186         * modules/roundl-tests: Likewise.
24187         * modules/search-tests: Likewise.
24188         * modules/select-tests: Likewise.
24189         * modules/signal-tests: Likewise.
24190         * modules/stdbool-tests: Likewise.
24191         * modules/stddef-tests: Likewise.
24192         * modules/stdint-tests: Likewise.
24193         * modules/stdio-tests: Likewise.
24194         * modules/stdlib-tests: Likewise.
24195         * modules/string-tests: Likewise.
24196         * modules/strings-tests: Likewise.
24197         * modules/sys_select-tests: Likewise.
24198         * modules/sys_socket-tests: Likewise.
24199         * modules/sys_stat-tests: Likewise.
24200         * modules/sys_time-tests: Likewise.
24201         * modules/sys_utsname-tests: Likewise.
24202         * modules/sysexits-tests: Likewise.
24203         * modules/time-tests: Likewise.
24204         * modules/trunc-tests: Likewise.
24205         * modules/truncf-tests: Likewise.
24206         * modules/truncl-tests: Likewise.
24207         * modules/tsearch-tests: Likewise.
24208         * modules/unistd-tests: Likewise.
24209         * modules/wchar-tests: Likewise.
24210         * modules/wctype-tests: Likewise.
24211
24212         tests: fix license on several tests
24213         * tests/test-des.c: Update to GPLv3+.
24214         * tests/test-flock.c: Likewise.
24215         * tests/test-fsync.c: Likewise.
24216         * tests/test-futimens.h: Likewise.
24217         * tests/test-gc-arcfour.c: Likewise.
24218         * tests/test-gc-arctwo.c: Likewise.
24219         * tests/test-gc-des.c: Likewise.
24220         * tests/test-gc-hmac-md5.c: Likewise.
24221         * tests/test-gc-hmac-sha1.c: Likewise.
24222         * tests/test-gc-md2.c: Likewise.
24223         * tests/test-gc-md4.c: Likewise.
24224         * tests/test-gc-md5.c: Likewise.
24225         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24226         * tests/test-gc-rijndael.c: Likewise.
24227         * tests/test-gc-sha1.c: Likewise.
24228         * tests/test-gc.c: Likewise.
24229         * tests/test-getcwd.c: Likewise.
24230         * tests/test-link.c: Likewise.
24231         * tests/test-link.h: Likewise.
24232         * tests/test-lutimens.h: Likewise.
24233         * tests/test-md2.c: Likewise.
24234         * tests/test-md4.c: Likewise.
24235         * tests/test-mkdir.h: Likewise.
24236         * tests/test-rename.c: Likewise.
24237         * tests/test-rename.h: Likewise.
24238         * tests/test-safe-alloc.c: Likewise.
24239         * tests/test-utimens-common.h: Likewise.
24240         * tests/test-utimens.h: Likewise.
24241
24242         maint: sync license texts
24243         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24244         * doc/gpl-3.0.texi: Revert copyright year update.
24245         * doc/lgpl-3.0.texi: Likewise.
24246
24247 2009-12-29  Jim Meyering  <meyering@redhat.com>
24248
24249         update nearly all FSF copyright year lists to include 2009
24250         The files named by the following are exempted:
24251             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24252               test -f "$dst" && { echo "$dst"; continue; }
24253               test -d "$dst" || continue
24254               echo "$dst"/$(basename "$src")
24255             done > exempt
24256             git ls-files tests/unictype >> exempt
24257         In the remaining files, convert to all-interval notation if
24258         - there is already at least one year interval like 2000-2003
24259         - the file is maintained by me
24260         - the file is in lib/uni*/, where that style already prevails
24261         Otherwise, use update-copyright's default.
24262
24263 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24264         and Eric Blake  <ebb9@byu.net>
24265
24266         tests: don't require debug system() to pass
24267         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24268         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24269         * tests/test-unlink.h (test_unlink_func): Likewise.
24270         * tests/test-fstatat.c (main): ...into callers.
24271         * tests/test-lstat.c (main): Likewise.
24272         * tests/test-rmdir.c (main): Likewise.
24273         * tests/test-unlink.c (main): Likewise.
24274         * tests/test-unlinkat.c (main): Likewise.
24275         * tests/test-areadlink-with-size.c (main): Don't require a
24276         debug-only system call to pass, aiding cross-testing to mingw.
24277         * tests/test-areadlink.c (main): Likewise.
24278         * tests/test-areadlinkat-with-size.c (main): Likewise.
24279         * tests/test-areadlinkat.c (main): Likewise.
24280         * tests/test-canonicalize-lgpl.c (main): Likewise.
24281         * tests/test-canonicalize.c (main): Likewise.
24282         * tests/test-chown.c (main): Likewise.
24283         * tests/test-fchownat.c (main): Likewise.
24284         * tests/test-lchown.c (main): Likewise.
24285         * tests/test-fdutimensat.c (main): Likewise.
24286         * tests/test-futimens.c (main): Likewise.
24287         * tests/test-link.c (main): Likewise.
24288         * tests/test-linkat.c (main): Likewise.
24289         * tests/test-mkdir.c (main): Likewise.
24290         * tests/test-mkdirat.c (main): Likewise.
24291         * tests/test-mkfifo.c (main): Likewise.
24292         * tests/test-mkfifoat.c (main): Likewise.
24293         * tests/test-mknod.c (main): Likewise.
24294         * tests/test-readlink.c (main): Likewise.
24295         * tests/test-remove.c (main): Likewise.
24296         * tests/test-rename.c (main): Likewise.
24297         * tests/test-renameat.c (main): Likewise.
24298         * tests/test-symlink.c (main): Likewise.
24299         * tests/test-symlinkat.c (main): Likewise.
24300         * tests/test-utimens.c (main): Likewise.
24301         * tests/test-utimensat.c (main): Likewise.
24302
24303 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24304
24305         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24306         on $(UNUSED_PARAMETER_H) to avoid build failure.
24307
24308 2009-12-28  Jim Meyering  <meyering@redhat.com>
24309
24310         update-copyright: you may specify a max. line length other than 72
24311         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24312
24313         maint: use consistent FSF copyright line syntax
24314         * lib/posixtm.c: Add missing comma in FSF copyright line.
24315         * lib/posixtm.h: Likewise.
24316         * lib/getugroups.c: Add missing ", Inc.".
24317
24318         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24319         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24320         FSF copyright line.  Remove trailing blanks.
24321
24322 2009-12-28  Eric Blake  <ebb9@byu.net>
24323
24324         test-dup2: reduce dependencies
24325         * modules/cloexec (Configure.ac): Set witness.
24326         * modules/dup2-tests (Depends-on): Drop cloexec.
24327         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24328         not present.
24329         Suggested by Bruno Haible.
24330
24331 2009-12-26  Bruno Haible  <bruno@clisp.org>
24332
24333         Remove an unneeded dependency.
24334         * modules/fseterr (Depends-on): Remove dup2.
24335
24336 2009-12-26  Eric Blake  <ebb9@byu.net>
24337
24338         tests: use macros.h in more places
24339         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24340         (ASSERT_STREAM): Provide default of stderr.
24341         * tests/test-dirent-safer.c: Include macros.h, using alternate
24342         stream for assertions.
24343         * tests/test-dup-safer.c: Likewise.
24344         * tests/test-freopen-safer.c: Likewise.
24345         * tests/test-getopt.c: Likewise.
24346         * tests/test-openat-safer.c: Likewise.
24347         * tests/test-pipe.c: Likewise.
24348         * tests/test-popen-safer.c: Likewise.
24349         * modules/dirent-safer-tests (Files): Include macros.h.
24350         * modules/unistd-safer-tests (Files): Likewise.
24351         * modules/freopen-safer-tests (Files): Likewise.
24352         * modules/getopt-posix-tests (Files): Likewise.
24353         * modules/openat-safer-tests (Files): Likewise.
24354         * modules/pipe-tests (Files): Likewise.
24355
24356 2009-12-26  Bruno Haible  <bruno@clisp.org>
24357
24358         javacomp: Portability fix.
24359         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24360         that it also works on Solaris.
24361
24362 2009-12-26  Bruno Haible  <bruno@clisp.org>
24363
24364         localename: Fix storage allocation of gl_locale_name_thread's result.
24365         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24366         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24367         all platforms that have 'uselocale'.
24368         (gl_locale_name_thread_unsafe): New function, extracted from
24369         gl_locale_name_thread.
24370         (gl_locale_name_thread): Call struniq on all platforms that have
24371         'uselocale'.
24372         * tests/test-localename.c (test_locale_name_thread): Check that the
24373         resulting strings are permanently allocated.
24374         * modules/localename-tests (Depends-on): Add strdup.
24375
24376 2009-12-26  Bruno Haible  <bruno@clisp.org>
24377
24378         * tests/test-localename.c (categories): Fill in the strings.
24379
24380 2009-12-26  Jim Meyering  <meyering@redhat.com>
24381
24382         isdir: complete the removal of m4/isdir.m4
24383         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24384
24385         isdir: clean up, since at least grep still uses it
24386         * lib/isdir.c: Include "isdir.h".
24387         (S_ISDIR): Remove now-unneeded definition.
24388         * modules/isdir (Files): Add lib/isdir.h.
24389         * lib/isdir.h: New file, with declaration.
24390         * m4/isdir.m4: Remove file -- unneeded.
24391
24392 2009-12-25  Bruno Haible  <bruno@clisp.org>
24393
24394         selinux-h: Make generated .h files standalone.
24395         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24396         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24397         * lib/se-selinux.in.h: Likewise.
24398         * modules/selinux-h (Depends-on): Add unused-parameter.
24399         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24400         selinux/selinux.h and selinux/context.h.
24401         Suggested by Eric Blake.
24402
24403 2009-12-25  Bruno Haible  <bruno@clisp.org>
24404
24405         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24406         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24407         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24408         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24409         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24410
24411 2009-12-24  Bruno Haible  <bruno@clisp.org>
24412
24413         openat: Fix warning.
24414         * lib/openat-proc.c: Include <unistd.h>.
24415
24416 2009-12-24  Bruno Haible  <bruno@clisp.org>
24417
24418         New module 'unused-parameter'.
24419         * build-aux/unused-parameter.h: New file, extracted from earlier
24420         gnulib-common.m4.
24421         * modules/unused-parameter: New file.
24422         * lib/unistr.h: Include unused-parameter.h.
24423         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24424         _GL_UNUSED.
24425         * modules/unistr/base (Depends-on): Add unused-parameter.
24426
24427 2009-12-24  Bruno Haible  <bruno@clisp.org>
24428
24429         Add missing dependencies to 'extensions' module.
24430         * m4/extensions.m4: Add comment.
24431         * modules/accept4 (Depends-on): Add extensions.
24432         * modules/dup3 (Depends-on): Likewise.
24433         * modules/fcntl (Depends-on): Likewise.
24434         * modules/futimens (Depends-on): Likewise.
24435         * modules/mknod (Depends-on): Likewise.
24436         * modules/pipe2 (Depends-on): Likewise.
24437         * modules/stat-time (Depends-on): Likewise.
24438         * modules/strcasestr-simple (Depends-on): Likewise.
24439         * modules/strsignal (Depends-on): Likewise.
24440         * modules/utimensat (Depends-on): Likewise.
24441         * modules/localcharset (Depends-on): Likewise. Needed because of
24442         gl_FCNTL_O_FLAGS.
24443         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24444         AC_TYPE_MBSTATE_T.
24445         * modules/wcsnrtombs (Depends-on): Likewise.
24446         * modules/wcsrtombs (Depends-on): Likewise.
24447
24448 2009-12-24  Bruno Haible  <bruno@clisp.org>
24449
24450         binary-io: Avoid gcc warning due to SET_BINARY.
24451         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24452         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24453
24454 2009-12-24  Bruno Haible  <bruno@clisp.org>
24455
24456         Avoid future namespace pollution on glibc systems.
24457         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24458         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24459         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24460         glibc systems.
24461
24462 2009-12-24  Bruno Haible  <bruno@clisp.org>
24463
24464         Refactor common macros used in tests.
24465         * tests/macros.h: New file.
24466         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24467         and/or <stdlib.h>, if appropriate.
24468         (ASSERT, SIZEOF): Remove macros.
24469         * tests/test-areadlink-with-size.c: Likewise.
24470         * tests/test-areadlinkat.c: Likewise.
24471         * tests/test-areadlinkat-with-size.c: Likewise.
24472         * tests/test-argmatch.c: Likewise.
24473         * tests/test-argv-iter.c: Likewise.
24474         * tests/test-array-mergesort.c: Likewise.
24475         * tests/test-array_list.c: Likewise.
24476         * tests/test-array_oset.c: Likewise.
24477         * tests/test-avltree_list.c: Likewise.
24478         * tests/test-avltree_oset.c: Likewise.
24479         * tests/test-avltreehash_list.c: Likewise.
24480         * tests/test-base64.c: Likewise.
24481         * tests/test-binary-io.c: Likewise.
24482         * tests/test-bitrotate.c: Likewise.
24483         * tests/test-btowc.c: Likewise.
24484         * tests/test-byteswap.c: Likewise.
24485         * tests/test-c-ctype.c: Likewise.
24486         * tests/test-c-stack.c: Likewise.
24487         * tests/test-c-strcasecmp.c: Likewise.
24488         * tests/test-c-strcasestr.c: Likewise.
24489         * tests/test-c-strncasecmp.c: Likewise.
24490         * tests/test-c-strstr.c: Likewise.
24491         * tests/test-canonicalize-lgpl.c: Likewise.
24492         * tests/test-canonicalize.c: Likewise.
24493         * tests/test-carray_list.c: Likewise.
24494         * tests/test-ceilf1.c: Likewise.
24495         * tests/test-ceilf2.c: Likewise.
24496         * tests/test-ceill.c: Likewise.
24497         * tests/test-chown.c: Likewise.
24498         * tests/test-cloexec.c: Likewise.
24499         * tests/test-copy-acl.c: Likewise.
24500         * tests/test-copy-file.c: Likewise.
24501         * tests/test-count-one-bits.c: Likewise.
24502         * tests/test-dprintf-posix.c: Likewise.
24503         * tests/test-dup2.c: Likewise.
24504         * tests/test-dup3.c: Likewise.
24505         * tests/test-duplocale.c: Likewise.
24506         * tests/test-fbufmode.c: Likewise.
24507         * tests/test-fchdir.c: Likewise.
24508         * tests/test-fchownat.c: Likewise.
24509         * tests/test-fcntl-safer.c: Likewise.
24510         * tests/test-fcntl.c: Likewise.
24511         * tests/test-fdopendir.c: Likewise.
24512         * tests/test-fdutimensat.c: Likewise.
24513         * tests/test-fflush2.c: Likewise.
24514         * tests/test-file-has-acl.c: Likewise.
24515         * tests/test-filevercmp.c: Likewise.
24516         * tests/test-flock.c: Likewise.
24517         * tests/test-floorf1.c: Likewise.
24518         * tests/test-floorf2.c: Likewise.
24519         * tests/test-floorl.c: Likewise.
24520         * tests/test-fnmatch.c: Likewise.
24521         * tests/test-fopen.h: Likewise.
24522         * tests/test-fpending.c: Likewise.
24523         * tests/test-fprintf-posix.c: Likewise.
24524         * tests/test-fpurge.c: Likewise.
24525         * tests/test-freadable.c: Likewise.
24526         * tests/test-freadahead.c: Likewise.
24527         * tests/test-freading.c: Likewise.
24528         * tests/test-freadptr.c: Likewise.
24529         * tests/test-freadptr2.c: Likewise.
24530         * tests/test-freadseek.c: Likewise.
24531         * tests/test-freopen.c: Likewise.
24532         * tests/test-frexp.c: Likewise.
24533         * tests/test-frexpl.c: Likewise.
24534         * tests/test-fseek.c: Likewise.
24535         * tests/test-fseeko.c: Likewise.
24536         * tests/test-fstatat.c: Likewise.
24537         * tests/test-fstrcmp.c: Likewise.
24538         * tests/test-fsync.c: Likewise.
24539         * tests/test-ftell.c: Likewise.
24540         * tests/test-ftello.c: Likewise.
24541         * tests/test-func.c: Likewise.
24542         * tests/test-futimens.c: Likewise.
24543         * tests/test-fwritable.c: Likewise.
24544         * tests/test-fwriting.c: Likewise.
24545         * tests/test-getcwd.c: Likewise.
24546         * tests/test-getdate.c: Likewise.
24547         * tests/test-getdelim.c: Likewise.
24548         * tests/test-getdtablesize.c: Likewise.
24549         * tests/test-getgroups.c: Likewise.
24550         * tests/test-getline.c: Likewise.
24551         * tests/test-getndelim2.c: Likewise.
24552         * tests/test-glob.c: Likewise.
24553         * tests/test-hash.c: Likewise.
24554         * tests/test-i-ring.c: Likewise.
24555         * tests/test-iconv-utf.c: Likewise.
24556         * tests/test-iconv.c: Likewise.
24557         * tests/test-idpriv-drop.c: Likewise.
24558         * tests/test-idpriv-droptemp.c: Likewise.
24559         * tests/test-inet_ntop.c: Likewise.
24560         * tests/test-inet_pton.c: Likewise.
24561         * tests/test-isblank.c: Likewise.
24562         * tests/test-isfinite.c: Likewise.
24563         * tests/test-isinf.c: Likewise.
24564         * tests/test-isnan.c: Likewise.
24565         * tests/test-isnand.h: Likewise.
24566         * tests/test-isnanf.h: Likewise.
24567         * tests/test-isnanl.h: Likewise.
24568         * tests/test-lchown.c: Likewise.
24569         * tests/test-ldexpl.c: Likewise.
24570         * tests/test-link.c: Likewise.
24571         * tests/test-linkat.c: Likewise.
24572         * tests/test-linked_list.c: Likewise.
24573         * tests/test-linkedhash_list.c: Likewise.
24574         * tests/test-localename.c: Likewise.
24575         * tests/test-lseek.c: Likewise.
24576         * tests/test-lstat.c: Likewise.
24577         * tests/test-mbmemcasecmp.c: Likewise.
24578         * tests/test-mbmemcasecoll.c: Likewise.
24579         * tests/test-mbrtowc.c: Likewise.
24580         * tests/test-mbscasecmp.c: Likewise.
24581         * tests/test-mbscasestr1.c: Likewise.
24582         * tests/test-mbscasestr2.c: Likewise.
24583         * tests/test-mbscasestr3.c: Likewise.
24584         * tests/test-mbscasestr4.c: Likewise.
24585         * tests/test-mbschr.c: Likewise.
24586         * tests/test-mbscspn.c: Likewise.
24587         * tests/test-mbsinit.c: Likewise.
24588         * tests/test-mbsncasecmp.c: Likewise.
24589         * tests/test-mbsnrtowcs.c: Likewise.
24590         * tests/test-mbspbrk.c: Likewise.
24591         * tests/test-mbspcasecmp.c: Likewise.
24592         * tests/test-mbsrchr.c: Likewise.
24593         * tests/test-mbsrtowcs.c: Likewise.
24594         * tests/test-mbsspn.c: Likewise.
24595         * tests/test-mbsstr1.c: Likewise.
24596         * tests/test-mbsstr2.c: Likewise.
24597         * tests/test-mbsstr3.c: Likewise.
24598         * tests/test-memchr.c: Likewise.
24599         * tests/test-memchr2.c: Likewise.
24600         * tests/test-memcmp.c: Likewise.
24601         * tests/test-memmem.c: Likewise.
24602         * tests/test-memrchr.c: Likewise.
24603         * tests/test-mkdir.c: Likewise.
24604         * tests/test-mkdirat.c: Likewise.
24605         * tests/test-mkfifo.c: Likewise.
24606         * tests/test-mkfifoat.c: Likewise.
24607         * tests/test-mknod.c: Likewise.
24608         * tests/test-nanosleep.c: Likewise.
24609         * tests/test-nl_langinfo.c: Likewise.
24610         * tests/test-obstack-printf.c: Likewise.
24611         * tests/test-open.c: Likewise.
24612         * tests/test-openat.c: Likewise.
24613         * tests/test-pipe-filter-gi1.c: Likewise.
24614         * tests/test-pipe-filter-gi2-main.c: Likewise.
24615         * tests/test-pipe-filter-ii1.c: Likewise.
24616         * tests/test-pipe-filter-ii2-main.c: Likewise.
24617         * tests/test-pipe2.c: Likewise.
24618         * tests/test-popen.h: Likewise.
24619         * tests/test-posixtm.c: Likewise.
24620         * tests/test-pread.c: Likewise.
24621         * tests/test-printf-frexp.c: Likewise.
24622         * tests/test-printf-frexpl.c: Likewise.
24623         * tests/test-printf-posix.c: Likewise.
24624         * tests/test-priv-set.c: Likewise.
24625         * tests/test-quotearg.c: Likewise.
24626         * tests/test-random_r.c: Likewise.
24627         * tests/test-rawmemchr.c: Likewise.
24628         * tests/test-rbtree_list.c: Likewise.
24629         * tests/test-rbtree_oset.c: Likewise.
24630         * tests/test-rbtreehash_list.c: Likewise.
24631         * tests/test-readlink.c: Likewise.
24632         * tests/test-remove.c: Likewise.
24633         * tests/test-rename.c: Likewise.
24634         * tests/test-renameat.c: Likewise.
24635         * tests/test-rmdir.c: Likewise.
24636         * tests/test-round1.c: Likewise.
24637         * tests/test-roundf1.c: Likewise.
24638         * tests/test-roundl.c: Likewise.
24639         * tests/test-safe-alloc.c: Likewise.
24640         * tests/test-sameacls.c: Likewise.
24641         * tests/test-set-mode-acl.c: Likewise.
24642         * tests/test-setenv.c: Likewise.
24643         * tests/test-sigaction.c: Likewise.
24644         * tests/test-signbit.c: Likewise.
24645         * tests/test-sleep.c: Likewise.
24646         * tests/test-snprintf-posix.c: Likewise.
24647         * tests/test-snprintf.c: Likewise.
24648         * tests/test-sprintf-posix.c: Likewise.
24649         * tests/test-stat-time.c: Likewise.
24650         * tests/test-stat.c: Likewise.
24651         * tests/test-strcasestr.c: Likewise.
24652         * tests/test-strchrnul.c: Likewise.
24653         * tests/test-strerror.c: Likewise.
24654         * tests/test-striconv.c: Likewise.
24655         * tests/test-striconveh.c: Likewise.
24656         * tests/test-striconveha.c: Likewise.
24657         * tests/test-strsignal.c: Likewise.
24658         * tests/test-strstr.c: Likewise.
24659         * tests/test-strtod.c: Likewise.
24660         * tests/test-strverscmp.c: Likewise.
24661         * tests/test-symlink.c: Likewise.
24662         * tests/test-symlinkat.c: Likewise.
24663         * tests/test-trunc1.c: Likewise.
24664         * tests/test-trunc2.c: Likewise.
24665         * tests/test-truncf1.c: Likewise.
24666         * tests/test-truncf2.c: Likewise.
24667         * tests/test-truncl.c: Likewise.
24668         * tests/test-uname.c: Likewise.
24669         * tests/test-unlink.c: Likewise.
24670         * tests/test-unlinkat.c: Likewise.
24671         * tests/test-unsetenv.c: Likewise.
24672         * tests/test-usleep.c: Likewise.
24673         * tests/test-utimens.c: Likewise.
24674         * tests/test-utimensat.c: Likewise.
24675         * tests/test-vasnprintf-posix.c: Likewise.
24676         * tests/test-vasnprintf-posix2.c: Likewise.
24677         * tests/test-vasnprintf.c: Likewise.
24678         * tests/test-vasprintf-posix.c: Likewise.
24679         * tests/test-vasprintf.c: Likewise.
24680         * tests/test-vdprintf-posix.c: Likewise.
24681         * tests/test-vfprintf-posix.c: Likewise.
24682         * tests/test-vprintf-posix.c: Likewise.
24683         * tests/test-vsnprintf-posix.c: Likewise.
24684         * tests/test-vsnprintf.c: Likewise.
24685         * tests/test-vsprintf-posix.c: Likewise.
24686         * tests/test-wcrtomb.c: Likewise.
24687         * tests/test-wcsnrtombs.c: Likewise.
24688         * tests/test-wcsrtombs.c: Likewise.
24689         * tests/test-wctype.c: Likewise.
24690         * tests/test-wcwidth.c: Likewise.
24691         * tests/test-xfprintf-posix.c: Likewise.
24692         * tests/test-xmemdup0.c: Likewise.
24693         * tests/test-xprintf-posix.c: Likewise.
24694         * tests/test-xvasprintf.c: Likewise.
24695         * tests/unicase/test-locale-language.c: Likewise.
24696         * tests/unicase/test-mapping-part1.h: Likewise.
24697         * tests/unicase/test-predicate-part1.h: Likewise.
24698         * tests/unicase/test-u8-casecmp.c: Likewise.
24699         * tests/unicase/test-u8-casecoll.c: Likewise.
24700         * tests/unicase/test-u8-casefold.c: Likewise.
24701         * tests/unicase/test-u8-is-cased.c: Likewise.
24702         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24703         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24704         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24705         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24706         * tests/unicase/test-u8-tolower.c: Likewise.
24707         * tests/unicase/test-u8-totitle.c: Likewise.
24708         * tests/unicase/test-u8-toupper.c: Likewise.
24709         * tests/unicase/test-u16-casecmp.c: Likewise.
24710         * tests/unicase/test-u16-casecoll.c: Likewise.
24711         * tests/unicase/test-u16-casefold.c: Likewise.
24712         * tests/unicase/test-u16-is-cased.c: Likewise.
24713         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24714         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24715         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24716         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24717         * tests/unicase/test-u16-tolower.c: Likewise.
24718         * tests/unicase/test-u16-totitle.c: Likewise.
24719         * tests/unicase/test-u16-toupper.c: Likewise.
24720         * tests/unicase/test-u32-casecmp.c: Likewise.
24721         * tests/unicase/test-u32-casecoll.c: Likewise.
24722         * tests/unicase/test-u32-casefold.c: Likewise.
24723         * tests/unicase/test-u32-is-cased.c: Likewise.
24724         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24725         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24726         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24727         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24728         * tests/unicase/test-u32-tolower.c: Likewise.
24729         * tests/unicase/test-u32-totitle.c: Likewise.
24730         * tests/unicase/test-u32-toupper.c: Likewise.
24731         * tests/unicase/test-ulc-casecmp.c: Likewise.
24732         * tests/unicase/test-ulc-casecoll.c: Likewise.
24733         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24734         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24735         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24736         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24737         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24738         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24742         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24743         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24744         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24745         * tests/unictype/test-bidi_byname.c: Likewise.
24746         * tests/unictype/test-bidi_name.c: Likewise.
24747         * tests/unictype/test-bidi_of.c: Likewise.
24748         * tests/unictype/test-bidi_test.c: Likewise.
24749         * tests/unictype/test-block_list.c: Likewise.
24750         * tests/unictype/test-block_of.c: Likewise.
24751         * tests/unictype/test-block_test.c: Likewise.
24752         * tests/unictype/test-categ_and.c: Likewise.
24753         * tests/unictype/test-categ_and_not.c: Likewise.
24754         * tests/unictype/test-categ_byname.c: Likewise.
24755         * tests/unictype/test-categ_name.c: Likewise.
24756         * tests/unictype/test-categ_none.c: Likewise.
24757         * tests/unictype/test-categ_of.c: Likewise.
24758         * tests/unictype/test-categ_or.c: Likewise.
24759         * tests/unictype/test-categ_test_withtable.c: Likewise.
24760         * tests/unictype/test-combining.c: Likewise.
24761         * tests/unictype/test-decdigit.c: Likewise.
24762         * tests/unictype/test-digit.c: Likewise.
24763         * tests/unictype/test-mirror.c: Likewise.
24764         * tests/unictype/test-numeric.c: Likewise.
24765         * tests/unictype/test-pr_byname.c: Likewise.
24766         * tests/unictype/test-pr_test.c: Likewise.
24767         * tests/unictype/test-predicate-part1.h: Likewise.
24768         * tests/unictype/test-scripts.c: Likewise.
24769         * tests/unictype/test-sy_c_ident.c: Likewise.
24770         * tests/unictype/test-sy_java_ident.c: Likewise.
24771         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24772         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24773         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24774         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24775         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24776         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24777         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24778         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24779         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24780         * tests/uninorm/test-compat-decomposition.c: Likewise.
24781         * tests/uninorm/test-composition.c: Likewise.
24782         * tests/uninorm/test-decomposing-form.c: Likewise.
24783         * tests/uninorm/test-decomposition.c: Likewise.
24784         * tests/uninorm/test-u8-nfc.c: Likewise.
24785         * tests/uninorm/test-u8-nfd.c: Likewise.
24786         * tests/uninorm/test-u8-nfkc.c: Likewise.
24787         * tests/uninorm/test-u8-nfkd.c: Likewise.
24788         * tests/uninorm/test-u8-normcmp.c: Likewise.
24789         * tests/uninorm/test-u8-normcoll.c: Likewise.
24790         * tests/uninorm/test-u16-nfc.c: Likewise.
24791         * tests/uninorm/test-u16-nfd.c: Likewise.
24792         * tests/uninorm/test-u16-nfkc.c: Likewise.
24793         * tests/uninorm/test-u16-nfkd.c: Likewise.
24794         * tests/uninorm/test-u16-normcmp.c: Likewise.
24795         * tests/uninorm/test-u16-normcoll.c: Likewise.
24796         * tests/uninorm/test-u32-nfc.c: Likewise.
24797         * tests/uninorm/test-u32-nfd.c: Likewise.
24798         * tests/uninorm/test-u32-nfkc.c: Likewise.
24799         * tests/uninorm/test-u32-nfkd.c: Likewise.
24800         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24801         * tests/uninorm/test-u32-normcmp.c: Likewise.
24802         * tests/uninorm/test-u32-normcoll.c: Likewise.
24803         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24804         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24811         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24812         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24813         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24814         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24815         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24816         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24817         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24818         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24819         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24820         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24821         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24822         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24823         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24824         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24825         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24826         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24827         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24828         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24829         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24830         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24831         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24832         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24833         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24834         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24835         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24836         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24837         * tests/uniwidth/test-u8-width.c: Likewise.
24838         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24839         * tests/uniwidth/test-u16-width.c: Likewise.
24840         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24841         * tests/uniwidth/test-u32-width.c: Likewise.
24842         * tests/uniwidth/test-uc_width.c: Likewise.
24843         * tests/uniwidth/test-uc_width2.c: Likewise.
24844         * modules/acl-tests (Files): Add tests/macros.h.
24845         * modules/areadlink-tests (Files): Likewise.
24846         * modules/areadlink-with-size-tests (Files): Likewise.
24847         * modules/areadlinkat-tests (Files): Likewise.
24848         * modules/areadlinkat-with-size-tests (Files): Likewise.
24849         * modules/argmatch-tests (Files): Likewise.
24850         * modules/argv-iter-tests (Files): Likewise.
24851         * modules/array-list-tests (Files): Likewise.
24852         * modules/array-mergesort-tests (Files): Likewise.
24853         * modules/array-oset-tests (Files): Likewise.
24854         * modules/avltree-list-tests (Files): Likewise.
24855         * modules/avltree-oset-tests (Files): Likewise.
24856         * modules/avltreehash-list-tests (Files): Likewise.
24857         * modules/base64-tests (Files): Likewise.
24858         * modules/binary-io-tests (Files): Likewise.
24859         * modules/bitrotate-tests (Files): Likewise.
24860         * modules/btowc-tests (Files): Likewise.
24861         * modules/byteswap-tests (Files): Likewise.
24862         * modules/c-ctype-tests (Files): Likewise.
24863         * modules/c-stack-tests (Files): Likewise.
24864         * modules/c-strcase-tests (Files): Likewise.
24865         * modules/c-strcasestr-tests (Files): Likewise.
24866         * modules/c-strstr-tests (Files): Likewise.
24867         * modules/canonicalize-lgpl-tests (Files): Likewise.
24868         * modules/canonicalize-tests (Files): Likewise.
24869         * modules/carray-list-tests (Files): Likewise.
24870         * modules/ceilf-tests (Files): Likewise.
24871         * modules/ceill-tests (Files): Likewise.
24872         * modules/chown-tests (Files): Likewise.
24873         * modules/cloexec-tests (Files): Likewise.
24874         * modules/copy-file-tests (Files): Likewise.
24875         * modules/count-one-bits-tests (Files): Likewise.
24876         * modules/dprintf-posix-tests (Files): Likewise.
24877         * modules/dup2-tests (Files): Likewise.
24878         * modules/dup3-tests (Files): Likewise.
24879         * modules/duplocale-tests (Files): Likewise.
24880         * modules/fbufmode-tests (Files): Likewise.
24881         * modules/fchdir-tests (Files): Likewise.
24882         * modules/fcntl-safer-tests (Files): Likewise.
24883         * modules/fcntl-tests (Files): Likewise.
24884         * modules/fdopendir-tests (Files): Likewise.
24885         * modules/fdutimensat-tests (Files): Likewise.
24886         * modules/fflush-tests (Files): Likewise.
24887         * modules/filevercmp-tests (Files): Likewise.
24888         * modules/flock-tests (Files): Likewise.
24889         * modules/floorf-tests (Files): Likewise.
24890         * modules/floorl-tests (Files): Likewise.
24891         * modules/fnmatch-tests (Files): Likewise.
24892         * modules/fopen-safer-tests (Files): Likewise.
24893         * modules/fopen-tests (Files): Likewise.
24894         * modules/fpending-tests (Files): Likewise.
24895         * modules/fprintf-posix-tests (Files): Likewise.
24896         * modules/fpurge-tests (Files): Likewise.
24897         * modules/freadable-tests (Files): Likewise.
24898         * modules/freadahead-tests (Files): Likewise.
24899         * modules/freading-tests (Files): Likewise.
24900         * modules/freadptr-tests (Files): Likewise.
24901         * modules/freadseek-tests (Files): Likewise.
24902         * modules/freopen-tests (Files): Likewise.
24903         * modules/frexp-nolibm-tests (Files): Likewise.
24904         * modules/frexp-tests (Files): Likewise.
24905         * modules/frexpl-nolibm-tests (Files): Likewise.
24906         * modules/frexpl-tests (Files): Likewise.
24907         * modules/fseek-tests (Files): Likewise.
24908         * modules/fseeko-tests (Files): Likewise.
24909         * modules/fstrcmp-tests (Files): Likewise.
24910         * modules/fsync-tests (Files): Likewise.
24911         * modules/ftell-tests (Files): Likewise.
24912         * modules/ftello-tests (Files): Likewise.
24913         * modules/func-tests (Files): Likewise.
24914         * modules/futimens-tests (Files): Likewise.
24915         * modules/fwritable-tests (Files): Likewise.
24916         * modules/fwriting-tests (Files): Likewise.
24917         * modules/getcwd-tests (Files): Likewise.
24918         * modules/getdate-tests (Files): Likewise.
24919         * modules/getdelim-tests (Files): Likewise.
24920         * modules/getdtablesize-tests (Files): Likewise.
24921         * modules/getgroups-tests (Files): Likewise.
24922         * modules/getline-tests (Files): Likewise.
24923         * modules/getndelim2-tests (Files): Likewise.
24924         * modules/glob-tests (Files): Likewise.
24925         * modules/hash-tests (Files): Likewise.
24926         * modules/i-ring-tests (Files): Likewise.
24927         * modules/iconv-tests (Files): Likewise.
24928         * modules/iconv_open-utf-tests (Files): Likewise.
24929         * modules/idpriv-drop-tests (Files): Likewise.
24930         * modules/idpriv-droptemp-tests (Files): Likewise.
24931         * modules/inet_ntop-tests (Files): Likewise.
24932         * modules/inet_pton-tests (Files): Likewise.
24933         * modules/isblank-tests (Files): Likewise.
24934         * modules/isfinite-tests (Files): Likewise.
24935         * modules/isinf-tests (Files): Likewise.
24936         * modules/isnan-tests (Files): Likewise.
24937         * modules/isnand-nolibm-tests (Files): Likewise.
24938         * modules/isnand-tests (Files): Likewise.
24939         * modules/isnanf-nolibm-tests (Files): Likewise.
24940         * modules/isnanf-tests (Files): Likewise.
24941         * modules/isnanl-nolibm-tests (Files): Likewise.
24942         * modules/isnanl-tests (Files): Likewise.
24943         * modules/lchown-tests (Files): Likewise.
24944         * modules/ldexpl-tests (Files): Likewise.
24945         * modules/link-tests (Files): Likewise.
24946         * modules/linkat-tests (Files): Likewise.
24947         * modules/linked-list-tests (Files): Likewise.
24948         * modules/linkedhash-list-tests (Files): Likewise.
24949         * modules/localename-tests (Files): Likewise.
24950         * modules/lseek-tests (Files): Likewise.
24951         * modules/lstat-tests (Files): Likewise.
24952         * modules/mbmemcasecmp-tests (Files): Likewise.
24953         * modules/mbmemcasecoll-tests (Files): Likewise.
24954         * modules/mbrtowc-tests (Files): Likewise.
24955         * modules/mbscasecmp-tests (Files): Likewise.
24956         * modules/mbscasestr-tests (Files): Likewise.
24957         * modules/mbschr-tests (Files): Likewise.
24958         * modules/mbscspn-tests (Files): Likewise.
24959         * modules/mbsinit-tests (Files): Likewise.
24960         * modules/mbsncasecmp-tests (Files): Likewise.
24961         * modules/mbsnrtowcs-tests (Files): Likewise.
24962         * modules/mbspbrk-tests (Files): Likewise.
24963         * modules/mbspcasecmp-tests (Files): Likewise.
24964         * modules/mbsrchr-tests (Files): Likewise.
24965         * modules/mbsrtowcs-tests (Files): Likewise.
24966         * modules/mbsspn-tests (Files): Likewise.
24967         * modules/mbsstr-tests (Files): Likewise.
24968         * modules/memchr-tests (Files): Likewise.
24969         * modules/memchr2-tests (Files): Likewise.
24970         * modules/memcmp-tests (Files): Likewise.
24971         * modules/memmem-tests (Files): Likewise.
24972         * modules/memrchr-tests (Files): Likewise.
24973         * modules/mkdir-tests (Files): Likewise.
24974         * modules/mkfifo-tests (Files): Likewise.
24975         * modules/mkfifoat-tests (Files): Likewise.
24976         * modules/mknod-tests (Files): Likewise.
24977         * modules/nanosleep-tests (Files): Likewise.
24978         * modules/nl_langinfo-tests (Files): Likewise.
24979         * modules/obstack-printf-tests (Files): Likewise.
24980         * modules/open-tests (Files): Likewise.
24981         * modules/openat-tests (Files): Likewise.
24982         * modules/pipe-filter-gi-tests (Files): Likewise.
24983         * modules/pipe-filter-ii-tests (Files): Likewise.
24984         * modules/pipe2-tests (Files): Likewise.
24985         * modules/popen-safer-tests (Files): Likewise.
24986         * modules/popen-tests (Files): Likewise.
24987         * modules/posixtm-tests (Files): Likewise.
24988         * modules/pread-tests (Files): Likewise.
24989         * modules/printf-frexp-tests (Files): Likewise.
24990         * modules/printf-frexpl-tests (Files): Likewise.
24991         * modules/printf-posix-tests (Files): Likewise.
24992         * modules/priv-set-tests (Files): Likewise.
24993         * modules/quotearg-tests (Files): Likewise.
24994         * modules/random_r-tests (Files): Likewise.
24995         * modules/rawmemchr-tests (Files): Likewise.
24996         * modules/rbtree-list-tests (Files): Likewise.
24997         * modules/rbtree-oset-tests (Files): Likewise.
24998         * modules/rbtreehash-list-tests (Files): Likewise.
24999         * modules/readlink-tests (Files): Likewise.
25000         * modules/remove-tests (Files): Likewise.
25001         * modules/rename-tests (Files): Likewise.
25002         * modules/renameat-tests (Files): Likewise.
25003         * modules/rmdir-tests (Files): Likewise.
25004         * modules/round-tests (Files): Likewise.
25005         * modules/roundf-tests (Files): Likewise.
25006         * modules/roundl-tests (Files): Likewise.
25007         * modules/safe-alloc-tests (Files): Likewise.
25008         * modules/setenv-tests (Files): Likewise.
25009         * modules/sigaction-tests (Files): Likewise.
25010         * modules/signbit-tests (Files): Likewise.
25011         * modules/sleep-tests (Files): Likewise.
25012         * modules/snprintf-posix-tests (Files): Likewise.
25013         * modules/snprintf-tests (Files): Likewise.
25014         * modules/sprintf-posix-tests (Files): Likewise.
25015         * modules/stat-tests (Files): Likewise.
25016         * modules/stat-time-tests (Files): Likewise.
25017         * modules/strcasestr-tests (Files): Likewise.
25018         * modules/strchrnul-tests (Files): Likewise.
25019         * modules/strerror-tests (Files): Likewise.
25020         * modules/striconv-tests (Files): Likewise.
25021         * modules/striconveh-tests (Files): Likewise.
25022         * modules/striconveha-tests (Files): Likewise.
25023         * modules/strsignal-tests (Files): Likewise.
25024         * modules/strstr-tests (Files): Likewise.
25025         * modules/strtod-tests (Files): Likewise.
25026         * modules/strverscmp-tests (Files): Likewise.
25027         * modules/symlink-tests (Files): Likewise.
25028         * modules/symlinkat-tests (Files): Likewise.
25029         * modules/trunc-tests (Files): Likewise.
25030         * modules/truncf-tests (Files): Likewise.
25031         * modules/truncl-tests (Files): Likewise.
25032         * modules/uname-tests (Files): Likewise.
25033         * modules/unicase/cased-tests (Files): Likewise.
25034         * modules/unicase/ignorable-tests (Files): Likewise.
25035         * modules/unicase/locale-language-tests (Files): Likewise.
25036         * modules/unicase/tolower-tests (Files): Likewise.
25037         * modules/unicase/totitle-tests (Files): Likewise.
25038         * modules/unicase/toupper-tests (Files): Likewise.
25039         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25040         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25041         * modules/unicase/u8-casefold-tests (Files): Likewise.
25042         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25043         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25044         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25045         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25046         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25047         * modules/unicase/u8-tolower-tests (Files): Likewise.
25048         * modules/unicase/u8-totitle-tests (Files): Likewise.
25049         * modules/unicase/u8-toupper-tests (Files): Likewise.
25050         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25051         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25052         * modules/unicase/u16-casefold-tests (Files): Likewise.
25053         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25054         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25055         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25056         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25057         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25058         * modules/unicase/u16-tolower-tests (Files): Likewise.
25059         * modules/unicase/u16-totitle-tests (Files): Likewise.
25060         * modules/unicase/u16-toupper-tests (Files): Likewise.
25061         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25062         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25063         * modules/unicase/u32-casefold-tests (Files): Likewise.
25064         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25065         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25066         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25067         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25068         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25069         * modules/unicase/u32-tolower-tests (Files): Likewise.
25070         * modules/unicase/u32-totitle-tests (Files): Likewise.
25071         * modules/unicase/u32-toupper-tests (Files): Likewise.
25072         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25073         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25074         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25075         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25076         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25077         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25078         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25079         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25080         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25081         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25082         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25083         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25084         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25085         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25086         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25087         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25088         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25089         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25090         * modules/unictype/block-list-tests (Files): Likewise.
25091         * modules/unictype/block-of-tests (Files): Likewise.
25092         * modules/unictype/block-test-tests (Files): Likewise.
25093         * modules/unictype/category-C-tests (Files): Likewise.
25094         * modules/unictype/category-Cc-tests (Files): Likewise.
25095         * modules/unictype/category-Cf-tests (Files): Likewise.
25096         * modules/unictype/category-Cn-tests (Files): Likewise.
25097         * modules/unictype/category-Co-tests (Files): Likewise.
25098         * modules/unictype/category-Cs-tests (Files): Likewise.
25099         * modules/unictype/category-L-tests (Files): Likewise.
25100         * modules/unictype/category-Ll-tests (Files): Likewise.
25101         * modules/unictype/category-Lm-tests (Files): Likewise.
25102         * modules/unictype/category-Lo-tests (Files): Likewise.
25103         * modules/unictype/category-Lt-tests (Files): Likewise.
25104         * modules/unictype/category-Lu-tests (Files): Likewise.
25105         * modules/unictype/category-M-tests (Files): Likewise.
25106         * modules/unictype/category-Mc-tests (Files): Likewise.
25107         * modules/unictype/category-Me-tests (Files): Likewise.
25108         * modules/unictype/category-Mn-tests (Files): Likewise.
25109         * modules/unictype/category-N-tests (Files): Likewise.
25110         * modules/unictype/category-Nd-tests (Files): Likewise.
25111         * modules/unictype/category-Nl-tests (Files): Likewise.
25112         * modules/unictype/category-No-tests (Files): Likewise.
25113         * modules/unictype/category-P-tests (Files): Likewise.
25114         * modules/unictype/category-Pc-tests (Files): Likewise.
25115         * modules/unictype/category-Pd-tests (Files): Likewise.
25116         * modules/unictype/category-Pe-tests (Files): Likewise.
25117         * modules/unictype/category-Pf-tests (Files): Likewise.
25118         * modules/unictype/category-Pi-tests (Files): Likewise.
25119         * modules/unictype/category-Po-tests (Files): Likewise.
25120         * modules/unictype/category-Ps-tests (Files): Likewise.
25121         * modules/unictype/category-S-tests (Files): Likewise.
25122         * modules/unictype/category-Sc-tests (Files): Likewise.
25123         * modules/unictype/category-Sk-tests (Files): Likewise.
25124         * modules/unictype/category-Sm-tests (Files): Likewise.
25125         * modules/unictype/category-So-tests (Files): Likewise.
25126         * modules/unictype/category-Z-tests (Files): Likewise.
25127         * modules/unictype/category-Zl-tests (Files): Likewise.
25128         * modules/unictype/category-Zp-tests (Files): Likewise.
25129         * modules/unictype/category-Zs-tests (Files): Likewise.
25130         * modules/unictype/category-and-not-tests (Files): Likewise.
25131         * modules/unictype/category-and-tests (Files): Likewise.
25132         * modules/unictype/category-byname-tests (Files): Likewise.
25133         * modules/unictype/category-name-tests (Files): Likewise.
25134         * modules/unictype/category-none-tests (Files): Likewise.
25135         * modules/unictype/category-of-tests (Files): Likewise.
25136         * modules/unictype/category-or-tests (Files): Likewise.
25137         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25138         * modules/unictype/combining-class-tests (Files): Likewise.
25139         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25140         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25141         * modules/unictype/ctype-blank-tests (Files): Likewise.
25142         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25143         * modules/unictype/ctype-digit-tests (Files): Likewise.
25144         * modules/unictype/ctype-graph-tests (Files): Likewise.
25145         * modules/unictype/ctype-lower-tests (Files): Likewise.
25146         * modules/unictype/ctype-print-tests (Files): Likewise.
25147         * modules/unictype/ctype-punct-tests (Files): Likewise.
25148         * modules/unictype/ctype-space-tests (Files): Likewise.
25149         * modules/unictype/ctype-upper-tests (Files): Likewise.
25150         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25151         * modules/unictype/decimal-digit-tests (Files): Likewise.
25152         * modules/unictype/digit-tests (Files): Likewise.
25153         * modules/unictype/mirror-tests (Files): Likewise.
25154         * modules/unictype/numeric-tests (Files): Likewise.
25155         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25156         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25157         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25158         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25159         Likewise.
25160         * modules/unictype/property-bidi-block-separator-tests (Files):
25161         Likewise.
25162         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25163         Likewise.
25164         * modules/unictype/property-bidi-common-separator-tests (Files):
25165         Likewise.
25166         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25167         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25168         Likewise.
25169         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25170         Likewise.
25171         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25172         Likewise.
25173         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25174         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25175         Likewise.
25176         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25177         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25178         Likewise.
25179         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25180         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25181         * modules/unictype/property-bidi-segment-separator-tests (Files):
25182         Likewise.
25183         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25184         * modules/unictype/property-byname-tests (Files): Likewise.
25185         * modules/unictype/property-combining-tests (Files): Likewise.
25186         * modules/unictype/property-composite-tests (Files): Likewise.
25187         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25188         * modules/unictype/property-dash-tests (Files): Likewise.
25189         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25190         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25191         Likewise.
25192         * modules/unictype/property-deprecated-tests (Files): Likewise.
25193         * modules/unictype/property-diacritic-tests (Files): Likewise.
25194         * modules/unictype/property-extender-tests (Files): Likewise.
25195         * modules/unictype/property-format-control-tests (Files): Likewise.
25196         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25197         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25198         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25199         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25200         * modules/unictype/property-hyphen-tests (Files): Likewise.
25201         * modules/unictype/property-id-continue-tests (Files): Likewise.
25202         * modules/unictype/property-id-start-tests (Files): Likewise.
25203         * modules/unictype/property-ideographic-tests (Files): Likewise.
25204         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25205         * modules/unictype/property-ids-trinary-operator-tests (Files):
25206         Likewise.
25207         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25208         * modules/unictype/property-iso-control-tests (Files): Likewise.
25209         * modules/unictype/property-join-control-tests (Files): Likewise.
25210         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25211         * modules/unictype/property-line-separator-tests (Files): Likewise.
25212         * modules/unictype/property-logical-order-exception-tests (Files):
25213         Likewise.
25214         * modules/unictype/property-lowercase-tests (Files): Likewise.
25215         * modules/unictype/property-math-tests (Files): Likewise.
25216         * modules/unictype/property-non-break-tests (Files): Likewise.
25217         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25218         * modules/unictype/property-numeric-tests (Files): Likewise.
25219         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25220         * modules/unictype/property-other-default-ignorable-code-point-tests
25221         (Files): Likewise.
25222         * modules/unictype/property-other-grapheme-extend-tests (Files):
25223         Likewise.
25224         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25225         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25226         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25227         * modules/unictype/property-other-math-tests (Files): Likewise.
25228         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25229         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25230         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25231         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25232         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25233         * modules/unictype/property-private-use-tests (Files): Likewise.
25234         * modules/unictype/property-punctuation-tests (Files): Likewise.
25235         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25236         * modules/unictype/property-radical-tests (Files): Likewise.
25237         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25238         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25239         * modules/unictype/property-space-tests (Files): Likewise.
25240         * modules/unictype/property-terminal-punctuation-tests (Files):
25241         Likewise.
25242         * modules/unictype/property-test-tests (Files): Likewise.
25243         * modules/unictype/property-titlecase-tests (Files): Likewise.
25244         * modules/unictype/property-unassigned-code-value-tests (Files):
25245         Likewise.
25246         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25247         * modules/unictype/property-uppercase-tests (Files): Likewise.
25248         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25249         * modules/unictype/property-white-space-tests (Files): Likewise.
25250         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25251         * modules/unictype/property-xid-start-tests (Files): Likewise.
25252         * modules/unictype/property-zero-width-tests (Files): Likewise.
25253         * modules/unictype/scripts-tests (Files): Likewise.
25254         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25255         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25256         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25257         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25258         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25259         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25260         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25261         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25262         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25263         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25264         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25265         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25266         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25267         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25268         * modules/uninorm/composition-tests (Files): Likewise.
25269         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25270         * modules/uninorm/decomposition-tests (Files): Likewise.
25271         * modules/uninorm/filter-tests (Files): Likewise.
25272         * modules/uninorm/nfc-tests (Files): Likewise.
25273         * modules/uninorm/nfd-tests (Files): Likewise.
25274         * modules/uninorm/nfkc-tests (Files): Likewise.
25275         * modules/uninorm/nfkd-tests (Files): Likewise.
25276         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25277         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25278         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25279         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25280         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25281         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25282         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25283         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25284         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25285         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25286         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25287         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25288         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25289         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25290         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25291         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25292         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25293         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25294         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25295         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25296         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25297         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25298         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25299         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25300         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25301         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25302         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25303         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25304         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25305         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25306         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25307         * modules/uniwidth/u8-width-tests (Files): Likewise.
25308         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25309         * modules/uniwidth/u16-width-tests (Files): Likewise.
25310         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25311         * modules/uniwidth/u32-width-tests (Files): Likewise.
25312         * modules/uniwidth/width-tests (Files): Likewise.
25313         * modules/unlink-tests (Files): Likewise.
25314         * modules/unsetenv-tests (Files): Likewise.
25315         * modules/usleep-tests (Files): Likewise.
25316         * modules/utimens-tests (Files): Likewise.
25317         * modules/utimensat-tests (Files): Likewise.
25318         * modules/vasnprintf-posix-tests (Files): Likewise.
25319         * modules/vasnprintf-tests (Files): Likewise.
25320         * modules/vasprintf-posix-tests (Files): Likewise.
25321         * modules/vasprintf-tests (Files): Likewise.
25322         * modules/vdprintf-posix-tests (Files): Likewise.
25323         * modules/vfprintf-posix-tests (Files): Likewise.
25324         * modules/vprintf-posix-tests (Files): Likewise.
25325         * modules/vsnprintf-posix-tests (Files): Likewise.
25326         * modules/vsnprintf-tests (Files): Likewise.
25327         * modules/vsprintf-posix-tests (Files): Likewise.
25328         * modules/wcrtomb-tests (Files): Likewise.
25329         * modules/wcsnrtombs-tests (Files): Likewise.
25330         * modules/wcsrtombs-tests (Files): Likewise.
25331         * modules/wctype-tests (Files): Likewise.
25332         * modules/wcwidth-tests (Files): Likewise.
25333         * modules/xmemdup0-tests (Files): Likewise.
25334         * modules/xprintf-posix-tests (Files): Likewise.
25335         * modules/xvasprintf-tests (Files): Likewise.
25336
25337 2009-12-24  Eric Blake  <ebb9@byu.net>
25338
25339         test-nanosleep: fix typo
25340         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25341         patch.
25342         Reported by Bruno Haible.
25343
25344 2009-12-24  Bruno Haible  <bruno@clisp.org>
25345
25346         Reduce namespace pollution on glibc systems.
25347         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25348         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25349         systems.
25350         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25351         <getopt.h> on glibc systems.
25352         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25353         systems.
25354         * lib/fcntl.c: Include <unistd.h> here instead.
25355
25356 2009-12-24  Bruno Haible  <bruno@clisp.org>
25357
25358         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25359
25360 2009-12-24  Eric Blake  <ebb9@byu.net>
25361
25362         tests: add signature checks
25363         * tests/signature.h (SIGNATURE_CHECK): New file.
25364         * modules/atexit-tests (Files): Use it.
25365         * modules/btowc-tests (Files): Likewise.
25366         * modules/canonicalize-lgpl-tests (Files): Likewise.
25367         * modules/ceilf-tests (Files): Likewise.
25368         * modules/ceill-tests (Files): Likewise.
25369         * modules/chown-tests (Files): Likewise.
25370         * modules/dprintf-posix-tests (Files): Likewise.
25371         * modules/dup2-tests (Files): Likewise.
25372         * modules/dup3-tests (Files): Likewise.
25373         * modules/duplocale-tests (Files): Likewise.
25374         * modules/fchdir-tests (Files): Likewise.
25375         * modules/fcntl-tests (Files): Likewise.
25376         * modules/fdopendir-tests (Files): Likewise.
25377         * modules/fflush-tests (Files): Likewise.
25378         * modules/flock-tests (Files): Likewise.
25379         * modules/floorf-tests (Files): Likewise.
25380         * modules/floorl-tests (Files): Likewise.
25381         * modules/fnmatch-tests (Files): Likewise.
25382         * modules/fopen-tests (Files): Likewise.
25383         * modules/fprintf-posix-tests (Files): Likewise.
25384         * modules/freopen-tests (Files): Likewise.
25385         * modules/frexp-nolibm-tests (Files): Likewise.
25386         * modules/frexp-tests (Files): Likewise.
25387         * modules/frexpl-nolibm-tests (Files): Likewise.
25388         * modules/frexpl-tests (Files): Likewise.
25389         * modules/fseek-tests (Files): Likewise.
25390         * modules/fseeko-tests (Files): Likewise.
25391         * modules/fsync-tests (Files): Likewise.
25392         * modules/ftell-tests (Files): Likewise.
25393         * modules/ftello-tests (Files): Likewise.
25394         * modules/futimens-tests (Files): Likewise.
25395         * modules/getaddrinfo-tests (Files): Likewise.
25396         * modules/getcwd-tests (Files): Likewise.
25397         * modules/getdelim-tests (Files): Likewise.
25398         * modules/getdtablesize-tests (Files): Likewise.
25399         * modules/getgroups-tests (Files): Likewise.
25400         * modules/gethostname-tests (Files): Likewise.
25401         * modules/getline-tests (Files): Likewise.
25402         * modules/getopt-posix-tests (Files): Likewise.
25403         * modules/gettimeofday-tests (Files): Likewise.
25404         * modules/glob-tests (Files): Likewise.
25405         * modules/iconv-tests (Files): Likewise.
25406         * modules/inet_ntop-tests (Files): Likewise.
25407         * modules/inet_pton-tests (Files): Likewise.
25408         * modules/isblank-tests (Files): Likewise.
25409         * modules/lchown-tests (Files): Likewise.
25410         * modules/ldexpl-tests (Files): Likewise.
25411         * modules/link-tests (Files): Likewise.
25412         * modules/linkat-tests (Files): Likewise.
25413         * modules/lseek-tests (Files): Likewise.
25414         * modules/lstat-tests (Files): Likewise.
25415         * modules/mbrtowc-tests (Files): Likewise.
25416         * modules/mbsinit-tests (Files): Likewise.
25417         * modules/mbsnrtowcs-tests (Files): Likewise.
25418         * modules/mbsrtowcs-tests (Files): Likewise.
25419         * modules/memchr-tests (Files): Likewise.
25420         * modules/memcmp-tests (Files): Likewise.
25421         * modules/memmem-tests (Files): Likewise.
25422         * modules/memrchr-tests (Files): Likewise.
25423         * modules/mkdir-tests (Files): Likewise.
25424         * modules/mkfifo-tests (Files): Likewise.
25425         * modules/mkfifoat-tests (Files): Likewise.
25426         * modules/mknod-tests (Files): Likewise.
25427         * modules/nanosleep-tests (Files): Likewise.
25428         * modules/nl_langinfo-tests (Files): Likewise.
25429         * modules/obstack-printf-tests (Files): Likewise.
25430         * modules/open-tests (Files): Likewise.
25431         * modules/openat-tests (Files): Likewise.
25432         * modules/perror-tests (Files): Likewise.
25433         * modules/pipe2-tests (Files): Likewise.
25434         * modules/poll-tests (Files): Likewise.
25435         * modules/popen-tests (Files): Likewise.
25436         * modules/posix_spawn-tests (Files): Likewise.
25437         * modules/posix_spawnp-tests (Files): Likewise.
25438         * modules/pread-tests (Files): Likewise.
25439         * modules/printf-posix-tests (Files): Likewise.
25440         * modules/pty-tests (Files): Likewise.
25441         * modules/random_r-tests (Files): Likewise.
25442         * modules/rawmemchr-tests (Files): Likewise.
25443         * modules/readlink-tests (Files): Likewise.
25444         * modules/remove-tests (Files): Likewise.
25445         * modules/rename-tests (Files): Likewise.
25446         * modules/renameat-tests (Files): Likewise.
25447         * modules/rmdir-tests (Files): Likewise.
25448         * modules/round-tests (Files): Likewise.
25449         * modules/roundf-tests (Files): Likewise.
25450         * modules/roundl-tests (Files): Likewise.
25451         * modules/select-tests (Files): Likewise.
25452         * modules/setenv-tests (Files): Likewise.
25453         * modules/sigaction-tests (Files): Likewise.
25454         * modules/sleep-tests (Files): Likewise.
25455         * modules/snprintf-posix-tests (Files): Likewise.
25456         * modules/snprintf-tests (Files): Likewise.
25457         * modules/sprintf-posix-tests (Files): Likewise.
25458         * modules/stat-tests (Files): Likewise.
25459         * modules/strcasestr-tests (Files): Likewise.
25460         * modules/strchrnul-tests (Files): Likewise.
25461         * modules/strerror-tests (Files): Likewise.
25462         * modules/strsignal-tests (Files): Likewise.
25463         * modules/strstr-tests (Files): Likewise.
25464         * modules/strtod-tests (Files): Likewise.
25465         * modules/strverscmp-tests (Files): Likewise.
25466         * modules/symlink-tests (Files): Likewise.
25467         * modules/symlinkat-tests (Files): Likewise.
25468         * modules/times-tests (Files): Likewise.
25469         * modules/trunc-tests (Files): Likewise.
25470         * modules/truncf-tests (Files): Likewise.
25471         * modules/truncl-tests (Files): Likewise.
25472         * modules/tsearch-tests (Files): Likewise.
25473         * modules/uname-tests (Files): Likewise.
25474         * modules/unlink-tests (Files): Likewise.
25475         * modules/unsetenv-tests (Files): Likewise.
25476         * modules/usleep-tests (Files): Likewise.
25477         * modules/utimensat-tests (Files): Likewise.
25478         * modules/vasprintf-tests (Files): Likewise.
25479         * modules/vdprintf-posix-tests (Files): Likewise.
25480         * modules/vfprintf-posix-tests (Files): Likewise.
25481         * modules/vprintf-posix-tests (Files): Likewise.
25482         * modules/vsnprintf-posix-tests (Files): Likewise.
25483         * modules/vsnprintf-tests (Files): Likewise.
25484         * modules/vsprintf-posix-tests (Files): Likewise.
25485         * modules/wcrtomb-tests (Files): Likewise.
25486         * modules/wcsnrtombs-tests (Files): Likewise.
25487         * modules/wcsrtombs-tests (Files): Likewise.
25488         * modules/wcwidth-tests (Files): Likewise.
25489         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25490         * tests/test-isinf.c (isinf): Likewise.
25491         * tests/test-isnan.c (isnan): Likewise.
25492         * tests/test-signbit.c (signbit): Likewise.
25493         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25494         declaration, either as macro or with correct signature.
25495         (select): Ensure function under test is declared with correct
25496         signature in correct header.
25497         * tests/test-atexit.c (atexit): Likewise.
25498         * tests/test-btowc.c (btowc): Likewise.
25499         * tests/test-canonicalize-lgpl.c (realpath)
25500         (canonicalize_file_name): Likewise.
25501         * tests/test-ceilf1.c (ceilf): Likewise.
25502         * tests/test-ceill.c (ceill): Likewise.
25503         * tests/test-chown.c (chown): Likewise.
25504         * tests/test-dprintf-posix.c (dprintf): Likewise.
25505         * tests/test-dup2.c (dup2): Likewise.
25506         * tests/test-dup3.c (dup3): Likewise.
25507         * tests/test-duplocale.c (duplocale): Likewise.
25508         * tests/test-fchdir.c (fchdir): Likewise.
25509         * tests/test-fchownat.c (fchownat): Likewise.
25510         * tests/test-fcntl.c (fcntl): Likewise.
25511         * tests/test-fdopendir.c (fdopendir): Likewise.
25512         * tests/test-fflush.c (fflush): Likewise.
25513         * tests/test-flock.c (flock): Likewise.
25514         * tests/test-floorf1.c (floorf): Likewise.
25515         * tests/test-floorl.c (floorl): Likewise.
25516         * tests/test-fnmatch.c (fnmatch): Likewise.
25517         * tests/test-fopen.c (fopen): Likewise.
25518         * tests/test-fprintf-posix.c (fprintf): Likewise.
25519         * tests/test-freopen.c (freopen): Likewise.
25520         * tests/test-frexp.c (frexp): Likewise.
25521         * tests/test-frexpl.c (frexpl): Likewise.
25522         * tests/test-fseek.c (fseek): Likewise.
25523         * tests/test-fseeko.c (fseeko): Likewise.
25524         * tests/test-fstatat.c (fstatat): Likewise.
25525         * tests/test-fsync.c (fsync): Likewise.
25526         * tests/test-ftell.c (ftell): Likewise.
25527         * tests/test-ftello.c (ftello): Likewise.
25528         * tests/test-futimens.c (futimens): Likewise.
25529         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25530         (gai_strerror): Likewise.
25531         * tests/test-getcwd.c (getcwd): Likewise.
25532         * tests/test-getdelim.c (getdelim): Likewise.
25533         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25534         * tests/test-getgroups.c (getgroups): Likewise.
25535         * tests/test-gethostname.c (gethostname): Likewise.
25536         * tests/test-getline.c (getline): Likewise.
25537         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25538         Likewise.
25539         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25540         * tests/test-glob.c (glob, globfree): Likewise.
25541         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25542         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25543         * tests/test-inet_pton.c (inet_pton): Likewise.
25544         * tests/test-isblank.c (isblank): Likewise.
25545         * tests/test-lchown.c (lchown): Likewise.
25546         * tests/test-ldexpl.c (ldexpl): Likewise.
25547         * tests/test-link.c (link): Likewise.
25548         * tests/test-linkat.c (linkat): Likewise.
25549         * tests/test-lseek.c (lseek): Likewise.
25550         * tests/test-lstat.c (lstat): Likewise.
25551         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25552         * tests/test-mbsinit.c (mbsinit): Likewise.
25553         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25554         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25555         * tests/test-memchr.c (memchr): Likewise.
25556         * tests/test-memcmp.c (memcmp): Likewise.
25557         * tests/test-memmem.c (memmem): Likewise.
25558         * tests/test-memrchr.c (memrchr): Likewise.
25559         * tests/test-mkdir.c (mkdir): Likewise.
25560         * tests/test-mkdirat.c (mkdirat): Likewise.
25561         * tests/test-mkfifo.c (mkfifo): Likewise.
25562         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25563         * tests/test-mknod.c (mknod): Likewise.
25564         * tests/test-nanosleep.c (nanosleep): Likewise.
25565         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25566         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25567         Likewise.
25568         * tests/test-open.c (open): Likewise.
25569         * tests/test-openat.c (openat): Likewise.
25570         * tests/test-perror.c (perror): Likewise.
25571         * tests/test-pipe2.c (pipe2): Likewise.
25572         * tests/test-poll.c (poll): Likewise.
25573         * tests/test-popen.c (popen, pclose): Likewise.
25574         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25575         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25576         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25577         (posix_spawn_file_actions_destroy)
25578         (posix_spawn_file_actions_addclose)
25579         (posix_spawn_file_actions_addopen)
25580         (posix_spawn_file_actions_adddup2): Likewise.
25581         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25582         * tests/test-pread.c (pread): Likewise.
25583         * tests/test-printf-posix.c (printf): Likewise.
25584         * tests/test-pty.c (openpty, forkpty): Likewise.
25585         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25586         (random_r): Likewise.
25587         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25588         * tests/test-readlink.c (readlink): Likewise.
25589         * tests/test-remove.c (remove): Likewise.
25590         * tests/test-rename.c (rename): Likewise.
25591         * tests/test-renameat.c (renameat): Likewise.
25592         * tests/test-rmdir.c (rmdir): Likewise.
25593         * tests/test-round1.c (round): Likewise.
25594         * tests/test-roundf1.c (roundf): Likewise.
25595         * tests/test-roundl.c (roundl): Likewise.
25596         * tests/test-setenv.c (setenv): Likewise.
25597         * tests/test-sigaction.c (sigaction): Likewise.
25598         * tests/test-sleep.c (sleep): Likewise.
25599         * tests/test-snprintf.c (snprintf): Likewise.
25600         * tests/test-sprintf-posix.c (sprintf): Likewise.
25601         * tests/test-stat.c (stat): Likewise.
25602         * tests/test-stpncpy.c (stpncpy): Likewise.
25603         * tests/test-strcasestr.c (strcasestr): Likewise.
25604         * tests/test-strchrnul.c (strchrnul): Likewise.
25605         * tests/test-strerror.c (strerror): Likewise.
25606         * tests/test-strsignal.c (strsignal): Likewise.
25607         * tests/test-strstr.c (strstr): Likewise.
25608         * tests/test-strtod.c (strtod): Likewise.
25609         * tests/test-strverscmp.c (strverscmp): Likewise.
25610         * tests/test-symlink.c (symlink): Likewise.
25611         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25612         * tests/test-times.c (times): Likewise.
25613         * tests/test-trunc1.c (trunc): Likewise.
25614         * tests/test-truncf1.c (truncf): Likewise.
25615         * tests/test-truncl.c (truncl): Likewise.
25616         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25617         Likewise.
25618         * tests/test-uname.c (uname): Likewise.
25619         * tests/test-unlink.c (unlink): Likewise.
25620         * tests/test-unlinkat.c (unlinkat): Likewise.
25621         * tests/test-unsetenv.c (unsetenv): Likewise.
25622         * tests/test-usleep.c (usleep): Likewise.
25623         * tests/test-utimensat.c (utimensat): Likewise.
25624         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25625         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25626         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25627         * tests/test-vprintf-posix.c (vprintf): Likewise.
25628         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25629         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25630         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25631         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25632         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25633         * tests/test-wcwidth.c (wcwidth): Likewise.
25634
25635         build: pull in conditional headers during GNULIB_POSIXCHECK
25636         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25637         definitions from any conditionally-included headers.
25638         * lib/stdlib.in.h (includes): Likewise.
25639         * lib/unistd.in.h (includes): Likewise.
25640
25641 2009-12-24  Bruno Haible  <bruno@clisp.org>
25642
25643         * tests/test-argv-iter.c: Include header file being tested immediately
25644         after config.h.
25645         * tests/test-base64.c: Likewise.
25646         * tests/test-flock.c: Likewise.
25647         * tests/test-fsync.c: Likewise.
25648         * tests/test-getdate.c: Likewise.
25649         * tests/test-getndelim2.c: Likewise.
25650         * tests/test-isfinite.c: Likewise.
25651         * tests/test-isinf.c: Likewise.
25652         * tests/test-strerror.c: Likewise.
25653         * tests/test-strsignal.c: Likewise.
25654
25655 2009-12-23  Eric Blake  <ebb9@byu.net>
25656
25657         unistd: work around cygwin bug
25658         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25659         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25660         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25661
25662 2009-12-23  Bruno Haible  <bruno@clisp.org>
25663
25664         localename: More tests.
25665         * tests/test-localename.c (SIZEOF): New macro.
25666         (categories): New variable.
25667         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25668         test_locale_name_default): Add test w.r.t. thread locale.
25669         (test_locale_name_thread): New function.
25670         (main): Invoke it.
25671
25672         localename: Make aware of thread locale.
25673         * lib/localename.h (gl_locale_name_thread): New declaration.
25674         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25675         behaviour with respect to thread locale.
25676         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25677         <langinfo.h>, glthread/lock.h.
25678         (SIZE_BITS): New macro.
25679         (string_hash): New function.
25680         (struct hash_node): New type.
25681         (HASH_TABLE_SIZE): New macro.
25682         (struniq_hash_table, struniq_lock): New variables.
25683         (struniq): New function.
25684         (gl_locale_name_thread): New function.
25685         (gl_locale_name): Invoke it.
25686         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25687         * modules/localename (Depends-on): Add lock.
25688         Reported by Mike Gran <spk121@yahoo.com>.
25689
25690 2009-12-23  Eric Blake  <ebb9@byu.net>
25691
25692         va-args: new module
25693         * modules/va-args: New file.
25694         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25695         * MODULES.html.sh (Core language properties): Mention it.
25696
25697         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25698         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25699         named alias for __attribute__((__unused__)).
25700         * lib/chown.c: Update client.
25701         * lib/fchmodat.c: Likewise.
25702         * lib/fts.c: Likewise.
25703         * lib/getdate.y: Likewise.
25704         * lib/getgroups.c: Likewise.
25705         * lib/getopt.c: Likewise.
25706         * lib/getugroups.c: Likewise.
25707         * lib/mkdir.c: Likewise.
25708         * lib/mkfifo.c: Likewise.
25709         * lib/mkfifoat.c: Likewise.
25710         * lib/mknod.c: Likewise.
25711         * lib/mknodat.c: Likewise.
25712         * lib/readlink.c: Likewise.
25713         * lib/se-context.in.h: Likewise.
25714         * lib/se-selinux.in.h: Likewise.
25715         * lib/sockets.c: Likewise.
25716         * lib/symlink.c: Likewise.
25717         * lib/symlinkat.c: Likewise.
25718         * lib/unicodeio.c: Likewise.
25719         * lib/unistr.h: Likewise.
25720         * tests/test-areadlink.c: Likewise.
25721         * tests/test-areadlinkat.c: Likewise.
25722         * tests/test-filenamecat.c: Likewise.
25723         * tests/test-fseeko.c: Likewise.
25724         * tests/test-ftello.c: Likewise.
25725         * tests/test-getdate.c: Likewise.
25726         * tests/test-getgroups.c: Likewise.
25727         * tests/test-gethostname.c: Likewise.
25728         * tests/test-quotearg.c: Likewise.
25729         * tests/test-version-etc.c: Likewise.
25730         * tests/test-xalloc-die.c: Likewise.
25731         * tests/test-xfprintf-posix.c: Likewise.
25732         * tests/test-xprintf-posix.c: Likewise.
25733         * tests/test-xvasprintf.c: Likewise.
25734
25735         tests: avoid compiler warnings
25736         * tests/test-fcntl.c (main): Delete unused parameters.
25737         * tests/test-freopen-safer.c (main): Likewise.
25738         * tests/test-xalloc-die.c (main): Mark unused parameters.
25739         * tests/test-fseeko.c (main): Likewise.
25740         * tests/test-ftello.c (main): Likewise.
25741         * tests/test-nanosleep.c (main): Avoid declaration warning.
25742         * tests/test-sleep.c (main): Likewise.
25743         * tests/test-unsetenv.c (main): Silence warning about string
25744         literal.
25745         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25746
25747 2009-12-23  Bruno Haible  <bruno@clisp.org>
25748
25749         * tests/test-localename.c (test_locale_name): New function, extracted
25750         from main. Also test mixed situations.
25751         (test_locale_name_posix, test_locale_name_environ,
25752         test_locale_name_default): New functions.
25753         (main): Invoke them all.
25754         * modules/localename-tests (configure.ac): Test for newlocale.
25755
25756 2009-12-23  Bruno Haible  <bruno@clisp.org>
25757
25758         unistd: Ensure getcwd gets declared before being overridden.
25759         * lib/unistd.in.h: Conditionally include <io.h>.
25760
25761 2009-12-22  Bruno Haible  <bruno@clisp.org>
25762
25763         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25764         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25765         (gl_WCHAR_H): Invoke it.
25766         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25767         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25768         Reported by Karl Berry <karl@freefriends.org>.
25769
25770 2009-12-22  Eric Blake  <ebb9@byu.net>
25771
25772         math, unistd: avoid redundant includes
25773         * lib/math.in.h (isnan): No need to re-include <math.h>.
25774         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25775
25776         getsubopt: work around cygwin bug
25777         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25778         avoid conflicting with system getsubopt.
25779         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25780         bug.
25781
25782         getopt: synchronize from glibc
25783         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25784         parameter order.  Adjust all callers.
25785         (_getopt_internal_r, main): Adjust quoting in error messages.
25786         Drop considerations for outdated POSIX 1003.2 error message.
25787         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25788         callers.
25789         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25790
25791         test-getopt: test stderr behavior
25792         * modules/getopt-posix-tests (Depends-on): Add dup2.
25793         * tests/test-getopt.c (ASSERT): Avoid stderr.
25794         (main): Move stderr to a temporary file.
25795         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25796         Instead, add parameter to inform caller if output occurred.
25797         (test_getopt): Adjust all existing tests to expect silence, and
25798         add new tests of leading ":".
25799         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25800         glibc shortcomings with leading "-:" or "+:" in optstring.
25801         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25802         Likewise.
25803         * doc/posix-functions/getopt.texi (getopt): Likewise.
25804
25805         test-getopt: enhance test
25806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25807         supports optind=0.
25808         * tests/test-getopt.c (OPTIND_MIN): Move...
25809         * tests/test-getopt.h (OPTIND_MIN): ...here.
25810         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25811         Require that optind=0 works, since modern BSD supports it in
25812         addition to optreset, and since coreutils expects it.
25813         (test_getopt_long_only): New test.
25814         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25815         glibc shortcomings with 'W;', and enforcement of optind=0.
25816         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25817         Likewise.
25818
25819 2009-12-21  Bruno Haible  <bruno@clisp.org>
25820
25821         localename: Improvements for MacOS X and Cygwin.
25822         * lib/localename.h (gl_locale_name_environ): New declaration.
25823         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25824         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25825         (gl_locale_name_posix): Invoke it.
25826         (gl_locale_name_default): Add comments. Use Windows native API also on
25827         Cygwin.
25828
25829 2009-12-21  Bruno Haible  <bruno@clisp.org>
25830
25831         Update list of Win32 locale ids.
25832         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25833         (LANG_SAMI): Renamed from LANG_SAAMI.
25834         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25835         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25836         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25837         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25838         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25839         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25840         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25841         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25842         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25843         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25844         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25845         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25846         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25847         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25848         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25849         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25850         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25851         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25852         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25853         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25854         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25855         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25856         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25857         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25858         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25859         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25860         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25861         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25862         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25863         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25864         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25865         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25866         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25867         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25868         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25869         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25870         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25871         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25872         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25873         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25874         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25875         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25876         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25877         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25878         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25879         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25880         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25881         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25882         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25883         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25884         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25885         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25886         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25887         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25888         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25889         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25890         Add more languages and countries for Sami, Sorbian. Add more countries
25891         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25892         for Pashto. Change country for Syriac, Tswana.
25893
25894 2009-12-21  Eric Blake  <ebb9@byu.net>
25895
25896         test-utimens: avoid spurious failure
25897         * tests/test-chown.h (nap): Factor...
25898         * tests/nap.h: ...into new file.
25899         * tests/test-lchown.h (nap): Avoid duplication.
25900         * tests/test-utimens-common.h (nap): Use shared implementation,
25901         necessary on file systems with 1-second resolution.
25902         * modules/chown-tests (Files): Include new file.
25903         * modules/fdutimensat-tests (Files): Likewise.
25904         * modules/futimens-tests (Files): Likewise.
25905         * modules/lchown-tests (Files): Likewise.
25906         * modules/openat-tests (Files): Likewise.
25907         * modules/utimens-tests (Files): Likewise.
25908         * modules/utimensat-tests (Files): Likewise.
25909
25910 2009-12-19  Eric Blake  <ebb9@byu.net>
25911
25912         futimens, utimensat: work around Linux bug
25913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25914         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25915         * lib/utimensat.c (rpl_utimensat): Work around it.
25916         * lib/futimens.c (rpl_futimens): Adjust comment.
25917
25918         utimens: work around Linux ctime bug
25919         * lib/utimens.c (detect_ctime_bug): New helper function.
25920         (update_timespec): Differentiate between workaround needed for
25921         this bug vs. what is needed for systems that lack utimensat.
25922         (fdutimens, lutimens): Work around bug.
25923
25924         utimens: check for ctime update
25925         * tests/test-utimens-common.h (check_ctime): Define.
25926         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25927         * tests/test-futimens.h (test_futimens): Likewise.
25928         * tests/test-lutimens.h (test_lutimens): Likewise.
25929         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25930         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25931
25932 2009-12-19  Bruno Haible  <bruno@clisp.org>
25933
25934         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25935         * tests/test-dprintf-posix2.sh: New file.
25936         * tests/test-dprintf-posix2.c: New file.
25937         * modules/dprintf-posix-tests (Files): Add them.
25938         (configure.ac): Check for getrlimit and setrlimit.
25939         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25940
25941 2009-12-19  Bruno Haible  <bruno@clisp.org>
25942
25943         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25944         * tests/test-fprintf-posix3.sh: New file.
25945         * tests/test-fprintf-posix3.c: New file.
25946         * modules/fprintf-posix-tests (Files): Add them.
25947         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25948
25949 2009-12-19  Eric Blake  <ebb9@byu.net>
25950
25951         dirfd: fix prototype
25952         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25953         * lib/dirfd.c (dirfd): Likewise.
25954
25955         canonicalize: reduce memory usage
25956         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25957         allocation to size.
25958         Reported by Solar Designer <solar@openwall.com>.
25959
25960 2009-12-19  Bruno Haible  <bruno@clisp.org>
25961
25962         New module attribute 'Applicability'.
25963         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25964         * gnulib-tool: New option --extract-applicability.
25965         (func_usage): Document it.
25966         (sed_extract_prog): Recognize it.
25967         (func_get_applicability): New function.
25968         (func_import): Generalize handling of 'link-warning' module.
25969         * modules/link-warning (Applicability): New section.
25970         * modules/arg-nonnull (Applicability): New section.
25971         Repoted by Simon Josefsson <simon@josefsson.org>.
25972
25973 2009-12-19  Bruno Haible  <bruno@clisp.org>
25974
25975         fflush: tweak
25976         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25977         * lib/fseeko.c (rpl_fseeko): Likewise.
25978
25979 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25980
25981         * lib/gl_list.h: Fix typo in comment.
25982
25983 2009-12-16  Eric Blake  <ebb9@byu.net>
25984
25985         fcntl: use to simplify other modules
25986         * modules/cloexec (Depends-on): Add fcntl.
25987         * modules/fchdir (Depends-on): Likewise.
25988         * modules/fd-safer-flag (Depends-on): Likewise.
25989         * modules/unistd-safer (Depends-on): Likewise.
25990         * modules/dup3 (configure.ac): Set module indicator.
25991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25992         missing.
25993         * lib/fchdir.c (_gl_register_dup): Fix comment.
25994         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25995         * lib/dup-safer.c (dup_safer): Likewise.
25996         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25997         * lib/dup3.c (dup3): Likewise.
25998         * tests/test-fchdir.c (main): Enhance test.
25999         Fixes a dup_cloexec bug reported by Ondřej Vašík.
26000
26001         fcntl: port portions of fcntl to mingw
26002         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26003         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26004         replacement for mingw.
26005         * modules/fcntl (Description): Update.
26006         (Depends-on): Add dup2.
26007         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26008         * modules/fcntl-h (Makefile.am): Substitute it.
26009         * lib/fcntl.in.h (fcntl): Update declaration.
26010         (F_DUPFD, F_GETFD): New macros, when needed.
26011         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26012         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26013         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26014         we now guarantee.
26015
26016         fcntl: work around cygwin bug in F_DUPFD
26017         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26018         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26019         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26020         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26021         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26022
26023         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26024         * modules/fcntl (Files): List new files.
26025         (configure.ac): Run a test.
26026         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26027         * lib/fcntl.c (rpl_fcntl): Likewise.
26028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26029         (gl_FCNTL_H): Always replace fcntl.h.
26030         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26031         * lib/fcntl.in.h (fcntl): Declare replacement.
26032         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26033         needed, plus a witness.
26034         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26035         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26036         * tests/test-fcntl.c: New file.
26037         * modules/fcntl-tests: Likewise.
26038
26039         binary-io: avoid potential compilation warning
26040         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26041         directives.
26042
26043         fflush: avoid compilation error on NetBSD
26044         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26045         between off_t and fpos_t, since the latter is sometimes a struct.
26046         * lib/fseeko.c (rpl_fseeko): Likewise.
26047         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26048
26049 2009-12-15  Eric Blake  <ebb9@byu.net>
26050
26051         fcntl-h, stdio, sys_ioctl: fix declarations
26052         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26053         function must not take arguments.
26054         * lib/sys_ioctl.in.h (ioctl): Likewise.
26055         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26056         (open): Add a link warning.
26057
26058 2009-12-15  Jim Meyering  <meyering@redhat.com>
26059
26060         areadlink, areadlink-with-size: relax license to LGPLv2+
26061         * modules/areadlink (License): Relax to LGPLv2+.
26062         * modules/areadlink-with-size (License): Likewise.
26063
26064 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26065             Bruno Haible  <bruno@clisp.org>
26066
26067         *printf: Fix memory leak.
26068         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26069         * lib/vfprintf.c (vfprintf): Likewise.
26070         * lib/dprintf.c (dprintf): Likewise.
26071         * lib/vdprintf.c (vdprintf): Likewise.
26072
26073 2009-12-14  Eric Blake  <ebb9@byu.net>
26074
26075         accept4: adjust module dependencies
26076         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26077
26078         utimens: one more try at avoiding compiler warning
26079         * lib/utimens.c (lutimens): Lower scope of result.
26080
26081 2009-12-13  Bruno Haible  <bruno@clisp.org>
26082
26083         Move the malloc checking from module 'list' to new module 'xlist'.
26084         * modules/xlist: New file.
26085         * lib/gl_xlist.h: New file.
26086         * lib/gl_xlist.c: New file.
26087         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26088         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26089         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26090         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26091         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26092         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26093         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26094         gl_sortedlist_nx_add): New declarations.
26095         (struct gl_list_implementation): Rename and change methods accordingly.
26096         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26097         (gl_list_nx_create): Renamed from gl_list_create.
26098         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26099         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26100         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26101         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26102         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26103         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26104         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26105         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26106         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26107         gl_list_create_empty.
26108         (gl_list_nx_create): Renamed from gl_list_create.
26109         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26110         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26111         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26112         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26113         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26114         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26115         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26116         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26117         * lib/gl_array_list.c: Don't include xalloc.h.
26118         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26119         NULL upon out-of-memory.
26120         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26121         out-of-memory.
26122         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26123         Change return type to 'int'.
26124         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26125         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26126         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26127         upon out-of-memory.
26128         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26129         upon out-of-memory.
26130         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26131         upon out-of-memory.
26132         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26133         upon out-of-memory.
26134         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26135         out-of-memory.
26136         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26137         Update.
26138         (gl_array_list_implementation): Update.
26139         * lib/gl_carray_list.c: Don't include xalloc.h.
26140         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26141         Return NULL upon out-of-memory.
26142         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26143         out-of-memory.
26144         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26145         Change return type to 'int'.
26146         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26147         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26148         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26149         upon out-of-memory.
26150         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26151         upon out-of-memory.
26152         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26153         out-of-memory.
26154         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26155         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26156         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26157         Update.
26158         (gl_carray_list_implementation): Update.
26159         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26160         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26161         gl_linked_create_empty. Return NULL upon out-of-memory.
26162         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26163         out-of-memory.
26164         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26165         Change return type to 'int'. Return -1 upon out-of-memory.
26166         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26167         out-of-memory.
26168         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26169         upon out-of-memory.
26170         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26171         upon out-of-memory.
26172         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26173         NULL upon out-of-memory.
26174         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26175         upon out-of-memory.
26176         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26177         out-of-memory.
26178         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26179         Update.
26180         * lib/gl_linked_list.c: Don't include xalloc.h.
26181         (gl_linked_list_implementation): Update.
26182         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26183         (add_to_bucket): Change return type to 'int'.
26184         (gl_linkedhash_list_implementation): Update.
26185         * lib/gl_anytree_list1.h (free_subtree): New function.
26186         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26187         gl_tree_create_empty. Return NULL upon out-of-memory.
26188         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26189         Change return type to 'int'. Return -1 upon out-of-memory.
26190         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26191         out-of-memory.
26192         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26193         (gl_tree_remove_node): New function, moved here from
26194         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26195         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26196         Update.
26197         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26198         malloc, not xmalloc. Return NULL upon out-of-memory.
26199         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26200         out-of-memory.
26201         (gl_tree_remove_node_from_tree): New function, extracted from
26202         gl_tree_remove_node.
26203         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26204         upon out-of-memory.
26205         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26206         out-of-memory.
26207         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26208         upon out-of-memory.
26209         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26210         upon out-of-memory.
26211         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26212         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26213         not xmalloc. Return NULL upon out-of-memory.
26214         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26215         out-of-memory.
26216         (gl_tree_remove_node_from_tree): New function, extracted from
26217         gl_tree_remove_node.
26218         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26219         upon out-of-memory.
26220         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26221         out-of-memory.
26222         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26223         upon out-of-memory.
26224         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26225         upon out-of-memory.
26226         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26227         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26228         gl_anytree_list1.h before gl_anyavltree_list2.h.
26229         (gl_avltree_list_implementation): Update.
26230         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26231         gl_anytree_list1.h before gl_anyavltree_list2.h.
26232         (gl_rbtree_list_implementation): Update.
26233         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26234         Change return type to 'int'. Return -1 upon out-of-memory. Use
26235         __builtin_expect.
26236         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26237         (gl_avltreehash_list_implementation): Update.
26238         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26239         (gl_rbtreehash_list_implementation): Update.
26240         * modules/array-list (Depends-on): Remove xalloc.
26241         * modules/carray-list (Depends-on): Likewise.
26242         * modules/linked-list (Depends-on): Likewise.
26243         * modules/linkedhash-list (Depends-on): Likewise.
26244         * modules/avltree-list (Depends-on): Likewise.
26245         * modules/rbtree-list (Depends-on): Likewise.
26246         * modules/avltreehash-list (Depends-on): Likewise.
26247         * modules/rbtreehash-list (Depends-on): Likewise.
26248
26249         * modules/xsublist: New file.
26250         * lib/gl_xsublist.h: New file.
26251         * lib/gl_xsublist.c: New file.
26252         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26253         (gl_sublist_nx_create): New declaration.
26254         * lib/gl_sublist.c: Don't include xalloc.h.
26255         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26256         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26257         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26258         Change return type to 'int'. Return -1 upon out-of-memory.
26259         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26260         upon out-of-memory.
26261         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26262         NULL upon out-of-memory.
26263         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26264         upon out-of-memory.
26265         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26266         NULL upon out-of-memory.
26267         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26268         NULL upon out-of-memory.
26269         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26270         upon out-of-memory.
26271         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26272         (gl_sublist_list_implementation): Update.
26273         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26274         upon out-of-memory.
26275         * modules/sublist (Depends-on): Remove xalloc.
26276
26277         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26278         * tests/test-carray_list.c: Likewise.
26279         * tests/test-linked_list.c: Likewise.
26280         * tests/test-linkedhash_list.c: Likewise.
26281         * tests/test-avltree_list.c: Likewise.
26282         * tests/test-rbtree_list.c: Likewise.
26283         * tests/test-avltreehash_list.c: Likewise.
26284         * tests/test-rbtreehash_list.c: Likewise.
26285         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26286         * modules/carray-list-tests (Makefile.am): Likewise.
26287         * modules/linked-list-tests (Makefile.am): Likewise.
26288         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26289         * modules/avltree-list-tests (Makefile.am): Likewise.
26290         * modules/rbtree-list-tests (Makefile.am): Likewise.
26291         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26292         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26293
26294         * NEWS: Mention the changes.
26295
26296         * lib/clean-temp.c: Include gl_xlist.h.
26297         * modules/clean-temp (Depends-on): Add xlist.
26298
26299         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26300         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26301
26302         * tests/test-array_oset.c: Include gl_xlist.h.
26303         * modules/array-oset-tests (Depends-on): Add xlist.
26304
26305         Reported by José E. Marchesi <jemarch@gnu.org>.
26306
26307 2009-12-13  Bruno Haible  <bruno@clisp.org>
26308
26309         Move the malloc checking from module 'oset' to new module 'xoset'.
26310         * modules/xoset: New file.
26311         * lib/gl_xoset.h: New file.
26312         * lib/gl_xoset.c: New file.
26313         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26314         declarations.
26315         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26316         (struct gl_oset_implementation): Rename and change methods accordingly.
26317         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26318         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26319         'int'. Mark as __warn_unused_result__.
26320         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26321         gl_oset_create_empty.
26322         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26323         'int'.
26324         * lib/gl_array_oset.c: Don't include xalloc.h.
26325         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26326         malloc, not xmalloc.
26327         (grow): Change return type to 'int'. Don't call xalloc_die.
26328         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26329         to 'int'.
26330         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26331         'int'.
26332         (gl_array_oset_implementation): Update.
26333         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26334         gl_tree_create_empty.
26335         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26336         'int'.
26337         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26338         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26339         xmalloc.
26340         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26341         not xmalloc.
26342         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26343         xmalloc.
26344         (gl_avltree_oset_implementation): Update.
26345         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26346         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26347         xmalloc.
26348         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26349         not xmalloc.
26350         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26351         xmalloc.
26352         (gl_rbtree_oset_implementation): Update.
26353         * modules/array-oset (Depends-on): Remove xalloc.
26354         * modules/avltree-oset (Depends-on): Likewise.
26355         * modules/rbtree-oset (Depends-on): Likewise.
26356         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26357         * tests/test-avltree_oset.c: Likewise.
26358         * tests/test-rbtree_oset.c: Likewise.
26359         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26360         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26361         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26362         * NEWS: Mention the change.
26363
26364 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26365
26366         maint.mk: allow a project to override release-prep commands
26367         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26368         commands into a new rule.
26369         (release-prep): New rule.
26370         (release-prep-hook): New overridable variable.
26371
26372 2009-12-13  Bruno Haible  <bruno@clisp.org>
26373
26374         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26375
26376 2009-12-13  Jim Meyering  <meyering@redhat.com>
26377
26378         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26379         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26380
26381 2009-12-12  Bruno Haible  <bruno@clisp.org>
26382
26383         duplocale: Tweak.
26384         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26385
26386 2009-12-12  Karl Berry  <karl@gnu.org>
26387
26388         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26389
26390 2009-12-12  Bruno Haible  <bruno@clisp.org>
26391
26392         * m4/po.m4: Undo incorrect untabification.
26393
26394 2009-12-12  Bruno Haible  <bruno@clisp.org>
26395
26396         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26397         * modules/c-strtod (Depends-on): Add locale.
26398         * modules/c-strtold (Depends-on): Likewise.
26399
26400 2009-12-12  Bruno Haible  <bruno@clisp.org>
26401
26402         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26403
26404 2009-12-11  Eric Blake  <ebb9@byu.net>
26405
26406         setenv: relax requirement in light of POSIX ruling
26407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26408         not NULL.
26409         * tests/test-setenv.c (main): Relax test.
26410         * tests/test-unsetenv.c (main): Likewise.
26411         * doc/posix-functions/setenv.texi (setenv): Document this.
26412         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26413
26414 2009-12-11  Bruno Haible  <bruno@clisp.org>
26415
26416         New module 'fd-safer-flag'.
26417         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26418         * lib/dup-safer.c (dup_safer_flag): Remove function.
26419         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26420         * lib/fd-safer.c (fd_safer_flag): Remove function.
26421         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26422         * modules/cloexec (configure.ac): Drop indicator macro.
26423         * modules/fd-safer-flag: New file.
26424         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26425         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26426         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26427
26428 2009-12-11  Bruno Haible  <bruno@clisp.org>
26429
26430         Tests for module 'nl_langinfo'.
26431         * modules/nl_langinfo-tests: New file.
26432         * tests/test-nl_langinfo.sh: New file.
26433         * tests/test-nl_langinfo.c: New file.
26434
26435         New module 'nl_langinfo'.
26436         * lib/nl_langinfo.c: New file.
26437         * m4/nl_langinfo.m4: New file.
26438         * modules/nl_langinfo: New file.
26439         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26440
26441 2009-12-11  Bruno Haible  <bruno@clisp.org>
26442
26443         Tests for module 'langinfo'.
26444         * modules/langinfo-tests: New file.
26445         * tests/test-langinfo.c: New file.
26446
26447         New module 'langinfo'.
26448         * lib/langinfo.in.h: New file.
26449         * m4/langinfo_h.m4: New file.
26450         * modules/langinfo: New file.
26451         * doc/posix-headers/langinfo.texi: Mention the new module.
26452
26453 2009-12-11  Bruno Haible  <bruno@clisp.org>
26454
26455         * lib/config.charset: Untabify.
26456
26457 2009-12-11  Bruno Haible  <bruno@clisp.org>
26458
26459         * modules/unistd-safer (configure.ac): Drop indicator macro.
26460
26461 2009-12-11  Bruno Haible  <bruno@clisp.org>
26462
26463         Move pipe2-safer code to its own file.
26464         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26465         * lib/pipe-safer.c (pipe2_safer): Remove function.
26466         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26467         (Makefile.am): Add it to lib_SOURCES.
26468
26469 2009-12-10  Bruno Haible  <bruno@clisp.org>
26470
26471         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26472
26473 2009-12-10  Bruno Haible  <bruno@clisp.org>
26474
26475         Declare which arguments expect non-NULL values, for GCC and clang.
26476         * build-aux/arg-nonnull.h: New file.
26477         * modules/arg-nonnull: New file.
26478         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26479         (inet_ntop, inet_pton): Use it.
26480         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26481         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26482         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26483         (open, openat): Use it.
26484         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26485         (fnmatch): Use it.
26486         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26487         (getopt, getopt_long, getopt_long_only): Use it.
26488         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26489         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26490         Use it.
26491         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26492         (iconv_open): Use it.
26493         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26494         (strtoimax, strtoumax): Use it.
26495         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26496         (duplocale): Use it.
26497         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26498         (frexp, frexpl): Use it.
26499         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26500         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26501         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26502         (tsearch, tfind, tdelete, twalk): Use it.
26503         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26504         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26505         sigpending): Use it.
26506         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26507         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26508         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26509         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26510         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26511         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26512         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26513         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26514         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26515         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26516         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26517         Use it.
26518         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26519         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26520         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26521         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26522         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26523         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26524         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26525         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26526         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26527         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26528         strtoull, unsetenv): Use it.
26529         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26530         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26531         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26532         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26533         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26534         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26535         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26536         (strcasecmp, strncasecmp): Use it.
26537         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26538         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26539         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26540         rpl_setsockopt): Use it.
26541         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26542         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26543         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26544         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26545         (gettimeofday): Use it.
26546         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26547         (times): Use it.
26548         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26549         (uname): Use it.
26550         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26551         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26552         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26553         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26554         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26555         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26556         unlinkat, write): Use it.
26557         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26558         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26559         * lib/argv-iter.h: Include arg-nonnull.h.
26560         (_ATTRIBUTE_NONNULL_): Remove macro.
26561         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26562         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26563         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26564         optimization.
26565         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26566         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26567         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26568         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26569         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26570         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26571         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26572         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26573         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26574         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26575         * modules/dirent (Depends-on): Add arg-nonnull.
26576         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26577         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26578         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26579         * modules/fnmatch (Depends-on): Add arg-nonnull.
26580         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26581         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26582         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26583         * modules/glob (Depends-on): Add arg-nonnull.
26584         (Makefile.am): Insert arg-nonnull.h into glob.h.
26585         * modules/iconv_open (Depends-on): Add arg-nonnull.
26586         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26587         * modules/inttypes (Depends-on): Add arg-nonnull.
26588         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26589         * modules/locale (Depends-on): Add arg-nonnull.
26590         (Makefile.am): Insert arg-nonnull.h into locale.h.
26591         * modules/math (Depends-on): Add arg-nonnull.
26592         (Makefile.am): Insert arg-nonnull.h into math.h.
26593         * modules/netdb (Depends-on): Add arg-nonnull.
26594         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26595         * modules/search (Depends-on): Add arg-nonnull.
26596         (Makefile.am): Insert arg-nonnull.h into search.h.
26597         * modules/signal (Depends-on): Add arg-nonnull.
26598         (Makefile.am): Insert arg-nonnull.h into signal.h.
26599         * modules/spawn (Depends-on): Add arg-nonnull.
26600         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26601         * modules/stdio (Depends-on): Add arg-nonnull.
26602         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26603         * modules/stdlib (Depends-on): Add arg-nonnull.
26604         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26605         * modules/string (Depends-on): Add arg-nonnull.
26606         (Makefile.am): Insert arg-nonnull.h into string.h.
26607         * modules/strings (Depends-on): Add arg-nonnull.
26608         (Makefile.am): Insert arg-nonnull.h into strings.h.
26609         * modules/sys_socket (Depends-on): Add arg-nonnull.
26610         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26611         * modules/sys_stat (Depends-on): Add arg-nonnull.
26612         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26613         * modules/sys_time (Depends-on): Add arg-nonnull.
26614         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26615         * modules/sys_times (Depends-on): Add arg-nonnull.
26616         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26617         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26618         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26619         * modules/time (Depends-on): Add arg-nonnull.
26620         (Makefile.am): Insert arg-nonnull.h into time.h.
26621         * modules/unistd (Depends-on): Add arg-nonnull.
26622         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26623         * modules/wchar (Depends-on): Add arg-nonnull.
26624         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26625         * modules/argv-iter (Depends-on): Add arg-nonnull.
26626         * tests/test-canonicalize.c (null_ptr): New function.
26627         (main): Use it.
26628         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26629         (main): Use it.
26630         * tests/test-memmem.c (null_ptr): New function.
26631         (main): Use it.
26632         Reported by Jim Meyering.
26633
26634 2009-12-10  Bruno Haible  <bruno@clisp.org>
26635
26636         Use spaces for indentation, not tabs.
26637         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26638         * m4/*.m4: Untabify.
26639         * build-aux/*.h: Untabify.
26640         * tests/**/*.[hc]: Untabify.
26641         * README: New section "Indent with spaces, not TABs", based on
26642         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26643         * NEWS: Mention the change.
26644
26645 2009-12-10  Bruno Haible  <bruno@clisp.org>
26646
26647         pty test: Fix link error.
26648         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26649         test_pty_LDADD.
26650
26651 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26652
26653         * modules/pty: New file.
26654         * modules/pty-tests: New file.
26655         * m4/pty.m4: New file.
26656         * tests/test-pty.c: New file.
26657         * doc/glibc-headers/pty.texi: Modified.
26658         * doc/glibc-functions/forkpty.texi: Modified.
26659         * doc/glibc-functions/openpty.texi: Modified.
26660
26661 2009-12-10  Bruno Haible  <bruno@clisp.org>
26662
26663         Avoid syntax error in C++ mode.
26664         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26665
26666 2009-12-10  Bruno Haible  <bruno@clisp.org>
26667
26668         Use sed with option -e.
26669         * gnulib-tool (func_version, func_emit_copyright_notice,
26670         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26671         option -e to sed.
26672         * modules/link-warning (Makefile.am): Likewise.
26673
26674 2009-12-10  Jim Meyering  <meyering@redhat.com>
26675
26676         mgetgroups: do not write bytes beyond end of malloc'd buffer
26677         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26678         username, we call getgroups with a one-element-shorter buffer,
26679         but still told it the length was original, max_n_groups.
26680
26681 2009-12-09  Eric Blake  <ebb9@byu.net>
26682
26683         cloexec: relax license
26684         * modules/cloexec (Maintainer): Add myself.
26685         (License): Use LGPL, not GPL.
26686
26687         link-warning: optimize generation
26688         * modules/link-warning (Makefile.am): Reduce process usage.
26689
26690 2009-12-09  Bruno Haible  <bruno@clisp.org>
26691
26692         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26693         workaround was added on 2009-11-17.
26694
26695 2009-12-09  Jim Meyering  <meyering@redhat.com>
26696             Bruno Haible  <bruno@clisp.org>
26697
26698         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26699         * modules/link-warning (Makefile.am): Make the comment-removing sed
26700         command more robust in the face of bootstrap-prepended comment lines.
26701
26702 2009-12-09  Bruno Haible  <bruno@clisp.org>
26703
26704         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26705         most one group.
26706
26707 2009-12-09  Simon Josefsson <simon@josefsson.org>
26708             Bruno Haible  <bruno@clisp.org>
26709
26710         * build-aux/link-warning.h: Add copyright notice.
26711         * modules/link-warning (Makefile.am): Generate link-warning.h from
26712         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26713         * NEWS: Mention change in link-warning module.
26714         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26715         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26716         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26717         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26718         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26719         * modules/math (Makefile.am): Add dependency to math.h.
26720         * modules/search (Makefile.am): Add dependency to search.h.
26721         * modules/signal (Makefile.am): Add dependency to signal.h.
26722         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26723         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26724         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26725         * modules/string (Makefile.am): Add dependency to string.h.
26726         * modules/strings (Makefile.am): Add dependency to strings.h.
26727         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26728         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26729         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26730         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26731         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26732         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26733         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26734         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26735         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26736
26737 2009-12-09  Bruno Haible  <bruno@clisp.org>
26738
26739         fchdir: Optimize away rpl_fstat when possible.
26740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26741         REPLACE_OPEN_DIRECTORY.
26742         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26743
26744 2009-12-09  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/fchdir.c: Update comment.
26747
26748 2009-12-09  Bruno Haible  <bruno@clisp.org>
26749
26750         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26751
26752 2009-12-08  Eric Blake  <ebb9@byu.net>
26753
26754         fchdir: avoid memory leak on re-registration.
26755         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26756
26757 2009-12-08  Jim Meyering  <meyering@redhat.com>
26758
26759         init.sh: avoid Solaris 10 /bin/sh portability problem
26760         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26761         sourced script:
26762           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26763           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26764           bar
26765         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26766         and two tests used that idiom.
26767         * tests/init.sh: Update suggested usage comments.
26768         (path_prepend_): New function, to be used in place
26769         of the --src-path=DIR option.
26770         (setup_): Move PATH-prepending code into path_prepend_.
26771         * tests/test-pread.sh: Adapt to new usage.
26772         * tests/test-xalloc-die.sh: Likewise.
26773
26774 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26775
26776         * doc/gnulib.texi (Glibc pty.h): Add.
26777         * doc/glibc-functions/forkpty.texi: Add.
26778         * doc/glibc-functions/openpty.texi: Add.
26779         Suggested by Bruno Haible.
26780
26781 2009-12-08  Eric Blake  <ebb9@byu.net>
26782
26783         fchdir: fix logic bugs
26784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26785         * tests/test-fchdir.c (main): Enhance test.
26786         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26787         is in use.
26788
26789         dup2: fix logic bugs
26790         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26791         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26792         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26793         exists.
26794         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26795
26796 2009-12-07  Eric Blake  <ebb9@byu.net>
26797
26798         unlink: fix m4 detection
26799         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26800
26801         unistd-safer: add unit test
26802         * modules/unistd-safer-tests: New file.
26803         * tests/test-dup-safer.c: Likewise.
26804         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26805         * tests/test-dup2.c (setmode): Likewise.
26806         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26807
26808         cloexec: preserve text vs. binary across dup_cloexec
26809         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26810         mode.
26811         * modules/dup2-tests (Depends-on): Add binary-io.
26812         * modules/cloexec-tests (Depends-on): Likewise.
26813         * tests/test-dup2.c (setmode, is_mode): New helpers.
26814         (main): Add tests that translation mode is preserved.
26815         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26816         Reported by Bruno Haible.
26817
26818         mgetgroups: reduce duplicate listings
26819         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26820         resulting array.
26821         * tests/test-chown.h (test_chown): Simplify client.
26822         * tests/test-lchown.h (test_lchown): Likewise.
26823
26824 2009-12-06  Bruno Haible  <bruno@clisp.org>
26825
26826         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26827         value.
26828
26829 2009-12-06  Bruno Haible  <bruno@clisp.org>
26830
26831         * lib/progname.c: Include stdio.h, stdlib.h.
26832         (set_program_name): Reject a NULL argument.
26833
26834 2009-12-05  Eric Blake  <ebb9@byu.net>
26835
26836         pipe2-safer: new module
26837         * modules/pipe2-safer: New file.
26838         * lib/unistd-safer.h (pipe2_safer): New prototype.
26839         * lib/unistd--.h (pipe2): New wrapper.
26840         * lib/pipe-safer.c (pipe2_safer): New function.
26841         * modules/pipe (Depends-on): Add pipe2-safer.
26842         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26843
26844         stdlib-safer: preserve cloexec flag for mkostemp[s]
26845         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26846         fd_safer_flag.
26847
26848         unistd-safer: allow preservation of cloexec status via flag
26849         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26850         prototypes.
26851         * lib/dup-safer.c (dup_safer_flag): New function.
26852         * lib/fd-safer.c (fd_safer_flag): Likewise.
26853         * modules/cloexec (configure.ac): Set witness.
26854
26855         test-dup2: enhance test
26856         * modules/dup2-tests (Depends-on): Add cloexec.
26857         * tests/test-dup2.c (main): Enhance test.
26858
26859         cloexec: add dup_cloexec
26860         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26861         header and comments.
26862         * lib/cloexec.c (set_cloexec_flag): Add comments.
26863         (dup_cloexec): New function, with mingw implementation borrowed
26864         from...
26865         * lib/w32spawn.h (dup_noinherit): ...here.
26866         * modules/execute (Depends-on): Add cloexec.
26867         * modules/pipe (Depends-on): Likewise.
26868         * modules/cloexec (Depends-on): Add dup2.
26869         * modules/cloexec-tests (Files): New file.
26870         * tests/test-cloexec.c: Likewise.
26871
26872         test-xalloc-die: fix test for mingw
26873         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26874         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26875         directory and .exe suffix off argv[0] output.
26876
26877         test-fseeko: fix test for mingw
26878         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26879         than undefining fseek, so test will pass on mingw.
26880
26881 2009-12-05  Bruno Haible  <bruno@clisp.org>
26882
26883         * lib/progname.h (set_program_name): Clarify specification.
26884         * lib/progname.c (set_program_name): Likewise.
26885         Reported by Jim Meyering.
26886
26887 2009-12-05  Jim Meyering  <meyering@redhat.com>
26888
26889         maint.mk: backslash-escape parens in default regexp
26890         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26891         backslash-escape the literal parentheses.
26892
26893         maint.mk: news-date-check: use grep -E
26894         * top/maint.mk (today): Define a Make variable, not a...
26895         (news-date-check): ...shell variable.
26896         (news-date-regexp): Use the Make variable.
26897         Use grep's -E option.  Change the failing diagnostic to mention
26898         the variable, $(news-date-regexp).
26899
26900 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26901
26902         maintainer-makefile: allow customization of NEWS entry format
26903         * top/maint.mk (news-date-regexp): New overridable variable.
26904         (news-date-check): Use it.
26905
26906 2009-12-04  Eric Blake  <ebb9@byu.net>
26907
26908         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26909         * lib/mgetgroups.h (xgetgroups): New prototype.
26910         * lib/mgetgroups.c (xgetgroups): New wrapper.
26911         (mgetgroups): Handle ENOSYS.
26912         * modules/mgetgroups (Depends-on): Add realloc.
26913         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26914
26915         mgetgroups: avoid argument promotion issues with -1
26916         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26917         for invalid gid_t.
26918         * tests/test-chown.h (getegid, test_chown): Likewise.
26919         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26920
26921 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26922
26923         exclude: Fix header file problems.
26924         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26925
26926 2009-12-01  Jim Meyering  <meyering@redhat.com>
26927
26928         fts: fts_open: do not let an empty string cause immediate failure
26929         This is required in support of GNU rm, for which the command
26930         "rm A '' B" must process and remove both A and B, in spite of
26931         the empty string argument.
26932         * lib/fts.c (fts_open): Do not let the presence of an empty string
26933         cause fts_open to fail immediately.  Most fts-using tools must be
26934         able to process all arguments, in order, and can be expected to
26935         diagnose such arguments themselves.
26936
26937 2009-11-30  Eric Blake  <ebb9@byu.net>
26938
26939         utimens: fix compilation error
26940         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26941         Declare variable at right scope.
26942
26943 2009-11-29  Jim Meyering  <meyering@redhat.com>
26944
26945         bootstrap: handle perl-5.11's changed --version output
26946         * build-aux/bootstrap (get_version): Handle perl separately,
26947         since perl-5.11's --version output is different.
26948
26949 2009-11-28  Jim Meyering  <meyering@redhat.com>
26950
26951         userspec: depend on the inttostr module, too
26952         * modules/userspec (Depends-on): Add inttostr.
26953
26954         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26955         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26956         number of MAXUID when it evaluates to (uid_t) -1.
26957         Likewise for group ID.  Reported by Matt McCutchen in
26958         <http://savannah.gnu.org/bugs/?28113>
26959
26960         userspec: reformat to use spaces, not TABs
26961         * lib/userspec.c: Expand TABs to spaces.
26962         Add Emacs' "indent-tabs-mode: nil" hint.
26963
26964 2009-11-27  Eric Blake  <ebb9@byu.net>
26965
26966         getopt-gnu: flush out another BSD bug
26967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26968         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26969         flush out BSD bug.
26970         * tests/test-getopt.h (test_getopt): End lists with NULL.
26971         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26972         (test_getopt_long_posix): Enhance test.
26973         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26974         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26975         getopt-gnu.
26976         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26977         Likewise.
26978
26979 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26980
26981         * modules/idpriv-droptemp-tests (Notice): Fix text.
26982
26983 2009-11-27  Jim Meyering  <meyering@redhat.com>
26984
26985         test-xalloc-die: avoid spurious failure due to libtool argv difference
26986         In a libtool-enabled project, this test would fail due to a difference
26987         in the emitted program name, e.g.,
26988         -test-xalloc-die: memory exhausted
26989         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26990         Use program to avoid that.
26991         * modules/xalloc-die-tests (Depends-on): Add progname.
26992         * tests/test-xalloc-die.c: Include progname.h".
26993         (program_name): Remove decl.
26994         (main): Call set_program_name.
26995         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26996
26997 2009-11-26  Richard Jones  <rjones@redhat.com>
26998
26999         w32sock: leave win32 error in place.
27000         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27001
27002 2009-11-26  Eric Blake  <ebb9@byu.net>
27003
27004         init.sh: suggest to use skip_ and fail_ functions in comments
27005         * tests/init.sh: Add a sentence.
27006
27007 2009-11-25  Bruno Haible  <bruno@clisp.org>
27008
27009         init.sh: add documentation in comments
27010         * tests/init.sh: Add some developer and user documentation.
27011
27012 2009-11-26  Jim Meyering  <meyering@redhat.com>
27013
27014         init.sh: accommodate even those who specify bogus srcdir manually
27015         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27016         configure-time tests to be sanitized, so that there is no need to
27017         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27018         (with no double quotes) suffices.  However, since tests may be
27019         invoked manually, and since you may explicitly set srcdir to the
27020         name of a directory containing spaces, do quote its uses here.
27021         * tests/test-pread.sh: Likewise.
27022         Suggested by Bruno Haible.
27023
27024         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27025         * tests/test-pread.sh: Write no data into the pipe, because
27026         test-pread actually reads none.  This avoids a diagnostic,
27027         "bash: echo: write error: Broken pipe", that arises in the unusual
27028         event something is ignoring SIGPIPE, and might be interpreted
27029         as some sort of failure.  Reported by Bruno Haible.
27030
27031 2009-11-25  Jim Meyering  <meyering@redhat.com>
27032
27033         test-pread: cover failure with ESPIPE and EINVAL
27034         * tests/test-pread.c (main): Test for failure, too.
27035         * tests/test-pread.sh: Invoke with stdin on a pipe.
27036         Suggested by Eric Blake.
27037
27038         pread: improvement and fix
27039         * modules/pread (Depends-on): Depend on lseek, for portability to
27040         e.g., mingw.  Suggested by Eric Blake.
27041         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27042
27043         unistd.in.h: correct declaration of pread
27044         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27045         Reported by Richard W.M. Jones.
27046
27047         test-pread.sh: distribute the test script
27048         * modules/pread-tests (Files): Include test-pread.sh.
27049
27050         test-pread.sh: clean up
27051         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27052         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27053         That is unnecessary, since it's always ".".
27054         Suggestion from Eric Blake.
27055
27056         test-pread.sh: make executable
27057         * tests/test-pread.sh: Set executable bit.
27058         Reported by Eric Blake.
27059
27060         correct typo in test-pread.sh
27061         * tests/test-pread.sh: Add #! line.
27062
27063         test pread
27064         * tests/test-pread.c: New file.
27065         * tests/test-pread.sh: Likewise.
27066         * modules/pread-tests: Likewise.
27067
27068         pread: new module
27069         * modules/pread: New file.
27070         * lib/unistd.in.h (pread): Define/declare.
27071         * lib/pread.c (pread): New file.
27072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27073         * modules/unistd (Makefile.am): Substitute witnesses.
27074         * doc/posix-functions/pread.texi (pread): Update.
27075         * MODULES.html.sh: Add pread.
27076
27077 2009-11-25  Jim Meyering  <meyering@redhat.com>
27078
27079         tests/init.sh: new file to be used via most *.sh tests
27080         * tests/init.sh: New file.
27081
27082 2009-11-25  Eric Blake  <ebb9@byu.net>
27083
27084         utimens: work around older Linux failure with symlinks
27085         * lib/utimens.c (lutimensat_works_really): New variable.
27086         (fdutimens, lutimens): Use it to manage kernels that support
27087         nanosecond times on files, but not on symlinks.
27088         Reported by Ondřej Vašík.
27089
27090         utimes: fix configure grammar
27091         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27092
27093 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27094
27095         regex: Fix fastmap for multibyte character ranges.
27096         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27097         characters when a multibyte character range is included.
27098
27099 2009-11-22  Andy Wingo  <wingo@pobox.com>
27100
27101         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27102         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27103
27104 2009-11-24  Bruno Haible  <bruno@clisp.org>
27105
27106         doc: Most *_l functions exist in MacOS X 10.5.
27107         * doc/posix-functions/duplocale.texi: Update platforms list.
27108         * doc/posix-functions/freelocale.texi: Likewise.
27109         * doc/posix-functions/newlocale.texi: Likewise.
27110         * doc/posix-functions/uselocale.texi: Likewise.
27111         * doc/posix-functions/isalnum_l.texi: Likewise.
27112         * doc/posix-functions/isalpha_l.texi: Likewise.
27113         * doc/posix-functions/isblank_l.texi: Likewise.
27114         * doc/posix-functions/iscntrl_l.texi: Likewise.
27115         * doc/posix-functions/isdigit_l.texi: Likewise.
27116         * doc/posix-functions/isgraph_l.texi: Likewise.
27117         * doc/posix-functions/islower_l.texi: Likewise.
27118         * doc/posix-functions/isprint_l.texi: Likewise.
27119         * doc/posix-functions/ispunct_l.texi: Likewise.
27120         * doc/posix-functions/isspace_l.texi: Likewise.
27121         * doc/posix-functions/isupper_l.texi: Likewise.
27122         * doc/posix-functions/iswalnum_l.texi: Likewise.
27123         * doc/posix-functions/iswalpha_l.texi: Likewise.
27124         * doc/posix-functions/iswblank_l.texi: Likewise.
27125         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27126         * doc/posix-functions/iswctype_l.texi: Likewise.
27127         * doc/posix-functions/iswdigit_l.texi: Likewise.
27128         * doc/posix-functions/iswgraph_l.texi: Likewise.
27129         * doc/posix-functions/iswlower_l.texi: Likewise.
27130         * doc/posix-functions/iswprint_l.texi: Likewise.
27131         * doc/posix-functions/iswpunct_l.texi: Likewise.
27132         * doc/posix-functions/iswspace_l.texi: Likewise.
27133         * doc/posix-functions/iswupper_l.texi: Likewise.
27134         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27135         * doc/posix-functions/isxdigit_l.texi: Likewise.
27136         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27137         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27138         * doc/posix-functions/strcoll_l.texi: Likewise.
27139         * doc/posix-functions/strfmon_l.texi: Likewise.
27140         * doc/posix-functions/strftime_l.texi: Likewise.
27141         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27142         * doc/posix-functions/strxfrm_l.texi: Likewise.
27143         * doc/posix-functions/tolower_l.texi: Likewise.
27144         * doc/posix-functions/toupper_l.texi: Likewise.
27145         * doc/posix-functions/towctrans_l.texi: Likewise.
27146         * doc/posix-functions/towlower_l.texi: Likewise.
27147         * doc/posix-functions/towupper_l.texi: Likewise.
27148         * doc/posix-functions/wcscoll_l.texi: Likewise.
27149         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27150         * doc/posix-functions/wctrans_l.texi: Likewise.
27151         * doc/posix-functions/wctype_l.texi: Likewise.
27152         * doc/glibc-functions/strptime_l.texi: Likewise.
27153         * doc/glibc-functions/strtod_l.texi: Likewise.
27154         * doc/glibc-functions/strtof_l.texi: Likewise.
27155         * doc/glibc-functions/strtol_l.texi: Likewise.
27156         * doc/glibc-functions/strtold_l.texi: Likewise.
27157         * doc/glibc-functions/strtoll_l.texi: Likewise.
27158         * doc/glibc-functions/strtoul_l.texi: Likewise.
27159         * doc/glibc-functions/strtoull_l.texi: Likewise.
27160         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27161         * doc/glibc-functions/wcstod_l.texi: Likewise.
27162         * doc/glibc-functions/wcstof_l.texi: Likewise.
27163         * doc/glibc-functions/wcstol_l.texi: Likewise.
27164         * doc/glibc-functions/wcstold_l.texi: Likewise.
27165         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27166         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27167         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27168
27169 2009-11-24  Bruno Haible  <bruno@clisp.org>
27170
27171         duplocale: Fix logic bug.
27172         * lib/duplocale.c: Don't include <langinfo.h>.
27173         (_NL_LOCALE_NAME): Remove macro.
27174         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27175         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27176
27177 2009-11-23  Jim Meyering  <meyering@redhat.com>
27178
27179         test-update-copyright: don't hard-code /usr/bin/perl
27180         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27181         perl to print the current year.  Gilles Espinasse reported that
27182         the replaced use of perl was hard-coded as /usr/bin/perl.
27183
27184 2009-11-23  Bruno Haible  <bruno@clisp.org>
27185
27186         duplocale: Add support for glibc 2.3.x.
27187         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27188
27189 2009-11-22  Bruno Haible  <bruno@clisp.org>
27190
27191         vasnprintf: Tiny optimization.
27192         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27193         MacOS X.
27194
27195 2009-11-22  Bruno Haible  <bruno@clisp.org>
27196
27197         Tests for module 'duplocale'.
27198         * modules/duplocale-tests: New file.
27199         * tests/test-duplocale.c: New file.
27200
27201         New module 'duplocale'.
27202         * m4/duplocale.m4: New file.
27203         * lib/locale.in.h (duplocale): New declaration.
27204         * lib/duplocale.c: New file.
27205         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27206         gl_LOCALE_H_DEFAULTS): New macros.
27207         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27208         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27209         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27210         REPLACE_DUPLOCALE.
27211         * modules/duplocale: New file.
27212         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27213
27214 2009-11-22  Bruno Haible  <bruno@clisp.org>
27215
27216         * modules/locale-tests (configure.ac): Test for newlocale function.
27217         * tests/test-locale.c: When the system has extended locale functions,
27218         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27219
27220         locale: Make locale_t available when possible.
27221         * lib/locale.in.h: Include <xlocale.h> when it exists.
27222         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27223         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27224         * modules/locale (Depends-on): Add extensions.
27225         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27226         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27227
27228 2009-11-22  Bruno Haible  <bruno@clisp.org>
27229
27230         Add comments.
27231         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27232         invocation.
27233         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27234         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27235         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27236
27237 2009-11-22  Bruno Haible  <bruno@clisp.org>
27238
27239         error: account for the possibility of freopen (stdout).
27240         * lib/error.c: Include <unistd.h>.
27241         (flush_stdout): New function, extracted from error and error_at_line.
27242         Determine stdout's fd dynamically.
27243         (error, error_at_line): Invoke flush_stdout.
27244         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27245         * modules/error (Depends-on): Add unistd.
27246
27247 2009-11-22  Bruno Haible  <bruno@clisp.org>
27248
27249         diffseq: Add comment.
27250         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27251
27252 2009-11-22  Jim Meyering  <meyering@redhat.com>
27253
27254         c-stack: avoid defining an unused static function
27255         * lib/c-stack.c (find_stack_direction): Do not define this function
27256         when it will not be used.
27257
27258         diffseq: avoid spurious gcc warnings
27259         * lib/diffseq.h (IF_LINT2): Define.
27260         (compareseq): Use it to initialize two members of "part".
27261         This avoids two used-uninitialized warnings.
27262
27263 2009-11-21  Jim Meyering  <meyering@redhat.com>
27264
27265         c-stack: avoid "ignoring return value of `write'" warning
27266         * lib/c-stack.c: Include "ignore-value.h".
27267         (die): Explicitly ignore each write return value.
27268         * modules/c-stack (Depends-on): Add ignore-value.
27269
27270 2009-11-21  Bruno Haible  <bruno@clisp.org>
27271
27272         diffseq: reduce scope of variable 'best'.
27273         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27274         variable, earlier used for two different purposes.
27275
27276 2009-11-21  Jim Meyering  <meyering@redhat.com>
27277
27278         diffseq: remove useless assignment to "best"
27279         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27280         assignment.  At that point "best" is already guaranteed to be zero.
27281
27282 2009-11-20  Eric Blake  <ebb9@byu.net>
27283
27284         build: mention ftp redirector in release announcements
27285         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27286         values that used to come from cfg.mk; mention FTP redirect URL.
27287         * build-aux/announce-gen: Mention the mirror list.
27288         Suggested by Karl Berry.
27289
27290         nanosleep: improve port to mingw
27291         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27293         LIB_NANOSLEEP, but only when needed.
27294         * modules/select (Link): Document LIBSOCKET.
27295         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27296         enough.
27297
27298         nanosleep: work around cygwin bug
27299         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27300         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27301         bug.
27302         (getnow): Delete, not needed.
27303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27304         LIB_CLOCK_GETTIME.
27305         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27306         clock-time, gettime.
27307         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27308         bug.
27309         * modules/nanosleep-tests: New test.
27310         * tests/test-nanosleep.c: New file.
27311
27312         sleep: work around cygwin bug
27313         * lib/sleep.c (rpl_sleep): Work around the bug.
27314         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27315         (gl_PREREQ_SLEEP): Delete unused macro.
27316         * modules/sleep (Depends-on): Add verify.
27317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27318         * modules/unistd (Makefile.am): Substitute witness.
27319         * lib/unistd.in.h (sleep): Update prototype.
27320         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27321         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27322         * modules/sleep-tests (Depends-on): Check for alarm.
27323
27324 2009-11-20  Jim Meyering  <meyering@redhat.com>
27325
27326         maint.mk: improve sc_prohibit_magic_number_exit
27327         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27328         so it does not match uses like System.exit(1).
27329         Add comments showing how to correct all offenders.
27330
27331 2009-11-19  Eric Blake  <ebb9@byu.net>
27332
27333         xalloc-die-tests: add missing library
27334         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27335
27336         test-xvasprintf: silence compiler warnings
27337         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27338         empty string from gcc.
27339
27340 2009-11-19  Jim Meyering  <meyering@redhat.com>
27341
27342         xfreopen: new module, from coreutils
27343         * modules/xfreopen: New module.
27344         * lib/xfreopen.c: New file.
27345         * lib/xfreopen.h: New file.
27346         * MODULES.html.sh (File stream based Input/Output"): Add it.
27347
27348 2009-11-19  Eric Blake  <ebb9@byu.net>
27349
27350         manywarnings: depend on warnings
27351         * modules/manywarnings (Depends-on): Add warnings.
27352
27353         build: avoid compiler warnings
27354         * lib/select.c (rpl_select): Delete unused variable.
27355         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27356
27357 2009-11-18  Eric Blake  <ebb9@byu.net>
27358
27359         tests: avoid false negative with --with-packager
27360         * tests/test-version-etc.sh: Discard packager information.
27361         * tests/test-argp-version-etc-1.sh: Likewise.
27362         Reported by Mike Frysinger.
27363
27364         utimens: fix regression on Solaris
27365         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27366         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27367         can only change fd timestamps via futimesat.  Instead, use an
27368         additional witness macro to avoid BSD bug.
27369         Reported by Jim Meyering.
27370
27371 2009-11-17  Eric Blake  <ebb9@byu.net>
27372
27373         usleep: use it to simplify tests
27374         * modules/stat-time-tests (Depends-on): Add usleep.
27375         (configure.ac): Drop usleep check.
27376         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27377         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27378         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27379         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27380         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27381         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27382         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27383         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27384         Likewise.
27385         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27386         * tests/test-lchown.h (nap): Likewise.
27387         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27388         * tests/test-stat-time.c (nap): Likewise.
27389         * tests/test-utimens-common.h (nap): Update comments.
27390
27391         usleep: new module
27392         * modules/usleep: New file.
27393         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27394         * lib/usleep.c (usleep): Likewise.
27395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27396         * modules/unistd (Makefile.am): Substitute witnesses.
27397         * lib/unistd.in.h (usleep): Add declaration.
27398         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27399         * MODULES.html.sh (Date and time): Likewise.
27400         * modules/usleep-tests (Depends-on): New test.
27401         * tests/test-usleep.c: New file.
27402
27403         chown: work around OpenBSD bug
27404         * lib/chown.c (rpl_chown): Work around the bug.
27405         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27406         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27408         * modules/chown (Depends-on): Add stdbool.
27409         * modules/lchown (Depends-on): Likewise.
27410         * doc/posix-functions/chown.texi (chown): Document the bug.
27411         * doc/posix-functions/lchown.texi (lchown): Likewise.
27412         * tests/test-lchown.h (test_chown): Relax test.
27413
27414         mkstemp: avoid conflict with C++ keyword template
27415         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27416         * lib/mkostemp.c (mkostemp): Likewise.
27417         * lib/mkostemps.c (mkostemps): Likewise.
27418         * lib/mkstemp.c (mkstemp): Likewise.
27419         * lib/mkstemps.c (mkstemps): Likewise.
27420
27421         xalloc-die-tests: optimize
27422         * tests/test-xalloc-die.sh: Reduce number of processes.
27423
27424 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27425
27426         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27427         patch from ludo@gnu.org (Ludovic Courtès).
27428
27429 2009-11-17  Jim Meyering  <meyering@redhat.com>
27430
27431         version-etc: use proper license string
27432         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27433         * modules/version-etc-fsf: Likewise.
27434
27435 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27436
27437         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27438         printed to stdout.  Deal with EOL differences.
27439
27440 2009-11-17  Eric Blake  <ebb9@byu.net>
27441
27442         unsetenv: work around Solaris bug
27443         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27444         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27445         Reported by Jim Meyering.
27446
27447         vasnprintf: avoid compiler warnings
27448         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27449         variables.
27450         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27451
27452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27453
27454         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27455         settings since xalloc-die is no longer the self test,
27456         xalloc-die.sh is.
27457
27458 2009-11-17  Jim Meyering  <meyering@redhat.com>
27459
27460         test-xalloc-die.sh: make the code agree with the commit log
27461         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27462         at the end, just in case you happen to have a test-xalloc-die
27463         program in some other PATH directory.
27464
27465         test-xalloc-die.sh: fix a portability bug
27466         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27467         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27468         Otherwise, argv[0] (as often seen in diagnostics) would be too
27469         system-dependent, sometimes with, and sometimes without the leading "./".
27470
27471         version-etc-fsf: relax license to LGPLv3+
27472         * modules/version-etc-fsf (License): Relax license.
27473
27474 2009-11-16  Eric Blake  <ebb9@byu.net>
27475
27476         xalloc-die-tests: avoid printing null pointer
27477         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27478         shell script.
27479         * tests/test-xalloc-die.c (program_name): Declare.
27480         * tests/test-xalloc-die.sh (tmpfiles): New file.
27481
27482         setenv, unsetenv: work around various bugs
27483         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27484         (setenv) [HAVE_SETENV]: Work around bugs.
27485         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27486         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27487         for bugs.
27488         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27489         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27491         * modules/stdlib (Makefile.am): Update substitutions.
27492         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27493         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27494         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27495         * modules/setenv-tests: New test.
27496         * modules/unsetenv-tests: Likewise.
27497         * tests/test-setenv.c: New file.
27498         * tests/test-unsetenv.c: Likewise.
27499
27500 2009-11-16  Jim Meyering  <meyering@redhat.com>
27501
27502         version-etc: relax license to LGPLv3+
27503         * modules/version-etc (License): Relax license.
27504
27505         better AC_REQUIRE expanded-before-required-warning avoidance
27506         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27507         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27508         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27509         which is no longer needed.
27510
27511 2009-11-16  Eric Blake  <ebb9@byu.net>
27512
27513         test-freading: clean up temporary file
27514         * tests/test-freading.c (main): Remove file on success, and use
27515         ASSERT more liberally.
27516         Reported by Jim Meyering.
27517
27518 2009-11-16  Jim Meyering  <meyering@redhat.com>
27519
27520         avoid new AC_REQUIRE expanded-before-required warnings
27521         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27522         merely using it.
27523         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27524         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27525
27526 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27527
27528         * tests/test-xalloc-die.c: New file.
27529         * modules/xalloc-die-tests: New file.
27530         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27531         XFAIL_TESTS so it can be appended by modules.
27532
27533 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27534
27535         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27536         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27537
27538 2009-11-14  Eric Blake  <ebb9@byu.net>
27539
27540         fnmatch: avoid compiler warning
27541         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27542         to silence compiler warning about mismatch signedness in ?:.
27543         Reported by Robert Millan.
27544
27545         intprops: add double-inclusion guard
27546         * lib/intprops.h: Allow idempotent includes.
27547         Suggested by Bruce Korb.
27548
27549         openat: detect Solaris fchownat bug
27550         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27551         penalizing glibc chownat when only lchownat is broken.
27552         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27553         trailing slash bugs.
27554         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27555         * modules/openat-tests (Files): Include more files.
27556         (Depends-on): Add mgetgroups, sleep, stat-time.
27557         (configure.ac): Add additional checks.
27558         (Makefile.am): Build new test.
27559         * tests/test-fchownat.c: New file.
27560
27561         lchown: detect Solaris and FreeBSD bug
27562         * lib/lchown.c (rpl_lchown): Work around bug.
27563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27565         * modules/unistd (Makefile.am): Populate it.
27566         * lib/unistd.in.h (lchown): Update declaration.
27567         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27568         * modules/lchown-tests: New file.
27569         * tests/test-lchown.h (test_lchown): Likewise.
27570         * tests/test-lchown.c (main): Likewise.
27571
27572         chown: detect Solaris and FreeBSD bug
27573         * lib/chown.c (rpl_chown): Work around bug.
27574         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27575         (gl_PREREQ_CHOWN): Delete.
27576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27577         * modules/unistd (Makefile.am): Populate it.
27578         * lib/unistd.in.h (chown): Update declaration.
27579         * lib/lchown.c (chown): Update client.
27580         * modules/lchown (Depends-on): Add lstat.
27581         * doc/posix-functions/chown.texi (chown): Document the bug.
27582         * doc/posix-functions/getgroups.texi (getgroups): Document
27583         getgroups pitfall.
27584         * modules/chown-tests: New file.
27585         * tests/test-chown.h (test_chown): Likewise.
27586         * tests/test-chown.c (main): Likewise.
27587
27588 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27589
27590         gnulib-tool: correctly detect absence of m4 directories
27591         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27592
27593 2009-11-14  Jim Meyering  <meyering@redhat.com>
27594
27595         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27596         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27597
27598 2009-11-14  John W. Eaton  <jwe@gnu.org>
27599
27600         strftime.h: wrap funtion declaration in extern "C" block
27601         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27602
27603 2009-11-13  Eric Blake  <ebb9@byu.net>
27604
27605         getgroups: avoid compiler warning
27606         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27607
27608         getgroups: work around FreeBSD bug
27609         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27610         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27611         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27612         * tests/test-getgroups.c (main): Fix buffer overrun.
27613
27614         getgroups: avoid compilation failure
27615         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27616         * modules/getgroups (Depends-on): Add stdint.
27617
27618 2009-11-13  Jim Meyering  <meyering@redhat.com>
27619
27620         test-getgroups: avoid compilation failure
27621         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27622
27623 2009-11-13  Eric Blake  <ebb9@byu.net>
27624
27625         mgetgroups: new module, taken from coreutils
27626         * modules/mgetgroups: New file.
27627         * lib/mgetgroups.h: Likewise.
27628         * lib/mgetgroups.c (mgetgroups): Likewise.
27629         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27630         * MODULES.html.sh (Users and groups): Mention it.
27631
27632         getgroups: don't expose GETGROUPS_T to user
27633         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27634         an element at a time if GETGROUPS_T is wrong size.
27635         * lib/getugroups.h (getugroups): Change signature.
27636         * lib/unistd.in.h (getgroups): Likewise.
27637         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27638         signature needs fixing.
27639         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27640         AC_TYPE_GETGROUPS.
27641         * modules/group-member (Depends-on): Add getgroups.
27642         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27643         (group_member): Rely on getgroups replacement.
27644         * lib/getugroups.c (getugroups): Use gid_t.
27645         * tests/test-getgroups.c (main): Likewise.
27646         * NEWS: Mention the signature change.
27647         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27648         problem with signature.
27649         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27650         GETGROUPS_T is still useful for setgroups.
27651
27652         getgroups, getugroups: provide stubs for mingw
27653         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27654         * lib/getugroups.c (getugroups): Likewise.
27655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27656         function.  Modernize replacement scheme.
27657         (gl_PREREQ_GETGROUPS): Delete.
27658         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27659         * modules/getgroups (configure.ac): Declare witness.
27660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27661         * modules/unistd (Depends-on): Substitute witness.
27662         * lib/unistd.in.h (getgroups): Declare replacement.
27663
27664         getgroups: avoid calling exit
27665         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27666         drop xalloc.
27667         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27668         dependencies.
27669         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27670         exiting, in the rare case of malloc failure.
27671
27672         getgroups: fix logic error
27673         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27674         has more than 20 groups.
27675         * modules/getgroups-tests: New test.
27676         * tests/test-getgroups.c: New file.
27677
27678 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27679
27680         * tests/test-base64.c: Improve.
27681
27682 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27683
27684         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27685         Blake <ebb9@byu.net>.
27686
27687 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27688
27689         * tests/test-xvasprintf.c: Add %s%s related checks.
27690
27691 2009-11-12  Eric Blake  <ebb9@byu.net>
27692
27693         version-etc: match standards.texi style
27694         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27695         and use <> only for URLs.
27696
27697 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27698
27699         fts: do not fail on a submount during traversal
27700         * lib/fts.c (fts_build): Read the stat info again after opening
27701         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27702         Original report at http://bugzilla.redhat.com/501848.
27703
27704 2009-11-12  Jim Meyering  <meyering@redhat.com>
27705
27706         bootstrap: sync from coreutils
27707         * build-aux/bootstrap (bootstrap_epilogue): New function.
27708         Use git_modules_config in one more place.  This make bootstrap's
27709         --gnulib-srcdir option more useful for testing.
27710
27711         bootstrap: generalize autoheader check
27712         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27713         AC_CONFIG_HEADERS.
27714
27715 2009-11-11  Eric Blake  <ebb9@byu.net>
27716
27717         mkfifoat: use new modules for Solaris and BSD bugs
27718         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27719         * lib/mkfifoat.c (mknodat): Split...
27720         * lib/mknodat.c (mknodat): ...into new file.
27721         * modules/mkfifoat (Files): Ship new file.
27722         (Depends-on): Add mkfifo, mknod.
27723         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27724         (Depends-on): Add symlink.
27725         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27726         redundant with test_mkfifo.h.
27727         (do_mkfifoat, do_mknodat): New helpers.
27728
27729         mknod: new module
27730         * modules/mknod: New file.
27731         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27732         * lib/mknod.c (mknod): Likewise.
27733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27734         defaults.
27735         * modules/sys_stat (Makefile.am): Substitute them.
27736         * lib/sys_stat.in.h (mknod): Declare replacement.
27737         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27738         Document it.
27739         * doc/posix-functions/mknod.texi (mknod): Likewise.
27740         * modules/mknod-tests: New test.
27741         * tests/test-mknod.c: Likewise.
27742
27743         mkfifo: new module
27744         * modules/mkfifo: New file.
27745         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27746         * lib/mkfifo.c (mkfifo): Likewise.
27747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27748         defaults.
27749         * modules/sys_stat (Makefile.am): Substitute them.
27750         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27751         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27752         Document it.
27753         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27754         * modules/mkfifo-tests: New test.
27755         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27756         from test-mkfifoat.c.
27757         * tests/test-mkfifo.c: New file.
27758
27759         readlink: detect FreeBSD bug
27760         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27761         slash on symlink.
27762         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27763         * tests/test-readlink.h (test_readlink): Enhance test.
27764
27765         symlink: detect FreeBSD bug
27766         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27767         slash on symlink.
27768         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27769         * tests/test-symlink.h (test_symlink): Enhance test.
27770
27771 2009-11-10  Eric Blake  <ebb9@byu.net>
27772
27773         link: detect FreeBSD bug
27774         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27775         symlink.
27776         * doc/posix-functions/link.texi (link): Document the bug.
27777         * tests/test-link.h (test_link): Enhance test.
27778         * tests/test-linkat.c (main): Update caller.
27779
27780         unlink, remove: detect FreeBSD bug
27781         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27782         slash on symlink.
27783         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27784         * doc/posix-functions/remove.texi (remove): Likewise.
27785         * tests/test-unlink.h (test_unlink): Enhance test.
27786         * tests/test-remove.c (main): Likewise.
27787
27788 2009-11-09  Eric Blake  <ebb9@byu.net>
27789
27790         rename: detect FreeBSD bug
27791         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27792         slash on symlink.
27793         * modules/renameat-tests (Depends-on): Add filenamecat.
27794         * tests/test-rename.h (test_rename): Allow one more errno.
27795         * tests/test-renameat.c (main): Likewise.
27796         * doc/posix-functions/rename.texi (rename): Document the bug.
27797
27798         open: detect FreeBSD bug
27799         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27800         symlink.
27801         * doc/posix-functions/open.texi (open): Document the bug.
27802         * doc/posix-functions/utimes.texi (utimes): Likewise.
27803         * tests/test-open.h (test_open): Add parameters, and test symlink
27804         handling.
27805         * tests/test-open.c (main): Adjust caller.
27806         * tests/test-fcntl-safer.c (main): Likewise.
27807         * modules/open-tests (Depends-on): Add stdbool, symlink.
27808         * modules/fcntl-safer-tests (Depends-on): Likewise.
27809         * tests/test-openat.c (main): Add test-open tests.
27810
27811         stat: detect FreeBSD bug
27812         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27813         symlink.
27814         * doc/posix-functions/stat.texi (stat): Document the bug.
27815         * tests/test-stat.h (test_stat_func): Add argument.
27816         * tests/test-stat.c (main): Adjust caller.
27817         * tests/test-fstatat.c (main): Likewise.
27818         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27819         Reported by Jim Meyering.
27820
27821 2009-11-09  James Youngman  <jay@gnu.org>
27822
27823         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27824         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27825
27826 2009-11-08  Jim Meyering  <meyering@redhat.com>
27827
27828         utimens: remove invalid futimesat call
27829         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27830         It used the file descriptor of the target file as the DIR_FD
27831         parameter and NULL as the file name.  That caused failure with
27832         errno == EFAULT on FreeBSD-8.0-rc2
27833
27834 2009-11-07  Eric Blake  <ebb9@byu.net>
27835
27836         fflush, freadseek: use fseeko, not fseek
27837         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27838         (clear_ungetc_buffer): Avoid potential problems on large files.
27839         * lib/freadseek.c (freadseek): Likewise.
27840         * modules/freadseek (Depends-on): Add fseeko.
27841         * modules/fseek (configure.ac): Set a witness.
27842         * tests/test-fflush.c (main): Use fseeko.
27843         * tests/test-fpurge.c (fseek): Disable link warning.
27844         * tests/test-freadable.c (fseek): Likewise.
27845         * tests/test-freading.c (fseek): Likewise.
27846         * tests/test-fseeko.c (fseek): Likewise.
27847         * tests/test-ftell.c (fseek): Likewise.
27848         * tests/test-ftello.c (fseek): Likewise.
27849         * tests/test-fwritable.c (fseek): Likewise.
27850         * tests/test-fwriting.c (fseek): Likewise.
27851
27852 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27853
27854         * modules/memchr (Depends-on): Drop getpagesize dependency.
27855
27856 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27857
27858         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27859         Reported by Ludovic Courtès.
27860         * build-aux/pmccabe2html: Improve example usage.
27861         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27862
27863 2009-11-06  Jim Meyering  <meyering@redhat.com>
27864
27865         do-release-commit-and-tag: New module.
27866         Automate the release-commit and tag process.
27867         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27868         * modules/do-release-commit-and-tag: New file.
27869         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27870
27871 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27872
27873         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27874         because test-select.c uses inet_pton.
27875
27876 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27877
27878         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27879         GETADDRINFO_LIB.  Bump serial number.
27880         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27881         Suggested by Eric Blake <ebb9@byu.net>.
27882
27883 2009-11-05  Eric Blake  <ebb9@byu.net>
27884
27885         strtod: detect darwin bug
27886         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27887         Reported by Leo Davis.
27888
27889         freopen-safer: new module
27890         * modules/freopen-safer: New module.
27891         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27892         * lib/freopen-safer.c (freopen_safer): New file.
27893         * lib/stdio-safer.h (freopen_safer): New declaration.
27894         * lib/stdio--.h (freopen): New override.
27895         * MODULES.html.sh (File stream based Input/Output): Mention it.
27896         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27897         freopen-safer module.
27898         * doc/posix-functions/stderr.texi (stderr): Likewise.
27899         * doc/posix-functions/stdin.texi (stdin): Likewise.
27900         * doc/posix-functions/stdout.texi (stdout): Likewise.
27901         * modules/freopen-safer-tests: New test.
27902         * tests/test-reopen-safer.c: New file.
27903
27904 2009-11-05  Jim Meyering  <meyering@redhat.com>
27905
27906         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27907         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27908
27909 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27910
27911         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27912
27913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27914
27915         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27916
27917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27918
27919         Fix link error.
27920         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27921         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27922
27923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27924
27925         * tests/test-func.c: Also test value of __func__.
27926
27927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27928
27929         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27930         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27931
27932 2009-11-05  Bruno Haible  <bruno@clisp.org>
27933
27934         Fix link error.
27935         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27936         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27937         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27938
27939 2009-11-05  Bruno Haible  <bruno@clisp.org>
27940
27941         Tests for module 'inet_pton'.
27942         * modules/inet_pton-tests: New file.
27943         * tests/test-inet_pton.c: New file.
27944
27945 2009-11-05  Bruno Haible  <bruno@clisp.org>
27946
27947         Tests for module 'inet_ntop'.
27948         * modules/inet_ntop-tests: New file.
27949         * tests/test-inet_ntop.c: New file.
27950
27951 2009-11-04  Eric Blake  <ebb9@byu.net>
27952
27953         stdlib-safer: wrap all mkstemp variants
27954         * modules/mkostemp (configure.ac): Set witness.
27955         * modules/mkostemps (configure.ac): Likewise.
27956         * modules/mkstemps (configure.ac): Likewise.
27957         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27958         (mkstemps_safer): Wrap more functions.
27959         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27960         wrapping.
27961         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27962         (mkstemps_safer): Implement the wrappers.
27963
27964         mkstemps, mkostemps: new modules
27965         * modules/mkostemps: New module.
27966         * modules/mkstemps: Likewise.
27967         * lib/mkostemps.c (mkostemps): New file.
27968         * lib/mkstemps.c (mkstemps): Likewise.
27969         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27970         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27972         * modules/stdlib (Makefile.am): Substitute them.
27973         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27974         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27975         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27976         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27977         * MODULES.html.sh (File system functions): Mention them.
27978
27979         tempname: resync from glibc
27980         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27981         same values for __GT_FILE as glibc.  Abort even when assertions
27982         are disabled.
27983         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27984         match its value otherwise.  Allow idempotent inclusion.
27985         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27986         * lib/mkostemp.c (mkostemp): Likewise.
27987         * lib/mkstemp.c (mkstemp): Likewise.
27988         * lib/tmpfile.c (tmpfile): Likewise.
27989         * NEWS: Document this.
27990
27991         utimens: fix use of futimens on older Linux
27992         * lib/utimens.c (fdutimens): Use updated, rather than original,
27993         timespec to avoid bug in older Linux kernel.
27994         Reported by Simon Josefsson.
27995
27996 2009-11-04  Bruno Haible  <bruno@clisp.org>
27997
27998         Make num_processors more flexible and consistent.
27999         * lib/nproc.h (enum nproc_query): New type.
28000         (num_processors): Add a 'query' argument.
28001         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28002         (num_processors): Add a 'query' argument. Test the value of the
28003         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28004         mingw, count the number of CPUs available for the current process.
28005         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28006         Check for sched_getaffinity and sched_getaffinity_np.
28007         * modules/nproc (Depends-on): Add c-ctype, extensions.
28008         * NEWS: Mention the change.
28009
28010 2009-11-03  Bruno Haible  <bruno@clisp.org>
28011
28012         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28013
28014 2009-11-03  Jim Meyering  <meyering@redhat.com>
28015
28016         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28017         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28018         if it is defined.
28019
28020 2009-11-02  Eric Blake  <ebb9@byu.net>
28021
28022         mktime, timegm: share common declaration
28023         * lib/mktime-internal.h: New file.
28024         * lib/mktime.c: Use it rather than open-coding a declaration.
28025         * lib/timegm.c: Likewise.
28026         * modules/mktime (Files): Ship it.
28027         * modules/timegm (Files): Likewise.
28028         Suggested by Bruno Haible.
28029
28030         test-update-copyright: update test to match script changes
28031         * tests/test-update-copyright.sh: Avoid hard-coding perl
28032         location.  Don't update *.bak created by earlier runs.
28033
28034 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28035             Simon Josefsson  <simon@josefsson.org>
28036             Bruno Haible  <bruno@clisp.org>
28037
28038         Fix link error on Solaris 8.
28039         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28040         also in libnsl. Define also INET_PTON_LIB.
28041         * modules/inet_pton (Link): New section.
28042
28043 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28044             Bruno Haible  <bruno@clisp.org>
28045
28046         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28047         * modules/inet_ntop (Link): New section.
28048         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28049
28050 2009-11-02  Eric Blake  <ebb9@byu.net>
28051
28052         maint: avoid compiler warnings in m4 macros
28053         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28055
28056 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28057
28058         * m4/pmccabe2html.m4: Remove file.
28059         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28060         function.  Change maintainer.
28061         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28062         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28063         Courtès).
28064
28065 2009-10-31  Eric Blake  <ebb9@byu.net>
28066
28067         fseeko: fix m4 regression
28068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28069         regression from 2009-10-27.
28070         Reported by Ralf Wildenhues.
28071
28072 2009-10-31  Jim Meyering  <meyering@redhat.com>
28073
28074         inttostr: aesthetics and improved (compile-time) safety
28075         Define inttype_is_signed rather than inttype_is_unsigned,
28076         since the sole use is via "#if inttype_is_signed".
28077         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28078         inttype_is_unsigned.
28079         * lib/offtostr.c (inttype_is_signed): Likewise.
28080         * lib/uinttostr.c (inttype_is_signed): Likewise.
28081         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28082         * lib/inttostr.c (inttostr): Use verify to cross-check the
28083         inttype_is_signed value and the signedness of the actual type.
28084         * modules/inttostr (Depends-on): Add verify.
28085
28086 2009-10-30  Eric Blake  <ebb9@byu.net>
28087
28088         build: avoid compiler warnings
28089         * lib/fchmodat.c (lchmod): Mark unused variables.
28090         * lib/getopt.c (_getopt_initialize): Likewise.
28091         * lib/mktime.c (__mktime_internal): Provide prototype.
28092         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28093         older gcc that do not understand #pragma GCC diagnostic.
28094         * lib/uinttostr.c (inttype_is_unsigned): Define.
28095         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28096
28097 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28098
28099         stat: fix compilation on AIX
28100         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28101         only see struct stat64.
28102
28103 2009-10-30  Eric Blake  <ebb9@byu.net>
28104
28105         exclude: make more robust
28106         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28107         rather than masking a coding bug.
28108         Suggested by Bruno Haible.
28109
28110 2009-10-30  Jim Meyering  <meyering@redhat.com>
28111
28112         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28113         Rather than putting #!/usr/bin/perl on the first line,
28114         start with a variant of what's recommended by "man perlrun" that
28115         invokes the first "perl" program from your shell's search path.
28116         * build-aux/gitlog-to-changelog: Replace #!... as above.
28117         Add a "Local Variables" perl mode setting.
28118         Prompted by a patch from Ludovic Courtès.
28119         Improved by Eric Blake.
28120         * build-aux/useless-if-before-free: Likewise.
28121         * build-aux/announce-gen: Likewise.
28122         * build-aux/update-copyright: Likewise.
28123
28124 2009-10-29  Eric Blake  <ebb9@byu.net>
28125
28126         filenamecat-lgpl: adjust clients
28127         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28128         filenamecat.
28129         * modules/renameat (Depends-on): Likewise.
28130
28131         filenamecat: split into filenamecat-lgpl
28132         * modules/filenamecat-lgpl: New module.
28133         * modules/filenamecat (Files): Move library-safe files into
28134         filenamecat-lgpl.
28135         (Depends-on): Add filenamecat-lgpl.
28136         (configure.ac): Declare witness.
28137         * lib/filenamecat.h (file_name_concat): Only declare when using
28138         GPL module.
28139         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28140         Move...
28141         * lib/filenamecat-lgpl.c: ...into new file.
28142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28143         (gl_FILE_NAME_CONCAT): Use it.
28144         * MODULES.html.sh (File system functions): Mention new module.
28145
28146         argp: avoid memory leak
28147         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28148         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28149         base_name, since the latter malloc()s and can call exit().
28150         Leak introduced 2006-07-03.
28151
28152         dirname-lgpl: adjust clients that don't need full dirname
28153         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28154         * modules/filenamecat (Depends-on): Likewise.
28155         * modules/linkat (Depends-on): Likewise.
28156         * modules/mkancesdirs (Depends-on): Likewise.
28157         * modules/mkdir (Depends-on): Likewise.
28158         * modules/openat (Depends-on): Likewise.
28159         * modules/savewd (Depends-on): Likewise.
28160         * modules/rename (Depends-on): Likewise.
28161         (License): Relax license.
28162         * modules/mkdir-tests (Depends-on): Drop progname.
28163         (Makefile.am): Delete unneeded LDADD.
28164         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28165
28166         dirname: split into dirname-lgpl
28167         * modules/dirname-lgpl: New module.
28168         * modules/dirname (Files): Move library-safe files into
28169         dirname-lgpl.
28170         (Depends-on): Add dirname-lgpl.
28171         (configure.ac): Declare witness.
28172         * modules/double-slash-root (License): Relax license.
28173         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28174         module.
28175         * lib/dirname.c (dir_len, mdir_name): Move...
28176         * lib/dirname-lgpl.c: ...into new file.
28177         * lib/basename.c (last_component, base_len): Move...
28178         * lib/basename-lgpl.c: ...into new file.
28179         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28180         (gl_DIRNAME): Use it.
28181         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28182         Mention new module.
28183         * modules/dirname-tests (Depends-on): Add progname.
28184         * tests/test-dirname.c (program_name): Delete.
28185
28186         mkdir: make safe for libraries
28187         * modules/mkdir (Depends-on): Drop xalloc.
28188         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28189         exit.
28190
28191         tests: avoid some compiler warnings
28192         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28193         literals.
28194         * tests/test-memchr.c (main): Avoid type mismatch.
28195         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28196         * tests/test-base64.c (main): Likewise.
28197         * tests/test-getdelim.c (main): Likewise.
28198         * tests/test-gethostname.c (main): Likewise.
28199         * tests/test-getline.c (main): Likewise.
28200         * tests/test-netinet_in.c (main): Likewise.
28201         * tests/test-select.c (open_server_socket, main): Likewise.
28202         * tests/test-select-stdin.c (main): Likewise.
28203         * tests/test-sockets.c (main): Likewise.
28204         * tests/test-strsignal.c (main): Likewise.
28205         * tests/test-sys_select.c (main): Likewise.
28206         * tests/test-sys_socket.c (main): Likewise.
28207         * tests/test-u64.c (main): Likewise.
28208         * tests/test-xfprintf-posix.c (main): Likewise.
28209         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28210
28211         sockets: avoid compiler warning
28212         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28213
28214         maint: detect usage(1) and other suspicious exits
28215         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28216
28217 2009-10-29  Jim Meyering  <meyering@redhat.com>
28218
28219         timespec: long-to-int truncation could make timespec_cmp malfunction
28220         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28221         a multiple of 2^32 nanoseconds as no difference.
28222
28223 2009-10-28  Jim Meyering  <meyering@redhat.com>
28224
28225         fprintftime: wrap macro code argument in "do {...} while(0)"
28226         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28227         cpy macro must be a statement that can be followed by a semicolon.
28228         Now that the else clause contains a comment and is hence longer
28229         than one line, I require curly braces.  That in turn requires
28230         that we wrap this code block in the standard do...while(0).
28231
28232         fprintftime: remove stray semicolon from previous change
28233         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28234
28235         fprintftime: avoid a warning about ignored fwrite return value
28236         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28237         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28238         that is unsafe.
28239         * modules/fprintftime (Depends-on): Add ignore-value.
28240
28241         exclude: avoid an unwarranted warning
28242         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28243
28244 2009-10-27  Eric Blake  <ebb9@byu.net>
28245
28246         fseek: avoid compilation failure when fflush is replaced
28247         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28248         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28249         module is in use.
28250         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28251         module is not in use; since REPLACE_FSEEK worked otherwise.
28252         (GNULIB_FTELLO): Likewise for ftell.
28253         Reported by Ian Beckwith and others.
28254
28255 2009-10-27  Bruno Haible  <bruno@clisp.org>
28256
28257         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28258         Reported by Jim Meyering.
28259
28260 2009-10-27  Jim Meyering  <jim@meyering.net>
28261             Bruno Haible  <bruno@clisp.org>
28262
28263         Avoid warning despite dropping the return value of fwrite.
28264         * lib/unicodeio.c: Include ignore-value.h.
28265         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28266         * modules/unicodeio (Depends-on): Add ignore-value.
28267
28268 2009-10-26  Eric Blake  <ebb9@byu.net>
28269
28270         areadlinkat: fix fallback path
28271         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28272         pointer and zero.
28273
28274 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28275
28276         Use a better IO block size for modern systems
28277         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28278         * lib/md2.c: Likewise.
28279         * lib/md4.c: Likewise.
28280         * lib/md5.c: Likewise.
28281         * lib/sha1.c: Likewise.
28282         * lib/sha256.c: Likewise.
28283         * lib/sha512.c: Likewise.
28284
28285 2009-10-22  Eric Blake  <ebb9@byu.net>
28286
28287         tests: avoid several compiler warnings
28288         * tests/test-getcwd.c (main): Avoid buffer underflow.
28289         * tests/test-getdate.c (main): String literals are not safe with
28290         putenv, so use setenv.  Declare unused argument.
28291         * modules/getdate-tests (Depends-on): Add setenv.
28292         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28293         problems with string literals in char *.
28294         * tests/test-hash.c (main): Avoid shadowing declaration.
28295         (insert_new): Treat string literals as char const *.
28296         * tests/test-getopt.h (test_getopt): Likewise.
28297         (getopt_loop): Alter types to minimize casting elsewhere.
28298         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28299         (test_getopt_long_posix): Likewise.
28300         (do_getopt_long): Add wrapper to minimize casting.
28301         * tests/test-atexit.c (clear_temp_file): Use void.
28302         * tests/test-areadlink-with-size.c (main): Declare unused
28303         arguments.
28304         * tests/test-areadlink.c (main): Likewise.
28305         * tests/test-areadlinkat-with-size.c (main): Likewise.
28306         * tests/test-areadlinkat.c (main): Likewise.
28307         * tests/test-canonicalize-lgpl.c (main): Likewise.
28308         * tests/test-canonicalize.c (main): Likewise.
28309         * tests/test-dirent-safer.c (main): Likewise.
28310         * tests/test-dirname.c (main): Likewise.
28311         * tests/test-dup2.c (main): Likewise.
28312         * tests/test-fchdir.c (main): Likewise.
28313         * tests/test-fcntl-h.c (main): Likewise.
28314         * tests/test-fcntl-safer.c (main): Likewise.
28315         * tests/test-fdopendir.c (main): Likewise.
28316         * tests/test-fdutimensat.c (main): Likewise.
28317         * tests/test-fflush.c (main): Likewise.
28318         * tests/test-filenamecat.c (main): Likewise.
28319         * tests/test-filevercmp.c (main): Likewise.
28320         * tests/test-fopen-safer.c (main): Likewise.
28321         * tests/test-fopen.c (main): Likewise.
28322         * tests/test-fpending.c (main): Likewise.
28323         * tests/test-fpurge.c (main): Likewise.
28324         * tests/test-freading.c (main): Likewise.
28325         * tests/test-fstatat.c (main): Likewise.
28326         * tests/test-fsync.c (main): Likewise.
28327         * tests/test-futimens.c (main): Likewise.
28328         * tests/test-getndelim2.c (main): Likewise.
28329         * tests/test-gettimeofday.c (main): Likewise.
28330         * tests/test-getopt.c (main): Likewise.
28331         * tests/test-i-ring.c (main): Likewise.
28332         * tests/test-inttypes.c (main): Likewise.
28333         * tests/test-link.c (main): Likewise.
28334         * tests/test-lstat.c (main): Likewise.
28335         * tests/test-math.c (main): Likewise.
28336         * tests/test-md5.c (main): Likewise.
28337         * tests/test-memchr2.c (main): Likewise.
28338         * tests/test-memrchr.c (main): Likewise.
28339         * tests/test-mkdir.c (main): Likewise.
28340         * tests/test-mkdirat.c (main): Likewise.
28341         * tests/test-mkfifoat.c (main): Likewise.
28342         * tests/test-open.c (main): Likewise.
28343         * tests/test-openat-safer.c (main): Likewise.
28344         * tests/test-openat.c (main): Likewise.
28345         * tests/test-quotearg.c (main): Likewise.
28346         * tests/test-rawmemchr.c (main): Likewise.
28347         * tests/test-readlink.c (main): Likewise.
28348         * tests/test-remove.c (main): Likewise.
28349         * tests/test-rename.c (main): Likewise.
28350         * tests/test-renameat.c (main): Likewise.
28351         * tests/test-rmdir.c (main): Likewise.
28352         * tests/test-sha1.c (main): Likewise.
28353         * tests/test-signal.c (main): Likewise.
28354         * tests/test-sigaction.c (main): Likewise.
28355         * tests/test-stat.c (main): Likewise.
28356         * tests/test-stat-time.c (main): Likewise.
28357         * tests/test-stddef.c (main): Likewise.
28358         * tests/test-stdint.c (main): Likewise.
28359         * tests/test-stdio.c (main): Likewise.
28360         * tests/test-stdlib.c (main): Likewise.
28361         * tests/test-strchrnul.c (main): Likewise.
28362         * tests/test-strerror.c (main): Likewise.
28363         * tests/test-string.c (main): Likewise.
28364         * tests/test-strtod.c (main): Likewise.
28365         * tests/test-strverscmp.c (main): Likewise.
28366         * tests/test-symlink.c (main): Likewise.
28367         * tests/test-symlinkat.c (main): Likewise.
28368         * tests/test-sys_stat.c (main): Likewise.
28369         * tests/test-sys_time.c (main): Likewise.
28370         * tests/test-time.c (main): Likewise.
28371         * tests/test-unistd.c (main): Likewise.
28372         * tests/test-unlink.c (main): Likewise.
28373         * tests/test-unlinkat.c (main): Likewise.
28374         * tests/test-utimens.c (main): Likewise.
28375         * tests/test-utimensat.c (main): Likewise.
28376         * tests/test-version-etc.c (main): Likewise.
28377         * tests/test-wchar.c (main): Likewise.
28378         * tests/test-wctype.c (main): Likewise.
28379         * tests/test-xprintf-posix.c (main): Likewise.
28380         * tests/test-posixtm.c (main): Likewise.
28381         (STREQ): Delete unused macro.
28382         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28383         shadowed variables.
28384         * tests/test-memchr.c (main): Likewise.
28385
28386 2009-10-21  Eric Blake  <ebb9@byu.net>
28387
28388         areadlinkat: avoid failure on older glibc
28389         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28390         rather than mis-comparing 0 against FUNC_RESULT of char*.
28391
28392 2009-10-21  Bruno Haible  <bruno@clisp.org>
28393
28394         * modules/stpncpy (License): Relicense under LGPLv2+.
28395         Reported by David Lutterkort <lutter@redhat.com>.
28396
28397 2009-10-20  Eric Blake  <ebb9@byu.net>
28398
28399         utimensat: work around Solaris 9 bug
28400         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28401         has trailing slash bugs.
28402         * tests/test-lutimens.h (test_lutimens): Enhance test.
28403         * tests/test-utimens.h (test_utimens): Likewise.
28404         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28405         * doc/posix-functions/utimes.texi (utimes): Likewise.
28406         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28407         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28408         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28409         * doc/posix-functions/futimens.texi (futimens): Likewise.
28410
28411         fdutimensat: new module
28412         * modules/fdutimensat: New file.
28413         * lib/fdutimensat.c (fdutimensat): Likewise.
28414         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28415         * MODULES.html.sh (File system functions): Mention module.
28416         * modules/fdutimensat-tests: New test.
28417         * tests/test-fdutimensat.c: Likewise.
28418
28419         doc: regenerate INSTALL
28420         * doc/INSTALL: Reflect recent autoconf update.
28421         * doc/INSTALL.ISO: Likewise.
28422         * doc/INSTALL.UTF-8: Likewise.
28423
28424 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28425
28426         acl: warn if ACL support is not detected
28427         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28428
28429 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28430
28431         * lib/nproc.h: Add extern "C" block for C++.
28432
28433 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28434             Bruno Haible  <bruno@clisp.org>
28435
28436         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28437         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28438         * doc/posix-functions/isalpha.texi: Likewise.
28439         * doc/posix-functions/isblank.texi: Likewise.
28440         * doc/posix-functions/iscntrl.texi: Likewise.
28441         * doc/posix-functions/isdigit.texi: Likewise.
28442         * doc/posix-functions/isgraph.texi: Likewise.
28443         * doc/posix-functions/islower.texi: Likewise.
28444         * doc/posix-functions/isprint.texi: Likewise.
28445         * doc/posix-functions/ispunct.texi: Likewise.
28446         * doc/posix-functions/isspace.texi: Likewise.
28447         * doc/posix-functions/isupper.texi: Likewise.
28448         * doc/posix-functions/isxdigit.texi: Likewise.
28449
28450 2009-10-18  Bruno Haible  <bruno@clisp.org>
28451
28452         Tests for module 'isblank'.
28453         * modules/isblank-tests: New file.
28454         * tests/test-isblank.c: New file.
28455
28456         New module 'isblank'.
28457         * lib/isblank.c: New file.
28458         * m4/isblank.m4: New file.
28459         * modules/isblank: New file.
28460         * doc/posix-functions/isblank.texi: Mention the new module.
28461
28462 2009-10-18  Bruno Haible  <bruno@clisp.org>
28463
28464         New module 'ctype'.
28465         * lib/ctype.in.h: New file.
28466         * m4/ctype.m4: New file.
28467         * modules/ctype: New file.
28468         * doc/posix-headers/ctype.texi: Mention the new module.
28469
28470 2009-10-18  Jim Meyering  <meyering@redhat.com>
28471
28472         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28473         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28474         right after its initialization, rather than farther down.
28475         Keeping these in close proximity makes it easier to ensure
28476         that each such variable is initialized.  E.g.,
28477
28478             LIB_CLOCK_GETTIME=
28479             AC_SUBST([LIB_CLOCK_GETTIME])
28480
28481         This change also increments these serial numbers.
28482         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28483         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28485
28486 2009-10-18  Bruno Haible  <bruno@clisp.org>
28487
28488         Don't let environment variables perturb build.
28489         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28490         (gl_PREREQ_GETHRXTIME): ... not here.
28491
28492 2009-10-18  Bruno Haible  <bruno@clisp.org>
28493
28494         Avoid symlink attack in localcharset module.
28495         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28496         (O_NOFOLLOW): Define fallback.
28497         (get_charset_aliases): Don't open the file if it is a symbolic link.
28498         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28499         gl_FCNTL_H.
28500         (gl_FCNTL_H): Require it.
28501         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28502         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28503         Reported by Fergal Glynn <fglynn@veracode.com>.
28504
28505 2009-10-18  Bruno Haible  <bruno@clisp.org>
28506
28507         Implement nproc for mingw.
28508         * lib/nproc.c: Include <windows.h>
28509         (num_processors): On native Windows platforms, try GetSystemInfo.
28510
28511 2009-10-18  Bruno Haible  <bruno@clisp.org>
28512
28513         Implement nproc for IRIX.
28514         * lib/nproc.c: Include <sys/sysmp.h>.
28515         (num_processors): On IRIX systems, try sysmp.
28516         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28517
28518 2009-10-18  Bruno Haible  <bruno@clisp.org>
28519
28520         Implement nproc for HP-UX.
28521         * lib/nproc.c: Include <sys/pstat.h>
28522         (num_processors): On HP-UX systems, try pstat_getdynamic.
28523         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28524         pstat_getdynamic.
28525
28526 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28527             Bruno Haible  <bruno@clisp.org>
28528
28529         Implement nproc for NetBSD, OpenBSD.
28530         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28531         (ARRAY_SIZE): New macro.
28532         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28533         * m4/nproc.m4: New file.
28534         * modules/nproc (Files): Add m4/nproc.m4.
28535         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28536         (Makefile.am): Instead, augment lib_SOURCES.
28537
28538 2009-10-18  Bruno Haible  <bruno@clisp.org>
28539
28540         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28541         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28542         sys/param.h.
28543
28544 2009-10-16  Eric Blake  <ebb9@byu.net>
28545
28546         utimensat: new module
28547         * modules/utimensat: New file.
28548         * lib/utimensat.c (utimensat): Likewise.
28549         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28550         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28551         so we can work around Linux bugs.
28552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28553         * modules/sys_stat (Makefile.am): Substitute them.
28554         * lib/sys_stat.in.h (utimensat): Declare it.
28555         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28557         * modules/utimensat-tests: New test.
28558         * tests/test-utimensat.c: Likewise.
28559
28560         utimens: let lutimens work on non-symlinks
28561         * lib/utimens.c (lutimens): Fall back to utimens rather than
28562         failing with ENOSYS, when file is not a symlink.
28563         (utimens): Reduce redirection.
28564         * tests/test-lutimens.h (test_lutimens): Update test to cover
28565         non-symlinks.
28566         * tests/test-utimens.h (test_utimens): Update test to cover
28567         symlinks.
28568         * tests/test-utimens.c (main): Update caller.
28569
28570         utimens: cache whether utimensat syscall works
28571         * lib/utimens.c (utimensat_works_really): New cache variable.
28572         (fdutimens, lutimens): Use it to avoid failing syscall.
28573
28574         test-stat-time, test-utimens: improve portability
28575         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28576         ext4 on alpha, and for cygwin.
28577         * tests/test-utimens-common.h: New file.
28578         (nap): Factor delays into single function.
28579         * tests/test-lutimens.h (test_lutimens): Use new header.
28580         * tests/test-futimens.h (test_futimens): Likewise.
28581         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28582         timestamps to occur from same machine, as was done previously for
28583         test_utimens.
28584         * modules/utimens-tests (Files): Ship new file.
28585         * modules/futimens-tests (Files): Likewise.
28586         Reported in part by Jim Meyering.
28587
28588         sys_stat: sort replacement declarations
28589         * lib/sys_stat.in.h: Sort declarations.
28590         * lib/futimens.c (futimens): Fix typo.
28591
28592 2009-10-15  Jim Meyering  <meyering@redhat.com>
28593
28594         don't let environment settings perturb build
28595         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28596         could cause a configure-time and/or build-time malfunction.
28597         Typically, a configure-time function-in-library test is performed
28598         via code like this:
28599
28600           LIB_VAR=
28601           AC_SUBST([LIB_VAR])
28602           prefix_saved_LIBS=$LIBS
28603             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28604                        [test "$ac_cv_search_FUNC" = "none required" ||
28605                         LIB_VAR=$ac_cv_search_FUNC])
28606           LIBS=$prefix_saved_LIBS
28607
28608         However, in each of the files affected by this change, the LIB_VAR=
28609         initialization was omitted.  Thus, when set in the environment, its
28610         value would propagate into generated Makefiles when FUNC is not found
28611         in LIB_NAME.
28612         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28615
28616 2009-10-14  Eric Blake  <ebb9@byu.net>
28617
28618         fchdir: avoid infinite recursion in mingw
28619         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28620         recursing.
28621
28622         test-stat-time: port to mingw
28623         * tests/test-stat-time.c (force_unlink): Return a value.
28624         (test_ctime) [W32]: Fix compilation error.
28625         (nap): Don't call usleep with too large an argument.  Use
28626         force_unlink.
28627         * doc/pastposix-functions/usleep.texi (usleep): Document the
28628         portability issue.
28629
28630 2009-10-13  Jim Meyering  <meyering@redhat.com>
28631
28632         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28633         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28634         * modules/pipe-filter-ii: Likewise.
28635         * modules/sys_socket-tests: Likewise.
28636         * modules/tsearch-tests: Likewise.
28637         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28638         (check): Depend on it.
28639
28640 2009-10-12  Eric Blake  <ebb9@byu.net>
28641
28642         utimens-tests: port to NFS file systems
28643         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28644         comparisons to avoid spurious failures from timestamp drift
28645         between NFS machines.
28646
28647 2009-10-12  Eric Blake  <ebb9@byu.net>
28648
28649         stat-time-tests: minor cleanups
28650         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28651         * tests/test-stat-time.c (nap): Separate assignment from call.
28652         Suggested by Paolo Bonzini and Bruno Haible.
28653
28654         sys_stat: guarantee struct timespec
28655         * lib/sys_stat.in.h (includes): Always include <time.h>
28656         * modules/sys_stat (Depends-on): Add time.
28657         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28658         mode_t permission values.
28659         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28660         get at subsecond timestamps.
28661
28662 2009-10-10  Eric Blake  <ebb9@byu.net>
28663
28664         futimens: new module
28665         * modules/futimens: New file.
28666         * lib/futimens.c (futimens): Likewise.
28667         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28668         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28669         we can work around Linux bugs.
28670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28671         * modules/sys_stat (Makefile.am): Substitute them.
28672         * lib/sys_stat.in.h (futimens): Declare it.
28673         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28674         * doc/posix-functions/futimens.texi (futimens): Likewise.
28675         * modules/futimens-tests: New test.
28676         * tests/test-futimens.c: Likewise.
28677
28678         utimens: introduce fdutimens
28679         * lib/utimens.h (fdutimens): New prototype.
28680         * lib/utimens.c (gl_futimens): Move guts...
28681         (fdutimens): ...to new interface.
28682         * tests/test-utimens.c (do_fdutimens): Use it.
28683
28684         utimens: add UTIME_NOW and UTIME_OMIT support
28685         * lib/utimens.c (validate_timespec, update_timespec): New helper
28686         functions.
28687         (gl_futimens, lutimens): Use them.
28688         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28689         stdbool, sys_stat.
28690         (Link): Mention resulting library dependency.
28691         * modules/utimecmp (Link): Likewise.
28692         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28693         (Makefile.am): Pick up library dependency.
28694         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28695         definition.
28696         * tests/test-sys_stat.c: Test the definitions.
28697         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28698         * NEWS: Document library dependency.
28699
28700         utimecmp: support symlink timestamps
28701         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28702         hashing when possible.  Use pathconf when available.
28703         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28704         * modules/utimecmp (Depends-on): Add lstat.
28705
28706         utimens: add lutimens interface
28707         * lib/utimens.c (lutimens): New function.
28708         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28709         * lib/utimens.h (lutimens): Declare new interface.
28710         * tests/test-utimens.c (main): Enhance test.
28711         * tests/test-lutimens.h (test_lutimens): New file.
28712         * modules/utimens-tests (Files): Distribute it.
28713         (Depends-on): Add symlink.
28714         (configure.ac): Check for usleep.
28715
28716         utimens: validate futimens usage
28717         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28718         fewer syscalls on failure later on.  Avoid compiler warning on
28719         mingw.
28720         * modules/utimens (Depends-on): Add dup2.
28721
28722         utimens: add test
28723         * modules/utimens-tests: New test.
28724         * tests/test-utimens.h: New file.
28725         * tests/test-futimens.h: Likewise.
28726         * tests/test-utimens.c: Likewise.
28727
28728         doc: mention timestamp portability issues
28729         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28730         instead.
28731         * doc/posix-functions/utime.texi (utime): Likewise.
28732         * doc/posix-functions/utimes.texi (utimes): Likewise.
28733         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28734         instead.
28735         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28736         module.
28737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28738         Mention weakness with symlink timestamps.
28739         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28740         to utimensat/futimens instead.
28741         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28742
28743         test-dup2: enhance test
28744         * tests/test-dup2.c (main): Also check AT_FDCWD.
28745
28746         test-stat-time: avoid more spurious failures
28747         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28748         xfs; and avoid race if the two timestamps cross quantization edge.
28749
28750         relocatable: prefer 'file system' over 'filesystem'
28751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28752         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28753         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28754         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28755         * lib/relocatable.c (compute_curr_prefix): Likewise.
28756
28757 2009-10-10  Jim Meyering  <meyering@redhat.com>
28758
28759         stat-time-tests: check for the usleep function
28760         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28761
28762 2009-10-10  Bruno Haible  <bruno@clisp.org>
28763
28764         * modules/xnanosleep: Put the Link section after the Include section.
28765
28766 2009-10-09  Eric Blake  <ebb9@byu.net>
28767
28768         dup2: work around FreeBSD 6.1 bug
28769         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28770         * doc/posix-functions/dup2.texi (dup2): Document it.
28771         Reported by Nelson H. F. Beebe and Jim Meyering.
28772
28773         test-stat-time: port to buggy NFS clients
28774         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28775         (test_ctime): Also skip test if mtime and ctime are skewed.
28776
28777         maint: prefer 'file system' over 'filesystem'
28778         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28779         * doc/posix-functions/lstat.texi (lstat): Likewise.
28780         * lib/file-has-acl.c (file_has_acl): Likewise.
28781         * lib/fwriteerror.c [TEST]: Likewise.
28782         * tests/test-areadlink.h (test_areadlink): Likewise.
28783         * tests/test-areadlinkat-with-size.c (main): Likewise.
28784         * tests/test-areadlinkat.c (main): Likewise.
28785         * tests/test-canonicalize-lgpl.c (main): Likewise.
28786         * tests/test-canonicalize.c (main): Likewise.
28787         * tests/test-fstatat.c (main): Likewise.
28788         * tests/test-linkat.c (main): Likewise.
28789         * tests/test-lstat.h (test_lstat_func): Likewise.
28790         * tests/test-mkdir.h (test_mkdir): Likewise.
28791         * tests/test-readlink.h (test_readlink): Likewise.
28792         * tests/test-remove.c (main): Likewise.
28793         * tests/test-rename.h (test_rename): Likewise.
28794         * tests/test-renameat.c (main): Likewise.
28795         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28796         * tests/test-symlink.h (test_symlink): Likewise.
28797         * tests/test-symlinkat.c (main): Likewise.
28798         * tests/test-unlink.h (test_unlink_func): Likewise.
28799         * tests/test-unlinkat.c (main): Likewise.
28800
28801         maint: make realtime library usage explicit
28802         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28803         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28804         * modules/settime (Link): Likewise.
28805         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28806
28807         test-stat-time: speed up execution
28808         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28809         warning on mingw.
28810         (nap): New helper function.
28811         (prepare_test): Use it to reduce sleep time.
28812         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28813         execution.
28814         * modules/stat-time-tests (configure.ac): Check for usleep.
28815
28816 2009-10-09  Jim Meyering  <meyering@redhat.com>
28817
28818         selinux-h: always use getfilecon wrappers
28819         * lib/getfilecon.c: New file.
28820         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28821         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28822         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28823         (fgetfilecon): Provide a stub.
28824         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28825         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28826         file unconditionally.
28827         When <selinux/selinux.h> is found, arrange to use wrappers.
28828         * modules/selinux-h (Files): Add getfilecon.c.
28829         (Makefile.am): Substitute include-next-related bits
28830         into the now-always-generated selinux/selinux.h file.
28831         * doc/glibc-functions/lgetfilecon.texi: New file.
28832         * doc/glibc-functions/fgetfilecon.texi: New file.
28833         * doc/glibc-functions/getfilecon.texi: New file.
28834         * doc/glibc-functions/getfilecon-desc.texi: New file.
28835         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28836         which to pull in the new files.
28837         * MODULES.html.sh (Misc): Add selinux-h.
28838
28839 2009-10-08  Jim Meyering  <meyering@redhat.com>
28840
28841         unistd: fix comment typo
28842         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28843
28844 2009-10-08  Eric Blake  <ebb9@byu.net>
28845
28846         areadlink: use SIZE_MAX consistently
28847         * modules/areadlink (Depends-on): Add stdint.
28848         * modules/areadlink-with-size (Depends-on): Likewise.
28849         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28850         gives NULL; drop sys/types, since unistd gives size_t; and add
28851         stdint for SIZE_MAX.
28852         (SIZE_MAX): Rely on headers.
28853         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28854         and add stdint.
28855         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28856         (SIZE_MAX): Likewise.
28857         (INITIAL_BUF_SIZE): Turn into enum.
28858         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28859
28860 2009-10-08  Jim Meyering  <meyering@redhat.com>
28861
28862         areadlinkat: avoid compilation failure
28863         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28864         Fix typo in comment.
28865
28866 2009-10-07  Eric Blake  <ebb9@byu.net>
28867
28868         areadlinkat-with-size: new module
28869         * modules/areadlinkat-with-size: New module.
28870         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28871         * lib/areadlink.h (areadlinkat): Declare it.
28872         * MODULES.html.sh (File system functions): Mention it.
28873         * modules/areadlinkat-with-size-tests: New test.
28874         * tests/test-areadlinkat-with-size.c: New file.
28875
28876         xreadlinkat: new module
28877         * modules/xreadlinkat: New module.
28878         * lib/xreadlinkat.c (xreadlinkat): New file.
28879         * lib/xreadlink.h (xreadlinkat): Declare it.
28880         * MODULES.html.sh (File system functions): Mention it.
28881
28882         areadlinkat: new module
28883         * lib/at-func.c (FUNC_FAIL): New define.
28884         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28885         * modules/areadlinkat: New module.
28886         * lib/linkat.c (areadlinkat): Move...
28887         * lib/areadlinkat.c (areadlinkat): ...to new file.
28888         * lib/areadlink.h (areadlinkat): Declare it.
28889         * modules/linkat (Depends-on): Add areadlinkat.
28890         * MODULES.html.sh (File system functions): Mention it.
28891         * modules/areadlinkat-tests: New test.
28892         * tests/test-areadlinkat.c: New file.
28893
28894         areadlink, areadlink-with-size: add tests
28895         * modules/areadlink-tests: New test.
28896         * modules/areadlink-with-size-tests: Likewise.
28897         * tests/test-areadlink.h: New file.
28898         * tests/test-areadlink.c: Likewise.
28899         * tests/test-areadlink-with-size.c: Likewise.
28900
28901         maint: minor cleanups
28902         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28903         _UNUSED_PARAMETER_ instead.
28904         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28905         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28906         * modules/linkat-tests (Files): Distribute test-link.h.
28907
28908         openat, utimens: whitespace cleanup
28909         * lib/openat.c: Prefer space throughout, rather than mix of 8
28910         spaces vs. tabs.
28911         * lib/at-func.c: Likewise.
28912         * lib/utimens.c: Likewise.
28913
28914         openat: avoid using wrong fd
28915         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28916         working directory chooses same fd.
28917         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28918
28919         mkdir, mkdirat: fix cygwin 1.5.x bug
28920         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28922         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28923         bug.
28924         (gl_PREREQ_MKDIR): Delete unused macro.
28925         * modules/mkdir (Files): Track file rename.
28926         (configure.ac): Update macro name.
28927         * modules/openat (Depends-on): Add mkdir.
28928         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28929
28930         mkdir, mkdirat: add tests
28931         * modules/mkdir-tests: New test.
28932         * tests/test-mkdir.h: New file.
28933         * tests/test-mkdir.c: Likewise.
28934         * tests/test-mkdirat.c: Likewise.
28935         * modules/openat-tests (Files): Add new files.
28936         (Makefile.am): Run new test.
28937
28938 2009-10-06  Eric Blake  <ebb9@byu.net>
28939
28940         doc: tweak *at function documentation
28941         * doc/posix-functions/faccessat.texi (faccessat): Mention
28942         known issue with replacement.
28943         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28944         * doc/posix-functions/linkat.texi (linkat): Likewise.
28945         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28946         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28947         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28948         * doc/posix-functions/renameat.texi (renameat): Likewise.
28949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28950
28951         openat: fix GNU/Hurd bug in unlinkat
28952         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28953         broken.
28954         * doc/posix-functions/unlink.texi (unlink): Document this.
28955         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28956
28957         fdopendir: fix GNU/Hurd bug
28958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28959         allowing non-directory fds.
28960         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28962         * modules/dirent (Makefile.am): Substitute it.
28963         * lib/dirent.in.h (fdopendir): Declare replacement.
28964         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28965         * tests/test-fdopendir.c (main): Test something other than
28966         /dev/null, since on Hurd that behaves like a directory.
28967
28968         test-symlink: port to GNU/Hurd
28969         * tests/test-symlink.h (test_symlink): Relax expected errno.
28970
28971         doc: tweak more cygwin information
28972         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28973         now compatible with glibc.
28974         * doc/posix-functions/getopt.texi (getopt): Likewise.
28975
28976         getopt-gnu: add another test
28977         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28978         guarantee behavior relied on by m4.
28979         * tests/test-getopt.c (main): Use it.
28980         * modules/getopt-posix-tests (Depends-on): Add setenv.
28981         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28982
28983         getopt: fix compilation on darwin
28984         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28985         include.
28986         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28987         Reported by Ludovic Courtès.
28988
28989 2009-10-06  Bruno Haible  <bruno@clisp.org>
28990
28991         * modules/size_max (Description): Discourage its use.
28992         Reported by Simon Josefsson.
28993
28994 2009-10-06  Jim Meyering  <meyering@redhat.com>
28995
28996         linkat: avoid compilation failure
28997         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28998
28999 2009-10-05  Eric Blake  <ebb9@byu.net>
29000
29001         linkat: support Linux 2.6.17
29002         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29003         linkat on Linux, but allow cache variable override.
29004         * lib/linkat.c (rpl_linkat): Define override.
29005         * modules/linkat (Depends-on): Add symlinkat.
29006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29007         * modules/unistd (Makefile.am): Substitute it.
29008         * lib/unistd.in.h (linkat): Declare replacement.
29009         Reported by Pádraig Brady.
29010
29011         quotearg: port test to systems with C.UTF-8 locale
29012         * tests/test-quotearg.c (struct result_strings): Add another
29013         member, differentiating between C.ASCII and C.UTF-8 handling.
29014         (compare_strings): Add parameter.
29015         (main): Adjust all callers.
29016
29017         getopt: avoid clash with FreeBSD _getopt_internal
29018         * lib/getopt.in.h (_getopt_internal): Override the name.
29019         * lib/getopt_int.h (includes): Pick up any overrides.
29020         Reported by Reuben Thomas.
29021
29022         hash: allow C89 compilation
29023         * lib/hash.c (check_tuning): Move declaration before statement.
29024         Reported by Reuben Thomas.
29025
29026 2009-10-05  Karl Berry  <karl@gnu.org>
29027
29028         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29029
29030 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29031             Bruno Haible  <bruno@clisp.org>
29032
29033         * lib/uname.c (uname): Use a table-driven algorithm to compute
29034         Windows NT versions.
29035
29036 2009-10-04  Bruno Haible  <bruno@clisp.org>
29037
29038         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29039         program_invocation_short_name.
29040         * modules/progname (configure.ac): Test for presence of
29041         program_invocation_short_name.
29042         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29043
29044 2009-10-04  Bruno Haible  <bruno@clisp.org>
29045
29046         * lib/progname.c (set_program_name): Fix comment.
29047         Reported by Jim Meyering.
29048
29049 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29050             Bruno Haible  <bruno@clisp.org>
29051
29052         * lib/uname.c: Include <string.h>.
29053         (uname): Do only one call to GetVersionEx in the common case.
29054
29055 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29056             Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29059         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29060         (uname): Add support for Windows CE and various non-x86 CPU types.
29061
29062 2009-10-03  Bruno Haible  <bruno@clisp.org>
29063
29064         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29065         invocation to tests/configure.ac.
29066         Reported by Ian Beckwith <ianb@erislabs.net>.
29067
29068 2009-10-02  Eric Blake  <ebb9@byu.net>
29069
29070         fchdir: avoid compiler warning
29071         * lib/fchdir.c (canonicalize_file_name)
29072         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29073
29074         test-open: support mingw errno values
29075         * tests/test-open.h (test_open): Relax test.
29076         * tests/test-fopen.h (test_fopen): Likewise.
29077         * tests/test-openat-safer.c (main): Likewise.
29078
29079         open: fix opening directory on mingw
29080         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29081
29082         test-open: on GNU/Hurd, /dev/null is a directory
29083         * tests/test-fopen.h (main): Rename...
29084         (test_fopen): ...to this.  Use a guaranteed non-directory when
29085         confirming open behavior on trailing slash.
29086         * tests/test-openat-safer.c (main): Likewise.
29087         * tests/test-open.h (main): Likewise....
29088         (test_open): ...to this.
29089         * tests/test-fopen.c (main): Adjust caller.
29090         * tests/test-fopen-safer.c (main): Likewise.
29091         * tests/test-open.c (main): Likewise.
29092         * tests/test-fcntl-safer.c (main): Likewise.
29093         Reported by Samuel Thibault.
29094
29095         rename, fchdir: don't ignore chdir failure
29096         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29097         * lib/rename.c (rpl_rename) [W32]: Likewise.
29098         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29099         an empty destination directory if source cannot be renamed,
29100         although there is still possibility for failure.
29101         * doc/posix-functions/rename.texi (rename): Document the race.
29102         Reported by Jim Meyering.
29103
29104         maint: cleanup whitespace in recent commits
29105         * lib/rename.c (rpl_rename): Remove tabs.
29106         * tests/test-link.h (test_link): Likewise.
29107         * lib/fchdir.c (get_name): Likewise.
29108         Reported by Jim Meyering.
29109
29110 2009-10-02  Ben Pfaff  <blp@gnu.org>
29111
29112         relocatable-prog-wrapper: Add missing dependency on
29113         double-slash-root.
29114         * modules/relocatable-prog-wrapper: Add dependency.
29115         Reported by Ian Beckwith <ianb@erislabs.net>.
29116
29117 2009-10-02  Eric Blake  <ebb9@byu.net>
29118
29119         renameat: fix Solaris bugs
29120         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29121         needed fixing.
29122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29123         * modules/stdio (Makefile.am): Substitute it.
29124         * lib/stdio.in.h (renameat): Declare replacement.
29125         * lib/renameat.c (rpl_renameat): Implement fix.
29126
29127         renameat: new module
29128         * modules/renameat: New file.
29129         * lib/renameat.c (renameat): Likewise.
29130         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29132         * modules/stdio (Makefile.am): Substitute them.
29133         * lib/stdio.in.h (renameat): Declare it.
29134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29135         * doc/posix-functions/renameat.texi (renameat): Likewise.
29136         * modules/renameat-tests: New test.
29137         * tests/test-renameat.c: Likewise.
29138
29139         rename: fix mingw bugs
29140         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29141         directory overwrite bugs.
29142
29143         rename: fix another cygwin 1.5 bug
29144         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29145         checks.
29146         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29147         unnecessary cygwin workarounds.  Also work around bug with moving
29148         full directory onto an empty one.
29149         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29150
29151         rename-dest-slash: merge into rename module
29152         * modules/rename-dest-slash (Status): Mark obsolete.
29153         (Depends-on): Add rename.
29154         (Files): Let rename do it all.
29155         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29156         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29157         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29158         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29159         * lib/rename.c (rpl_rename): Update comments.
29160
29161         rename: fix cygwin 1.5.x bugs
29162         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29163         * lib/rename.c (rpl_rename): Work around them.
29164         * modules/rename (Depends-on): Add same-inode.
29165
29166         rename: fix Solaris 10 bug
29167         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29168         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29169         was the only bug.
29170
29171         rename: fix Solaris 9 bug
29172         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29173         on non-directory.  Avoid calling exit.
29174         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29175         strdup.
29176         * modules/rename-tests (Depends-on): Drop lstat.
29177         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29178         (gl_PREREQ_RENAME): Delete unused macro.
29179
29180         rename-dest-slash: fix NetBSD bug
29181         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29182         links.
29183         * modules/rename-dest-slash (Depends-on): Add same-inode.
29184
29185         rename-tests: new test, exposes several platform bugs
29186         * modules/rename-tests: New file.
29187         * tests/test-rename.h: Likewise.
29188         * tests/test-rename.c: Likewise.
29189         * doc/posix-functions/rename.texi (rename): Improve documentation,
29190         including bugs that will eventually be fixed in gnulib.
29191
29192 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29193
29194         * lib/uname.c: Include <stdlib.h>
29195         (uname): Assume version info is available.
29196
29197 2009-10-02  Jim Meyering  <meyering@redhat.com>
29198
29199         gnu-web-doc-update: correct --help output
29200         * build-aux/gnu-web-doc-update: Make --help output relevant.
29201
29202         gnu-web-doc-update: add standard options
29203         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29204
29205         gnu-web-doc-update: New module.
29206         Use this script to automatically update the on-line web documentation
29207         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29208         * modules/gnu-web-doc-update: New file, from coreutils.
29209         * build-aux/gnu-web-doc-update: New script.
29210
29211 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29212
29213         link: LoadLibrary is not needed.
29214         * lib/link.c: Use GetModuleHandle.
29215
29216 2009-10-01  Eric Blake  <ebb9@byu.net>
29217
29218         getopt: bump serial number
29219         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29220         change.
29221
29222         tests: tighten link, rmdir, and remove tests
29223         * tests/test-link.h (includes): No need to use <config.h> here.
29224         Clean up if directory hard link was created, otherwise test for
29225         trailing '.'.
29226         * tests/test-linkat.c (main): Simplify.
29227         * tests/test-remove.c (main): Enhance test for trailing '.'.
29228         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29229
29230 2009-10-01  Jim Meyering  <meyering@redhat.com>
29231
29232         maint.mk: requiring "make major" was annoying, for a "minor" release.
29233         What is intended is "stable", to contrast with alpha and beta,
29234         so require "make stable", not "make major".
29235         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29236         (get_tool_versions): Likewise.
29237         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29238
29239 2009-09-30  Ben Pfaff  <blp@gnu.org>
29240
29241         Fix broken build of replacement for Windows tmpfile().
29242         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29243         flags argument added along with the 'mkostemp' module.
29244
29245 2009-09-28  Bruno Haible  <bruno@clisp.org>
29246
29247         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29248         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29249         to 'remove_elt'.
29250         (gl_list_remove): Update.
29251         * lib/gl_list.c (gl_list_remove): Update.
29252         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29253         to 'remove_elt'.
29254         (gl_oset_remove): Update.
29255         * lib/gl_list.c (gl_oset_remove): Update.
29256         Reported by Eric Blake.
29257
29258 2009-09-28  Eric Blake  <ebb9@byu.net>
29259
29260         doc: mention yet more cygwin 1.7 status
29261         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29262         cygwin.
29263         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29264         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29265
29266         argp: fix test failure
29267         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29268         that are not upper-case.  Pass correct range to tolower.
29269
29270 2009-09-27  Jim Meyering  <meyering@redhat.com>
29271
29272         test-yesno: work around sparc-dash here-document infelicity
29273         Without this change, the literal \177 byte in a here document
29274         would make dash 0.5.5.1-3 access uninitialized memory.
29275         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29276         Instead, use a marker, "@", and filter through tr to create the desired
29277         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29278
29279 2009-09-27  Bruno Haible  <bruno@clisp.org>
29280
29281         Disable untested support for new flavours of ACLs on AIX.
29282         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29283         progress.
29284         * lib/set-mode-acl.c (qset_acl): Likewise.
29285
29286 2008-12-07  Bruno Haible  <bruno@clisp.org>
29287
29288         Add support for new flavours of ACLs on AIX. (Untested.)
29289         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29290         (file_has_acl): Add support for newer AIX.
29291         * lib/set-mode-acl.c (qset_acl): Likewise.
29292         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29293         Rainer Tammer <tammer@tammer.net>.
29294
29295 2009-09-26  Eric Blake  <ebb9@byu.net>
29296
29297         argp: fix compilation of getopt
29298         * lib/getopt.in.h (includes): Use different guard than glibc.
29299         Reported by Sergey Poznyakoff.
29300
29301         doc: mention more cygwin 1.7 status
29302         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29303         bug.
29304         * doc/posix-functions/execl.texi (execl): Likewise.
29305         * doc/posix-functions/execle.texi (execle): Likewise.
29306         * doc/posix-functions/execlp.texi (execlp): Likewise.
29307         * doc/posix-functions/execv.texi (execv): Likewise.
29308         * doc/posix-functions/execve.texi (execve): Likewise.
29309         * doc/posix-functions/execvp.texi (execvp): Likewise.
29310         * doc/glibc-functions/canonicalize_file_name.texi
29311         (canonicalize_file_name): Cygwin 1.7 now provides this.
29312         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29313         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29314         on AT_SYMLINK_NOFOLLOW.
29315
29316 2009-09-24  Eric Blake  <ebb9@byu.net>
29317
29318         test-linkat: make test more robust
29319         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29320
29321         getopt: fix inclusion guards for cygwin
29322         * modules/getopt-posix (Depends-on): Add include-next.
29323         (Makefile.am): Substitute more items in replacement header.
29324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29325         <getopt.h>.
29326         * lib/getopt.in.h (includes): Use split inclusion guard, and
29327         prefer <getopt.h> over include <unistd.h> when one is present.
29328         (option): Also override name of 'struct option'.
29329
29330         same-inode: revert prior change; it is not yet ready
29331         * NEWS: Undo mention of this change.
29332         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29333         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29334         * lib/cycle-check.c (cycle_check): Likewise.
29335         * lib/same.c (same_name): Likewise.
29336         * lib/at-func2.c (at_func2): Likewise.
29337
29338 2009-09-23  Eric Blake  <ebb9@byu.net>
29339
29340         linkat: new module
29341         * modules/linkat: New file.
29342         * lib/at-func2.c (at_func2): Likewise.
29343         * lib/linkat.c (linkat): Likewise.
29344         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29345         * lib/openat-priv.h (at_func2): Add declaration.
29346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29347         * modules/unistd (Makefile.am): Substitute them.
29348         * lib/unistd.in.h (linkat): Declare it.
29349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29350         * doc/posix-functions/linkat.texi (linkat): Likewise.
29351         * doc/posix-functions/link.texi (link): Tweak wording.
29352         * tests/test-link.c (main): Move guts...
29353         * tests/test-link.h (test_link): ...into new file.
29354         * modules/linkat-tests: New test.
29355         * tests/test-linkat.c: Likewise.
29356         * modules/link-tests (Files): Ship new file.
29357         (Depends-on): Add stdbool.
29358
29359         dirname: add library-safe mdir_name
29360         * lib/dirname.h (mdir_name): New prototype.
29361         * lib/dirname.c (dir_name): Move guts...
29362         (mdir_name): ...to new function that avoids xalloc_die.
29363
29364         fchdir: another mingw fix
29365         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29366         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29367         on mingw (where it has not yet been ported), and make it optional
29368         elsewhere.
29369         (_gl_register_fd): Use it.
29370
29371         same-inode: make SAME_INODE tri-state, to port to mingw
29372         * NEWS: Mention this change.
29373         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29374         st_ino always being 0.
29375         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29376         * lib/cycle-check.c (cycle_check): Likewise.
29377         * lib/same.c (same_name): Likewise.
29378
29379         lstat: avoid mingw compilation error
29380         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29381         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29382         lstat ourselves.
29383         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29384         was adequate.
29385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29386         the checks for lstat.
29387         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29388
29389         link: fix test failure on Solaris 9
29390         * lib/link.c (rpl_link): Don't assume link will catch bogus
29391         trailing slash on source.
29392
29393         test-symlinkat: enhance test
29394         * tests/test-readlink.c (main): Move guts...
29395         * tests/test-readlink.h (test_readlink): ...into new file.
29396         * tests/test-symlink.c (main): Move guts...
29397         * tests/test-symlink.h (test_symlink): ...into new file.
29398         * tests/test-symlinkat.c (main): Use new files for further
29399         coverage.
29400         (do_symlink, do_readlink): New helper functions.
29401         * modules/symlink-tests (Files): Ship new file.
29402         (Depends-on): Add stdbool.
29403         * modules/readlink-tests (Files): Ship new file.
29404         (Depends-on): Add stdbool.
29405         * modules/symlinkat-tests (Files): Use new files.
29406
29407 2009-09-23  Eric Blake  <ebb9@byu.net>
29408
29409         readlink: document portability issue with symlink length
29410         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29411         systems have bogus st_size on symlinks, and mention the
29412         areadlink-with-size module.
29413         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29414         * doc/posix-functions/readlink.texi (readlink): Mention the
29415         areadlink module, and ERANGE failure.
29416         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29417         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29418
29419         readlink: fix Solaris 9 bug with trailing slash
29420         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29421         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29422         * doc/posix-functions/readlink.texi (readlink): Document this.
29423         * modules/readlink-tests: New test.
29424         * tests/test-readlink.c: Likewise.
29425
29426         readlink: fix cygwin 1.5.x bug with return type
29427         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29428         * lib/unistd.in.h (readlink): Use ssize_t.
29429         * lib/readlink.c (readlink): Likewise.
29430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29431         * modules/unistd (Makefile.am): Substitute it.
29432         * lib/unistd.in.h (readlink): Declare replacement.
29433         * doc/posix-functions/readlink.texi (readlink): Document this.
29434
29435         symlink: use throughout gnulib
29436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29437         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29438         symlink is not used.
29439         * modules/symlinkat (Depends-on): Add symlink.
29440         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29441         * modules/canonicalize-tests (Depends-on): Likewise.
29442         * modules/lstat-tests (Depends-on): Likewise.
29443         * modules/openat-tests (Depends-on): Likewise.
29444         * modules/remove-tests (Depends-on): Likewise.
29445         * modules/rmdir-tests (Depends-on): Likewise.
29446         * modules/unlink-tests (Depends-on): Likewise.
29447         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29448         * tests/test-canonicalize.c (symlink): Likewise.
29449         * tests/test-fstatat.c (symlink): Likewise.
29450         * tests/test-lstat.c (symlink): Likewise.
29451         * tests/test-remove.c (symlink): Likewise.
29452         * tests/test-rmdir.c (symlink): Likewise.
29453         * tests/test-unlink.c (symlink): Likewise.
29454         * tests/test-unlinkat.c (symlink): Likewise.
29455
29456         symlink: new module, for Solaris 9 bug
29457         * modules/symlink: New file.
29458         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29459         * lib/symlink.c: Likewise.
29460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29461         * modules/unistd (Makefile.am): Substitute them.
29462         * lib/unistd.in.h (symlink): Declare replacement.
29463         * MODULES.html.sh (File system functions): Mention it.
29464         * doc/posix-functions/symlink.texi (symlink): Likewise.
29465         * modules/symlink-tests: New test.
29466         * tests/test-symlink.c: Likewise.
29467
29468 2009-09-23  Bruno Haible  <bruno@clisp.org>
29469
29470         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29471         when needed.
29472         Test case: gnulib-tool --import --with-tests atexit inttypes.
29473         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29474
29475 2009-09-23  Bruno Haible  <bruno@clisp.org>
29476
29477         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29478         subcommand, not in a subshell.
29479
29480 2009-09-22  Eric Blake  <ebb9@byu.net>
29481
29482         unistd: sort replacement declarations
29483         * lib/unistd.in.h: Sort declarations.
29484
29485         open, openat: minor optimization
29486         * lib/open.c (open): If open succeeded, len is non-zero.
29487         * lib/openat.c (rpl_openat): Likewise.
29488
29489         link-follow: ensure correct result
29490         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29491         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29492         distinguish between possible failures.
29493
29494 2009-09-21  Eric Blake  <ebb9@byu.net>
29495
29496         fts: avoid compiler warning
29497         * lib/fts.c (dirent_inode_sort_may_be_useful)
29498         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29499
29500 2009-09-19  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/progreloc.c (canonicalize_file_name): New declaration.
29503
29504 2009-09-19  Eric Blake  <ebb9@byu.net>
29505
29506         link: fix quoting
29507         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29508
29509         openat: fix openat bugs on Solaris 9
29510         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29511         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29512         * modules/openat (Depends-on): Add open.
29513         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29514         * modules/fcntl-h (Makefile.am): Substitute it.
29515         * lib/fcntl.in.h (openat): Declare replacement.
29516         * doc/posix-functions/openat.texi (openat): Document this.
29517
29518         openat: move fstatat and unlinkat into correct files
29519         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29520         compiled.
29521         * lib/openat.c (fstatat, unlinkat): Move...
29522         * lib/fstatat.c (fstatat): ...into correct files.
29523         * lib/unlinkat.c (unlinkat): Likewise.
29524
29525         openat: fix unlinkat bugs on Solaris 9
29526         * lib/unlinkat.c (unlinkat): New file.
29527         * modules/openat (Depends-on): Add unlink.
29528         (Files): Distribute it.
29529         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29530         trailing slash behavior is broken.
29531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29532         * modules/unistd (Makefile.am): Substitute it.
29533         * lib/unistd.in.h (unlinkat): Declare replacement.
29534         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29535
29536         openat: fix fstatat bugs on Solaris 9
29537         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29538         stat.
29539         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29540
29541         test-unlinkat: enhance test, to expose Solaris 9 bug
29542         * tests/test-unlink.c (main): Factor guts...
29543         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29544         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29545         * tests/test-rmdir.c (main): Adjust caller.
29546         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29547         (unlinker): New helper function.
29548         (rmdirat): Enhance check.
29549         * modules/rmdir-tests (Depends-on): Add stdbool.
29550         * modules/unlink-tests (Depends-on): Likewise.
29551         (Files): Add test-unlink.h.
29552         * modules/openat-tests (Files): Likewise.
29553         (Depends-on): Add unlinkdir.
29554
29555         test-fstatat: new test, to expose Solaris 9 bugs
29556         * tests/test-stat.c (main): Factor guts...
29557         * tests/test-stat.h (test_stat_func): ...into new file.
29558         * tests/test-lstat.c (main): Factor guts...
29559         * tests/test-lstat.h (test_lstat_func): ...into new file.
29560         * tests/test-fstatat.c: New file.
29561         * modules/stat-tests (Files): Add test-stat.h.
29562         * modules/lstat-tests (Files): Add test-lstat.h.
29563         (Depends-on): Add stdbool.
29564         * modules/openat-tests (Depends-on): Add pathmax.
29565         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29566         (Makefile.am): Run new test.
29567
29568         remove: new module, for mingw and Solaris 9 bugs
29569         * modules/remove: New file.
29570         * lib/remove.c: Likewise.
29571         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29573         * modules/stdio (Makefile.am): Use them.
29574         * lib/stdio.in.h (remove): Declare replacement.
29575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29576         * doc/posix-functions/remove.texi (remove): Likewise.
29577         * modules/remove-tests: New test.
29578         * tests/test-remove.c: Likewise.
29579
29580         unlink: new module, for Solaris 9 bug
29581         * modules/unlink: New file.
29582         * lib/unlink.c: Likewise.
29583         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29585         * modules/unistd (Makefile.am): Use them.
29586         * lib/unistd.in.h (stat): Declare replacement.
29587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29588         * doc/posix-functions/unlink.texi (unlink): Likewise.
29589         * modules/unlink-tests: New test.
29590         * tests/test-unlink.c: Likewise.
29591
29592         lstat: fix Solaris 9 bug
29593         * lib/lstat.c (lstat): Also check for trailing slash on
29594         non-symlink, non-directories.  Use stat module to simplify logic.
29595         * doc/posix-functions/lstat.texi (lstat): Document it.
29596         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29597         (configure.ac): Check for symlink.
29598         * tests/test-lstat.c (main): Add more tests.
29599
29600         stat: add as dependency to other modules
29601         * modules/chown (Depends-on): Add stat.
29602         * modules/euidaccess (Depends-on): Likewise.
29603         * modules/fchdir (Depends-on): Likewise.
29604         * modules/isdir (Depends-on): Likewise.
29605         * modules/link (Depends-on): Likewise.
29606         * modules/lstat (Depends-on): Likewise.
29607         * modules/mkdir-p (Depends-on): Likewise.
29608         * modules/modechange (Depends-on): Likewise.
29609         * modules/open (Depends-on): Likewise.
29610         * modules/readlink (Depends-on): Likewise.
29611         * modules/same (Depends-on): Likewise.
29612
29613         stat: fix Solaris 9 bug
29614         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29615         slash.
29616         * lib/stat.c (rpl_stat): Work around it.
29617         * doc/posix-functions/stat.texi (stat): Update documentation.
29618
29619         stat: new module, for mingw bug
29620         * modules/stat: New file.
29621         * lib/stat.c: Likewise.
29622         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29624         * modules/sys_stat (Makefile.am): Use them.
29625         * lib/sys_stat.in.h (stat): Declare replacement.
29626         * lib/openat.c (fstatat): Deal with lstat and stat being function
29627         macros.
29628         * modules/openat (Depends-on): Add inline.
29629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29630         * doc/posix-functions/stat.texi (stat): Likewise.
29631         * modules/stat-tests: New test.
29632         * tests/test-stat.c: Likewise.
29633
29634 2009-09-19  Jim Meyering  <meyering@redhat.com>
29635
29636         syntax-check: detect unnecessary inclusion of canonicalize.h
29637         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29638
29639 2009-09-19  Eric Blake  <ebb9@byu.net>
29640
29641         canonicalize-lgpl: adjust clients to use correct header
29642         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29643         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29644         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29645         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29646         * lib/progreloc.c (includes): Likewise.
29647
29648 2009-09-19  Jim Meyering  <meyering@redhat.com>
29649
29650         test-posixtm.c: correct a comment
29651         * tests/test-posixtm.c: Correct first-line comment.
29652         Spotted by Eric Blake.
29653
29654 2009-09-16  Jim Meyering  <meyering@redhat.com>
29655
29656         posixtm-tests: make T const-correct; add a test case
29657         * tests/test-posixtm.c (T): Declare const.
29658         Add a test for -(2^31+1).
29659         Remove useless can-succeed-only-in-2002 test.
29660
29661         posixtm-tests: adjust the sole failing test
29662         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29663         expected output matches what mktime now produces.  Cross-checked via
29664         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29665
29666         posixtm: move #ifdef'd tests into a new module
29667         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29668         * tests/test-posixtm.c: ... this new file.
29669         * modules/posixtm-tests: New module.
29670
29671 2009-09-19  Eric Blake  <ebb9@byu.net>
29672
29673         openat: simplify use of at-func.c
29674         * lib/at-func.c (includes): Include prerequisites here, to
29675         simplify requirements on client files.
29676         * lib/openat-priv.h: Add double-inclusion guard.
29677         * lib/faccessat.c (includes): Simplify.
29678         * lib/fchmodat.c (includes): Likewise.
29679         * lib/fchownat.c (includes): Likewise.
29680         * lib/mkdirat.c (includes): Likewise.
29681         * lib/mkfifoat.c (includes): Likewise.
29682         * lib/symlinkat.c (includes): Likewise.
29683
29684         openat: allow return of fd 0
29685         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29686         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29687         unistd-safer.
29688         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29689         <fcntl.h>; this module does not leak fds.
29690         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29691         must be allowed to return 0, leaving openat_safer to add the
29692         safety.
29693         (openat_permissive): Avoid writing to just-opened fd 2 if
29694         restoring the current directory fails.
29695         * lib/openat-die.c (openat_restore_fail): Add comment.
29696         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29697         (save_cwd): Guarantee safe fd, but without use of open_safer.
29698         * tests/test-openat.c: New test.
29699         * modules/openat-tests (Files, Makefile.am): Distribute and build
29700         new file.
29701
29702         relocatable-prog-wrapper: fix build
29703         * modules/relocatable-prog-wrapper (Files): Update name of
29704         canonicalize m4 file, broken on 2009-09-17.
29705         Reported by emad hajjar <aleppos@hotmail.com>.
29706
29707 2009-09-19  Bruno Haible  <bruno@clisp.org>
29708
29709         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29710         * lib/safe-alloc.c: Likewise.
29711         Reported by Ian Beckwith <ianb@erislabs.net>.
29712
29713 2009-09-18  Bruno Haible  <bruno@clisp.org>
29714
29715         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29716         Reported by <erobles@sensacd.com.mx>.
29717
29718 2009-09-17  Eric Blake  <ebb9@byu.net>
29719
29720         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29721         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29722         slashes when checking if last component is missing.
29723         * tests/test-canonicalize.c (main): Test this.
29724
29725         canonicalize, canonicalize-lgpl: honor // if distinct from /
29726         * modules/canonicalize (Files): Add double-slash-root.m4.
29727         * modules/canonicalize-lgpl (Files): Likewise.
29728         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29729         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29730         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29731         fallback definition.
29732         (canonicalize_filename_mode): Use it to protect //.
29733         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29734         (__realpath): Likewise.
29735         * tests/test-canonicalize.c (main): Test this.
29736         * tests/test-canonicalize-lgpl.c (main): Likewise.
29737         * modules/canonicalize-tests (Depends-on): Add same-inode.
29738         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29739
29740         canonicalize-lgpl: fix glibc bug with trailing slash
29741         * m4/canonicalize-lgpl.m4: Move contents...
29742         * m4/canonicalize.m4: ...here.
29743         (gl_CANONICALIZE_LGPL): Factor realpath check...
29744         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29745         glibc 2.3.5 bug, fixed 2005-04-27.
29746         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29747         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29748         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29749         * modules/canonicalize-lgpl (Files): Manage file rename.
29750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29751         * modules/stdlib (Makefile.am): Substitute witness.
29752         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29753         is needed.
29754         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29755         replacement is required.
29756         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29757         * doc/glibc-functions/canonicalize_file_name.texi
29758         (canonicalize_file_name): Document this.
29759         * doc/posix-functions/realpath.texi (realpath): Likewise.
29760
29761         canonicalize-lgpl: reject non-directory with trailing slash
29762         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29763         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29764         catches failures in glibc 2.3.5.
29765         * tests/test-canonicalize.c (main): Likewise.
29766
29767         canonicalize-lgpl: use native realpath if it works
29768         * lib/canonicalize-lgpl.c (realpath): Guard with
29769         FUNC_REALPATH_WORKS.
29770         * lib/stdlib.in.h (realpath): Make declaration optional based on
29771         HAVE_REALPATH.
29772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29773         native realpath works.
29774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29775         * modules/stdlib (Makefile.am): Substitute witness.
29776
29777         canonicalize, canonicalize-lgpl: use <stdlib.h>
29778         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29779         (Include): Mention <stdlib.h>.
29780         (configure.ac): Mention functions we provide.
29781         * modules/canonicalize (configure.ac): Likewise.
29782         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29783         realpath if canonicalize_file_name is missing.
29784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29785         * modules/stdlib (Makefile.am): Substitute witnesses.
29786         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29787         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29788         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29789         * NEWS: Document this.
29790         * doc/glibc-functions/canonicalize_file_name.texi
29791         (canonicalize_file_name): Likewise.
29792         * doc/posix-functions/realpath.texi (realpath): Likewise.
29793         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29794
29795         test-canonicalize: consolidate into single C program
29796         * tests/test-canonicalize.sh: Delete; move setup into...
29797         * tests/test-canonicalize.c (main): ...the program, making it
29798         easier to run in debugger.  Add some tests.
29799         * modules/canonicalize-tests (Files): Remove unused file.
29800         (Depends-on): Add progname.
29801         (configure.ac, Makefile.am): Simplify.
29802
29803         test-canonicalize-lgpl: consolidate into single C program
29804         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29805         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29806         easier to run in debugger.  Add some tests.
29807         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29808         (configure.ac, Makefile.am): Simplify.
29809
29810         canonicalize: avoid resolvepath
29811         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29812         unnecessary checks.
29813         * lib/canonicalize.c (includes): Simplify.
29814         (canonicalize_file_name): Drop resolvepath implementation.
29815         * modules/canonicalize (Depends-on): Drop filenamecat.
29816
29817         canonicalize: don't lose errno
29818         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29819         over calls to free.
29820
29821         canonicalize: simplify errno handling
29822         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29823         assignment.
29824
29825         canonicalize, canonicalize-lgpl: update module dependencies
29826         * modules/canonicalize (Depends-on): Add extensions, lstat,
29827         pathmax, stdlib.
29828         (Files): Drop pathmax.h.
29829         (configure.ac): Adjust macro name.
29830         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29831         lstat, stdlib, sys_stat.
29832         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29833         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29834         extensions.
29835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29836         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29837         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29838         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29839         declaration, if available.
29840         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29841         we can rely on the readlink module.
29842         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29843         (includes): Use <unistd.h> unconditionally.
29844
29845 2009-09-17  Eric Blake  <ebb9@byu.net>
29846
29847         maint: make Include sections of modules consistent
29848         * modules/alloca: Use only header name; no need to list #include.
29849         * modules/alloca-opt: Likewise.
29850         * modules/arpa_inet: Likewise.
29851         * modules/canon-host: Likewise.
29852         * modules/configmake: Likewise.
29853         * modules/dirent: Likewise.
29854         * modules/eealloc: Likewise.
29855         * modules/environ: Likewise.
29856         * modules/fchdir: Likewise.
29857         * modules/fcntl: Likewise.
29858         * modules/fcntl-h: Likewise.
29859         * modules/gethrxtime: Likewise.
29860         * modules/gettime: Likewise.
29861         * modules/ignore-value: Likewise.
29862         * modules/inet_ntop: Likewise.
29863         * modules/inet_pton: Likewise.
29864         * modules/inttypes: Likewise.
29865         * modules/isnand-nolibm: Likewise.
29866         * modules/isnanf-nolibm: Likewise.
29867         * modules/mbchar: Likewise.
29868         * modules/mbfile: Likewise.
29869         * modules/mbiter: Likewise.
29870         * modules/mbuiter: Likewise.
29871         * modules/netdb: Likewise.
29872         * modules/netinet_in: Likewise.
29873         * modules/nproc: Likewise.
29874         * modules/pagealign_alloc: Likewise.
29875         * modules/poll: Likewise.
29876         * modules/printf-frexp: Likewise.
29877         * modules/pthread: Likewise.
29878         * modules/putenv: Likewise.
29879         * modules/random_r: Likewise.
29880         * modules/relocatable-prog: Likewise.
29881         * modules/search: Likewise.
29882         * modules/select: Likewise.
29883         * modules/selinux-h: Likewise.
29884         * modules/settime: Likewise.
29885         * modules/signal: Likewise.
29886         * modules/size_max: Likewise.
29887         * modules/socklen: Likewise.
29888         * modules/ssize_t: Likewise.
29889         * modules/stdarg: Likewise.
29890         * modules/stdbool: Likewise.
29891         * modules/stddef: Likewise.
29892         * modules/stdint: Likewise.
29893         * modules/stdio: Likewise.
29894         * modules/stdlib: Likewise.
29895         * modules/string: Likewise.
29896         * modules/strings: Likewise.
29897         * modules/sys_file: Likewise.
29898         * modules/sys_ioctl: Likewise.
29899         * modules/sys_select: Likewise.
29900         * modules/sys_socket: Likewise.
29901         * modules/sys_stat: Likewise.
29902         * modules/sys_time: Likewise.
29903         * modules/sys_times: Likewise.
29904         * modules/sys_utsname: Likewise.
29905         * modules/sys_wait: Likewise.
29906         * modules/sysexits: Likewise.
29907         * modules/time: Likewise.
29908         * modules/times: Likewise.
29909         * modules/tmpfile: Likewise.
29910         * modules/trim: Likewise.
29911         * modules/unistd: Likewise.
29912         * modules/wchar: Likewise.
29913         * modules/wctype: Likewise.
29914
29915 2009-09-17  Bruno Haible  <bruno@clisp.org>
29916
29917         Make getdate.y compile on QNX and NetBSD 5 / i386.
29918         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29919         TIME_T_FITS_IN_LONG_INT.
29920         * lib/getdate.y (long_time_t): New type.
29921         (relative_time): Change type of 'seconds' field to long_time_t.
29922         (get_date): Update types of local variables. Check against overflow
29923         during conversion from long_time_t to time_t.
29924         Reported by Matt Kraai <kraai@ftbfs.org>
29925         and Hasso Tepper <hasso@netbsd.org>.
29926
29927 2009-09-17  Bruno Haible  <bruno@clisp.org>
29928
29929         * modules/COPYING: Update copyright years.
29930         * modules/README: Likeiwse.
29931         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29932         Reported by Ian Beckwith <ianb@erislabs.net>.
29933
29934 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29935
29936         * users.txt: Update references for gnuit package.
29937
29938 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29939
29940         * m4/getdelim.m4: Fix typo in copyright line.
29941
29942 2009-09-17  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/atoll.c: Use the standard header with GPL copyright.
29945         * lib/argz.in.h: Likewise.
29946         * lib/glob.c: Likewise.
29947         * lib/glob-libc.h: Likewise.
29948         * lib/random_r.c: Likewise.
29949         * lib/siglist.h: Likewise.
29950         * lib/strsignal.c: Likewise.
29951         Reported by Ian Beckwith <ianb@erislabs.net>.
29952
29953 2009-09-17  Eric Blake  <ebb9@byu.net>
29954
29955         rmdir: ensure correct dependency order
29956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29957
29958 2009-09-17  Bruno Haible  <bruno@clisp.org>
29959
29960         Disable assertion that fails on NetBSD 5 / i386.
29961         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29962         Reported by Sam Steingold <sds@gnu.org>
29963         and Hasso Tepper <hasso@netbsd.org>.
29964
29965 2009-09-16  Eric Blake  <ebb9@byu.net>
29966
29967         unlinkdir: port to mingw
29968         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29969         on which no one can unlink a directory.
29970
29971         stdlib: sort witness names
29972         * modules/stdlib (Makefile.am): Sort replacements.
29973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29974         * lib/stdlib.in.h: Likewise.
29975
29976         parse-duration-tests: avoid link failure
29977         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29978         LIBINTL.
29979         Reported by Tom G. Christensen.
29980
29981         openat-tests: ensure unlinkat behaves like rmdir
29982         * tests/test-rmdir.c (main): Factor guts...
29983         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29984         * modules/rmdir-tests (Files): Ship new file.
29985         * modules/openat-tests: New test.
29986         * tests/test-unlinkat.c: Likewise.
29987
29988         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29989         * modules/rmdir-errno (Status, Notice): Now obsolete.
29990
29991         rmdir: work around cygwin 1.5.x and mingw bugs
29992         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29993         * lib/rmdir.c (rmdir): Work around it.
29994         * modules/rmdir (Status, Notice): No longer obsolete.
29995         (Files): Add dos.m4.
29996         (Depends-on): Add unistd.
29997         (configure.ac): Set witnesses.
29998         (License): Relax to LGPLv2+.
29999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30000         * modules/unistd (Makefile.am): Substitute witnesses.
30001         * lib/unistd.in.h (rmdir): Declare replacement.
30002         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30003         * modules/rmdir-tests: New tests.
30004         * tests/test-rmdir.c: Likewise.
30005
30006 2009-09-15  Eric Blake  <ebb9@byu.net>
30007
30008         fchdir: improve use of replacement functions
30009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30011         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30012         REPLACE_CLOSEDIR.
30013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30014         * modules/sys_stat (Makefile.am): Substitute correct witness.
30015         * modules/dirent (Makefile.am): Likewise.
30016         * modules/unistd (Makefile.am): Likewise.
30017         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30018         * lib/unistd.in.h (dup): Likewise.
30019         * lib/sys_stat.in.h (fstat): Likewise.
30020
30021         maint: ignore gnulib-tool temp files
30022         * .gitignore: Ignore files created during gnulib-tool --test.
30023
30024 2009-09-13  Jim Meyering  <meyering@redhat.com>
30025
30026         posixtm: don't reject a time that specify "60" as the number of seconds
30027         * lib/posixtm.c (posixtime): The code to reject invalid dates
30028         would also reject a time specified with the .60 suffix.
30029         But POSIX allows that, in order to accommodate leap seconds.
30030         So don't reject it.
30031         (main): Adjust tests accordingly.
30032         * modules/posixtm (Depends-on): Add stpcpy.
30033
30034 2009-09-11  Jim Meyering  <meyering@redhat.com>
30035
30036         announce-gen: include [$release_type] in emitted Subject:
30037         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30038         e.g., [stable] in the emitted Subject: line.
30039
30040 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30041
30042         Remove obsolete macros from several modules.
30043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30044         obsolete Autoconf macros with their modern counterparts.
30045         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30046         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30048         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30049         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30050         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30052         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30053         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30054         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30055         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30057         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30058         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30059         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30060         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30061         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30062         * m4/time_r.m4 (gl_TIME_R): Likewise.
30063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30064         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30065         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30066
30067         Fix copyright header in build-aux scripts.
30068         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30069         recommendation.
30070         * build-aux/ncftpput-ftp: Likewise.
30071         * build-aux/update-copyright: Likewise.
30072
30073 2009-09-09  Eric Blake  <ebb9@byu.net>
30074
30075         test-link: allow Linux choice of errno
30076         * tests/test-link.c (main): Relax test for alternate error.
30077
30078         strndup: fix improper m4 caching
30079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30080         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30081         (gl_PREREQ_STRNDUP): Delete.
30082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30083         * modules/string (Makefile.am): Substitute it.
30084         * lib/string.in.h (strndup): Modernize prototype.
30085
30086         getcwd: port to mingw
30087         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30088         different from the POSIX assumptions made throughout the getcwd
30089         module; fortunately, the mingw getcwd does not need replacement.
30090         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30091         * modules/getcwd-tests: New test.
30092         * tests/test-getcwd.c: Likewise.
30093
30094         link: fix platform bugs
30095         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30096         * lib/link.c (link): Work around them.  Fix related mingw bug.
30097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30098         * modules/unistd (Makefile.am): Substitute it.
30099         * lib/unistd.in.h (link): Declare replacement.
30100         * doc/posix-functions/link.texi (link): Document this.
30101         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30102
30103         test-link: consolidate into single C program, test more cases
30104         * tests/test-link.sh: Delete.
30105         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30106         at least Cygwin and Solaris.
30107         * modules/link-tests (Files): Remove unused file.
30108         (Depends-on): Add errno, sys_stat.
30109         (Makefile.am): Simplify.
30110
30111 2009-09-08  Bruno Haible  <bruno@clisp.org>
30112
30113         Work around towlower, towupper bug on mingw.
30114         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30115         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30116         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30117         * doc/posix-functions/towupper.texi: Likewise.
30118         Reported by Eric Blake.
30119
30120 2009-09-08  Jim Meyering  <meyering@redhat.com>
30121
30122         build: don't try to run autoheader if we don't use it
30123         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30124         is not used in configure.ac.
30125
30126 2009-09-08  Eric Blake  <ebb9@byu.net>
30127
30128         euidaccess: fix compilation error
30129         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30130
30131         rawmemchr: relax license
30132         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30133         okay.
30134         Reported by Jim Meyering.
30135
30136         mkfifoat: new module
30137         * modules/mkfifoat: New file.
30138         * lib/mkfifoat.c: Likewise.
30139         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30141         * modules/sys_stat (Makefile.am): Use them.
30142         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30143         * MODULES.html.sh (File system functions): Mention module.
30144         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30145         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30146         * modules/mkfifoat-tests: New test.
30147         * tests/test-mkfifoat.c: Likewise.
30148
30149         strchrnul: relax license
30150         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30151         okay.
30152         Reported by Jim Meyering.
30153
30154 2009-09-08  Eric Blake  <ebb9@byu.net>
30155
30156         fstatat: fix compilation on Solaris
30157         * lib/fstatat.c (includes): Add fcntl.h.
30158         Reported by Pádraig Brady.
30159
30160 2009-09-07  Eric Blake  <ebb9@byu.net>
30161
30162         rename: modernize replacement
30163         * modules/rename (Depends-on): Add stdio.
30164         (configure.ac): Declare witness.
30165         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30166         stdio take care of replacement.
30167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30168         * modules/stdio (Makefile.am): Substitute them.
30169         * lib/stdio.in.h (rename): Declare replacement.
30170         * lib/rename.c (includes): Allow cross-compilation to non-windows
30171         machines.
30172         * doc/posix-functions/rename.texi (rename): Improve
30173         documentation.
30174
30175         stdio: sort witness names
30176         * modules/stdio (Makefile.am): Sort replacements.
30177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30178         * lib/stdio.in.h: Likewise.
30179
30180         getcwd: minor cleanups
30181         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30182         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30183
30184         openat: provide more convenience names
30185         * modules/faccessat (configure.ac): Add C witness.
30186         * lib/unistd.in.h (readlinkat): Fix typo.
30187         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30188         convenience wrappers.
30189         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30190         wrappers in syntax checks.
30191
30192 2009-09-06  Eric Blake  <ebb9@byu.net>
30193
30194         doc: fix comments in recent patches
30195         * lib/faccessat.c: Mention correct function.
30196         * lib/fchmodat.c: Likewise.
30197         * lib/fchownat.c: Likewise.
30198         * lib/symlinkat.c: Likewise.
30199         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30200         constants.
30201
30202         faccessat, symlinkat: continue cleanup of previous patch
30203         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30204         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30205         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30207         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30208         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30209         set.
30210
30211 2009-09-06  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30214         (fstatat): Declare if GNULIB_FSTATAT is set.
30215         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30216         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30217         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30218         * modules/fcntl-h (Files): Remove m4/openat.m4.
30219         * modules/sys_stat (Files): Remove m4/openat.m4.
30220         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30221         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30222         * modules/unistd (Files): Remove m4/openat.m4.
30223         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30224         GNULIB_OPENAT.
30225         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30226         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30228         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30229         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30230         gl_OPENAT_DEFAULTS.
30231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30232         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30233         Don't require gl_OPENAT_DEFAULTS.
30234         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30235         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30236         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30237         (gl_OPENAT_DEFAULTS): Remove macro.
30238
30239 2009-09-06  Bruno Haible  <bruno@clisp.org>
30240
30241         * modules/openat (configure.ac): Remove unneeded witness.
30242
30243 2009-09-06  Bruno Haible  <bruno@clisp.org>
30244
30245         Set errno to ENOSYS when a function is entirely unsupported.
30246         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30247         EOPNOTSUPP.
30248         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30249         * modules/chown (Depends-on): Remove errno.
30250
30251 2009-09-06  Bruno Haible  <bruno@clisp.org>
30252
30253         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30254
30255 2009-09-06  Bruno Haible  <bruno@clisp.org>
30256
30257         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30258
30259 2009-09-06  Ben Pfaff  <blp@gnu.org>
30260             Bruno Haible  <bruno@clisp.org>
30261
30262         Work around a glibc bug in strtok_r.
30263         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30264         Undefine if UNDEFINE_STRTOK_R is set.
30265         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30267         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30269         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30270         UNDEFINE_STRTOK_R.
30271         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30272
30273 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30274
30275         exclude: minor fix
30276         * lib/exclude.c: Include wctype.h
30277
30278 2009-09-06  Akim Demaille  <demaille@gostai.com>
30279
30280         bootstrap: improve error message
30281         * build-aux/bootstrap (find_tool): Upon failure, report the list
30282         of candidates.
30283         Honor the initial value of the envvar.
30284
30285 2009-09-05  Eric Blake  <ebb9@byu.net>
30286
30287         symlinkat: new module
30288         * modules/symlinkat: New file.
30289         * lib/symlinkat.c: Likewise.
30290         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30292         * modules/unistd (Makefile.am): Use them.
30293         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30294         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30295         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30296         * MODULES.html.sh (File system functions): Mention module.
30297         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30298         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30299         * modules/symlinkat-tests: New test.
30300         * tests/test-symlinkat.c: Likewise.
30301
30302         test-openat-safer: add more checks
30303         * tests/test-openat-safer.c (main): Check more code paths.
30304
30305 2009-09-05  Jim Meyering  <meyering@redhat.com>
30306
30307         syntax-check: detect unnecessary inclusion of openat.h
30308         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30309
30310 2009-09-05  Bruno Haible  <bruno@clisp.org>
30311
30312         Support towlower, towupper.
30313         * doc/posix-functions/towlower.texi: Mention module wctype.
30314         * doc/posix-functions/towupper.texi: Likewise.
30315         * lib/wctype.in.h (towlower, towupper): New functions.
30316         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30317         (ASSERT): New macro.
30318         (e): New variable.
30319         (main): Test also towlower, towupper. Test WEOF argument.
30320         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30321
30322 2009-09-05  Bruno Haible  <bruno@clisp.org>
30323
30324         Fix conversion behaviour when the input is invalid.
30325         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30326         mark occurring in first pass of indirect conversion.
30327         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30328         input.
30329         Found by clang's static analyzer.
30330
30331 2009-09-05  Bruno Haible  <bruno@clisp.org>
30332
30333         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30334         where direct conversion is possible.
30335
30336 2009-09-04  Eric Blake  <ebb9@byu.net>
30337
30338         openat: fail with ENOENT on empty name
30339         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30340         buffer.
30341
30342         link-follow: fix logic bug in prior patch
30343         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30344         reversed sense of yes and no in prior patch.  Avoid confusing
30345         compilation failure with desired semantics.
30346
30347         link-follow: accomodate mingw and cross-compilation
30348         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30349         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30350         cross-compilation results to -1, to make linkat easier to
30351         implement when cross-compiling.  Trivially support mingw.
30352         * modules/link-follow (configure.ac): Call new name.
30353         * NEWS: Mention this.
30354
30355 2009-09-03  Eric Blake  <ebb9@byu.net>
30356
30357         faccessat: compile replacement
30358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30359         needed.
30360
30361         fts: fix compilation error
30362         * lib/fts.c (includes): Re-add "openat.h", for
30363         openat_needs_fchdir.
30364
30365         faccessat: new module
30366         * modules/faccessat: New file.
30367         * lib/faccessat.c: Likewise.
30368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30370         * modules/unistd (Makefile.am): Use it.
30371         * lib/unistd.in.h (faccessat): Declare it.
30372         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30373         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30374         * MODULES.html.sh (File system functions): Mention it.
30375         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30376         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30377
30378         euidaccess: prefer POSIX over non-standard implementation
30379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30380         * lib/euidaccess.c (euidaccess): Use it if available.
30381
30382         openat: make template easier to use
30383         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30384         AT_FUNC_F2 to be undefined.
30385         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30386         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30387         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30388         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30389         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30390         Likewise.
30391         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30392         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30393         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30394         Likewise.
30395
30396         openat: declare in POSIX headers
30397         * NEWS: Mention this.
30398         * modules/openat (configure.ac): Declare witnesses.
30399         (Depends-on): Add fcntl-h, sys_stat, unistd.
30400         (Include): Mention correct headers.
30401         * modules/fcntl-h (Depends-on): Add link-warning.
30402         (Files): Add openat.m4.
30403         (Makefile.am): Substitute witnesses.
30404         * modules/sys_stat (Files, Makefile.am): Likewise.
30405         * modules/unistd (Files, Makefile.am): Likewise.
30406         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30407         (gl_OPENAT_DEFAULTS): New macro.
30408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30411         (SYS_STAT_H): Remove unused variable.
30412         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30413         * lib/fcntl--.h (includes): Remove unneeded header.
30414         * lib/openat-safer.c (includes): Likewise.
30415         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30416         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30417         appropriate headers.
30418         (__OPENAT_PREFIX): Delete.
30419         * lib/fcntl.in.h (openat): Provide declaration.
30420         (AT_FDCWD): Fix Solaris bug.
30421         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30422         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30423         * lib/fchmodat.c (includes):  Adjust to find declaration.
30424         * lib/fchownat.c (includes): Likewise.
30425         * lib/mkdirat.c (includes): Likewise.
30426         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30427         still visible.
30428
30429 2009-09-02  Eric Blake  <ebb9@byu.net>
30430
30431         errno: use consistently
30432         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30433         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30434         * lib/canonicalize.c (ELOOP): Likewise.
30435         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30436         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30437         * lib/lchown.c (EOPNOTSUPP): Likewise.
30438         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30439         * lib/savewd.c (ESTALE): Likewise.
30440         * lib/settime.c (ENOSYS): Likewise.
30441         * lib/utimens.c (ENOSYS): Likewise.
30442         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30443         * lib/chdir-safer.c (ELOOP): Likewise.
30444         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30445         * modules/c-stack (Depends-on): Add errno.
30446         * modules/canonicalize (Depends-on): Likewise.
30447         * modules/chdir-safer (Depends-on): Likewise.
30448         * modules/fdopendir (Depends-on): Likewise.
30449         * modules/inet_ntop (Depends-on): Likewise.
30450         * modules/inet_pton (Depends-on): Likewise.
30451         * modules/lchown (Depends-on): Likewise.
30452         * modules/openat (Depends-on): Likewise.
30453         * modules/savewd (Depends-on): Likewise.
30454         * modules/settime (Depends-on): Likewise.
30455         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30456
30457         fts: avoid leaking fds
30458         * modules/fts (Depends-on): Add cloexec.
30459         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30460         flag.
30461
30462         fts: make directory fds more robust
30463         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30464         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30465
30466         backupfile, chdir-long, fts, savedir: make safer
30467         * lib/backupfile.c (includes): Use "dirent--.h", since
30468         numbered_backup can write to stderr during readdir.
30469         * lib/savedir.c (includes): Likewise.
30470         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30471         emulation can write to stderr on failure.
30472         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30473         * lib/getcwd.c: Document why opendir_safer is unused.
30474         * lib/glob.c: Likewise.
30475         * lib/scandir.c: Likewise.
30476         * lib/openat-proc.c: Likewise, for open_safer.
30477         * modules/backupfile (Depends-on): Add dirent-safer.
30478         * modules/savedir (Depends-on): Likewise.
30479         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30480         * modules/chdir-long (Depends-on): Add openat-safer.
30481
30482         openat-safer: new module
30483         * modules/openat-safer: New file.
30484         * lib/openat-safer.c: Likewise.
30485         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30486         * lib/fcntl-safer.h (openat_safer): Declare.
30487         * lib/fcntl--.h (openat): Override.
30488         * MODULES.html.sh (File descriptor based I/O): Mention it.
30489         * lib/openat.h: Add double-inclusion guards.
30490         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30491         "fcntl--.h", so we can implement openat.
30492         * modules/openat-safer-tests: New test.
30493         * tests/test-openat-safer.c: New file.
30494
30495         dirent-safer: new module
30496         * modules/dirent-safer: New file.
30497         * lib/dirent--.h: Likewise.
30498         * lib/dirent-safer.h: Likewise.
30499         * lib/opendir-safer.c: Likewise.
30500         * m4/dirent-safer.m4: Likewise.
30501         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30502         * modules/dirent-safer-tests: New test.
30503         * tests/test-dirent-safer.c: New file.
30504         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30505
30506         fdopendir: optimize on mingw
30507         * lib/unistd.in.h (_gl_directory_name): New prototype.
30508         * lib/fchdir.c (_gl_directory_name): Implement it.
30509         (fchdir): Use it to simplify implementation.
30510         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30511         fchdir, when available, to avoid calling [f]chdir().
30512
30513         fdopendir: split into its own module
30514         * lib/openat.c (fdopendir): Move...
30515         * lib/fdopendir.c: ...into new file.
30516         * modules/fdopendir: New module.
30517         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30518         * modules/openat (Depends-on): Add fdopendir.
30519         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30520         fdopendir here.
30521         * modules/savedir (Depends-on): Only need fdopendir, not full
30522         openat.
30523         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30524         * lib/openat.h (fdopendir): Drop prototype.
30525         * lib/dirent.in.h (fdopendir): Provide prototype.
30526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30527         * modules/dirent (Makefile.am): Substitute them.
30528         * MODULES.html.sh (File system functions): Mention it.
30529         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30530         * modules/fdopendir-tests: New file.
30531         * tests/test-fdopendir.c: Likewise.
30532
30533         fchdir: use more consistent macro convention
30534         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30535         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30536         REPLACE_FCHDIR, rather than relying on config.h macros.
30537         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30538         inside a single make-time REPLACE_FCHDIR block, rather than using
30539         the config.h FCHDIR_REPLACEMENT.
30540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30541         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30542         Manage fstat replacement.
30543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30544         REPLACE_FCHDIR.
30545         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30546         (Makefile.am): Substitute REPLACE_FCHDIR.
30547         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30548         FCHDIR_REPLACEMENT.
30549         * lib/dup-safer.c (dup_safer): Likewise.
30550         * lib/dup2.c (rpl_dup2): Likewise.
30551         * lib/dup3.c (rpl_dup3): Likewise.
30552         * lib/open.c (rpl_open): Likewise.
30553
30554         fchdir: simplify error handling, and support dup3
30555         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30556         stdbool, malloc-posix, realloc-posix.
30557         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30558         (ensure_dirs_slot): Return false on allocation failure.
30559         (rpl_dup2): Delete.
30560         (_gl_register_dup): New function.
30561         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30562         (_gl_register_fd): Close fd on allocation failure.
30563         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30564         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30565         prototype.
30566         (rpl_dup2_fchdir): Delete prototype.
30567         * lib/open.c (open): Update caller.
30568         * lib/dup2.c (dup2): Track fchdir metadata.
30569         * lib/dup3.c (dup3): Likewise.
30570         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30572
30573 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30574
30575         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30576         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30577         don't pass arguments to AC_OUTPUT.
30578
30579 2009-09-02  Bruno Haible  <bruno@clisp.org>
30580
30581         * modules/mkdtemp (License): Relicense under LGPLv2+.
30582         Reported by Paolo Bonzini.
30583
30584 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30585
30586         Replace uses of obsolete autoconf macros in Jim's modules.
30587         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30588         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30589         can evoke a warning from autoconf when run with -Wobsolete
30590         enabled.  They were declared obsolete for good reasons (see
30591         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30592         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30593         should not continue using the deprecated macros.
30594         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30595         obsolete Autoconf macros with modern counterparts.
30596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30597         * m4/dos.m4 (gl_AC_DOS): Likewise.
30598         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30600         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30601         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30602         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30603         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30604         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30605         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30606         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30607         Likewise.
30608         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30610         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30611         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30612         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30613         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30614
30615 2009-09-01  Eric Blake  <ebb9@byu.net>
30616
30617         fchdir: fix off-by-one bug in previous patch
30618         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30619         (_gl_unregister_fd): Delete useless if.
30620
30621 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30622
30623         maint.mk: sort the list of syntax-check rules
30624         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30625         easier to get a sense of progress when the rules are run sequentially
30626         and take a long time.
30627
30628 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30629
30630         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30631         * modules/netinet_in: Likewise.
30632         * modules/sys_file: Likewise.
30633         * modules/sys_ioctl: Likewise.
30634         * modules/sys_select: Likewise.
30635         * modules/sys_socket: Likewise.
30636         * modules/sys_stat: Likewise.
30637         * modules/sys_time: Likewise.
30638         * modules/sys_times: Likewise.
30639         * modules/sys_utsname: Likewise.
30640         * modules/sys_wait: Likewise.
30641
30642 2009-09-01  Jim Meyering  <meyering@redhat.com>
30643
30644         fts: help ensure that return values are not ignored
30645         * lib/fts_.h (__GNUC_PREREQ): Define.
30646         (__attribute_warn_unused_result__): Define.
30647         (fts_children, fts_close, fts_open, fts_read): Declare with
30648         __attribute_warn_unused_result__.
30649
30650         fts: fts_close now fails also when closing a dir file descriptor fails
30651         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30652         and propagate to caller, along with errno.
30653
30654         announce-gen: correct formatting in --help output
30655         * build-aux/announce-gen (usage): Move the one-line description in
30656         --help output "up", to where it belongs, just after Usage:.
30657
30658 2009-08-31  Eric Blake  <ebb9@byu.net>
30659
30660         fchdir: port to mingw
30661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30662         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30663         opened, then use a substitute.
30664         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30665         replacement.
30666         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30667         (_gl_register_fd): No need to check stat if open already filters
30668         all directories.
30669         (fchdir): Fix error condition to match POSIX.
30670         * modules/fchdir (Depends-on): Add sys_stat.
30671         * doc/posix-functions/open.texi (open): Document the limitation.
30672         * modules/fchdir-tests: New file.
30673         * tests/test-fchdir.c: Likewise.
30674
30675         canonicalize: allow cross-testing from cygwin to mingw
30676         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30677         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30678         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30679         Likewise.
30680         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30681         target does not support symlinks.
30682         * tests/test-canonicalize-lgpl.sh: Likewise.
30683
30684         chown: avoid compilation warning on mingw
30685         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30686         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30687         mingw.
30688         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30689         * modules/chown (Depends-on): Add errno.
30690
30691 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30692
30693         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30694         command.
30695
30696 2009-08-31  Jim Meyering  <meyering@redhat.com>
30697
30698         canonicalize: remove useless initialization
30699         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30700         initialization of local, "end".
30701
30702 2009-08-30  Bruno Haible  <bruno@clisp.org>
30703
30704         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30705         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30706         ENOSYS.
30707
30708 2009-08-30  Bruno Haible  <bruno@clisp.org>
30709
30710         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30711         /usr/xpg4/bin/tr when it exists.
30712         * tests/test-pipe-filter-gi1.sh: Likewise.
30713
30714 2009-08-30  Bruno Haible  <bruno@clisp.org>
30715
30716         Work around deficient /usr/bin/id program on Solaris.
30717         * tests/test-file-has-acl.sh (ID): New variable.
30718         * tests/test-set-mode-acl.sh (ID): Likewise.
30719         * tests/test-copy-acl.sh (ID): Likewise.
30720         * tests/test-copy-file.sh (ID): Likewise.
30721
30722 2009-08-30  Bruno Haible  <bruno@clisp.org>
30723
30724         New module 'xstriconveh'.
30725         * lib/xstriconveh.h: New file.
30726         * lib/xstriconveh.c: New file.
30727         * modules/xstriconveh: New file.
30728
30729 2009-08-30  Bruno Haible  <bruno@clisp.org>
30730
30731         Make it easier to use mem_cd_iconveh.
30732         * lib/striconveh.h (iconveh_t): New type.
30733         (iconveh_open, iconveh_close): New declarations.
30734         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30735         with a single 'const iconveh_t *' argument.
30736         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30737         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30738         with a single 'const iconveh_t *' argument.
30739         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30740         * tests/test-striconveh.c (main): Update.
30741         * NEWS: Mention the change.
30742
30743 2009-08-30  Bruno Haible  <bruno@clisp.org>
30744
30745         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30746         problem.
30747
30748 2009-08-30  Bruno Haible  <bruno@clisp.org>
30749
30750         Work around iconv_open problem on Solaris.
30751         * lib/iconv_open-solaris.gperf: New file.
30752         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30754         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30755         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30756         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30757         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30758
30759 2009-08-29  Jim Meyering  <meyering@redhat.com>
30760
30761         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30762         * top/maint.mk (cvs-check): Remove target; it was just an alias
30763         to the better-named vc-diff-check.
30764         (maintainer-distcheck): Remove rule.  It was used only from
30765         the (alpha/beta/major) target, and all of its commands but one
30766         were coreutils-specific.
30767         (vc-dist): Remove rule.
30768         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30769         Run vc-diff-check, not vc-dist.
30770         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30771
30772 2009-08-27  Bruno Haible  <bruno@clisp.org>
30773
30774         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30775         of 0.
30776
30777 2009-08-27  Bruno Haible  <bruno@clisp.org>
30778
30779         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30780         compilers.
30781         * doc/func.texi: Document the SunPRO C bug.
30782
30783 2009-08-27  Bruno Haible  <bruno@clisp.org>
30784
30785         Fix link error on Solaris.
30786         * tests/test-parse-duration.c (xstrdup): Remove function.
30787
30788 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30789
30790         ignore-value: handle pointer types, too
30791         * lib/ignore-value.h (__attribute__): Remove definition.
30792         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30793         of a more concise and more-often effective "(void) i" statement.
30794         (ignore_ptr): New function to suppress warnings from functions that
30795         return pointers, and to make it explicit that one function doesn't
30796         handle all cases.
30797
30798 2009-08-25  Bruno Haible  <bruno@clisp.org>
30799
30800         dup2: work around a Linux bug.
30801         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30802         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30803         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30804         Reported by Simon Josefsson.
30805
30806 2009-08-25  Jim Meyering  <meyering@redhat.com>
30807
30808         libguestfs uses gnulib
30809         * users.txt: Add libguestfs.
30810
30811 2009-08-24  Eric Blake  <ebb9@byu.net>
30812
30813         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30814         * lib/pipe2.c (includes): Add binary-io.h.
30815         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30816
30817 2009-08-24  Bruno Haible  <bruno@clisp.org>
30818
30819         Tolerate declared but missing accept4 syscall.
30820         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30821         available.
30822         * lib/sys_socket.in.h (accept4): If the function is already present,
30823         override it.
30824         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30825         * modules/accept4 (Makefile.am): Compile accept4.c always.
30826         Reported by Paolo Bonzini and Eric Blake.
30827
30828 2009-08-23  Bruno Haible  <bruno@clisp.org>
30829
30830         New module 'accept4'.
30831         * lib/sys_socket.in.h (accept4): New declaration.
30832         * lib/accept4.c: New file.
30833         * m4/accept4.m4: New file.
30834         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30835         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30836         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30837         HAVE_ACCEPT4.
30838         * modules/accept4: New file.
30839         * doc/glibc-functions/accept4.texi: Mention the new module.
30840
30841 2009-08-24  Jim Meyering  <meyering@redhat.com>
30842
30843         progname: also set global program_invocation_name, when possible
30844         Before this change, a libtool-enabled program that calls glibc's
30845         error function would report the program name as
30846         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30847         * modules/progname (configure.ac): Check for a declaration of
30848         program_invocation_name.
30849         * lib/progname.c:  Include <errno.h>.
30850         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30851         Set program_invocation_name.
30852
30853 2009-08-23  Bruno Haible  <bruno@clisp.org>
30854
30855         * lib/dup3.c: Include <string.h>.
30856
30857 2009-08-23  Bruno Haible  <bruno@clisp.org>
30858
30859         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30860         * lib/pipe2.c (pipe2): Likewise.
30861         Suggested by Eric Blake.
30862
30863 2009-08-23  Bruno Haible  <bruno@clisp.org>
30864
30865         Tolerate declared but missing dup3 syscall.
30866         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30867         * lib/unistd.in.h (dup3): If the function is already present,
30868         override it.
30869         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30870         * modules/dup3 (Makefile.am): Compile dup3.c always.
30871         Reported by Paolo Bonzini.
30872
30873 2009-08-23  Bruno Haible  <bruno@clisp.org>
30874
30875         Tolerate declared but missing pipe2 syscall.
30876         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30877         available.
30878         * lib/unistd.in.h (pipe2): If the function is already present,
30879         override it.
30880         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30881         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30882         Reported by Paolo Bonzini.
30883
30884 2009-08-23  Bruno Haible  <bruno@clisp.org>
30885
30886         * lib/pipe2.c (pipe2): Move #ifs inside function.
30887
30888 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30889
30890         quotearg: document limitations of quote_these_too
30891         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30892         those limitations are created.
30893         * lib/quotearg.h (set_char_quoting): Document that digits and
30894         letters that are special after backslash are not permitted.
30895         (quotearg_char): Cross-reference set_char_quoting documentation.
30896
30897 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30898
30899         quotearg: implement custom_quoting_style
30900         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30901         right_quote fields.
30902         (set_custom_quoting): New public function.
30903         (quotearg_buffer_restyled): Add left_quote and right_quote
30904         arguments, handle them very much like locale quoting, and update
30905         all uses.
30906         (quotearg_n_custom): New public function.
30907         (quotearg_n_custom_mem): New public function.
30908         (quotearg_custom): New public function.
30909         (quotearg_custom_mem): New public function.
30910         * lib/quotearg.h: Prototype and document new public functions.
30911         (enum quoting_style): For escape_quoting_style and
30912         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30913         ignored even though they're otherwise like c_quoting_style.
30914         Add custom_quoting_style member and document with comparison to
30915         clocale_quoting_style.
30916         * tests/test-quotearg.c (custom_quotes): New array.
30917         (custom_results): New array.
30918         (main): Extend to test custom quoting.
30919
30920 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30921
30922         quotearg: fix right quote escaping when it's in quote_these_too
30923         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30924         quote, be sure to prepend only one backslash.
30925         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30926         (main): Test it.
30927
30928 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30929
30930         quotearg-tests: test escaping of embedded locale quotes
30931         * tests/test-quotearg.c (struct result_strings): Add member for
30932         new input.
30933         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30934         (inputs): Add new input.
30935         (results_g): Add expected results.
30936         (flag_results): Likewise.
30937         (locale_results): Likewise.
30938         (compare_strings): Check those.
30939
30940 2009-08-23  Bruno Haible  <bruno@clisp.org>
30941
30942         Tests for module 'dup3'.
30943         * modules/dup3-tests: New file.
30944         * tests/test-dup3.c: New file.
30945
30946         New module 'dup3'.
30947         * lib/unistd.in.h (dup3): New declaration.
30948         * lib/dup3.c: New file.
30949         * m4/dup3.m4: New file.
30950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30951         HAVE_DUP3.
30952         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30953         * modules/dup3: New file.
30954         * doc/glibc-functions/dup3.texi: Mention the new module.
30955
30956 2009-08-23  Bruno Haible  <bruno@clisp.org>
30957
30958         Tweak the dup2 test.
30959         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30960         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30961         the test file is still empty. Fix argument order of lseek.
30962
30963 2009-08-23  Bruno Haible  <bruno@clisp.org>
30964
30965         Avoid test link errors when the modules getopt-gnu, gettext are used.
30966         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30968
30969 2009-08-23  Bruno Haible  <bruno@clisp.org>
30970
30971         Fix getdtablesize() on mingw.
30972         * lib/getdtablesize.c (getdtablesize): Implement differently.
30973         * lib/unistd.in.h (getdtablesize): Improve comment.
30974
30975 2009-08-23  Bruno Haible  <bruno@clisp.org>
30976
30977         New module 'mkostemp'.
30978         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30979         * lib/stdlib.in.h (mksotemp): New declaration.
30980         * lib/mkostemp.c: New file, from glibc with modifications.
30981         * lib/tempname.h (GT_FILE): Remove outdated comment.
30982         (gen_tempname): Add flags argument.
30983         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30984         (__GT_FILE): Map to 1.
30985         (small_open, large_open): Remove macros.
30986         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30987         * lib/mkstemp.c (mkstemp): Update.
30988         * lib/mkdtemp.c (mkdtemp): Likewise.
30989         * m4/mkostemp.m4: New file.
30990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30991         HAVE_MKOSTEMP.
30992         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30993         HAVE_MKOSTEMP.
30994         * modules/mkostemp: New file, based on modules/mkstemp.
30995         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30996         * NEWS: Mention the change.
30997
30998 2009-08-23  Bruno Haible  <bruno@clisp.org>
30999
31000         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31001         Reported by Eric Blake.
31002
31003 2009-08-23  Bruno Haible  <bruno@clisp.org>
31004
31005         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31006         Reported by Eric Blake.
31007
31008 2009-08-23  Bruno Haible  <bruno@clisp.org>
31009
31010         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31011         * modules/pipe2 (Depends-on): Likewise.
31012
31013 2009-08-23  Eric Blake  <ebb9@byu.net>
31014
31015         fcntl-h: add O_TTY_INIT support
31016         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31017         * tests/test-fcntl-h.c (o): Test it.
31018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31019
31020         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31021         * modules/fcntl: Move <fcntl.h> header replacement...
31022         * modules/fcntl-h: ...to new name, so as not to collide with
31023         like-named function.
31024         * tests/test-fcntl.c: Rename...
31025         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31026         * modules/fcntl-tests: Rename...
31027         * modules/fcntl-h-tests: ...to this.  Update test file name.
31028         * modules/chdir-long (Depends-on): Update clients.
31029         * modules/chdir-safer (Depends-on): Likewise.
31030         * modules/fcntl-safer (Depends-on): Likewise.
31031         * modules/fts (Depends-on): Likewise.
31032         * modules/mkancesdirs (Depends-on): Likewise.
31033         * modules/mkdir-p (Depends-on): Likewise.
31034         * modules/open (Depends-on): Likewise.
31035         * modules/savewd (Depends-on): Likewise.
31036         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31037         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31038
31039 2009-08-22  Bruno Haible  <bruno@clisp.org>
31040
31041         * modules/binary-io (License): Relicense under LGPL.
31042         * modules/pipe2 (License): Likewise.
31043
31044 2009-08-22  Bruno Haible  <bruno@clisp.org>
31045
31046         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31047         return value.
31048         * lib/pipe-filter-gi.c (filter_init): Likewise.
31049         Reported by Eric Blake.
31050
31051 2009-08-22  Bruno Haible  <bruno@clisp.org>
31052
31053         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31054         * modules/pipe (Depends-on): Add pipe2.
31055
31056 2009-08-22  Bruno Haible  <bruno@clisp.org>
31057
31058         Tests for module 'pipe2'.
31059         * modules/pipe2-tests: New file.
31060         * tests/test-pipe2.c: New file.
31061
31062         New module 'pipe2'.
31063         * lib/unistd.in.h (pipe2): New declaration.
31064         * lib/pipe2.c: New file.
31065         * m4/pipe2.m4: New file.
31066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31067         HAVE_PIPE2.
31068         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31069         * modules/pipe2: New file.
31070         * doc/glibc-functions/pipe2.texi: Mention the new module.
31071
31072 2009-08-22  Bruno Haible  <bruno@clisp.org>
31073
31074         Reference some new glibc functions.
31075         * doc/glibc-functions/accept4.texi: New file.
31076         * doc/glibc-functions/dup3.texi: New file.
31077         * doc/glibc-functions/mkostemp.texi: New file.
31078         * doc/glibc-functions/pipe2.texi: New file.
31079         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31080         (Glibc sys/socket.h): Refer to accept4.
31081         (Glibc unistd.h): Refer to dup3, pipe2.
31082         Reported by Eric Blake.
31083
31084 2009-08-22  Jim Meyering  <meyering@redhat.com>
31085             Bruno Haible  <bruno@clisp.org>
31086
31087         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31088         This makes it so packages using automake-1.11's silent-rules option
31089         can print e.g., a single "GEN    configmake.h" line, rather than
31090         the 30+ statements that perform the job.  If you want to see the
31091         actual commands, you can still run "make V=1".
31092         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31093         so that make output is abbreviated when those variables are defined
31094         appropriately.
31095         * modules/argz: Likewise.
31096         * modules/arpa_inet: Likewise.
31097         * modules/byteswap: Likewise.
31098         * modules/configmake: Likewise.
31099         * modules/dirent: Likewise.
31100         * modules/errno: Likewise.
31101         * modules/fcntl: Likewise.
31102         * modules/float: Likewise.
31103         * modules/fnmatch: Likewise.
31104         * modules/getopt-posix: Likewise.
31105         * modules/glob: Likewise.
31106         * modules/iconv_open: Likewise.
31107         * modules/inttypes: Likewise.
31108         * modules/localcharset: Likewise.
31109         * modules/locale: Likewise.
31110         * modules/math: Likewise.
31111         * modules/netdb: Likewise.
31112         * modules/netinet_in: Likewise.
31113         * modules/poll: Likewise.
31114         * modules/posix_spawnp-tests: Likewise.
31115         * modules/sched: Likewise.
31116         * modules/search: Likewise.
31117         * modules/selinux-h: Likewise.
31118         * modules/signal: Likewise.
31119         * modules/spawn: Likewise.
31120         * modules/stdarg: Likewise.
31121         * modules/stdbool: Likewise.
31122         * modules/stddef: Likewise.
31123         * modules/stdint: Likewise.
31124         * modules/stdio: Likewise.
31125         * modules/stdlib: Likewise.
31126         * modules/string: Likewise.
31127         * modules/strings: Likewise.
31128         * modules/sys_file: Likewise.
31129         * modules/sys_ioctl: Likewise.
31130         * modules/sys_select: Likewise.
31131         * modules/sys_socket: Likewise.
31132         * modules/sys_stat: Likewise.
31133         * modules/sys_time: Likewise.
31134         * modules/sys_times: Likewise.
31135         * modules/sys_utsname: Likewise.
31136         * modules/sys_wait: Likewise.
31137         * modules/sysexits: Likewise.
31138         * modules/time: Likewise.
31139         * modules/unistd: Likewise.
31140         * modules/wchar: Likewise.
31141         * modules/wctype: Likewise.
31142
31143 2009-08-22  Jim Meyering  <meyering@redhat.com>
31144
31145         announce-gen: detect write failure
31146         * build-aux/announce-gen: Add Coda at end.
31147         Remove equivalent-but-more-verbose block at top.
31148
31149 2009-08-19  Akim Demaille  <demaille@gostai.com>
31150
31151         bootstrap: --help to stdout.
31152         * bootstrap (usage): Don't send --help to stderr.
31153         Use a here doc instead of a long string.
31154
31155 2009-08-21  Eric Blake  <ebb9@byu.net>
31156
31157         test-popen-safer: split from test-popen
31158         * tests/test-popen.c (main): Move...
31159         * tests/test-popen.h: ...into new file.
31160         * tests/test-popen-safer2.c: New file.
31161         * modules/popen-tests (Files): Add test-popen.h.
31162         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31163         Suggested by Bruno Haible.
31164
31165         test-fcntl-safer: split from test-open
31166         * tests/test-open.c (main): Move...
31167         * tests/test-open.h: ...into new file.
31168         * tests/test-fcntl-safer.c: New file.
31169         * modules/open-tests (Files): Add test-open.h.
31170         * modules/fcntl-safer-tests: New file.
31171         Suggested by Bruno Haible.
31172
31173         test-fopen-safer: split from test-fopen
31174         * tests/test-fopen.c (main): Move...
31175         * tests/test-fopen.h: ...into new file.
31176         * tests/test-fopen-safer.c: New file.
31177         * modules/fopen-tests (Files): Add test-fopen.h.
31178         * modules/fopen-safer-tests: New file.
31179         Suggested by Bruno Haible.
31180
31181 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31182
31183         popen-safer: test O_CLOEXEC at run-time.
31184         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31185
31186 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31187
31188         fcntl: move more flags to the header
31189         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31190         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31191         * lib/fcntl.in.h: Do both things here.
31192
31193 2009-08-21  Jim Meyering  <meyering@redhat.com>
31194
31195         consistently remove $@-t before redirecting to it
31196         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31197         * modules/alloca-opt: Likewise.
31198         * modules/byteswap: Likewise.
31199         * modules/fnmatch: Likewise.
31200         * modules/getopt-posix: Likewise.
31201         * modules/glob: Likewise.
31202         * modules/poll: Likewise.
31203         * modules/posix_spawnp-tests: Likewise.
31204         * modules/sys_socket: Likewise.
31205         * modules/sysexits: Likewise.
31206
31207 2009-08-21  Eric Blake  <ebb9@byu.net>
31208
31209         popen: simplify access to original popen
31210         * lib/popen.c (rpl_popen): No need to worry about popen being a
31211         macro.
31212         Reported by Bruno Haible.
31213
31214 2009-08-20  Eric Blake  <ebb9@byu.net>
31215
31216         build: avoid some compiler warnings
31217         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31218         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31219         type.
31220         (new_exclude_segment, excluded_file_pattern_p)
31221         (excluded_file_name_p): Reduce scope.
31222         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31223         old-style declaration.
31224
31225 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31226
31227         * tests/test-exclude1.sh: Handle Windows EOL.
31228         * tests/test-exclude2.sh: Likewise.
31229         * tests/test-exclude3.sh: Likewise.
31230         * tests/test-exclude4.sh: Likewise.
31231         * tests/test-exclude5.sh: Likewise.
31232         * tests/test-exclude6.sh: Likewise.
31233         * tests/test-exclude7.sh: Likewise.
31234
31235 2009-08-19  Akim Demaille  <demaille@gostai.com>
31236
31237         bootstrap: find sha1sum when named gsha1sum.
31238         * bootstrap (find_tool): New.
31239         ($SHA1SUM): New.
31240         Use it.
31241
31242 2009-08-20  Jim Meyering  <meyering@redhat.com>
31243
31244         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31245         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31246         expression that converts "." in a file name to "\." in the resulting
31247         regexp.  Start with a dummy statement, so that prior shell variable
31248         definitions are expanded portably.  Reported by Simon Josefsson.
31249
31250 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31251
31252         Fix polling for writeability of a screen buffer.
31253         * lib/poll.c: Distinguish input and screen buffers for the
31254         Win32 implementation.
31255         * lib/select.c: Likewise.
31256
31257 2009-08-19  Eric Blake  <ebb9@byu.net>
31258
31259         popen-safer: prevent popen from clobbering std descriptors
31260         * modules/popen-safer: New file.
31261         * lib/popen-safer.c: Likewise.
31262         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31263         * lib/stdio--.h (popen): Provide override.
31264         * lib/stdio-safer.h (popen_safer): Provide declaration.
31265         * tests/test-popen.c (includes): Partially test this.
31266         * modules/popen-safer-tests: New file, for more tests.
31267         * tests/test-popen-safer.c: Likewise.
31268         * MODULES.html.sh (file stream based Input/Output): Mention it.
31269
31270         tests: test some of the *-safer modules
31271         * modules/fopen-safer (Depends-on): Add fopen.
31272         * modules/fcntl-safer (Depends-on): Add fcntl.
31273         * modules/stdlib-safer (Depends-on): Add stdlib.
31274         (configure.ac): Set indicator.
31275         * modules/unistd-safer (configure.ac): Likewise.
31276         * modules/tmpfile-safer (configure.ac): Likewise.
31277         (Depends-on): Add tmpfile.
31278         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31279         active.
31280         * tests/test-fopen.c (includes): Test safer versions when they are
31281         in use.
31282         * tests/test-open.c (includes): Likewise.
31283
31284         popen: fix cygwin 1.5 bug when stdin closed
31285         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31286         * modules/popen: New file.
31287         * modules/popen-tests: Likewise.
31288         * tests/test-popen.c: Likewise.
31289         * m4/popen.m4: Likewise.
31290         * lib/popen.c: Likewise.
31291         * lib/stdio.in.h (popen): New declaration.
31292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31293         * modules/stdio (Makefile.am): Likewise.
31294         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31295
31296 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31297
31298         maint.mk: give full control over update-copyright exclusions
31299         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31300         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31301         (update-copyright): Don't force inclusion of top-level
31302         ChangeLog.  Don't force exclusion of all COPYING files, but make
31303         them the default exclusion instead.
31304
31305 2009-08-16  Bruno Haible  <bruno@clisp.org>
31306
31307         Fix test failures on Solaris 10.
31308         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31309         tests when Solaris iconv() is used.
31310         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31311         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31312         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31313         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31314         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31315
31316 2009-08-16  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix test failures on Solaris 10.
31319         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31320         'tr' program and pass it as first argument.
31321         * tests/test-pipe-filter-gi1.sh: Likewise.
31322         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31323         program as first argument.
31324         * tests/test-pipe-filter-gi1.c (main): Likewise.
31325
31326 2009-08-16  Eric Blake  <ebb9@byu.net>
31327
31328         fpurge: fix previous commits
31329         * modules/fpurge (Makefile.am): Make replacement conditional,
31330         partially reverting 2007-04-29 change; missed in previous
31331         attempt.
31332         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31333         is missing.
31334
31335 2009-08-16  Bruno Haible  <bruno@clisp.org>
31336
31337         Clarify fpurge's effect on the file position.
31338         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31339         * tests/test-fpurge.c (main): Make a second pass for checking the file
31340         position.
31341
31342 2009-08-16  Bruno Haible  <bruno@clisp.org>
31343
31344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31345         declaration of fpurge is missing.
31346         * tests/test-fpurge.c (main): Check that the file has not more contents
31347         than expected. Close the file before removing it.
31348
31349 2009-08-15  Eric Blake  <ebb9@byu.net>
31350
31351         fpurge: don't wrap working cygwin implementation
31352         * lib/fpurge.c (fpurge): Fix comment typo.
31353         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31354         1.7 to avoid replacement.
31355         * tests/test-fpurge.c (main): Enhance test.
31356
31357 2009-08-15  Eric Blake  <ebb9@byu.net>
31358         and Jim Meyering  <meyering@redhat.com>
31359
31360         test-update-copyright: skip if perl is insufficient
31361         * tests/test-update-copyright.sh: Failure to run maintainer tool
31362         should not cause testsuite failure on cygwin 1.5.
31363
31364 2009-08-14  Eric Blake  <ebb9@byu.net>
31365
31366         doc: mention more functions added in cygwin 1.7.0
31367         * doc/posix-headers/limits.texi (limits.h): Update for recent
31368         cygwin additions.
31369         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31370         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31371         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31372         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31373         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31374
31375 2009-08-14  Eric Blake  <ebb9@byu.net>
31376
31377         maint.mk: simplify update-copyright rule
31378         * top/maint.mk (update-copyright-local): Delete, and document how
31379         to do it in cfg.mk instead.
31380         (update-copyright-exclude-regexp): Delete, and document how to do
31381         it in .x-update-copyright instead.
31382         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31383         exclude ChangeLog.
31384
31385 2009-08-14  Bruno Haible  <bruno@clisp.org>
31386
31387         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31388
31389 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31390
31391         maint.mk: support update-copyright-env
31392         * top/maint.mk (update-copyright-env): Define place-holder.
31393         (update-copyright): Expand $(update-copyright-env) before
31394         invoking update-copyright.
31395
31396 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31397
31398         update-copyright: implement forced reformatting
31399         * build-aux/update-copyright: Implement and document
31400         UPDATE_COPYRIGHT_FORCE.
31401         * tests/test-update-copyright.sh: Test it.
31402
31403 2009-08-14  Eric Blake  <ebb9@byu.net>
31404         and Bruno Haible  <bruno@clisp.org>
31405
31406         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31407         * tests/test-locale.c: Revert previous patch related to NULL.
31408         * tests/test-stdio.c: Likewise.
31409         * tests/test-stdlib.c: Likewise.
31410         * tests/test-string.c: Likewise.
31411         * tests/test-unistd.c: Likewise.
31412         * modules/time-tests (Depends-on): Add verify.
31413         * modules/wchar-tests (Depends-on): Likewise.
31414         * tests/test-time.c: Test for NULL compliance.
31415         * tests/test-wchar.c: Likewise.
31416         * modules/locale (Depends-on): Add stddef.
31417         * modules/stdio (Depends-on): Likewise.
31418         * modules/stdlib (Depends-on): Likewise.
31419         * modules/string (Depends-on): Likewise.
31420         * modules/time (Depends-on): Likewise.
31421         * modules/unistd (Depends-on): Likewise.
31422         * modules/wchar (Depends-on): Likewise.
31423         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31424         * lib/stdlib.in.h (includes): Likewise.
31425         * lib/string.in.h (includes): Likewise.
31426         * lib/time.in.h (includes): Likewise.
31427         * lib/unistd.in.h (includes): Likewise.
31428         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31429         replaced.
31430         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31431         * m4/stddef_h.m4: New file.
31432         * modules/stddef: Likewise.
31433         * lib/stddef.in.h: Likewise.
31434         * modules/stddef-tests: Likewise.
31435         * tests/test-stddef.c: Likewise.
31436         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31437         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31438         * doc/posix-headers/locale.texi (locale.h): Likewise.
31439         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31440         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31441         * doc/posix-headers/string.texi (string.h): Likewise.
31442         * doc/posix-headers/time.texi (time.h): Likewise.
31443         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31444         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31445
31446 2009-08-14  Eric Blake  <ebb9@byu.net>
31447
31448         doc: improve git diff of texinfo files
31449         * .gitattributes: Add rule for *.texi files, with hint on how to
31450         use it.
31451         Copied from m4, and based on a report by Bruno Haible.
31452
31453 2009-08-14  Bruno Haible  <bruno@clisp.org>
31454
31455         Disable multithread support by default on Cygwin 1.5.x for real.
31456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31457
31458 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31459
31460         update-copyright: much ado about intervals
31461         * build-aux/update-copyright: Implement and document
31462         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31463         of copyright year intervals.
31464         Also, document UPDATE_COPYRIGHT_YEAR.
31465         * tests/test-update-copyright.sh: Test it.
31466
31467         update-copyright: convert 2-digit to 4-digit years
31468         * build-aux/update-copyright: Implement and document.
31469         * tests/test-update-copyright.sh: Update.
31470
31471 2009-08-14  Jim Meyering  <meyering@redhat.com>
31472
31473         test-exclude: avoid coreutils "make check" failure
31474         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31475         just as in test-argmatch.c.
31476
31477 2009-08-13  Eric Blake  <ebb9@byu.net>
31478
31479         test-dup2: fix bad assumption
31480         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31481         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31482
31483         test-version-etc: fix CRLF portability issue
31484         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31485         recognize \r.
31486         * tests/test-argp-version-etc-1.sh: Likewise.
31487
31488         getopt: update client modules
31489         * modules/argp (Depends-on): Use getopt-gnu.
31490         * modules/git-merge-changelog (Depends-on): Likewise.
31491         * modules/long-options (Depends-on): Likewise.
31492         * modules/xstrtol (Depends-on): Likewise.
31493
31494 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31495
31496         * tests/test-version-etc.sh: Don't fail on different
31497         project/version.  Don't fail on CRLF differences.  Rewrite to use
31498         multiple -e instead of multiple sed forks, suggested by Eric Blake
31499         <ebb9@byu.net>.
31500         * tests/test-argp-version-etc-1.sh: Likewise.
31501
31502 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31503
31504         * tests/test-version-etc.sh: Don't fail on different
31505         project/version.
31506
31507 2009-08-12  Bruno Haible  <bruno@clisp.org>
31508
31509         Tests for modules 'getopt-posix', 'getopt-gnu'.
31510         * modules/getopt-posix-tests: New file.
31511         * tests/test-getopt.c: New file.
31512         * tests/test-getopt.h: New file.
31513         * tests/test-getopt_long.h: New file.
31514
31515         New modules 'getopt-posix', 'getopt-gnu'.
31516         * modules/getopt-gnu: New file, renamed from modules/getopt.
31517         * modules/getopt-posix: New file.
31518         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31519         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31520         (gl_GETOPT): Remove macro.
31521         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31522         Disable the test against BSD systems that declare optreset. Test
31523         against mingw bug. Test against lack of support of optional arguments
31524         on many platforms.
31525         * doc/glibc-headers/getopt.texi: Update module name and list of
31526         relevant platforms.
31527         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31528         'getopt-gnu' and more portability problems.
31529         * NEWS: Mention the changes.
31530
31531 2009-08-12  Bruno Haible  <bruno@clisp.org>
31532
31533         Ensure that optarg etc. get declared by <unistd.h>.
31534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31535         AC_USE_SYSTEM_EXTENSIONS.
31536         * modules/getopt (Depends-on): Add 'extensions'.
31537
31538 2009-08-12  Bruno Haible  <bruno@clisp.org>
31539
31540         Avoid test link errors.
31541         * modules/pipe-filter-ii-tests (Makefile.am): Define
31542         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31543         * modules/pipe-filter-gi-tests (Makefile.am): Define
31544         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31546
31547 2009-08-12  Bruno Haible  <bruno@clisp.org>
31548
31549         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31550         gl_GETOPT_SUBSTITUTE before.
31551         (gl_GETOPT): Use it.
31552         * m4/argp.m4 (gl_ARGP): Update.
31553         Reported by Sergey Poznyakoff.
31554
31555         * m4/getopt.m4: Reorder macros.
31556         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31557         (gl_GETOPT_SUBSTITUTE): Remove macro.
31558
31559 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31560
31561         Minor improvement in gitlog-to-changelog
31562
31563         * build-aux/gitlog-to-changelog: New option `--format' makes
31564         output format string configurable.
31565
31566 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31567
31568         Optimize exclude: use hash tables for non-wildcard patterns.
31569
31570         * lib/exclude.c: Include hash.h and mbuiter.h
31571         (struct exclude_pattern, exclude_segment): New data types.
31572         (struct exclude): Rewrite.
31573         (fnmatch_pattern_has_wildcards): New function.
31574         (new_exclude_segment, free_exclude_segment): New functions.
31575         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31576         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31577         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31578         * modules/exclude: Depend on hash and mbuiter.
31579
31580         * modules/exclude-tests: New file.
31581         * tests/test-exclude.c: New file.
31582         * tests/test-exclude1.sh: New file.
31583         * tests/test-exclude2.sh: New file.
31584         * tests/test-exclude3.sh: New file.
31585         * tests/test-exclude4.sh: New file.
31586         * tests/test-exclude5.sh: New file.
31587         * tests/test-exclude6.sh: New file.
31588         * tests/test-exclude7.sh: New file.
31589
31590 2009-08-12  Bruno Haible  <bruno@clisp.org>
31591
31592         Ensure that getopt() gets declared by <unistd.h>.
31593         * lib/unistd.in.h: Conditionally include getopt.h.
31594         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31595         Set GNULIB_UNISTD_H_GETOPT.
31596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31597         GNULIB_UNISTD_H_GETOPT.
31598         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31599
31600 2009-08-12  Bruno Haible  <bruno@clisp.org>
31601
31602         Clarify logic.
31603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31604         gl_replace_getopt instead of GETOPT_H.
31605
31606 2009-08-12  Bruno Haible  <bruno@clisp.org>
31607
31608         * m4/getopt.m4: Add comments.
31609
31610 2009-08-12  Bruno Haible  <bruno@clisp.org>
31611
31612         Disable multithread support by default on Cygwin 1.5.x.
31613         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31614         set gl_use_threads=no if not specified otherwise.
31615
31616 2009-08-11  Bruno Haible  <bruno@clisp.org>
31617
31618         Avoid compilation error on NetBSD 5.0.
31619         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31620         * tests/test-stdio.c: Likewise.
31621         * tests/test-stdlib.c: Likewise.
31622         * tests/test-string.c: Likewise.
31623         * tests/test-unistd.c: Likewise.
31624         Reported by Greg Troxel <gdt@ir.bbn.com>
31625         at <https://savannah.gnu.org/support/?106973>.
31626
31627 2009-08-11  Bruno Haible  <bruno@clisp.org>
31628
31629         * modules/dup2-tests (Depends-on): Remove close.
31630
31631         Undo 2009-07-19 commit.
31632         * modules/acl-tests (Depends-on): Remove close.
31633         * modules/binary-io-tests (Depends-on): Likewise.
31634         * modules/closein-tests (Depends-on): Likewise.
31635         * modules/flock-tests (Depends-on): Likewise.
31636         * modules/fsync-tests (Depends-on): Likewise.
31637         * modules/lseek-tests (Depends-on): Likewise.
31638         * modules/pipe-tests (Depends-on): Likewise.
31639         * modules/posix_spawn-tests (Depends-on): Likewise.
31640         * modules/posix_spawnp-tests (Depends-on): Likewise.
31641         * modules/stat-time-tests (Depends-on): Likewise.
31642         * modules/yesno-tests (Depends-on): Likewise.
31643
31644 2009-08-10  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31647
31648 2009-08-10  Bruno Haible  <bruno@clisp.org>
31649
31650         Fix a gcc warning.
31651         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31652
31653 2009-08-10  Bruno Haible  <bruno@clisp.org>
31654
31655         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31656         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31657         not only the first time.
31658         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31659         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31660         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31661         is 1, not only the the first time.
31662
31663 2009-08-10  Bruno Haible  <bruno@clisp.org>
31664
31665         Make it possible to use module 'gethostname' without module 'close'.
31666         * lib/unistd.in.h (close): Evoke a link error only if
31667         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31669         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31670         * modules/unistd (Makefile.am): Substitute
31671         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31672         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31673         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31675         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31676         * modules/sys_ioctl (Makefile.am): Substitute
31677         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31678         * modules/socket (configure.ac): On native Windows, set
31679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31680         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31681         Reported by Sam Steingold <sds@gnu.org>.
31682
31683 2009-08-10  Bruno Haible  <bruno@clisp.org>
31684
31685         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31686         * modules/ioctl (configure.ac): Likewise.
31687
31688 2009-08-10  Bruno Haible  <bruno@clisp.org>
31689
31690         Avoid collision between gnulib wrapper and libintl wrapper.
31691         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31692         already defined in intl/printf.c.
31693         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31694         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31695
31696 2009-08-09  Bruno Haible  <bruno@clisp.org>
31697
31698         Make <sys/select.h> really self-contained, also on Solaris 10.
31699         * lib/sys_select.in.h: Include <string.h>.
31700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31701         Solaris 10 problem.
31702         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31703         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31704         Reported by Jim Meyering.
31705
31706 2009-08-09  Bruno Haible  <bruno@clisp.org>
31707
31708         Avoid warnings from 'aclocal' that are due to a use of macro name
31709         AM_XGETTEXT_OPTION that is not defined in automake.
31710         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31711         automake.
31712         * modules/error (configure.ac): Likewise.
31713         * modules/propername (configure.ac): Likewise.
31714         * modules/vasprintf (configure.ac): Likewise.
31715         * modules/verror (configure.ac): Likewise.
31716         * modules/xprintf (configure.ac): Likewise.
31717         * modules/xvasprintf (configure.ac): Likewise.
31718
31719 2009-08-08  Bruno Haible  <bruno@clisp.org>
31720
31721         Avoid compilation error in C++ mode.
31722         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31723         Reported by Sam Steingold <sds@gnu.org>.
31724
31725 2009-08-08  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31728         for the various Unix platforms.
31729         * doc/posix-headers/limits.texi: Update platforms list regarding
31730         HOST_NAME_MAX.
31731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31732
31733 2009-08-07  Jim Meyering  <meyering@redhat.com>
31734
31735         selinux-at: fix typo in a comment
31736         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31737         Spotted by Paolo Bonzini.
31738
31739         selinux-at: remove redundant m4 code, add documentation
31740         * modules/selinux-at (configure.ac): Remove redundant code.
31741         LIB_SELINUX is already set via the dependent module, selinux-h.
31742         (Include): Add quotes around selinux-at.h.
31743         * lib/selinux-at.h: Add documentation.
31744         Reported by Bruno Haible in
31745         http://marc.info/?l=gnulib-bug&m=124958988300749
31746
31747 2009-08-07  Bruno Haible  <bruno@clisp.org>
31748
31749         Avoid link error on MacOS X 10.3 and 10.4.
31750         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31751         on non-ELF systems.
31752         * lib/argp-pv.c (argp_program_version): Likewise.
31753         Reported by Simon Josefsson.
31754
31755 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31756
31757         * tests/test-version-etc.sh: Use $EXEEXT.
31758
31759 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31760
31761         update-copyright: update documentation to point to maint.mk
31762         * build-aux/update-copyright: Here.
31763
31764 2009-08-06  Jim Meyering  <meyering@redhat.com>
31765
31766         maint.mk: support update-copyright-local
31767         * top/maint.mk (update-copyright-local): Define place-holder.
31768         (update-copyright): Depend on $(update-copyright-local).
31769
31770 2009-08-06  Jim Meyering  <meyering@redhat.com>
31771
31772         selinux-at: new module
31773         Initially written for coreutils, this module will soon be
31774         used by findutils, too.
31775         * MODULES.html.sh [Misc]: Add selinux-at.
31776         * lib/selinux-at.h: New file, from coreutils.
31777         * lib/selinux-at.c: Likewise.
31778         * modules/selinux-at: Likewise.
31779         (License): Change from LGPL to GPL, since it depends
31780         on the GPL'd openat module.
31781
31782         doc: update README
31783         * README: Remove references to cogito.
31784         Remove cvs-repo-updating instructions from 2007.
31785         Don't imply that CVS is better if you have limited disk space.
31786
31787 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31788
31789         update-copyright: support C-style comments
31790         * build-aux/update-copyright: Implement and document.
31791         * tests/test-update-copyright.sh: Test.
31792
31793 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31794
31795         update-copyright: support omitted "(C)"
31796         * build-aux/update-copyright: Implement and document.  Also,
31797         allow variable whitespace before "(C)".
31798         * tests/test-update-copyright.sh: Test.
31799
31800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31801
31802         update-copyright: don't trip on non-FSF copyright statements
31803         * build-aux/update-copyright: Fix so that the first correctly
31804         formatted FSF copyright statement is recognized no matter what
31805         appears before it.  Update documentation.
31806         * tests/test-update-copyright.sh: Test that.
31807
31808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31809
31810         update-copyright: clean up code a little
31811         * build-aux/update-copyright: Append "_re" to the name of any
31812         variable holding a regular expression.
31813         Replace "old" and "new" with "stmt" in variable names.
31814         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31815         handled correctly.
31816         Format code more consistently.
31817
31818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31819
31820         update-copyright-tests: improve portability
31821         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31822         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31823
31824 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31825
31826         update-copyright: support @copyright{} and &copy;
31827         * build-aux/update-copyright: Implement and document.
31828         * tests/test-update-copyright.sh: Test.
31829
31830 2009-08-04  Jim Meyering  <meyering@redhat.com>
31831
31832         update-copyright-tests: correctly test EOL=\r\n handling
31833         * tests/test-update-copyright.sh: Put \r at the end of some lines
31834         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31835
31836         maint.mk: make update-copyright exclusion list more configurable
31837         * top/maint.mk (update-copyright): Default to excluding COPYING,
31838         but allow an override, in case someone does want to update that file.
31839
31840         maint.mk: don't update copyright date in COPYING
31841         * top/maint.mk (update-copyright): Exclude COPYING.
31842
31843         maint.mk: add a copyright-updating rule
31844         * top/maint.mk (update-copyright): New rule.
31845         Derived from coreutils/Makefile.am.
31846
31847         update-copyright: rename some variables
31848         * build-aux/update-copyright: Rename a few variables for clarity.
31849         Tweak syntax.  List Joel E. Denny as coauthor.
31850
31851 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31852
31853         update-copyright: fix bug for 2-digit last year and add tests
31854         * build-aux/update-copyright: Fix bug.
31855         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31856         specified.
31857         * modules/update-copyright-tests: New
31858         * tests/test-update-copyright.sh: New.
31859
31860 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31861
31862         update-copyright: handle leading tabs in line prefix
31863         * build-aux/update-copyright: Count leading tabs as 8 spaces
31864         when computing margin.  This helps with the formatting of
31865         ChangeLogs, for example.
31866         Fix documentation a little.
31867
31868 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31869
31870         update-copyright: support EOL=\r\n
31871         * build-aux/update-copyright: Implement that.
31872
31873 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31874
31875         update-copyright: automatically format copyright statements
31876         * build-aux/update-copyright: Implement that.
31877         Also, be a little more predictable and safer by always failing
31878         when the full copyright format is not perfectly recognized as an
31879         unbroken whole.  Discussed at
31880         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31881         Rewrite documentation.
31882
31883 2009-08-03  Bruno Haible  <bruno@clisp.org>
31884
31885         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31886
31887 2009-08-02  Bruno Haible  <bruno@clisp.org>
31888
31889         Tests for module 'uname'.
31890         * modules/uname-tests: New file.
31891         * tests/test-uname.c: New file.
31892
31893         New module 'uname'.
31894         * lib/uname.c: New file.
31895         * m4/uname.m4: New file.
31896         * modules/uname: New file.
31897         * doc/posix-functions/uname.texi: Mention the new module.
31898
31899 2009-08-02  Bruno Haible  <bruno@clisp.org>
31900
31901         Tests for module 'sys_utsname'.
31902         * modules/sys_utsname-tests: New file.
31903         * tests/test-sys_utsname.c: New file.
31904
31905         New module 'sys_utsname'.
31906         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31907         * m4/sys_utsname_h.m4: New file.
31908         * modules/sys_utsname: New file.
31909         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31910
31911 2009-08-02  Bruno Haible  <bruno@clisp.org>
31912
31913         Implicitly initialize the sockets library.
31914         * lib/gethostname.c: Include sockets.h.
31915         (rpl_gethostname): Invoke gl_sockets_startup.
31916         * lib/socket.c: Include sockets.h.
31917         (rpl_socket): Invoke gl_sockets_startup.
31918         * modules/gethostname (Depends-on): Add sockets.
31919         * modules/socket (Depends-on): Likewise.
31920         * tests/test-poll.c: Don't include sockets.h.
31921         (main): Don't invoke gl_sockets_startup.
31922         * tests/test-select.c: Don't include sockets.h.
31923         (main): Don't invoke gl_sockets_startup.
31924
31925 2009-08-02  Bruno Haible  <bruno@clisp.org>
31926
31927         Allow multiple calls to gl_sockets_startup.
31928         * lib/sockets.c (initialized_sockets_version): New variable.
31929         (gl_sockets_startup): Do nothing if already called for this or a higher
31930         version.
31931         (gl_sockets_cleanup): Reset initialized_sockets_version.
31932
31933 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31934
31935         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31936         different project/version.
31937
31938 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31939             Bruno Haible  <bruno@clisp.org>
31940
31941         Tests for module 'pipe-filter-gi'.
31942         * modules/pipe-filter-gi-tests: New file.
31943         * tests/test-pipe-filter-gi1.sh: New file.
31944         * tests/test-pipe-filter-gi1.c: New file.
31945         * tests/test-pipe-filter-gi2.sh: New file.
31946         * tests/test-pipe-filter-gi2-main.c: New file.
31947         * tests/test-pipe-filter-gi2-child.c: New file.
31948
31949         New module 'pipe-filter-gi'.
31950         * lib/pipe-filter-gi.c: New file.
31951         * modules/pipe-filter-gi: New file.
31952
31953 2009-08-02  Bruno Haible  <bruno@clisp.org>
31954             Paolo Bonzini  <bonzini@gnu.org>
31955
31956         Tests for module 'pipe-filter-ii'.
31957         * modules/pipe-filter-ii-tests: New file.
31958         * tests/test-pipe-filter-ii1.sh: New file.
31959         * tests/test-pipe-filter-ii1.c: New file.
31960         * tests/test-pipe-filter-ii2.sh: New file.
31961         * tests/test-pipe-filter-ii2-main.c: New file.
31962         * tests/test-pipe-filter-ii2-child.c: New file.
31963
31964         New module 'pipe-filter-ii'.
31965         * lib/pipe-filter.h: New file.
31966         * lib/pipe-filter-ii.c: New file.
31967         * lib/pipe-filter-aux.h: New file.
31968         * modules/pipe-filter-ii: New file.
31969
31970 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31971
31972         * lib/gc-libgcrypt.c: Change copyright to FSF.
31973         * lib/gc-gnulib.c: Likewise.
31974
31975 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31976
31977         * lib/gethostname.c: Include limits.h.
31978
31979 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31980             Bruno Haible  <bruno@clisp.org>
31981
31982         Ensure HOST_NAME_MAX as part of the gethostname module.
31983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31984         define also HOST_NAME_MAX.
31985         * tests/test-gethostname.c: Include <limits.h>.
31986         (main): Check also HOST_NAME_MAX.
31987         * doc/posix-headers/limits.texi: Document the mingw problem.
31988
31989 2009-08-02  Bruno Haible  <bruno@clisp.org>
31990
31991         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31992         Add comments.
31993
31994 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31995
31996         * lib/gethostname.c: Add Windows wrapper.
31997         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31998         * modules/gethostname: Depend on sys_socket & errno, for also
31999         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32000         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32001
32002 2009-07-31  Jim Meyering  <meyering@redhat.com>
32003
32004         getloadavg: fix symbol name in comment
32005         * lib/getloadavg.c: Correct a typo I introduced when adding
32006         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32007         Matt Kraai spotted the problem.
32008
32009 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32010
32011         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32012         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32013         code also if ! defined N_NAME_POINTER.
32014         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32015         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32016         but the n_name member is a 12-byte array.
32017
32018 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32019
32020         update-copyright: generalize comment handling
32021         * build-aux/update-copyright: Handle copyright statements
32022         within more comment styles.
32023         Document usage.
32024         Report any file with an external copyright holder or parse failure.
32025
32026 2009-07-29  Jim Meyering  <meyering@redhat.com>
32027
32028         mktime: correct setting of REPLACE_MKTIME
32029         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32030
32031         update-copyright: new module
32032         * modules/update-copyright: New file.
32033         * build-aux/update-copyright: New file.
32034         * MODULES.html.sh (maint+release support): Add update-copyright.
32035
32036 2009-07-27  Bruno Haible  <bruno@clisp.org>
32037
32038         Fix compilation error when <ctime> is used and mktime is replaced.
32039         * lib/time.in.h (mktime): New declaration.
32040         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32041         REPLACE_MKTIME instead of defining mktime in config.h.
32042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32043         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32044         Reported by Ross McFarland <rwmcfa1@neces.com>.
32045
32046 2009-07-27  Bruno Haible  <bruno@clisp.org>
32047
32048         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32049         Reported by Matt Kraai <mkraai@beckman.com>.
32050
32051 2009-07-25  Jim Meyering  <meyering@redhat.com>
32052
32053         maint.mk: avoid warnings about missing files
32054         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32055         diagnostic when .prev-version does not exist.
32056         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32057         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32058         nonexistent cfg.mk.
32059         Suggestions from Simon Josefsson.
32060
32061 2009-07-25  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32064         defined as macros. Needed on QNX 6.4.1.
32065         Reported by Matt Kraai <mkraai@beckman.com>.
32066
32067 2009-07-23  Jim Meyering  <meyering@redhat.com>
32068
32069         maint.mk: invoke "make dist" with a working value of XZ_OPT
32070         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32071
32072 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32073
32074         Make fseeko.c compile on QNX.
32075         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32076
32077 2009-07-22  Peter Simons  <simons@cryp.to>
32078
32079         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32080         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32081         * lib/md4.h: Likewise.
32082         * lib/md5.h: Likewise.
32083         * lib/sha1.h: Likewise.
32084         * lib/sha256.h: Likewise.
32085         * lib/sha512.h: Likewise.
32086
32087         tests-sha1: don't assign literal string to 'char *' variable
32088         * tests/test-sha1.c (main): Declare locals with "const" to match
32089         attributes of the right hand side.
32090
32091 2009-07-21  Eric Blake  <ebb9@byu.net>
32092
32093         dup2: fix more mingw problems
32094         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32095         fd to itself.
32096         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32097         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32098         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32099         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32100         care of mingw bugs.
32101
32102 2009-07-21  Jim Meyering  <meyering@redhat.com>
32103
32104         vc-list-files: avoid failure when /bin/sh is dash
32105         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32106         On some Debian based systems, /bin/sh is a symlink to dash, and running
32107         this command would omit the "/" following each 'tests' prefix:
32108           dash -x build-aux/vc-list-files -C . tests
32109         That is because bash and dash work differently:
32110           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32111           bash ok
32112           dash odd
32113
32114 2009-07-21  Eric Blake  <ebb9@byu.net>
32115
32116         dup2-tests: test previous patch
32117         * modules/dup2-tests: New file.
32118         * tests/test-dup2.c: Likewise.
32119         * tests/test-open.c (main): Avoid unspecified behavior.
32120         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32121         test.
32122
32123         dup2: work around mingw and cygwin 1.5 bug
32124         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32126         * modules/unistd (Makefile.am): Substitute it.
32127         * lib/unistd.in.h (dup2): Declare the replacement.
32128         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32129         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32130         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32131         * modules/execute (Depends-on): Add dup2.
32132         * modules/fseterr (Depends-on): Likewise.
32133         * modules/pipe (Depends-on): Likewise.
32134         * modules/posix_spawn-internal (Depends-on): Likewise.
32135
32136 2009-07-21  Bruno Haible  <bruno@clisp.org>
32137
32138         * modules/.gitattributes: New file.
32139
32140 2009-07-20  Bruno Haible  <bruno@clisp.org>
32141
32142         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32143         (main): Use it.
32144
32145 2009-07-20  Eric Blake  <ebb9@byu.net>
32146
32147         test-pipe: make a bit more robust.
32148         * tests/test-pipe.c (myerr): Allow error messages regardless of
32149         what we do to stderr.
32150         (test_pipe): Rearrange to avoid deadlock.
32151         (child_main): Try a larger read, to ensure we avoided deadlock.
32152         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32153         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32154         if misused.
32155
32156 2009-07-19  Jim Meyering  <meyering@redhat.com>
32157
32158         fts: avoid false-positive cycle-detection
32159         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32160         for each new command line argument.
32161
32162 2009-07-19  Bruno Haible  <bruno@clisp.org>
32163
32164         Fix build error on mingw with the modules sys_select and unistd.
32165         * modules/acl-tests (Depends-on): Add close.
32166         * modules/binary-io-tests (Depends-on): Likewise.
32167         * modules/closein-tests (Depends-on): Likewise.
32168         * modules/flock-tests (Depends-on): Likewise.
32169         * modules/fsync-tests (Depends-on): Likewise.
32170         * modules/lseek-tests (Depends-on): Likewise.
32171         * modules/pipe-tests (Depends-on): Likewise.
32172         * modules/posix_spawn-tests (Depends-on): Likewise.
32173         * modules/posix_spawnp-tests (Depends-on): Likewise.
32174         * modules/stat-time-tests (Depends-on): Likewise.
32175         * modules/yesno-tests (Depends-on): Likewise.
32176
32177 2009-07-19  Bruno Haible  <bruno@clisp.org>
32178
32179         Unify conditionals.
32180         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32181         macros, not at the compiler macros.
32182         * lib/pipe.c: Likewise.
32183         * lib/execute.c: Likewise.
32184         * lib/spawni.c: Likewise.
32185
32186 2009-07-19  Bruno Haible  <bruno@clisp.org>
32187
32188         Fix handling of closed stdin/stdout/stderr on mingw.
32189         * lib/w32spawn.h: Include unistd.h.
32190         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32191         file descriptor with O_NOINHERIT flag.
32192         (fd_safer_noinherit): New function, based on fd-safer.c.
32193         (dup_safer_noinherit): New function, based on dup-safer.c.
32194         (undup_safer_noinherit): New function.
32195         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32196         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32197         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32198         instead of fd_safer.
32199         * tests/test-pipe.c: Include <windows.h>.
32200         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32201         result.
32202
32203         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32204         from main.
32205         (test_pipe): Pass an extra argument for disambiguation.
32206         (main): Invoke parent_main or child_main.
32207
32208         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32209         consistently.
32210
32211 2009-07-18  Eric Blake  <ebb9@byu.net>
32212
32213         test-pipe: fix mingw build
32214         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32215
32216 2009-07-18  Bruno Haible  <bruno@clisp.org>
32217
32218         * modules/pipe-tests (Makefile.am): Fix typo.
32219
32220 2009-07-18  Eric Blake  <ebb9@byu.net>
32221
32222         error: fix mingw build
32223         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32224         Reported by Bruno Haible.
32225
32226         error: avoid undefined use of stdout
32227         * lib/error.c (error, error_at_line): Check that fd 1 is open
32228         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32229         is handling faults and the close_stdout module wants to report the
32230         detection of closed stdout as an error.
32231
32232 2009-07-17  Eric Blake  <ebb9@byu.net>
32233
32234         pipe: be robust in face of closed fds
32235         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32236         should cause child to misbehave.
32237         * modules/pipe-tests: New module.
32238         * tests/test-pipe.c: New file.
32239         * tests/test-pipe.sh: New file.
32240         Reported by Akim Demaille.
32241
32242 2009-07-14  Bruno Haible  <bruno@clisp.org>
32243
32244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32245         Reported by anonymous kc.
32246
32247 2009-07-07  Jim Meyering  <meyering@redhat.com>
32248
32249         maint.mk: don't look for translatable strings in *.m4 or *.mk
32250         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32251         when searching for translatable strings.
32252
32253 2009-07-05  Jim Meyering  <meyering@redhat.com>
32254
32255         remove superfluous parentheses in STREQ definition
32256         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32257         * lib/getugroups.c (STREQ): Likewise.
32258         * lib/fnmatch.c (STREQ): Likewise.
32259         Spotted by Bruno Haible.
32260
32261 2009-07-04  Jim Meyering  <meyering@redhat.com>
32262
32263         argv-iter: new module
32264         * MODULES.html.sh: Add argv-iter.
32265         * lib/argv-iter.c, lib/argv-iter.h: New files.
32266         * modules/argv-iter: New file.
32267         * modules/argv-iter-tests: New file.
32268         * tests/test-argv-iter.c: Test it.
32269
32270 2009-07-04  Bruno Haible  <bruno@clisp.org>
32271
32272         Fix assertion.
32273         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32274         contains more exact copies of a given entry than file2, leave the extra
32275         copies unpaired rather than aborting.
32276         Reported by Eric Blake.
32277
32278 2009-07-02  Bruno Haible  <bruno@clisp.org>
32279
32280         Speedup git-merge-changelog for git cherry-pick.
32281         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32282         (entries_mapping_get): New function, extracted from compute_mapping.
32283         (entries_mapping_reverse_get): New function.
32284         (compute_mapping): Add a 'full' argument. Return the result in a
32285         'struct entries_mapping'.
32286         (main): Update. Access the mappings through entries_mapping_get.
32287         Reported by Eric Blake.
32288
32289 2009-07-02  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32292         best_i.
32293
32294 2009-07-02  Bruno Haible  <bruno@clisp.org>
32295
32296         Speed up approximate search for matching ChangeLog entries.
32297         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32298         argument. Call fstrcmp_bounded instead of fstrcmp.
32299         (compute_mapping, try_split_merged_entry, main): Update callers.
32300
32301 2009-07-02  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32304
32305 2009-06-30  Bruno Haible  <bruno@clisp.org>
32306
32307         Reduce the number of uc_is_cased calls.
32308         * lib/unicase.h (casing_suffix_context_t): Add
32309         'first_char_except_ignorable' field.
32310         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32311         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32312         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32313         Update initializer.
32314         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32315         case-ignorable characters.
32316         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32317         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32318         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32319         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32320         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32321
32322 2009-06-30  Bruno Haible  <bruno@clisp.org>
32323
32324         Tests for module 'unicase/ignorable'.
32325         * modules/unicase/ignorable-tests: New file.
32326         * tests/unicase/test-ignorable.c: New file, generated by
32327         gen-uni-tables.
32328
32329         Tests for module 'unicase/cased'.
32330         * modules/unicase/cased-tests: New file.
32331         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32332         * tests/unicase/test-predicate-part1.h: New file, derived from
32333         tests/unictype/test-predicate-part1.h.
32334         * tests/unicase/test-predicate-part2.h: New file, same as
32335         tests/unictype/test-predicate-part2.h.
32336
32337         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32338         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32339         (output_casing_properties): New function.
32340         (main): Call it.
32341         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32342         * lib/unicase/cased.c: Include unictype/bitmap.h.
32343         (uc_is_cased): Define through a bitmap lookup.
32344         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32345         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32346         (uc_is_case_ignorable): Define through a bitmap lookup.
32347         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32348         lib/unictype/bitmap.h.
32349         (Depends-on): Add inline. Clean up.
32350         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32351         lib/unictype/bitmap.h.
32352         (Depends-on): Add inline. Clean up.
32353         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32354         recognition.
32355         * tests/unicase/test-u16-tolower.c (main): Likewise.
32356         * tests/unicase/test-u32-tolower.c (main): Likewise.
32357
32358 2009-06-30  Bruno Haible  <bruno@clisp.org>
32359
32360         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32361         * lib/unicase/u16-casemap.c: Likewise.
32362         * lib/unicase/u32-casemap.c: Likewise.
32363
32364 2009-06-29  Bruno Haible  <bruno@clisp.org>
32365
32366         Define u32_casefold as a wrapper around u32_ct_casefold.
32367         * lib/unicase/u32-casefold.c: Update.
32368         * modules/unicase/u32-casefold (Depends-on): Add
32369         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32370         unicase/empty-suffix-context. Clean up.
32371
32372         Define u16_casefold as a wrapper around u16_ct_casefold.
32373         * lib/unicase/u16-casefold.c: Update.
32374         * modules/unicase/u16-casefold (Depends-on): Add
32375         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32376         unicase/empty-suffix-context. Clean up.
32377
32378         Define u8_casefold as a wrapper around u8_ct_casefold.
32379         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32380         * lib/unicase/u8-casefold.c: Update.
32381         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32382         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32383
32384         Define u32_totitle as a wrapper around u32_ct_totitle.
32385         * lib/unicase/u32-totitle.c: Update.
32386         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32387         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32388
32389         Define u16_totitle as a wrapper around u16_ct_totitle.
32390         * lib/unicase/u16-totitle.c: Update.
32391         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32392         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32393
32394         Define u8_totitle as a wrapper around u8_ct_totitle.
32395         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32396         functions.
32397         (FUNC): Delegate to U_CT_TOTITLE.
32398         * lib/unicase/u8-totitle.c: Update.
32399         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32400         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32401
32402         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32403         invocation.
32404         * modules/unicase/u32-tolower (Depends-on): Add
32405         unicase/empty-prefix-context, unicase/empty-suffix-context.
32406
32407         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32408         invocation.
32409         * modules/unicase/u16-tolower (Depends-on): Add
32410         unicase/empty-prefix-context, unicase/empty-suffix-context.
32411
32412         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32413         * modules/unicase/u8-tolower (Depends-on): Add
32414         unicase/empty-prefix-context, unicase/empty-suffix-context.
32415
32416         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32417         invocation.
32418         * modules/unicase/u32-toupper (Depends-on): Add
32419         unicase/empty-prefix-context, unicase/empty-suffix-context.
32420
32421         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32422         invocation.
32423         * modules/unicase/u16-toupper (Depends-on): Add
32424         unicase/empty-prefix-context, unicase/empty-suffix-context.
32425
32426         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32427         * modules/unicase/u8-toupper (Depends-on): Add
32428         unicase/empty-prefix-context, unicase/empty-suffix-context.
32429
32430         New module 'unicase/u32-ct-casefold'.
32431         * lib/unicase/u32-ct-casefold.c: New file.
32432         * modules/unicase/u32-ct-casefold: New file.
32433
32434         New module 'unicase/u16-ct-casefold'.
32435         * lib/unicase/u16-ct-casefold.c: New file.
32436         * modules/unicase/u16-ct-casefold: New file.
32437
32438         New module 'unicase/u8-ct-casefold'.
32439         * lib/unicase/u8-ct-casefold.c: New file.
32440         * lib/unicase/u-ct-casefold.h: New file, derived from
32441         lib/unicase/u-casefold.h.
32442         * modules/unicase/u8-ct-casefold: New file.
32443
32444         New module 'unicase/u32-ct-totitle'.
32445         * lib/unicase/u32-ct-totitle.c: New file.
32446         * modules/unicase/u32-ct-totitle: New file.
32447
32448         New module 'unicase/u16-ct-totitle'.
32449         * lib/unicase/u16-ct-totitle.c: New file.
32450         * modules/unicase/u16-ct-totitle: New file.
32451
32452         New module 'unicase/u8-ct-totitle'.
32453         * lib/unicase/u8-ct-totitle.c: New file.
32454         * lib/unicase/u-ct-totitle.h: New file, derived from
32455         lib/unicase/u-totitle.h.
32456         * modules/unicase/u8-ct-totitle: New file.
32457
32458         New module 'unicase/u32-ct-tolower'.
32459         * lib/unicase/u32-ct-tolower.c: New file.
32460         * modules/unicase/u32-ct-tolower: New file.
32461
32462         New module 'unicase/u16-ct-tolower'.
32463         * lib/unicase/u16-ct-tolower.c: New file.
32464         * modules/unicase/u16-ct-tolower: New file.
32465
32466         New module 'unicase/u8-ct-tolower'.
32467         * lib/unicase/u8-ct-tolower.c: New file.
32468         * modules/unicase/u8-ct-tolower: New file.
32469
32470         New module 'unicase/u32-ct-toupper'.
32471         * lib/unicase/u32-ct-toupper.c: New file.
32472         * modules/unicase/u32-ct-toupper: New file.
32473
32474         New module 'unicase/u16-ct-toupper'.
32475         * lib/unicase/u16-ct-toupper.c: New file.
32476         * modules/unicase/u16-ct-toupper: New file.
32477
32478         New module 'unicase/u8-ct-toupper'.
32479         * lib/unicase/u8-ct-toupper.c: New file.
32480         * modules/unicase/u8-ct-toupper: New file.
32481
32482         Add context arguments to u*_casemap functions.
32483         * lib/unicase/unicasemap.h: Include unicase.h.
32484         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32485         suffix_context arguments.
32486         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32487         functions.
32488         (FUNC): Add prefix_context and suffix_context arguments. Use
32489         uc_is_cased and uc_is_case_ignorable.
32490         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32491         * lib/unicase/u16-casemap.c: Likewise.
32492         * lib/unicase/u32-casemap.c: Likewise.
32493         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32494         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32495         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32496         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32497         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32498         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32499
32500         New module 'unicase/u32-suffix-context'.
32501         * lib/unicase/u32-suffix-context.c: New file.
32502         * modules/unicase/u32-suffix-context: New file.
32503
32504         New module 'unicase/u16-suffix-context'.
32505         * lib/unicase/u16-suffix-context.c: New file.
32506         * modules/unicase/u16-suffix-context: New file.
32507
32508         New module 'unicase/u8-suffix-context'.
32509         * lib/unicase/u8-suffix-context.c: New file.
32510         * lib/unicase/u-suffix-context.h: New file.
32511         * modules/unicase/u8-suffix-context: New file.
32512
32513         New module 'unicase/empty-suffix-context'.
32514         * lib/unicase/empty-suffix-context.c: New file.
32515         * modules/unicase/empty-suffix-context: New file.
32516
32517         New module 'unicase/u32-prefix-context'.
32518         * lib/unicase/u32-prefix-context.c: New file.
32519         * modules/unicase/u32-prefix-context: New file.
32520
32521         New module 'unicase/u16-prefix-context'.
32522         * lib/unicase/u16-prefix-context.c: New file.
32523         * modules/unicase/u16-prefix-context: New file.
32524
32525         New module 'unicase/u8-prefix-context'.
32526         * lib/unicase/u8-prefix-context.c: New file.
32527         * lib/unicase/u-prefix-context.h: New file.
32528         * lib/unicase/context.h: New file.
32529         * modules/unicase/u8-prefix-context: New file.
32530
32531         New module 'unicase/empty-prefix-context'.
32532         * lib/unicase/empty-prefix-context.c: New file.
32533         * modules/unicase/empty-prefix-context: New file.
32534
32535         New module 'unicase/ignorable'.
32536         * lib/unicase/ignorable.c: New file.
32537         * modules/unicase/ignorable: New file.
32538
32539         New module 'unicase/cased'.
32540         * lib/unicase/caseprop.h: New file.
32541         * lib/unicase/cased.c: New file.
32542         * modules/unicase/cased: New file.
32543
32544         New functions for case mapping of substrings.
32545         * lib/unicase.h (casing_prefix_context_t): New type.
32546         (unicase_empty_prefix_context): New variable.
32547         (u8_casing_prefix_context, u16_casing_prefix_context,
32548         u32_casing_prefix_context, u8_casing_prefixes_context,
32549         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32550         declarations.
32551         (casing_suffix_context_t): New type.
32552         (unicase_empty_suffix_context): New variable.
32553         (u8_casing_suffix_context, u16_casing_suffix_context,
32554         u32_casing_suffix_context, u8_casing_suffixes_context,
32555         u16_casing_suffixes_context, u32_casing_suffixes_context,
32556         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32557         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32558         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32559         declarations.
32560
32561 2009-06-28  Jim Meyering  <meyering@redhat.com>
32562
32563         boostrap: indent only with spaces
32564         * build-aux/bootstrap: Indent only with spaces, never TABs.
32565
32566         bootstrap: split long lines
32567         * build-aux/bootstrap: Keep line length < 80.
32568
32569         bootstrap: sync from coreutils
32570         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32571         just as autoreconf does.  Verify a list of prerequisite
32572         package-name,version-number pairs if defined in bootstrap.conf.
32573         Refer to README-prereq, if prerequisites are not satisfied.
32574
32575 2009-06-27  Eric Blake  <ebb9@byu.net>
32576
32577         tests: add test for bogus NULL definition
32578         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32579         * tests/test-stdlib.c: Likewise.
32580         * tests/test-string.c: Likewise.
32581         * tests/test-locale.c: Likewise.
32582         * tests/test-unistd.c: Likewise.
32583         * modules/stdio-tests (Depends-on): Add verify.
32584         * modules/stdlib-tests (Depends-on): Likewise.
32585         * modules/string-tests (Depends-on): Likewise.
32586         * modules/locale-tests (Depends-on): Likewise.
32587         * modules/unistd-tests (Depends-on): Likewise.
32588
32589 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32590
32591         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32592         self-explaining comment.
32593         * m4/selinux-selinux-h: Update serial.
32594         (gl_LIBSELINUX): New macro, adding a warning for missing development
32595         packages to code extracted from...
32596         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32597         Add warning for missing development packages here, too.
32598
32599 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32600
32601         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32602
32603 2009-06-25  Eric Blake  <ebb9@byu.net>
32604
32605         version-etc: fix regression
32606         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32607         gcc.
32608         (version_etc): Use it, to catch bugs with trailing NULL.
32609         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32610         (version_etc_va): Fix logic bug.
32611         * modules/version-etc-tests: Add test.
32612         * tests/test-version-etc.c: New file.
32613         * tests/test-version-etc.sh: Likewise.
32614
32615 2009-06-25  Sam Steingold  <sds@gnu.org>
32616
32617         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32618         mbtowc declaration.
32619
32620 2009-06-25  Eric Blake  <ebb9@byu.net>
32621
32622         fpurge: migrate into <stdio.h>
32623         * lib/fpurge.h: Delete...
32624         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32625         * lib/fpurge.c (fpurge): Change declaring header.
32626         * modules/fpurge (Files): Drop deleted file.
32627         (Depends-on): Add stdio.
32628         (configure.ac): Set witness.
32629         * modules/stdio (Makefile.am): Support fpurge macros.
32630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32631         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32632         * lib/fflush.c: Update client.
32633         * tests/test-fpurge.c: Likewise.
32634         * NEWS: Mention the change.
32635
32636 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32637
32638         * lib/argp-version-etc.c (program_authors): Add const
32639         qualifier.
32640         * lib/version-etc.c: Fix typos in the comments.
32641         * modules/argp-version-etc: Depends on version-etc.
32642
32643 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32644
32645         argp-version-etc: new module.
32646
32647         * lib/argp-version-etc.c: New file.
32648         * lib/argp-version-etc.h: New file.
32649         * modules/argp-version-etc: New file.
32650         * modules/argp-version-etc-tests: New file.
32651         * tests/test-argp-version-etc.c: New test.
32652         * tests/test-argp-version-etc-1.sh: New test.
32653
32654 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32655
32656         Provide additional interfaces and documentation for version-etc
32657         module.
32658
32659         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32660         interfaces.
32661         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32662         prototypes.
32663
32664 2009-06-24  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32667         HAVE_LIB${NAME} macro.
32668         Reported by Sam Steingold <sds@gnu.org>.
32669
32670 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32671
32672         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32673         needed.
32674
32675 2009-06-21  Bruno Haible  <bruno@clisp.org>
32676
32677         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32678         work.
32679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32680         together with LIB${NAME}, LTLIB${NAME}.
32681         Reported by Sam Steingold <sds@gnu.org>.
32682
32683 2009-06-20  Jim Meyering  <meyering@redhat.com>
32684
32685         tests: make sc_require_test_exit_idiom more generic
32686         * top/maint.mk (Exit_witness_file): New overridable variable.
32687         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32688         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32689
32690 2009-06-19  Jim Meyering  <meyering@redhat.com>
32691
32692         hash: reverse order of src/dst parameters in an internal interface
32693         * lib/hash.c (transfer_entries): Reverse order of parameters to
32694         put DST before SRC.  Adjust callers.
32695
32696         tests: test-hash: avoid wholesale duplication
32697         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32698         Instead, use a loop and add a single conditional.
32699
32700         tests: test-hash: allow seed selection via a command line argument
32701         * tests/test-hash.c (get_seed): New function.
32702         (main): Use it.
32703
32704 2009-06-19  Eric Blake  <ebb9@byu.net>
32705
32706         hash: avoid memory leak on allocation failure
32707         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32708         failure.  Factor repeated algorithm...
32709         (transfer_entries): ...into new helper routine.
32710         (hash_delete): React to hash_rehash return value.
32711
32712         hash: reduce memory pressure in hash_rehash no-op case
32713         * lib/hash.c (next_prime): Avoid overflow.
32714         (hash_initialize): Factor bucket size computation...
32715         (compute_bucket_size): ...into new helper function.
32716         (hash_rehash): Use new function and open coding to reduce memory
32717         pressure, and avoid a memory leak in USE_OBSTACK code.
32718         Reported by Jim Meyering.
32719
32720 2009-06-18  Eric Blake  <ebb9@byu.net>
32721
32722         hash: make rotation more obvious
32723         * modules/hash (Depends-on): Add bitrotate and stdint.
32724         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32725         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32726         (SIZE_MAX): Rely on headers for definition.
32727         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32728         (raw_hasher): Use rotr_sz.
32729         Suggested by Jim Meyering.
32730
32731         hash: fix memory leak in last patch
32732         * lib/hash.c (hash_rehash): Avoid memory leak.
32733
32734         hash: avoid no-op rehashing
32735         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32736
32737         hash: provide default callback functions
32738         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32739         (hash_initialize): Use them as defaults.
32740         * tests/test-hash.c (main): Test this.
32741
32742         hash: minor optimization
32743         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32744         when possible.
32745         (hash_initialize): Document this promise.
32746         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32747         * tests/test-hash.c (hash_compare_strings): Test this.
32748
32749 2009-06-18  Bruno Haible  <bruno@clisp.org>
32750
32751         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32752         going to be replaced anyway.
32753
32754 2009-06-18  Bruno Haible  <bruno@clisp.org>
32755
32756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32757         in one place.
32758         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32759         be replaced anyway.
32760
32761 2009-06-18  Eric Blake  <ebb9@byu.net>
32762
32763         hash: check for resize before insertion
32764         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32765         threshold before insertion, so that a pathological hash_rehash
32766         that fills every bucket can still trigger another rehash.
32767
32768 2009-06-18  Jim Meyering  <meyering@redhat.com>
32769
32770         hash-tests: add a loop around the small tests
32771         * tests/test-hash.c (main): Repeat small tests with selected
32772         small initial table sizes.
32773
32774 2009-06-17  Eric Blake  <ebb9@byu.net>
32775
32776         hash: minor cleanups
32777         * lib/hash.h (hash_entry): Make opaque, by moving...
32778         * lib/hash.c (hash_entry): ...here.
32779         (hash_insert): Clarify restrictions on what can be inserted.
32780         (hash_get_next): Clarify when it is safe to remove an element
32781         during traversal.
32782         (check_tuning): Skip verification when tuning is known safe.
32783         (hash_initialize): Clarify restrictions on tuning.
32784
32785 2009-06-17  Jim Meyering  <jim@meyering.net>
32786         and Eric Blake  <ebb9@byu.net>
32787
32788         hash-tests: new module
32789         * modules/hash-tests: New file.
32790         * tests/test-hash.c: New file.
32791
32792 2009-06-17  Eric Blake  <ebb9@byu.net>
32793
32794         strstr-simple: document new module
32795         * MODULES.html.sh: Document new module.
32796
32797         strstr, strcasestr: replace on platforms with broken memchr
32798         * modules/strstr: Split into...
32799         * modules/strstr-simple: ...new module that does not care about
32800         performance, but does care about glibc bug.
32801         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32802         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32803         if platform memchr is broken, per Debian bug 521737.
32804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32805         memchr.
32806         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32807         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32808         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32809         * modules/mountlist (Depends-on): Add strstr-simple.
32810         * modules/gen-uni-tables (Depends-on): Likewise.
32811         * modules/argz (Depends-on): Add strstr.
32812
32813 2009-06-17  Bruno Haible  <bruno@clisp.org>
32814
32815         * modules/posix_spawn-internal (Depends-on): Add errno.
32816
32817 2009-06-17  Bruno Haible  <bruno@clisp.org>
32818
32819         Define missing ESTALE on Interix 3.5.
32820         * lib/errno.in.h (ESTALE): Assign a value if missing.
32821         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32822         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32823         missing.
32824         * doc/posix-headers/errno.texi: Mention the Interix bug.
32825         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32826
32827 2009-06-15  Eric Blake  <ebb9@byu.net>
32828
32829         memchr, memchr2: add valgrind exception
32830         * lib/memchr.valgrind: New file.
32831         * lib/memchr2.valgrind: New file.
32832         * modules/memchr (Files): Distribute valgrind file.
32833         * modules/memchr2 (Files): Likewise.
32834
32835         docs: memchr is no longer obsolete
32836         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32837         * lib/string.in.h (memchr): Simplify logic.
32838
32839 2009-06-14  Jim Meyering  <meyering@redhat.com>
32840
32841         link-follow: fix the "checking..." message to not mention trailing slash
32842         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32843         never considered trailing slashes.
32844
32845 2009-06-14  Bruno Haible  <bruno@clisp.org>
32846
32847         * m4/memchr.m4: Mention also the bug on IA-64.
32848         * doc/posix-functions/memchr.texi: Likewise.
32849
32850 2009-06-12  Eric Blake  <ebb9@byu.net>
32851
32852         memchr: detect broken x86_64 and alpha implementations
32853         * modules/memchr-tests (Depends-on): Move mmap detection...
32854         * modules/memchr (Depends-on): ...here.
32855         (configure.ac): Set indicator.
32856         * lib/string.in.h (memchr): Declare replacement.
32857         * modules/string (Makefile.am): Trigger replacement.
32858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32859         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32860         bugs.
32861         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32862         * modules/getpagesize (License): Relax license.
32863
32864 2009-06-11  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/idpriv.h: Add more references.
32867
32868 2009-06-08  Bruno Haible  <bruno@clisp.org>
32869
32870         Tests for module 'idpriv-droptemp'.
32871         * modules/idpriv-droptemp-tests: New file.
32872         * tests/test-idpriv-droptemp.sh: New file.
32873         * tests/test-idpriv-droptemp.su.sh: New file.
32874         * tests/test-idpriv-droptemp.c: New file.
32875
32876         New module 'idpriv-droptemp'.
32877         * lib/idpriv-droptemp.c: New file.
32878         * modules/idpriv-droptemp: New file.
32879
32880 2009-06-08  Bruno Haible  <bruno@clisp.org>
32881
32882         Tests for module 'idpriv-drop'.
32883         * modules/idpriv-drop-tests: New file.
32884         * tests/test-idpriv-drop.sh: New file.
32885         * tests/test-idpriv-drop.su.sh: New file.
32886         * tests/test-idpriv-drop.c: New file.
32887
32888         New module 'idpriv-drop'.
32889         * lib/idpriv.h: New file.
32890         * lib-idpriv-drop.c: New file.
32891         * m4/idpriv.m4: New file.
32892         * modules/idpriv-drop: New file.
32893
32894 2009-06-08  Bruno Haible  <bruno@clisp.org>
32895
32896         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32898         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32899         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32900         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32901         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32902         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32903
32904 2009-06-08  Eric Blake  <ebb9@byu.net>
32905
32906         test-strstr: use memory fence, when possible
32907         * tests/test-strstr.c (main): Use memory fence, in order to be
32908         more likely to trigger Debian bug 521737.
32909         * modules/strstr-tests (Files): Pull in additional files.
32910
32911         memchr: no longer obsolete, for wider field testing
32912         * modules/memchr (Status, Notice): Delete, this module is no
32913         longer obsolete.
32914         * modules/vasnprintf (Depends-on): Add memchr.
32915
32916 2009-06-07  Jim Meyering  <meyering@redhat.com>
32917
32918         hash: declare some functions with the warn_unused_result attribute
32919         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32920
32921 2009-06-07  Bruno Haible  <bruno@clisp.org>
32922
32923         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32924         Reported by Eric Blake.
32925
32926 2009-06-06  Eric Blake  <ebb9@byu.net>
32927
32928         test-alignof: fix typo with long double
32929         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32930         compiler error.
32931
32932 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32933
32934         Escape non-texinfo { and }s.
32935         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32936         markup error.
32937
32938 2009-06-04  Jim Meyering  <meyering@redhat.com>
32939
32940         gitlog-to-changelog: don't infloop on an empty commit log
32941         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32942         Reported by Boris Petersen <transacid@centerim.org>.
32943
32944 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32945
32946         version-etc: extend for packagers
32947         Add three new configure options, intended for packagers:
32948           --with-packager="packager name"
32949           --with-packager-version="packager-specific version"
32950           --with-packager-bug-reports="packager bug reporting"
32951         An example with coreutils:
32952           $ ./configure \
32953             --with-packager=Gentoo \
32954             --with-packager-bug-report=http://bugs.gentoo.org/ \
32955             --with-packager-version="patchset 1.6"
32956           $ ./src/ls --version | head -n2
32957           ls (GNU coreutils) 7.1-dirty
32958           Packaged by Gentoo (patchset 1.6)
32959         Note that the bug reporting info via --help doesn't show up because
32960         coreutils uses its own custom emit_bug_reporting_address() implementation
32961         in src/system.h.  If it didn't, it'd look like:
32962           $ ./src/ls --help | tail -n4
32963           Report bugs to <bug-coreutils@gnu.org>.
32964           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32965           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32966           General help using GNU software: <http://www.gnu.org/gethelp/>.
32967         * lib/version-etc.c: Print new information, if provided.
32968         * m4/version-etc.m4: New file.
32969         * modules/version-etc (Files): Add m4/version-etc.m4.
32970         (configure.ac): Add gl_VERSION_ETC.
32971
32972 2009-05-31  Bruno Haible  <bruno@clisp.org>
32973
32974         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32975         and 'int64_t'.
32976         * modules/alignof-tests (Dependencies): Add stdint.
32977         Reported by Eric Blake.
32978
32979 2009-05-31  Bruno Haible  <bruno@clisp.org>
32980
32981         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32982         restriction due to compiler bugs.
32983         Reported by Eric Blake.
32984
32985 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32986             Bruno Haible  <bruno@clisp.org>
32987
32988         Fix test-alignof failure.
32989         * lib/alignof.h (alignof_slot): New macro.
32990         (alignof_type): New macro, with the same semantics as the previous
32991         'alignof'.
32992         (alignof): Alias to alignof_slot.
32993         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32994         check that the results are usable as constant expressions.
32995
32996 2009-05-31  Bruno Haible  <bruno@clisp.org>
32997
32998         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32999         * tests/test-memchr.c (main): Check that memchr does not read past the
33000         first occurrence of the byte.
33001         * tests/test-strstr.c (main): Update comment.
33002         Suggested by Eric Blake.
33003
33004 2009-05-30  Bruno Haible  <bruno@clisp.org>
33005
33006         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33007         detail how to use dumpbin.
33008         Reported by David Byron <dbyron@dbyron.com>.
33009
33010 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33011
33012         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33013
33014 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33015
33016         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33017
33018 2009-05-28  Bruno Haible  <bruno@clisp.org>
33019
33020         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33021         build-aux/ files.
33022
33023 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33024
33025         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33026
33027 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33028
33029         * gnulib-tool (sed_transform_main_lib_file)
33030         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33031         regexps.
33032
33033 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33034
33035         * tests/test-strstr.c: Add another self-test.
33036         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33037         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33038
33039 2009-05-23  Bruno Haible  <bruno@clisp.org>
33040
33041         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33042         change.
33043
33044 2009-05-21  Bruno Haible  <bruno@clisp.org>
33045
33046         Simplify use of mode_t varargs.
33047         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33048         uses 'mode_t' or 'int'.
33049         * lib/openat.c (openat): Likewise.
33050         * lib/open-safer.c (open_safer): Likewise.
33051         * m4/mode_t.m4: New file.
33052         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33053         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33054         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33055         * modules/open (Files): Add m4/mode_t.m4.
33056         * modules/openat (Files): Likewise.
33057         * modules/fcntl-safer (Files): Likewise.
33058         Suggested by Eric Blake.
33059
33060 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33061
33062         * doc/glibc-functions/fallocate.texi: New file.
33063         * doc/gnulib.texi: Include it.
33064
33065 2009-05-21  Eric Blake  <ebb9@byu.net>
33066             Bruno Haible  <bruno@clisp.org>
33067
33068         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33069         invocations.
33070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33071
33072 2009-05-21  Eric Blake  <ebb9@byu.net>
33073             Bruno Haible  <bruno@clisp.org>
33074
33075         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33076         include_next. Fix of 2008-11-20 commit.
33077         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33078         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33079         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33080         NEXT_MATH_H.
33081         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33082         instead of NEXT_MATH_H.
33083
33084 2009-05-21  Bruno Haible  <bruno@clisp.org>
33085
33086         Avoid redefinition warnings for SIZE_MAX.
33087         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33088         Reported by Simon Josefsson.
33089
33090 2009-05-21  Bruno Haible  <bruno@clisp.org>
33091
33092         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33093         AC_CACHE_VAL.
33094
33095 2009-05-20  Bruno Haible  <bruno@clisp.org>
33096
33097         Make zeroptr.h work on mingw.
33098         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33099         mprotect.
33100         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33101         * modules/memchr2-tests (configure.ac): Likewise.
33102         * modules/memcmp-tests (configure.ac): Likewise.
33103         * modules/memmem-tests (configure.ac): Likewise.
33104         * modules/memrchr-tests (configure.ac): Likewise.
33105         Reported by Simon Josefsson.
33106
33107 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33108
33109         * tests/test-glob.c: Include string.h for strcmp prototype.
33110
33111 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33112
33113         * modules/getdelim (Depends-on): Add explicit stdint, although it
33114         was implicitly already pulled in via realloc-posix.
33115         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33116
33117 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33118
33119         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33120         G. Christensen" <tgc@jupiterrise.com>.
33121         * m4/sys_socket_h.m4: Check for sa_family_t.
33122         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33123         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33124         * tests/test-sys_socket.c: Check that sa_family_t works.
33125
33126 2009-05-18  Eric Blake  <ebb9@byu.net>
33127
33128         maint.mk: allow gnulib_dir in VPATH build
33129         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33130
33131 2009-05-15  Jim Meyering  <meyering@redhat.com>
33132
33133         maint.mk: Give gnulib_dir a default definition.
33134         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33135         Thus, most packages no longer need to specify this variable in cfg.mk
33136
33137 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33138
33139         rename.m4: fix typos that would make non-mingw cross-configure fail
33140         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33141
33142 2009-05-13  Eric Blake  <ebb9@byu.net>
33143
33144         mmap-anon: avoid out-of-order autoconf expansion
33145         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33146         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33147         * modules/memchr-tests (Depends-on): Add extensions.
33148         * modules/memchr2-tests (Depends-on): Add extensions.
33149         * modules/memcmp-tests (Depends-on): Add extensions.
33150         * modules/memmem-tests (Depends-on): Add extensions.
33151         * modules/memrchr-tests (Depends-on): Add extensions.
33152
33153 2009-05-13  Bruno Haible  <bruno@clisp.org>
33154
33155         Make some tests ISO C 99 compliant.
33156         * tests/zerosize-ptr.h: New file.
33157         * tests/test-memchr.c: Include zerosize-ptr.h.
33158         (main): Use a zero-size object pointer instead of NULL.
33159         * tests/test-memchr2.c: Include zerosize-ptr.h.
33160         (main): Use a zero-size object pointer instead of NULL.
33161         * tests/test-memcmp.c: Include zerosize-ptr.h.
33162         (main): Use a zero-size object pointer instead of NULL.
33163         * tests/test-memmem.c: Include zerosize-ptr.h.
33164         (main): Use a zero-size object pointer instead of NULL.
33165         * tests/test-memrchr.c: Include zerosize-ptr.h.
33166         (main): Use a zero-size object pointer instead of NULL.
33167         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33168         m4/mmap-anon.m4.
33169         (Depends-on): Add getpagesize.
33170         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33171         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33172         m4/mmap-anon.m4.
33173         (Depends-on): Add getpagesize.
33174         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33175         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33176         m4/mmap-anon.m4.
33177         (Depends-on): Add getpagesize.
33178         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33179         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33180         m4/mmap-anon.m4.
33181         (Depends-on): Add getpagesize.
33182         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33183         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33184         m4/mmap-anon.m4.
33185         (Depends-on): Add getpagesize.
33186         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33187
33188 2009-05-12  Bruno Haible  <bruno@clisp.org>
33189
33190         Tests for module 'alignof'.
33191         * modules/alignof-tests: New file.
33192         * tests/test-alignof.c: New file.
33193
33194 2009-05-12  Bruno Haible  <bruno@clisp.org>
33195
33196         Fix alignof macro.
33197         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33198         vendor compilers that are always correct.
33199
33200 2009-05-12  Bruno Haible  <bruno@clisp.org>
33201
33202         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33203         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33204         not whether its fully works.
33205
33206 2009-05-12  Bruno Haible  <bruno@clisp.org>
33207
33208         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33209
33210 2009-05-12  Jim Meyering  <meyering@redhat.com>
33211
33212         * top/maint.mk: Adjust backslash alignment.
33213
33214 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33215
33216         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33217
33218 2009-05-11  Eric Blake  <ebb9@byu.net>
33219
33220         argp: avoid undefined behavior
33221         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33222         macros.
33223
33224 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33225
33226         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33227         user.name to prevent git commit from complaining.
33228
33229 2009-05-10  Bruno Haible  <bruno@clisp.org>
33230
33231         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33232         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33233         it rewrites every file name only once.
33234         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33235
33236 2009-05-08  Bruno Haible  <bruno@clisp.org>
33237
33238         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33239         instead of 'max'.
33240
33241 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33242
33243         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33244         sockaddr_storage test.
33245
33246 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33247
33248         * modules/sys_socket (Makefile.am): Substitute
33249         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33250         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33251         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33252         * tests/test-sys_socket.c: Check sockaddr_storage.
33253
33254 2009-05-08  Bruno Haible  <bruno@clisp.org>
33255
33256         New module 'alignof'.
33257         * lib/alignof.h: New file.
33258         * modules/alignof: New file.
33259
33260 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         Fix test-file-has-acl on FreeBSD.
33264         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33265         mask is implicitly added.
33266         * tests/test-file-has-acl.c: Include <signal.h>.
33267         (main): Terminate the test after 5 seconds.
33268         * modules/acl-tests (configure.ac): Check for alarm function.
33269
33270 2009-05-04  Bruno Haible  <bruno@clisp.org>
33271
33272         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33273         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33274         * modules/errno (configure.ac): Drop AC_REQUIRE.
33275         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33276         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33277
33278 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33279
33280         * modules/glob-tests: New module.
33281         * tests/test-glob.c: Add.
33282
33283 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33284
33285         * modules/fnmatch-tests: New module.
33286         * tests/test-fnmatch.c: Add.
33287
33288 2009-05-04  Eric Blake  <ebb9@byu.net>
33289
33290         maint: make the new no-submodule-changes rule VPATH-safe
33291         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33292
33293 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33294             Bruno Haible  <bruno@clisp.org>
33295
33296         acl: Fix infinite loop on FreeBSD.
33297         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33298         of return value from acl_get_entry.
33299         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33300         Likewise.
33301
33302 2009-05-03  Bruno Haible  <bruno@clisp.org>
33303
33304         * lib/acl-internal.h (acl_entries): Clarify return value.
33305         * lib/acl_entries.c (acl_entries): Likewise.
33306
33307 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33308
33309         Bug fix in acl module.
33310         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33311
33312 2009-05-03  Bruno Haible  <bruno@clisp.org>
33313
33314         Create gperf-generated file in the source dir, not in the build dir.
33315         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33316         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33317         * modules/unicase/locale-language (unicase/locale-languages.h):
33318         Likewise.
33319         * modules/unicase/special-casing (unicase/special-casing-table.h):
33320         Likewise.
33321         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33322         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33323         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33324         Reported by Ralf Wildenhues.
33325
33326 2009-05-03  Bruno Haible  <bruno@clisp.org>
33327
33328         * modules/fnmatch (Description, configure.ac): Taken from
33329         fnmatch-posix.
33330         * modules/fnmatch-posix: Turn into a symbolic reference to the
33331         'fnmatch' module, and deprecate.
33332         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33333
33334 2009-05-03  Bruno Haible  <bruno@clisp.org>
33335
33336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33337         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33338         Reported by Ralf Wildenhues.
33339
33340 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33341
33342         * m4/fnmatch.m4: Fix fnmatch re-define.
33343
33344 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33345
33346         priv-set: new module and tests; adapt write-any-file
33347         * lib/priv-set.c: New file.
33348         * lib/priv-set.h: New file.
33349         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33350         * lib/write-any-file.c: Simplify by using priv-set module.
33351         * m4/priv-set.m4: New file.
33352         * modules/priv-set: New file.
33353         * modules/unlinkdir: Add dependency on priv-set module.
33354         * modules/write-any-file: Likewise.
33355
33356         Tests for module 'priv-set'.
33357         * modules/priv-set-tests: New file.
33358         * tests/test-priv-set.c: New file.
33359
33360 2009-05-03  Jim Meyering  <meyering@redhat.com>
33361             Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33364         use the converted UTF-8 variant of the name instead.
33365
33366 2009-05-03  Jim Meyering  <meyering@redhat.com>
33367
33368         tests: tighten some getdate tests
33369         * tests/test-getdate.c (main): Tighten tests: require equality,
33370         not just greater than.  Set TZ envvar to UTC0.
33371
33372 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33373
33374         getdate: correctly interpret "next monday" when run on a Monday
33375         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33376         that e.g., "next tues" (when run on a tuesday) results in a date
33377         that is one week in the future, and not today's date.
33378         I.e., add a week when the wday is the same as the current one.
33379         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33380         and earlier by Martin Bernreuther and Jan Minář.
33381         * tests/test-getdate.c (main): Check that "next DAY" is always in
33382         the future and that "last DAY" is always in the past.
33383
33384 2009-05-02  Jim Meyering  <meyering@redhat.com>
33385
33386         build: ensure that a release build fails when a submodule is unclean
33387         * top/maint.mk (no-submodule-changes): New rule.
33388         (alpha beta major): Depend on it.
33389
33390 2009-05-02  Bruno Haible  <bruno@clisp.org>
33391
33392         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33393         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33394         shell variable gl_fnmatch_required to detect which variant is
33395         requested.
33396         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33397         gl_FUNC_FNMATCH_POSIX.
33398         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33399         exclude fnmatch-posix.
33400
33401 2009-05-02  Bruno Haible  <bruno@clisp.org>
33402
33403         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33404         * modules/mbsrtowcs (License): Change to LGPLv2+.
33405         * modules/strnlen1 (License): Likewise.
33406         Reported by Simon Josefsson.
33407
33408 2009-05-02  Bruno Haible  <bruno@clisp.org>
33409
33410         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33411         "cross".
33412         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33413         gnulib-tool was called with option --source-base=lib.
33414
33415 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33416
33417         Use automake *-local hooks without commands, for extensibility.
33418         * modules/localcharset (Makefile.am): Rename install-exec-local
33419         rule to install-exec-localcharset, and make it a prerequisite of
33420         install-exec-local.  Likewise, rename the uninstall-local rule to
33421         uninstall-localcharset, and make it a prerequisite of the former.
33422
33423 2009-05-01  Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33426         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33427         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33429         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33430         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33431         m4/locale-zh.m4, m4/codeset.m4.
33432
33433         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33434         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33435         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33436         m4/locale-zh.m4.
33437
33438         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33439         REPLACE_WCRTOMB if mbstate_t must be replaced.
33440         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33441         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33442
33443 2009-05-01  Bruno Haible  <bruno@clisp.org>
33444
33445         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33446         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33447         dngettext, dcngettext, textdomain, bindtextdomain,
33448         bind_textdomain_codeset): Undefine before redefining.
33449
33450 2009-04-30  Bruno Haible  <bruno@clisp.org>
33451
33452         Fix bug introduced on 2009-04-25.
33453         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33454         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33455         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33456         is defined.
33457         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33458         is defined.
33459         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33460         is defined.
33461         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33462
33463 2009-04-28  Bruno Haible  <bruno@clisp.org>
33464
33465         Comment tweaks.
33466         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33467         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33468         * lib/unicase.h (u*_casexfrm): Likewise.
33469         Reported by Paolo Bonzini.
33470
33471 2009-04-28  Bruno Haible  <bruno@clisp.org>
33472
33473         Fix a compilation error.
33474         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33475         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33476         Reported by Jim Meyering.
33477
33478 2009-04-27  Bruno Haible  <bruno@clisp.org>
33479
33480         New module 'libunistring'.
33481         * modules/libunistring: New file.
33482         * m4/libunistring.m4: New file.
33483         * MODULES.html.sh (Unicode string functions): Add it.
33484
33485 2009-04-27  Eric Blake  <ebb9@byu.net>
33486
33487         maint.mk: allow package-specific header to provide <config.h>
33488         * top/maint.mk (sc_require_config_h): New variable.
33489         (sc_require_config_h, sc_require_config_h_first): Use it.
33490
33491 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33492
33493         * top/maint.mk (sc_avoid_if_before_free): Except
33494         useless-if-before-free script.
33495
33496 2009-04-27  Eric Blake  <ebb9@byu.net>
33497
33498         maintainer-makefile: depend on all required helper scripts
33499         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33500         useless-if-before-free.
33501         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33502         version, rather than assuming gnulib checkout is available.
33503         Reported by Simen Josefsson.
33504
33505 2009-04-26  Bruno Haible  <bruno@clisp.org>
33506
33507         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33508         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33509         "../" or "..".
33510
33511 2009-04-26  Bruno Haible  <bruno@clisp.org>
33512
33513         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33514         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33515         AC_LIB_HAVE_LINKFLAGS.
33516
33517 2009-04-26  Bruno Haible  <bruno@clisp.org>
33518
33519         Simplify calling convention of u*_conv_from_encoding.
33520         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33521         u32_conv_from_encoding): Expect a resultbuf argument and return the
33522         result directly as a pointer.
33523         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33524         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33525         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33526         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33527         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33528         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33529         Update.
33530         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33531         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33532         * lib/vasnprintf.c (VASNPRINTF): Update.
33533         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33534         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33535         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33536         * NEWS: Mention the change.
33537
33538 2009-04-26  Bruno Haible  <bruno@clisp.org>
33539
33540         Simplify calling convention of u*_conv_to_encoding.
33541         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33542         u32_conv_to_encoding): Expect a resultbuf argument and return the
33543         result directly as a pointer.
33544         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33545         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33546         freeing scaled_offsets if mem_iconveha failed.
33547         * lib/unicase/u-casexfrm.h (FUNC): Update.
33548         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33549         * lib/vasnprintf.c (VASNPRINTF): Update.
33550         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33551         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33552         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33553         * NEWS: Mention the change.
33554
33555 2009-04-26  Bruno Haible  <bruno@clisp.org>
33556
33557         Avoid test failures on AIX and OSF/1.
33558         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33559         malloc(0).
33560         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33561         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33562         Likewise.
33563         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33564         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33565         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33566         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33567         * doc/posix-functions/malloc.texi: Document the portability problem
33568         related to malloc(0).
33569
33570 2009-04-26  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33573         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33574         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33575
33576 2009-04-25  Bruno Haible  <bruno@clisp.org>
33577
33578         Avoid link error when creating a namespace clean library.
33579         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33580         as macro with arguments if already defined as an alias.
33581         * lib/signbitf.c (gl_signbitf): Don't undefine.
33582         * lib/signbitd.c (gl_signbitd): Don't undefine.
33583         * lib/signbitl.c (gl_signbitl): Don't undefine.
33584
33585 2009-04-25  Jim Meyering  <meyering@redhat.com>
33586
33587         vc-list-files: fix another quoting bug
33588         * build-aux/vc-list-files: Avoid sed backslash expansion
33589         of pathological directory names.
33590
33591 2009-04-25  Eric Blake  <ebb9@byu.net>
33592
33593         vc-list-files: fix shell quoting error
33594         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33595         timestamp.
33596
33597 2009-04-25  Jim Meyering  <meyering@redhat.com>
33598
33599         vc-list-files: restore lost functionality with subdir argument
33600         * build-aux/vc-list-files: When given a non-"." sub-directory
33601         argument, substitute the $dir/ prefix back onto each resulting name.
33602         Otherwise, coreutils' root_tests check would fail.
33603
33604 2009-04-24  Eric Blake  <ebb9@byu.net>
33605
33606         vc-list-files: ignore git symlinks
33607         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33608         than ls-files, to ignore git symlinks.
33609
33610         maint.mk: import improvements from m4
33611         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33612         (move_if_change): Delete unused macro.
33613         (news-date-check, vc-diff-check): Support VPATH builds.
33614         (announcement): Likewise.  Split --bootstrap-tools list...
33615         (boostrap-tools): ...into separate list, which can be overridden
33616         in cfg.mk.
33617         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33618         requiring dependency on useless-if-before-free module.
33619         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33620         Support VPATH builds.
33621
33622 2009-04-24  Jim Meyering  <meyering@redhat.com>
33623
33624         maint.mk: remove coreutils-specific rules and variables
33625         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33626         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33627         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33628
33629         maint.mk: remove obsolete rule
33630         * top/maint.mk (rel-check): Remove rule.
33631         (WGET, WGETFLAGS): Remove now-unused variables.
33632
33633 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33634
33635         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33636         consistency.
33637
33638         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33639         '$(PATH_SEPARATOR)' instead of ':'.
33640
33641 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33642
33643         * lib/getopt1.c (main): Use 'const' for static array.
33644
33645 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33646
33647         * top/maint.mk: Sync with coreutils.
33648         * NEWS: Explain incompatibilities.
33649
33650 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33651             Bruno Haible  <bruno@clisp.org>
33652
33653         Fix cross-compilation results.
33654         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33655         statement, as third argument of AC_TRY_RUN.
33656         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33657         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33658         Likewise.
33659         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33660         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33661         Likewise.
33662         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33664         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33665
33666 2009-04-20  Bruno Haible  <bruno@clisp.org>
33667
33668         Avoid test failure on mingw.
33669         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33670
33671 2009-04-20  Bruno Haible  <bruno@clisp.org>
33672
33673         Avoid compilation error on mingw.
33674         * modules/localename-tests (Depends-on): Add locale.
33675
33676 2009-04-19  Bruno Haible  <bruno@clisp.org>
33677
33678         Support for building a shared library on Windows platforms.
33679         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33680         (main): Test the presence of UNINORM_NFC here.
33681         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33682         (main): Test the presence of UNINORM_NFD here.
33683         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33684         (main): Test the presence of UNINORM_NFKC here.
33685         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33686         (main): Test the presence of UNINORM_NFKD here.
33687
33688 2009-04-19  Bruno Haible  <bruno@clisp.org>
33689
33690         Avoid a compiler warning.
33691         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33692         Change type of variable 'sequence'.
33693
33694 2009-04-19  Bruno Haible  <bruno@clisp.org>
33695
33696         * modules/configmake (Makefile.am): When the contents of configmake.h
33697         does not change, arrange to preserve its modification time.
33698
33699 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33700
33701         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33702         gettext domain.
33703
33704 2009-04-16  Jim Meyering  <meyering@redhat.com>
33705
33706         useless-if-before-free: improve conversion code
33707         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33708         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33709
33710 2009-04-14  Bruno Haible  <bruno@clisp.org>
33711
33712         * modules/fcntl (Depends-on): Add extensions.
33713         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33714
33715 2009-04-12  Ben Pfaff  <blp@gnu.org>
33716
33717         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33718         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33719
33720 2009-03-20  Ben Pfaff  <blp@gnu.org>
33721
33722         Make rename replace existing destinations on Windows.
33723         * m4/rename.m4: Add test for Mingw.
33724         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33725         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33726         * doc/posix-functions/rename.texi: Document.
33727
33728 2009-04-10  Bruno Haible  <bruno@clisp.org>
33729
33730         New include file "iconveh.h".
33731         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33732         * lib/striconveh.h: Include it.
33733         (enum iconv_ilseq_handler): Remove definition.
33734         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33735         striconveh.h.
33736         * lib/striconveha.c: Include striconveh.h.
33737         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33738         * modules/striconveh (Files): Add lib/iconveh.h.
33739         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33740         lib/striconveh.h.
33741
33742 2009-04-10  Bruno Haible  <bruno@clisp.org>
33743
33744         * lib/uniconv.h: Update comment.
33745
33746 2009-04-10  Bruno Haible  <bruno@clisp.org>
33747
33748         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33749         always.
33750         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33751         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33753         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33754         "unistring-notinline.h", so that the function gets defined always.
33755         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33756         * lib/unistr/u8-uctomb.c: Likewise.
33757         * lib/unistr/u16-mbtouc.c: Likewise.
33758         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33759         * lib/unistr/u16-uctomb.c: Likewise.
33760         * lib/unistr/u32-mbtouc.c: Likewise.
33761         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33762         * lib/unistr/u32-uctomb.c: Likewise.
33763
33764 2009-04-10  Bruno Haible  <bruno@clisp.org>
33765
33766         Mark 'utime' obsolete.
33767         * modules/utime (Status, Notice): New sections.
33768         Suggested by Jim Meyering.
33769
33770         Fix cross-compile guess for utime test.
33771         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33772         autoconf.
33773         * doc/posix-functions/utime.texi: Give more precisions.
33774         Reported by Jan <ipif@ymail.com>.
33775
33776 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33777
33778         filevercmp: correct today's change
33779         * lib/filevercmp.c: Also handle coreutils' test inputs.
33780         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33781
33782         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33783         for reporting it.
33784         * lib/filevercmp.c: Special handle for "", "." and "..".
33785         * tests/test-filevercmp.c: Enlarge the set suite.
33786
33787 2009-04-07  Jim Meyering  <meyering@redhat.com>
33788
33789         useless-if-before-free: show how to remove braced useless free, too
33790         * build-aux/useless-if-before-free: still only in a comment, though.
33791
33792 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33793
33794         maint.mk: import changes to syntax-check macros from coreutils
33795         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33796         Use them in the relevant macros.
33797
33798 2009-04-06  Bruno Haible  <bruno@clisp.org>
33799
33800         Fix unportable use of bit-fields.
33801         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33802         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33803         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33804
33805 2009-04-06  Bruno Haible  <bruno@clisp.org>
33806
33807         Avoid test failures on AIX and OSF/1.
33808         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33809         that malloc(0) = NULL.
33810         * tests/unicase/test-u8-tolower.c (check): Likewise.
33811         * tests/unicase/test-u8-totitle.c (check): Likewise.
33812         * tests/unicase/test-u8-toupper.c (check): Likewise.
33813         * tests/unicase/test-u16-casefold.c (check): Likewise.
33814         * tests/unicase/test-u16-tolower.c (check): Likewise.
33815         * tests/unicase/test-u16-totitle.c (check): Likewise.
33816         * tests/unicase/test-u16-toupper.c (check): Likewise.
33817         * tests/unicase/test-u32-casefold.c (check): Likewise.
33818         * tests/unicase/test-u32-tolower.c (check): Likewise.
33819         * tests/unicase/test-u32-totitle.c (check): Likewise.
33820         * tests/unicase/test-u32-toupper.c (check): Likewise.
33821         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33822         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33823         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33824         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33825         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33826         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33827         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33828         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33829         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33830         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33831         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33832         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33833
33834 2009-04-05  Bruno Haible  <bruno@clisp.org>
33835
33836         Work around an autoconf limitation.
33837         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33838         comment line if it would be longer than 3 KB.
33839
33840 2009-04-05  Bruno Haible  <bruno@clisp.org>
33841
33842         Avoid test failure with libiconv-1.13.
33843         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33844         of the expected test results.
33845
33846 2009-04-05  Bruno Haible  <bruno@clisp.org>
33847
33848         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33849         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33850         that it should be installed.
33851
33852 2009-04-05  Bruno Haible  <bruno@clisp.org>
33853
33854         * gnulib-tool: New option --copy-file.
33855         (func_usage): Document it.
33856         (func_dest_tmpfilename): Moved out of func_import.
33857         (func_add_file, func_update_file): New functions, extracted from
33858         func_import.
33859         (func_import): Update.
33860
33861 2009-04-05  Karl Berry  <karl@gnu.org>
33862
33863         * README: prominently mention gnulib-tool.
33864         Rearrange sections so getting the code is near the top.
33865
33866 2009-04-05  Bruno Haible  <bruno@clisp.org>
33867
33868         * lib/unicase.h: Mention u*_cmp2.
33869         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33870         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33871         * lib/unicase/ulc-casecmp.c: Likewise.
33872         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33873         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33874         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33875         unistr/u8-cmp.
33876         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33877         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33878         unistr/u16-cmp.
33879         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33880         unistr/u32-cmp.
33881
33882         * lib/uninorm.h: Mention u*_cmp2.
33883         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33884         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33885         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33886         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33887         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33888         unistr/u8-cmp.
33889         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33890         unistr/u16-cmp.
33891         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33892         unistr/u32-cmp.
33893
33894         New module 'unistr/u32-cmp2'.
33895         * lib/unistr/u32-cmp2.c: New file.
33896         * modules/unistr/u32-cmp2: New file.
33897
33898         New module 'unistr/u16-cmp2'.
33899         * lib/unistr/u16-cmp2.c: New file.
33900         * modules/unistr/u16-cmp2: New file.
33901
33902         New module 'unistr/u8-cmp2'.
33903         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33904         * lib/unistr/u8-cmp2.c: New file.
33905         * lib/unistr/u-cmp2.h: New file.
33906         * modules/unistr/u8-cmp2: New file.
33907
33908 2009-04-05  Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/unictype.h (uc_property_is_valid): New macro.
33911         * tests/unictype/test-pr_byname.c (main): Use it.
33912
33913         * lib/unistr.h: Doc fixes.
33914         * lib/uniconv.h: Doc fixes.
33915         * lib/unictype.h: Doc fixes.
33916
33917 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33918
33919         Port coreutils 7.2 to Solaris 8.
33920
33921         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33922         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33923         for Solaris 8.  This is a bit of a hack, as it means it's the
33924         caller's responsibility to add -lnsl if needed, but most likely it
33925         won't be needed since only getaddrinfo uses this and getaddrinfo
33926         isn't needed on Solaris 8.
33927
33928         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33929         problem to Solaris 8 encountered with coreutils 7.2, which
33930         resulted in a message "fnmatch.c:292: warning: passing argument 4
33931         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33932         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33933
33934 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33935
33936         * m4/ld-version-script.m4: Add FIXME comment.
33937
33938 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33939
33940         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33941         SOVERSION variable.
33942
33943 2009-04-02  Bruno Haible  <bruno@clisp.org>
33944
33945         * Makefile (info, html, dvi, pdf): Combine the rules.
33946         Suggested by Jim Meyering.
33947
33948 2009-04-01  Bruno Haible  <bruno@clisp.org>
33949
33950         * Makefile (info, html, dvi, pdf): New targets.
33951         Reported by Reuben Thomas <rrt@sc3d.org>.
33952
33953 2009-04-01  Bruno Haible  <bruno@clisp.org>
33954
33955         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33956         can be put into PATH.
33957         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33958
33959 2009-04-01  Bruno Haible  <bruno@clisp.org>
33960
33961         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33962
33963 2009-04-01  Bruno Haible  <bruno@clisp.org>
33964
33965         Rename module 'visibility'.
33966         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33967         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33968         * doc/gnulib.texi: Update.
33969         * MODULES.html.sh (Misc): Update.
33970         * NEWS: Mention the change.
33971
33972 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33973
33974         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33975         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33976         Eric Blake <ebb9@byu.net> for review.
33977         * MODULES.html.sh: Add lib-msvc-compat.
33978         * doc/gnulib.texi: Link to new section.
33979         * m4/ld-output-def.m4: New file.
33980         * doc/ld-output-def.texi: New file.
33981
33982 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33983
33984         Rename ld-version-script to lib-symbol-versions.  Suggested by
33985         Bruno Haible <bruno@clisp.org>.
33986         * modules/ld-version-script: Renamed to lib-symbol-versions.
33987         * doc/ld-version-script.texi: Fix module name.
33988         * MODULES.html.sh: Add lib-symbol-versions.
33989
33990 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33991
33992         * modules/u64-tests: New file.
33993         * tests/test-u64.c: New file.
33994
33995 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33996
33997         * MODULES.html.sh: Mention u64.
33998         * modules/u64: New module.
33999         * modules/crypto/sha512: Depend on u64 module instead of providing
34000         u64.h.
34001
34002 2009-03-27  Eric Blake  <ebb9@byu.net>
34003
34004         test-strerror: make debugging EAI_SYSTEM easier
34005         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34006         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34007         failure was EAI_SYSTEM.
34008
34009 2009-03-25  Bruno Haible  <bruno@clisp.org>
34010
34011         Fix a problem with --enable-relocatable on Solaris 7.
34012         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34013         since 2008-02-24.
34014
34015 2009-03-25  Eric Blake  <ebb9@byu.net>
34016
34017         test-sockets: avoid gcc warning
34018         * tests/test-sockets.c (main): Silence compiler warning.
34019
34020 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         New modules nproc, pthread, contributed by Glen Lenker.
34023
34024         * MODULES.html.sh: Add pthread, nproc.
34025         * lib/nproc.c: New file.
34026         * lib/nproc.h: New file.
34027         * lib/pthread.in.h: New file.
34028         * m4/pthread.m4: New file.
34029         * modules/nproc: New file.
34030         * modules/pthread: New file.
34031
34032 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34033
34034         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34035         New variable.
34036
34037 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34038
34039         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34040         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34041         * tests/test-filevercmp.c: Add tests for backup suffixes.
34042
34043 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34044
34045         * modules/stdlib (Depends-on): Add stdint, needed when defining
34046         struct random_data on, for example, HP-UX 10.20.  Reported by
34047         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34048
34049 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34050
34051         * lib/readline.c (readline): Call fflush on stdout after printing
34052         prompt.
34053
34054 2009-03-20  Bruno Haible  <bruno@clisp.org>
34055
34056         Remove dependency from 'close' module to -lws2_32 on native Windows.
34057         * lib/close-hook.h: New file.
34058         * lib/close-hook.c: New file.
34059         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34060         w32sock.h.
34061         (_gl_close_fd_maybe_socket): Remove function.
34062         (rpl_close): Invoke execute_all_close_hooks instead of
34063         _gl_close_fd_maybe_socket.
34064         * lib/sockets.c: Include close-hook.h, w32sock.h.
34065         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34066         (close_sockets_hook): New variable.
34067         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34068         (gl_sockets_cleanup): Unregister it.
34069         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34070         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34071         * modules/close-hook: New file.
34072         * modules/close (Files): Remove lib/w32sock.h.
34073         (Depends-on): Add close-hook.
34074         (Link): Remove section.
34075         * modules/sockets (Files): Add lib/w32sock.h.
34076         (Depends-on): Add close-hook.
34077         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34078         invocation.
34079         * NEWS: Mention that LIB_CLOSE is gone.
34080
34081 2009-03-23  Eric Blake  <ebb9@byu.net>
34082
34083         signal-tests: test previous patch
34084         * tests/test-signal.c: New file.
34085         * modules/signal-tests: Likewise.
34086
34087         signal.h: always support 'volatile sig_atomic_t'
34088         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34089         (gl_SIGNAL_H_DEFAULTS): Add a default.
34090         * modules/signal (Makefile.am): Substitute if needed.
34091         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34092         users can blindly add volatile.
34093         * doc/posix-headers/signal.texi (signal.h): Document it.
34094         Reported by Matthew Woehlke.
34095
34096 2009-03-23  Jim Meyering  <meyering@redhat.com>
34097
34098         pathmax: PATH_MAX: use pathconf only when available
34099         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34100         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34101         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34102         This avoids a link failure in a PSP cross-compilation environment
34103         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34104
34105         * lib/vasnprintf.c (divide): Fix typo in comment.
34106
34107 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34108
34109         * gnulib-tool (func_filter_filelist): Fix comment.
34110
34111 2009-03-20  Bruno Haible  <bruno@clisp.org>
34112
34113         Make sockets.h self-contained.
34114         * lib/sockets.c: Include sockets.h first.
34115         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34116
34117 2009-03-19  Eric Blake  <ebb9@byu.net>
34118
34119         doc: mention more functions added in cygwin 1.7.0
34120         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34121         addition.
34122         * doc/posix-functions/log2f.texi: Likewise.
34123
34124 2009-03-19  Jim Meyering  <meyering@redhat.com>
34125
34126         fsusage: avoid syntax error due to statement-before-declaration
34127         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34128         after all declarations.  Reported by Matthew Woehlke in
34129         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34130
34131 2009-03-18  Eric Blake  <ebb9@byu.net>
34132
34133         build-aux/compile: sync from automake
34134         * build-aux/compile: New file, from automake.
34135         * config/srclist.txt: Mention build-aux/compile.
34136
34137 2009-03-17  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/git-merge-changelog.c: Fix typo in comment.
34140         Reported by Reuben Thomas <rrt@sc3d.org>.
34141
34142 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34143
34144         * m4/regex.m4: update and improve help for
34145         --without-included-regex.
34146
34147 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34148
34149         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34150         failure on missing include files.
34151
34152 2009-03-17  Eric Blake  <ebb9@byu.net>
34153
34154         doc: mention more functions added in cygwin 1.7.0
34155         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34156         addition.
34157         * doc/posix-functions/fwscanf.texi: Likewise.
34158         * doc/posix-functions/swprintf.texi: Likewise.
34159         * doc/posix-functions/swscanf.texi: Likewise.
34160         * doc/posix-functions/vfwprintf.texi: Likewise.
34161         * doc/posix-functions/vfwscanf.texi: Likewise.
34162         * doc/posix-functions/vswprintf.texi: Likewise.
34163         * doc/posix-functions/vswscanf.texi: Likewise.
34164         * doc/posix-functions/vwprintf.texi: Likewise.
34165         * doc/posix-functions/vwscanf.texi: Likewise.
34166         * doc/posix-functions/wcscasecmp.texi: Likewise.
34167         * doc/posix-functions/wcsdup.texi: Likewise.
34168         * doc/posix-functions/wcsftime.texi: Likewise.
34169         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34170         * doc/posix-functions/wprintf.texi: Likewise.
34171         * doc/posix-functions/wscanf.texi: Likewise.
34172         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34173
34174 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34175
34176         maint.mk: really add $(AM_MAKEFLAGS)
34177         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34178         was inadvertently omitted in the last commit.
34179         Spotted by Bruno Haible.
34180
34181         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34182         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34183         $(AM_MAKEFLAGS)' rather than plain `make'.
34184
34185         gnulib-tool: execute $MAKE not make
34186         * gnulib-tool: Default $MAKE to 'make'.
34187         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34188         than make.  Initialize $MAKE in the do-autobuild script.
34189
34190         gnulib-tool: use $MAKE not make in generated files
34191         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34192         make, in generated files.  Initialize $MAKE in the do-autobuild
34193         script.
34194
34195         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34196
34197         GNUmakefile: disable parallelism only for multiple, recursive targets
34198         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34199         additions in the Makefile.
34200         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34201         by Automake.
34202         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34203         are listed on the command line and at least one of them is
34204         listed in $(ALL_RECURSIVE_TARGETS).
34205
34206 2009-03-14  Bruno Haible  <bruno@clisp.org>
34207
34208         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34209         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34210         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34211         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34212         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34213         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34214         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34215         unistr/u8-uctomb.
34216         * modules/unistr/u8-strchr (Depends-on): Likewise.
34217         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34218         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34219         unistr/u16-uctomb.
34220         * modules/unistr/u16-strchr (Depends-on): Likewise.
34221         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34222
34223 2009-03-12  Bruno Haible  <bruno@clisp.org>
34224
34225         Work around select() bug on Interix 3.5.
34226         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34227         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34228         * m4/select.m4: New file.
34229         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34230         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34231         * modules/select (Files): Add m4/select.m4.
34232         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34233         * modules/nanosleep (Depends-on): Add select.
34234         * modules/poll (Depends-on): Likewise.
34235         * doc/posix-functions/select.texi: Mention the Interix bug.
34236         Reported by Markus Duft <mduft@gentoo.org>.
34237
34238         * lib/select.c: Renamed from lib/winsock-select.c.
34239         * modules/select (Files): Add lib/select.c, remove
34240         lib/winsock-select.c.
34241         (configure.ac): Update.
34242
34243 2009-03-12  Jim Meyering  <meyering@redhat.com>
34244
34245         avoid gcc warnings about unused macro definitions
34246         * lib/readtokens.c (STREQ): Remove unused definition.
34247         * lib/xmalloc.c (SIZE_MAX): Likewise.
34248         * lib/openat-die.c (N_): Likewise.
34249         * lib/mountlist.c (SIZE_MAX): Remove definition.
34250         Instead, include <stdint.h>.
34251         * lib/readutmp.c: Likewise.
34252         * modules/readutmp (Depends-on): Add stdint.
34253         * modules/mountlist (Depends-on): Add stdint.
34254         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34255
34256 2009-03-10  Bruno Haible  <bruno@clisp.org>
34257
34258         Tests for module 'mbmemcasecoll'.
34259         * modules/mbmemcasecoll-tests: New file.
34260         * tests/test-mbmemcasecoll1.sh: New file.
34261         * tests/test-mbmemcasecoll2.sh: New file.
34262         * tests/test-mbmemcasecoll3.sh: New file.
34263         * tests/test-mbmemcasecoll.c: New file.
34264
34265         New module 'mbmemcasecoll'.
34266         * lib/mbmemcasecoll.h: New file.
34267         * lib/mbmemcasecoll.c: New file.
34268         * modules/mbmemcasecoll: New file.
34269
34270         * tests/test-mbmemcasecmp.h: New file, extracted from
34271         tests/test-mbmemcasecmp.c.
34272         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34273         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34274         (main): Update.
34275         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34276
34277 2009-03-09  Bruno Haible  <bruno@clisp.org>
34278
34279         Tests for module 'mbmemcasecmp'.
34280         * modules/mbmemcasecmp-tests: New file.
34281         * tests/test-mbmemcasecmp1.sh: New file.
34282         * tests/test-mbmemcasecmp2.sh: New file.
34283         * tests/test-mbmemcasecmp3.sh: New file.
34284         * tests/test-mbmemcasecmp.c: New file.
34285
34286         New module 'mbmemcasecmp'.
34287         * lib/mbmemcasecmp.h: New file.
34288         * lib/mbmemcasecmp.c: New file.
34289         * modules/mbmemcasecmp: New file.
34290
34291 2009-03-09  Bruno Haible  <bruno@clisp.org>
34292
34293         Tests for module 'unicase/ulc-casecoll'.
34294         * modules/unicase/ulc-casecoll-tests: New file.
34295         * tests/unicase/test-ulc-casecoll1.sh: New file.
34296         * tests/unicase/test-ulc-casecoll2.sh: New file.
34297         * tests/unicase/test-ulc-casecoll.c: New file.
34298
34299         New module 'unicase/ulc-casecoll'.
34300         * lib/unicase.h (ulc_casecoll): New declaration.
34301         * lib/unicase/ulc-casecoll.c: New file.
34302         * modules/unicase/ulc-casecoll: New file.
34303
34304         New module 'unicase/ulc-casexfrm'.
34305         * lib/unicase.h (ulc_casexfrm): New declaration.
34306         * lib/unicase/ulc-casexfrm.c: New file.
34307         * modules/unicase/ulc-casexfrm: New file.
34308
34309 2009-03-09  Bruno Haible  <bruno@clisp.org>
34310
34311         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34312         invocations.
34313
34314         * m4/mbscasecmp.m4: Remove file.
34315         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34316         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34317
34318         * m4/mbscasestr.m4: Remove file.
34319         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34320         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34321
34322         * m4/mbschr.m4: Remove file.
34323         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34324         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34325
34326         * m4/mbscspn.m4: Remove file.
34327         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34328         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34329
34330         * m4/mbslen.m4: Remove file.
34331         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34332         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34333
34334         * m4/mbsncasecmp.m4: Remove file.
34335         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34336         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34337
34338         * m4/mbsnlen.m4: Remove file.
34339         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34340         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34341
34342         * m4/mbspbrk.m4: Remove file.
34343         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34344         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34345
34346         * m4/mbspcasecmp.m4: Remove file.
34347         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34348         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34349
34350         * m4/mbsrchr.m4: Remove file.
34351         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34352         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34353
34354         * m4/mbssep.m4: Remove file.
34355         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34356         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34357
34358         * m4/mbsspn.m4: Remove file.
34359         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34360         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34361
34362         * m4/mbsstr.m4: Remove file.
34363         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34364         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34365
34366         * m4/mbstok_r.m4: Remove file.
34367         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34368         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34369
34370         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34371
34372         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34373         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34374
34375         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34376
34377 2009-03-08  Bruno Haible  <bruno@clisp.org>
34378
34379         Tests for module 'unicase/ulc-casecmp'.
34380         * modules/unicase/ulc-casecmp-tests: New file.
34381         * tests/unicase/test-ulc-casecmp1.sh: New file.
34382         * tests/unicase/test-ulc-casecmp2.sh: New file.
34383         * tests/unicase/test-ulc-casecmp.c: New file.
34384
34385         New module 'unicase/ulc-casecmp'.
34386         * lib/unicase.h (ulc_casecmp): New declaration.
34387         * lib/unicase/ulc-casecmp.c: New file.
34388         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34389         'const SRC_UNIT *'.
34390         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34391         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34392         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34393         * modules/unicase/ulc-casecmp: New file.
34394
34395         Tests for module 'unicase/u32-is-cased'.
34396         * modules/unicase/u32-is-cased-tests: New file.
34397         * tests/unicase/test-u32-is-cased.c: New file.
34398
34399         Tests for module 'unicase/u16-is-cased'.
34400         * modules/unicase/u16-is-cased-tests: New file.
34401         * tests/unicase/test-u16-is-cased.c: New file.
34402
34403         Tests for module 'unicase/u8-is-cased'.
34404         * modules/unicase/u8-is-cased-tests: New file.
34405         * tests/unicase/test-u8-is-cased.c: New file.
34406         * tests/unicase/test-is-cased.h: New file.
34407
34408         New module 'unicase/u32-is-cased'.
34409         * lib/unicase/u32-is-cased.c: New file.
34410         * modules/unicase/u32-is-cased: New file.
34411
34412         New module 'unicase/u16-is-cased'.
34413         * lib/unicase/u16-is-cased.c: New file.
34414         * modules/unicase/u16-is-cased: New file.
34415
34416         New module 'unicase/u8-is-cased'.
34417         * lib/unicase/u8-is-cased.c: New file.
34418         * lib/unicase/u-is-cased.h: New file.
34419         * modules/unicase/u8-is-cased: New file.
34420
34421         Tests for module 'unicase/u32-is-casefolded'.
34422         * modules/unicase/u32-is-casefolded-tests: New file.
34423         * tests/unicase/test-u32-is-casefolded.c: New file.
34424
34425         Tests for module 'unicase/u16-is-casefolded'.
34426         * modules/unicase/u16-is-casefolded-tests: New file.
34427         * tests/unicase/test-u16-is-casefolded.c: New file.
34428
34429         Tests for module 'unicase/u8-is-casefolded'.
34430         * modules/unicase/u8-is-casefolded-tests: New file.
34431         * tests/unicase/test-u8-is-casefolded.c: New file.
34432         * tests/unicase/test-is-casefolded.h: New file.
34433
34434         New module 'unicase/u32-is-casefolded'.
34435         * lib/unicase/u32-is-casefolded.c: New file.
34436         * modules/unicase/u32-is-casefolded: New file.
34437
34438         New module 'unicase/u16-is-casefolded'.
34439         * lib/unicase/u16-is-casefolded.c: New file.
34440         * modules/unicase/u16-is-casefolded: New file.
34441
34442         New module 'unicase/u8-is-casefolded'.
34443         * lib/unicase/u8-is-casefolded.c: New file.
34444         * modules/unicase/u8-is-casefolded: New file.
34445
34446         Tests for module 'unicase/u32-is-titlecase'.
34447         * modules/unicase/u32-is-titlecase-tests: New file.
34448         * tests/unicase/test-u32-is-titlecase.c: New file.
34449
34450         Tests for module 'unicase/u16-is-titlecase'.
34451         * modules/unicase/u16-is-titlecase-tests: New file.
34452         * tests/unicase/test-u16-is-titlecase.c: New file.
34453
34454         Tests for module 'unicase/u8-is-titlecase'.
34455         * modules/unicase/u8-is-titlecase-tests: New file.
34456         * tests/unicase/test-u8-is-titlecase.c: New file.
34457         * tests/unicase/test-is-titlecase.h: New file.
34458
34459         New module 'unicase/u32-is-titlecase'.
34460         * lib/unicase/u32-is-titlecase.c: New file.
34461         * modules/unicase/u32-is-titlecase: New file.
34462
34463         New module 'unicase/u16-is-titlecase'.
34464         * lib/unicase/u16-is-titlecase.c: New file.
34465         * modules/unicase/u16-is-titlecase: New file.
34466
34467         New module 'unicase/u8-is-titlecase'.
34468         * lib/unicase/u8-is-titlecase.c: New file.
34469         * modules/unicase/u8-is-titlecase: New file.
34470
34471         Tests for module 'unicase/u32-is-lowercase'.
34472         * modules/unicase/u32-is-lowercase-tests: New file.
34473         * tests/unicase/test-u32-is-lowercase.c: New file.
34474
34475         Tests for module 'unicase/u16-is-lowercase'.
34476         * modules/unicase/u16-is-lowercase-tests: New file.
34477         * tests/unicase/test-u16-is-lowercase.c: New file.
34478
34479         Tests for module 'unicase/u8-is-lowercase'.
34480         * modules/unicase/u8-is-lowercase-tests: New file.
34481         * tests/unicase/test-u8-is-lowercase.c: New file.
34482         * tests/unicase/test-is-lowercase.h: New file.
34483
34484         New module 'unicase/u32-is-lowercase'.
34485         * lib/unicase/u32-is-lowercase.c: New file.
34486         * modules/unicase/u32-is-lowercase: New file.
34487
34488         New module 'unicase/u16-is-lowercase'.
34489         * lib/unicase/u16-is-lowercase.c: New file.
34490         * modules/unicase/u16-is-lowercase: New file.
34491
34492         New module 'unicase/u8-is-lowercase'.
34493         * lib/unicase/u8-is-lowercase.c: New file.
34494         * modules/unicase/u8-is-lowercase: New file.
34495
34496         Tests for module 'unicase/u32-is-uppercase'.
34497         * modules/unicase/u32-is-uppercase-tests: New file.
34498         * tests/unicase/test-u32-is-uppercase.c: New file.
34499
34500         Tests for module 'unicase/u16-is-uppercase'.
34501         * modules/unicase/u16-is-uppercase-tests: New file.
34502         * tests/unicase/test-u16-is-uppercase.c: New file.
34503
34504         Tests for module 'unicase/u8-is-uppercase'.
34505         * modules/unicase/u8-is-uppercase-tests: New file.
34506         * tests/unicase/test-u8-is-uppercase.c: New file.
34507         * tests/unicase/test-is-uppercase.h: New file.
34508
34509         New module 'unicase/u32-is-uppercase'.
34510         * lib/unicase/u32-is-uppercase.c: New file.
34511         * modules/unicase/u32-is-uppercase: New file.
34512
34513         New module 'unicase/u16-is-uppercase'.
34514         * lib/unicase/u16-is-uppercase.c: New file.
34515         * modules/unicase/u16-is-uppercase: New file.
34516
34517         New module 'unicase/u8-is-uppercase'.
34518         * lib/unicase/u8-is-uppercase.c: New file.
34519         * modules/unicase/u8-is-uppercase: New file.
34520
34521         New module 'unicase/u32-is-invariant'.
34522         * lib/unicase/u32-is-invariant.c: New file.
34523         * modules/unicase/u32-is-invariant: New file.
34524
34525         New module 'unicase/u16-is-invariant'.
34526         * lib/unicase/u16-is-invariant.c: New file.
34527         * modules/unicase/u16-is-invariant: New file.
34528
34529         New module 'unicase/u8-is-invariant'.
34530         * lib/unicase/u8-is-invariant.c: New file.
34531         * lib/unicase/invariant.h: New file.
34532         * lib/unicase/u-is-invariant.h: New file.
34533         * modules/unicase/u8-is-invariant: New file.
34534
34535         Tests for module 'unicase/u32-casecoll'.
34536         * modules/unicase/u32-casecoll-tests: New file.
34537         * tests/unicase/test-u32-casecoll.c: New file.
34538
34539         Tests for module 'unicase/u16-casecoll'.
34540         * modules/unicase/u16-casecoll-tests: New file.
34541         * tests/unicase/test-u16-casecoll.c: New file.
34542
34543         Tests for module 'unicase/u8-casecoll'.
34544         * modules/unicase/u8-casecoll-tests: New file.
34545         * tests/unicase/test-u8-casecoll.c: New file.
34546
34547         New module 'unicase/u32-casecoll'.
34548         * lib/unicase/u32-casecoll.c: New file.
34549         * modules/unicase/u32-casecoll: New file.
34550
34551         New module 'unicase/u16-casecoll'.
34552         * lib/unicase/u16-casecoll.c: New file.
34553         * modules/unicase/u16-casecoll: New file.
34554
34555         New module 'unicase/u8-casecoll'.
34556         * lib/unicase/u8-casecoll.c: New file.
34557         * lib/unicase/u-casecoll.h: New file.
34558         * modules/unicase/u8-casecoll: New file.
34559
34560         New module 'unicase/u32-casexfrm'.
34561         * lib/unicase/u32-casexfrm.c: New file.
34562         * modules/unicase/u32-casexfrm: New file.
34563
34564         New module 'unicase/u16-casexfrm'.
34565         * lib/unicase/u16-casexfrm.c: New file.
34566         * modules/unicase/u16-casexfrm: New file.
34567
34568         New module 'unicase/u8-casexfrm'.
34569         * lib/unicase/u8-casexfrm.c: New file.
34570         * lib/unicase/u-casexfrm.h: New file.
34571         * modules/unicase/u8-casexfrm: New file.
34572
34573         Tests for module 'unicase/u32-casecmp'.
34574         * modules/unicase/u32-casecmp-tests: New file.
34575         * tests/unicase/test-u32-casecmp.c: New file.
34576
34577         Tests for module 'unicase/u16-casecmp'.
34578         * modules/unicase/u16-casecmp-tests: New file.
34579         * tests/unicase/test-u16-casecmp.c: New file.
34580
34581         Tests for module 'unicase/u8-casecmp'.
34582         * modules/unicase/u8-casecmp-tests: New file.
34583         * tests/unicase/test-u8-casecmp.c: New file.
34584         * tests/unicase/test-casecmp.h: New file.
34585
34586         New module 'unicase/u32-casecmp'.
34587         * lib/unicase/u32-casecmp.c: New file.
34588         * modules/unicase/u32-casecmp: New file.
34589
34590         New module 'unicase/u16-casecmp'.
34591         * lib/unicase/u16-casecmp.c: New file.
34592         * modules/unicase/u16-casecmp: New file.
34593
34594         New module 'unicase/u8-casecmp'.
34595         * lib/unicase/u8-casecmp.c: New file.
34596         * lib/unicase/u-casecmp.h: New file.
34597         * modules/unicase/u8-casecmp: New file.
34598
34599         Tests for module 'unicase/u32-casefold'.
34600         * modules/unicase/u32-casefold-tests: New file.
34601         * tests/unicase/test-u32-casefold.c: New file.
34602
34603         Tests for module 'unicase/u16-casefold'.
34604         * modules/unicase/u16-casefold-tests: New file.
34605         * tests/unicase/test-u16-casefold.c: New file.
34606
34607         Tests for module 'unicase/u8-casefold'.
34608         * modules/unicase/u8-casefold-tests: New file.
34609         * tests/unicase/test-u8-casefold.c: New file.
34610
34611         New module 'unicase/u32-casefold'.
34612         * lib/unicase/u32-casefold.c: New file.
34613         * modules/unicase/u32-casefold: New file.
34614
34615         New module 'unicase/u16-casefold'.
34616         * lib/unicase/u16-casefold.c: New file.
34617         * modules/unicase/u16-casefold: New file.
34618
34619         New module 'unicase/u8-casefold'.
34620         * lib/unicase/u8-casefold.c: New file.
34621         * lib/unicase/u-casefold.h: New file.
34622         * modules/unicase/u8-casefold: New file.
34623
34624         New module 'unicase/tocasefold'.
34625         * lib/unicase/casefold.h: New file.
34626         * lib/unicase/tocasefold.c: New file.
34627         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34628         * modules/unicase/tocasefold: New file.
34629
34630         Tests for module 'unicase/u32-totitle'.
34631         * modules/unicase/u32-totitle-tests: New file.
34632         * tests/unicase/test-u32-totitle.c: New file.
34633
34634         Tests for module 'unicase/u16-totitle'.
34635         * modules/unicase/u16-totitle-tests: New file.
34636         * tests/unicase/test-u16-totitle.c: New file.
34637
34638         Tests for module 'unicase/u8-totitle'.
34639         * modules/unicase/u8-totitle-tests: New file.
34640         * tests/unicase/test-u8-totitle.c: New file.
34641
34642         New module 'unicase/u32-totitle'.
34643         * lib/unicase/u32-totitle.c: New file.
34644         * modules/unicase/u32-totitle: New file.
34645
34646         New module 'unicase/u16-totitle'.
34647         * lib/unicase/u16-totitle.c: New file.
34648         * modules/unicase/u16-totitle: New file.
34649
34650         New module 'unicase/u8-totitle'.
34651         * lib/unicase/u8-totitle.c: New file.
34652         * lib/unicase/u-totitle.h: New file.
34653         * modules/unicase/u8-totitle: New file.
34654
34655         Tests for module 'unicase/u32-tolower'.
34656         * modules/unicase/u32-tolower-tests: New file.
34657         * tests/unicase/test-u32-tolower.c: New file.
34658
34659         Tests for module 'unicase/u16-tolower'.
34660         * modules/unicase/u16-tolower-tests: New file.
34661         * tests/unicase/test-u16-tolower.c: New file.
34662
34663         Tests for module 'unicase/u8-tolower'.
34664         * modules/unicase/u8-tolower-tests: New file.
34665         * tests/unicase/test-u8-tolower.c: New file.
34666
34667         New module 'unicase/u32-tolower'.
34668         * lib/unicase/u32-tolower.c: New file.
34669         * modules/unicase/u32-tolower: New file.
34670
34671         New module 'unicase/u16-tolower'.
34672         * lib/unicase/u16-tolower.c: New file.
34673         * modules/unicase/u16-tolower: New file.
34674
34675         New module 'unicase/u8-tolower'.
34676         * lib/unicase/u8-tolower.c: New file.
34677         * modules/unicase/u8-tolower: New file.
34678
34679         Tests for module 'unicase/u32-toupper'.
34680         * modules/unicase/u32-toupper-tests: New file.
34681         * tests/unicase/test-u32-toupper.c: New file.
34682
34683         Tests for module 'unicase/u16-toupper'.
34684         * modules/unicase/u16-toupper-tests: New file.
34685         * tests/unicase/test-u16-toupper.c: New file.
34686
34687         Tests for module 'unicase/u8-toupper'.
34688         * modules/unicase/u8-toupper-tests: New file.
34689         * tests/unicase/test-u8-toupper.c: New file.
34690
34691         New module 'unicase/u32-toupper'.
34692         * lib/unicase/u32-toupper.c: New file.
34693         * modules/unicase/u32-toupper: New file.
34694
34695         New module 'unicase/u16-toupper'.
34696         * lib/unicase/u16-toupper.c: New file.
34697         * modules/unicase/u16-toupper: New file.
34698
34699         New module 'unicase/u8-toupper'.
34700         * lib/unicase/u8-toupper.c: New file.
34701         * modules/unicase/u8-toupper: New file.
34702
34703         New module 'unicase/u32-casemap'.
34704         * lib/unicase/u32-casemap.c: New file.
34705         * modules/unicase/u32-casemap: New file.
34706
34707         New module 'unicase/u16-casemap'.
34708         * lib/unicase/u16-casemap.c: New file.
34709         * modules/unicase/u16-casemap: New file.
34710
34711         New module 'unicase/u8-casemap'.
34712         * lib/unicase/unicasemap.h: New file.
34713         * lib/unicase/u8-casemap.c: New file.
34714         * lib/unicase/u-casemap.h: New file.
34715         * modules/unicase/u8-casemap: New file.
34716
34717         New module 'unicase/special-casing'.
34718         * lib/unicase/special-casing.h: New file.
34719         * lib/unicase/special-casing.c: New file.
34720         * lib/unicase/special-casing-table.gperf: New file, generated by
34721         gen-uni-tables.c.
34722         * modules/unicase/special-casing: New file.
34723
34724         Tests for module 'unicase/locale-language'.
34725         * modules/unicase/locale-language-tests: New file.
34726         * tests/unicase/test-locale-language.sh: New file.
34727         * tests/unicase/test-locale-language.c: New file.
34728
34729         New module 'unicase/locale-language'.
34730         * lib/unicase/locale-language.c: New file.
34731         * lib/unicase/locale-languages.gperf: New file.
34732         * modules/unicase/locale-language: New file.
34733
34734         Generate more tables for case conversion and case folding.
34735         * lib/gen-uni-tables.c (SCC_*): New enum items.
34736         (struct special_casing_rule): New type.
34737         (casing_rules, num_casing_rules, allocated_casing_rules): New
34738         variables.
34739         (add_casing_rule, fill_casing_rules): New functions.
34740         (struct casefold_rule): New type.
34741         (casefolding_rules, num_casefolding_rules,
34742         allocated_casefolding_rules): New variables.
34743         (fill_casefolding_rules): New function.
34744         (unicode_casefold): New variable.
34745         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34746         sort_casing_rules, output_casing_rules): New functions.
34747         (main): Accept to more arguments: SpecialCasing.txt and
34748         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34749         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34750         Output mapping for casefolding.
34751
34752         * lib/unicase.h: Include stdbool.h, uninorm.h.
34753         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34754         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34755         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34756         arguments.
34757         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34758         resultp arguments.
34759         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34760         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34761         resultp arguments.
34762         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34763         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34764         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34765         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34766         declarations.
34767         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34768
34769 2009-03-08  Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34772         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34773         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34774         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34775
34776 2009-03-07  Bruno Haible  <bruno@clisp.org>
34777
34778         Adjust u*_normcmp, u*_normcoll API.
34779         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34780         u16_normcoll, u32_normcoll): Change failure conventions.
34781         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34782         errno and return -1.
34783         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34784
34785 2009-03-07  Bruno Haible  <bruno@clisp.org>
34786
34787         Tests for module 'uninorm/u32-normcoll'.
34788         * modules/uninorm/u32-normcoll-tests: New file.
34789         * tests/uninorm/test-u32-normcoll.c: New file.
34790
34791         Tests for module 'uninorm/u16-normcoll'.
34792         * modules/uninorm/u16-normcoll-tests: New file.
34793         * tests/uninorm/test-u16-normcoll.c: New file.
34794
34795         Tests for module 'uninorm/u8-normcoll'.
34796         * modules/uninorm/u8-normcoll-tests: New file.
34797         * tests/uninorm/test-u8-normcoll.c: New file.
34798
34799 2009-03-07  Bruno Haible  <bruno@clisp.org>
34800
34801         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34802         tests/uninorm/test-u32-normcmp.c.
34803         * tests/uninorm/test-u32-normcmp.c: Include it.
34804         (test_nonascii): New function, extracted from main. Add some more
34805         tests.
34806         (main): Invoke test_ascii and test_nonascii.
34807         * modules/uninorm/u32-normcmp-tests (Files): Add
34808         tests/uninorm/test-u32-normcmp.h.
34809         (Depends-on): Remove uninorm/u32-normcmp.
34810
34811         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34812         tests/uninorm/test-u16-normcmp.c.
34813         * tests/uninorm/test-u16-normcmp.c: Include it.
34814         (test_nonascii): New function, extracted from main. Add some more
34815         tests.
34816         (main): Invoke test_ascii and test_nonascii.
34817         * modules/uninorm/u16-normcmp-tests (Files): Add
34818         tests/uninorm/test-u16-normcmp.h.
34819         (Depends-on): Remove uninorm/u16-normcmp.
34820
34821         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34822         tests/uninorm/test-u8-normcmp.c.
34823         * tests/uninorm/test-u8-normcmp.c: Include it.
34824         (test_nonascii): New function, extracted from main. Add some more
34825         tests.
34826         (main): Invoke test_ascii and test_nonascii.
34827         * modules/uninorm/u8-normcmp-tests (Files): Add
34828         tests/uninorm/test-u8-normcmp.h.
34829         (Depends-on): Remove uninorm/u8-normcmp.
34830
34831 2009-03-07  Bruno Haible  <bruno@clisp.org>
34832
34833         New module 'uninorm/u32-normcoll'.
34834         * lib/uninorm/u32-normcoll.c: New file.
34835         * modules/uninorm/u32-normcoll: New file.
34836
34837         New module 'uninorm/u16-normcoll'.
34838         * lib/uninorm/u16-normcoll.c: New file.
34839         * modules/uninorm/u16-normcoll: New file.
34840
34841         New module 'uninorm/u8-normcoll'.
34842         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34843         declarations.
34844         * lib/uninorm/u8-normcoll.c: New file.
34845         * lib/uninorm/u-normcoll.h: New file.
34846         * modules/uninorm/u8-normcoll: New file.
34847
34848         New module 'uninorm/u32-normxfrm'.
34849         * lib/uninorm/u32-normxfrm.c: New file.
34850         * modules/uninorm/u32-normxfrm: New file.
34851
34852         New module 'uninorm/u16-normxfrm'.
34853         * lib/uninorm/u16-normxfrm.c: New file.
34854         * modules/uninorm/u16-normxfrm: New file.
34855
34856         New module 'uninorm/u8-normxfrm'.
34857         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34858         declarations.
34859         * lib/uninorm/u8-normxfrm.c: New file.
34860         * lib/uninorm/u-normxfrm.h: New file.
34861         * modules/uninorm/u8-normxfrm: New file.
34862
34863 2009-03-07  Bruno Haible  <bruno@clisp.org>
34864
34865         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34866         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34867         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34868
34869 2009-03-07  Bruno Haible  <bruno@clisp.org>
34870
34871         New module 'memxfrm'.
34872         * lib/memxfrm.h: New file.
34873         * lib/memxfrm.c: New file.
34874         * modules/memxfrm: New file.
34875
34876 2009-03-07  Bruno Haible  <bruno@clisp.org>
34877
34878         New module 'memcmp2'.
34879         * lib/memcmp2.h: New file.
34880         * lib/memcmp2.c: New file.
34881         * modules/memcmp2: New file.
34882
34883 2009-03-07  Bruno Haible  <bruno@clisp.org>
34884
34885         Tests for module 'uninorm/decomposing-form'.
34886         * modules/uninorm/decomposing-form-tests: New file.
34887         * tests/uninorm/test-decomposing-form.c: New file.
34888
34889         New module 'uninorm/decomposing-form'.
34890         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34891         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34892         Add 'decomposing_variant' field.
34893         * lib/uninorm/decomposing-form.c: New file.
34894         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34895         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34896         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34897         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34898         * modules/uninorm/decomposing-form: New file.
34899         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34900         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34901
34902 2009-03-07  Bruno Haible  <bruno@clisp.org>
34903
34904         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34905         strings.
34906
34907 2009-03-06  Bruno Haible  <bruno@clisp.org>
34908
34909         Tests for module 'uninorm/u32-normcmp'.
34910         * tests/uninorm/test-u32-normcmp.c: New file.
34911         * modules/uninorm/u32-normcmp-tests: New file.
34912
34913         Tests for module 'uninorm/u16-normcmp'.
34914         * tests/uninorm/test-u16-normcmp.c: New file.
34915         * modules/uninorm/u16-normcmp-tests: New file.
34916
34917         Tests for module 'uninorm/u8-normcmp'.
34918         * tests/uninorm/test-u8-normcmp.c: New file.
34919         * modules/uninorm/u8-normcmp-tests: New file.
34920
34921         New module 'uninorm/u32-normcmp'.
34922         * lib/uninorm/u32-normcmp.c: New file.
34923         * modules/uninorm/u32-normcmp: New file.
34924
34925         New module 'uninorm/u16-normcmp'.
34926         * lib/uninorm/u16-normcmp.c: New file.
34927         * modules/uninorm/u16-normcmp: New file.
34928
34929         New module 'uninorm/u8-normcmp'.
34930         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34931         declarations.
34932         * lib/uninorm/u8-normcmp.c: New file.
34933         * lib/uninorm/u-normcmp.h: New file.
34934         * modules/uninorm/u8-normcmp: New file.
34935
34936 2009-03-06  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34939         Reported by Eric Blake.
34940
34941 2009-03-06  Eric Blake  <ebb9@byu.net>
34942             Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34945         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34946         condition.
34947         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34948         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34949         condition.
34950         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34951
34952 2009-03-06  Eric Blake  <ebb9@byu.net>
34953
34954         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34955         to avoid compiler warnings.
34956         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34957
34958 2009-03-05  Bruno Haible  <bruno@clisp.org>
34959
34960         * tests/test-ftell.c (main): Disable test beyond end of file on
34961         FreeMiNT.
34962         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34963
34964 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34965
34966         * lib/filevercmp.c: Move hidden files up in ordering.
34967         * tests/test-filevercmp.c: Add tests for hidden files.
34968
34969 2009-03-04  Bruno Haible  <bruno@clisp.org>
34970
34971         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34972         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34973         AM_CFLAGS.
34974         Reported by Simon Josefsson.
34975
34976 2009-03-03  Bruno Haible  <bruno@clisp.org>
34977
34978         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34979         Reported by Simon Josefsson.
34980
34981         * doc/ld-version-script.texi: Update node reference.
34982
34983 2009-03-03  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/visibility (License): Change to 'unlimited'.
34986         Suggested by Simon Josefsson.
34987
34988 2009-03-03  Jim Meyering  <meyering@redhat.com>
34989
34990         unlinkdir: cannot_unlink_dir may modify process state
34991         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34992         it's neither thread-safe nor appropriate for use in a library.
34993
34994 2009-03-03  Eric Blake  <ebb9@byu.net>
34995
34996         test-closein: silence test under Darwin
34997         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34998         care if it dies from EPIPE or EBADF.
34999
35000 2009-03-03  Bruno Haible  <bruno@clisp.org>
35001
35002         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35003         earlier.
35004         * doc/visibility.texi: Fix @node and @section.
35005
35006 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35007
35008         * doc/gnulib.texi: Link to sections for ld version script and
35009         visibility.
35010         * doc/visibility.texi: Add @node and @section.
35011         * modules/ld-version-script: New module.
35012         * m4/ld-version-script.m4: New file.
35013         * doc/ld-version-script.texi: New file.
35014
35015 2009-03-02  David Lutterkort  <lutter@redhat.com>
35016
35017         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35019
35020 2009-03-02  Bruno Haible  <bruno@clisp.org>
35021
35022         * doc/visibility.texi: Mention libtool's -export-symbols option.
35023
35024 2009-03-02  Jim Meyering  <meyering@redhat.com>
35025
35026         announce-gen: new option: --no-print-checksums
35027         * build-aux/announce-gen (usage): Describe it.
35028         (print_checksums): Print a newline here, not in the [*] footnote.
35029         (main): Honor it.
35030
35031 2009-03-01  Bruno Haible  <bruno@clisp.org>
35032
35033         Use socklen_t in the native Windows replacements prototypes.
35034         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35035         instead of 'int'.
35036         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35037         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35038         * modules/getsockopt (Depends-on): Add socklen.
35039         * modules/setsockopt (Depends-on): Add socklen.
35040
35041 2009-03-01  Bruno Haible  <bruno@clisp.org>
35042
35043         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35044         least 4.2.
35045
35046 2009-03-01  Eric Blake  <ebb9@byu.net>
35047             Bruno Haible  <bruno@clisp.org>
35048
35049         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35050         error messages.
35051         * lib/wait-process.c (wait_subprocess): Omit error message about
35052         deadly signal sent to the child of termsigp != NULL.
35053
35054 2009-03-01  Eric Blake  <ebb9@byu.net>
35055
35056         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35057
35058 2009-03-01  Bruno Haible  <bruno@clisp.org>
35059
35060         Avoid a gcc warning.
35061         * tests/test-sched.c (b): Make global.
35062         Reported by Eric Blake.
35063
35064 2009-01-19  Martin Lambers  <marlam@marlam.de>
35065
35066         Provide POSIX semantics for socket timeout options on W32.
35067         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35068         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35069         * modules/setsockopt: Depend on sys_time module for struct timeval.
35070         * modules/getsockopt: Depend on sys_time module for struct timeval.
35071
35072 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35073
35074         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35075         __USE_GNU, for consistency with netdb.in.h.
35076         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35077
35078 2009-03-01  Bruno Haible  <bruno@clisp.org>
35079
35080         More support for FreeMiNT.
35081         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35082         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35083
35084 2009-03-01  Bruno Haible  <bruno@clisp.org>
35085
35086         More support for FreeMiNT.
35087         * lib/fpurge.c (fpurge): Correct last commit.
35088         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35089
35090 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35091
35092         Fix unportable awk script in vc-list-files.
35093         * build-aux/vc-list-files: In the replacement awk script, use
35094         substr with a second argument of 1, not zero.
35095         Report by Simon Josefsson.
35096
35097 2009-02-28  Bruno Haible  <bruno@clisp.org>
35098
35099         More support for FreeMiNT.
35100         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35101         to FreeMiNT today.
35102         * lib/fwriting.c (fwriting): Likewise.
35103         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35104
35105 2009-02-28  Bruno Haible  <bruno@clisp.org>
35106
35107         * tests/test-freadseek.c (main): Disable test beyond end of file on
35108         FreeMiNT.
35109         * tests/test-ftello.c (main): Likewise.
35110         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35111
35112 2009-02-28  Bruno Haible  <bruno@clisp.org>
35113
35114         Add tentative support for FreeMiNT.
35115         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35116         * lib/fpurge.c (fpurge): Likewise.
35117         * lib/freadable.c (freadable): Likewise.
35118         * lib/freading.c (freading): Likewise.
35119         * lib/freadptr.c (freadptr): Likewise.
35120         * lib/freadseek.c (freadptrinc): Likewise.
35121         * lib/fseeko.c (rpl_fseeko): Likewise.
35122         * lib/fseterr.c (fseterr): Likewise.
35123         * lib/fwritable.c (fwritable): Likewise.
35124         * lib/fwriting.c (fwriting): Likewise.
35125         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35126         Hourihane.
35127         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35128
35129 2009-02-28  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35132         SIGCHLD.
35133         Reported by Jim Meyering.
35134
35135 2009-02-28  Bruno Haible  <bruno@clisp.org>
35136
35137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35138         Mention the results of these tests on various platforms.
35139         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35140         order.
35141         * doc/posix-functions/printf.texi: Likewise.
35142         * doc/posix-functions/snprintf.texi: Likewise.
35143         * doc/posix-functions/sprintf.texi: Likewise.
35144         * doc/posix-functions/vfprintf.texi: Likewise.
35145         * doc/posix-functions/vprintf.texi: Likewise.
35146         * doc/posix-functions/vsnprintf.texi: Likewise.
35147         * doc/posix-functions/vsprintf.texi: Likewise.
35148         * doc/glibc-functions/obstack_printf.texi: Likewise.
35149         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35150
35151 2009-02-28  Bruno Haible  <bruno@clisp.org>
35152
35153         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35154         Reported by Loïc Minier <lool@dooz.org>.
35155
35156 2009-02-27  Bruno Haible  <bruno@clisp.org>
35157
35158         * gnulib-tool (func_import): Make the sed expression used to create the
35159         sed script for updating the .gitignore file POSIX compliant.
35160         Reported by Eric Blake.
35161
35162 2009-02-27  Bruno Haible  <bruno@clisp.org>
35163
35164         * gnulib-tool (sed): Don't alias as "sed --posix".
35165         Reported by Eric Blake.
35166
35167 2009-02-27  Bruno Haible  <bruno@clisp.org>
35168
35169         Avoid test link errors.
35170         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35171         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35172         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35173         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35175
35176 2009-02-27  Bruno Haible  <bruno@clisp.org>
35177
35178         Avoid spurious "(cached)" in configure output.
35179         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35180         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35181         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35182         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35183         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35184         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35185         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35186         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35187         Reported by Eric Blake.
35188
35189 2009-02-27  Eric Blake  <ebb9@byu.net>
35190
35191         printf: fix regression in previous patch
35192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35193
35194 2009-02-27  Bruno Haible  <bruno@clisp.org>
35195
35196         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35197         value.
35198         * lib/stdint.in.h: Likewise.
35199         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35200
35201 2009-02-27  Eric Blake  <ebb9@byu.net>
35202
35203         doc: mention more functions added in cygwin 1.7.0
35204         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35205         addition.
35206         * doc/posix-functions/open_wmemstream.texi: Likewise.
35207         * doc/posix-functions/wcsnlen.texi: Likewise.
35208         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35209         * doc/posix-functions/wcstod.texi: Likewise.
35210         * doc/posix-functions/wcstof.texi: Likewise.
35211         * doc/posix-functions/wcstoimax.texi: Likewise.
35212         * doc/posix-functions/wcstok.texi: Likewise.
35213         * doc/posix-functions/wcstoumax.texi: Likewise.
35214
35215         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35217         * doc/posix-functions/fprintf.texi: Update.
35218         * doc/posix-functions/printf.texi: Update.
35219         * doc/posix-functions/snprintf.texi: Update.
35220         * doc/posix-functions/sprintf.texi: Update.
35221         * doc/posix-functions/vfprintf.texi: Update.
35222         * doc/posix-functions/vprintf.texi: Update.
35223         * doc/posix-functions/vsnprintf.texi: Update.
35224         * doc/posix-functions/vsprintf.texi: Update.
35225         * doc/glibc-functions/obstack_printf.texi: Update.
35226         * doc/glibc-functions/obstack_vprintf.texi: Update.
35227
35228 2009-02-26  Eric Blake  <ebb9@byu.net>
35229
35230         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35231         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35232         compilation bug by using runtime conversion.
35233         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35234         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35235         * modules/ceill-tests (Files): Use nan.h.
35236         * modules/floorl-tests (Files): Likewise.
35237         * modules/frexpl-tests (Files): Likewise.
35238         * modules/isnanl-tests (Files): Likewise.
35239         * modules/ldexpl-tests (Files): Likewise.
35240         * modules/roundl-tests (Files): Likewise.
35241         * modules/truncl-tests (Files): Likewise.
35242         * tests/test-ceill.c (main): Use a working NaN.
35243         * tests/test-floorl.c (main): Likewise.
35244         * tests/test-frexpl.c (main): Likewise.
35245         * tests/test-isnan.c (test_long_double): Likewise.
35246         * tests/test-isnanl.h (main): Likewise.
35247         * tests/test-ldexpl.h (main): Likewise.
35248         * tests/test-roundl.h (main): Likewise.
35249         * tests/test-truncl.h (main): Likewise.
35250         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35251
35252 2009-02-26  Eric Blake  <ebb9@byu.net>
35253             Bruno Haible  <bruno@clisp.org>
35254
35255         Work around a *printf bug with %ls on Solaris.
35256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35257         precision is specified, sprintf stops converting the wide string
35258         argument when the number of bytes that have been produced by this
35259         conversion equals or exceeds the precision.
35260         * doc/posix-functions/fprintf.texi: Update.
35261         * doc/posix-functions/printf.texi: Update.
35262         * doc/posix-functions/snprintf.texi: Update.
35263         * doc/posix-functions/sprintf.texi: Update.
35264         * doc/posix-functions/vfprintf.texi: Update.
35265         * doc/posix-functions/vprintf.texi: Update.
35266         * doc/posix-functions/vsnprintf.texi: Update.
35267         * doc/posix-functions/vsprintf.texi: Update.
35268         * doc/glibc-functions/obstack_printf.texi: Update.
35269         * doc/glibc-functions/obstack_vprintf.texi: Update.
35270
35271 2009-02-26  Eric Blake  <ebb9@byu.net>
35272
35273         stdlib: favor compiler check of random.h
35274         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35275         to avoid an ObjC random.h installed by Swarm.
35276
35277 2009-02-26  Bruno Haible  <bruno@clisp.org>
35278
35279         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35280         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35281         Reported by Gary V. Vaughan <gary@gnu.org>.
35282
35283 2009-02-26  Bruno Haible  <bruno@clisp.org>
35284
35285         Fix *printf behaviour regarding the %ls directive.
35286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35287         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35288         NEED_PRINTF_DIRECTIVE_LS.
35289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35290         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35292         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35293         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35294         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35295         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35300         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35304         * doc/posix-functions/fprintf.texi: Update.
35305         * doc/posix-functions/printf.texi: Update.
35306         * doc/posix-functions/snprintf.texi: Update.
35307         * doc/posix-functions/sprintf.texi: Update.
35308         * doc/posix-functions/vfprintf.texi: Update.
35309         * doc/posix-functions/vprintf.texi: Update.
35310         * doc/posix-functions/vsnprintf.texi: Update.
35311         * doc/posix-functions/vsprintf.texi: Update.
35312         * doc/glibc-functions/obstack_printf.texi: Update.
35313         * doc/glibc-functions/obstack_vprintf.texi: Update.
35314         Reported by Eric Blake.
35315
35316 2009-02-25  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35319         with known value.
35320         Reported by Gary V. Vaughan <gary@gnu.org>.
35321
35322 2009-02-25  Bruno Haible  <bruno@clisp.org>
35323
35324         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35325         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35326         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35327         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35328         Reported by Gary V. Vaughan <gary@gnu.org>.
35329
35330 2009-02-25  Bruno Haible  <bruno@clisp.org>
35331
35332         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35333         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35334         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35335         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35336         Reported by Gary V. Vaughan <gary@gnu.org>.
35337
35338 2009-02-25  Eric Blake  <ebb9@byu.net>
35339
35340         tests: skip fseek/ftell tests if ungetc is broken
35341         * m4/ungetc.m4: New file.
35342         * modules/fseek-tests: Split test, so ungetc dependency is
35343         separate from rest of test.
35344         * modules/fseeko-tests: Likewise.
35345         * modules/ftell-tests: Likewise.
35346         * modules/ftello-tests: Likewise.
35347         * tests/test-fseek.c (main): Isolate ungetc dependency.
35348         * tests/test-fseeko.c (main): Likewise.
35349         * tests/test-ftell.c (main): Likewise.
35350         * tests/test-ftello.c (main): Likewise.
35351         * tests/test-fseek2.sh: New file.
35352         * tests/test-fseeko2.sh: Likewise.
35353         * tests/test-ftell2.sh: Likewise.
35354         * tests/test-ftello2.sh: Likewise.
35355
35356 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35357
35358         test-getaddrinfo: fix usage of skip return code 77
35359         * tests/test-gettaddrinfo.c: Return skip code 77 only
35360         for first occurance of skip (4x77 is not 77)
35361
35362 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35363
35364         strtod: avoid C99 decl-after-statement
35365         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35366
35367 2009-02-24  Eric Blake  <ebb9@byu.net>
35368
35369         strtod: detect HP-UX 11.31 bug
35370         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35371         Reported by Gary V. Vaughan.
35372
35373 2009-02-23  Bruno Haible  <bruno@clisp.org>
35374
35375         Fix invalid read past end of memory block.
35376         * lib/vasnprintf.c (DCHAR_SET): Define.
35377         (local_wcslen): Define only when needed.
35378         (local_strnlen, local_wcsnlen): New functions.
35379         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35380         directives that involve a conversion ourselves.
35381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35382         wcsnlen, mbrtowc, wcrtomb.
35383         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35384         * tests/test-vasprintf-posix.c (test_function): Likewise.
35385         * tests/test-snprintf-posix.h (test_function): Likewise.
35386         * tests/test-sprintf-posix.h (test_function): Likewise.
35387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35388
35389 2009-02-22  Bruno Haible  <bruno@clisp.org>
35390
35391         Implement new clarified decomposition of Hangul syllables.
35392         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35393         of type LTV, return only a pairwise decomposition.
35394         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35395         Likewise.
35396         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35397         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35398         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35399
35400 2009-02-22  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35403         zero-length results and shrink excess allocated memory.
35404         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35405         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35406         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35407         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35408         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35409         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35410         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35411         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35412         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35413         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35414         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35415         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35416
35417 2009-02-21  Bruno Haible  <bruno@clisp.org>
35418
35419         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35420         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35421         spaces after a period. Put a space between a macro name and its
35422         argument list. Trivial rewordings.
35423         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35424         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35425         (main): Return 0 explicitly.
35426
35427 2009-02-21  Bruno Haible  <bruno@clisp.org>
35428
35429         Tests for module 'uninorm/filter'.
35430         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35431         * modules/uninorm/filter-tests: New file.
35432
35433         New module 'uninorm/filter'.
35434         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35435         uninorm_filter_flush, uninorm_filter_free): New declarations.
35436         * lib/uninorm/uninorm-filter.c: New file.
35437         * modules/uninorm/filter: New file.
35438
35439 2009-02-21  Bruno Haible  <bruno@clisp.org>
35440
35441         Tests for module 'uninorm/nfkc'.
35442         * tests/uninorm/test-nfkc.c: New file.
35443         * tests/uninorm/test-u8-nfkc.c: New file.
35444         * tests/uninorm/test-u16-nfkc.c: New file.
35445         * tests/uninorm/test-u32-nfkc.c: New file.
35446         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35447         * tests/uninorm/test-u32-nfkc-big.c: New file.
35448         * modules/uninorm/nfkc-tests: New file.
35449
35450         New module 'uninorm/nfkc'.
35451         * lib/uninorm/nfkc.c: New file.
35452         * modules/uninorm/nfkc: New file.
35453
35454         Tests for module 'uninorm/nfkd'.
35455         * tests/uninorm/test-nfkd.c: New file.
35456         * tests/uninorm/test-u8-nfkd.c: New file.
35457         * tests/uninorm/test-u16-nfkd.c: New file.
35458         * tests/uninorm/test-u32-nfkd.c: New file.
35459         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35460         * tests/uninorm/test-u32-nfkd-big.c: New file.
35461         * modules/uninorm/nfkd-tests: New file.
35462
35463         New module 'uninorm/nfkd'.
35464         * lib/uninorm/nfkd.c: New file.
35465         * modules/uninorm/nfkd: New file.
35466
35467         Tests for module 'uninorm/nfc'.
35468         * tests/uninorm/test-nfc.c: New file.
35469         * tests/uninorm/test-u8-nfc.c: New file.
35470         * tests/uninorm/test-u16-nfc.c: New file.
35471         * tests/uninorm/test-u32-nfc.c: New file.
35472         * tests/uninorm/test-u32-nfc-big.sh: New file.
35473         * tests/uninorm/test-u32-nfc-big.c: New file.
35474         * modules/uninorm/nfc-tests: New file.
35475
35476         New module 'uninorm/nfc'.
35477         * lib/uninorm/nfc.c: New file.
35478         * modules/uninorm/nfc: New file.
35479
35480         Tests for module 'uninorm/nfd'.
35481         * tests/uninorm/test-nfd.c: New file.
35482         * tests/uninorm/test-u8-nfd.c: New file.
35483         * tests/uninorm/test-u16-nfd.c: New file.
35484         * tests/uninorm/test-u32-nfd.c: New file.
35485         * tests/uninorm/test-u32-nfd-big.sh: New file.
35486         * tests/uninorm/test-u32-nfd-big.c: New file.
35487         * tests/uninorm/test-u32-normalize-big.h: New file.
35488         * tests/uninorm/test-u32-normalize-big.c: New file.
35489         * tests/uninorm/NormalizationTest.txt: New file, created from
35490         Unicode 5.1.0 NormalizationTest.txt.
35491         * modules/uninorm/nfd-tests: New file.
35492
35493         New module 'uninorm/nfd'.
35494         * lib/uninorm/nfd.c: New file.
35495         * modules/uninorm/nfd: New file.
35496
35497         New module 'uninorm/u32-normalize'.
35498         * lib/uninorm/u32-normalize.c: New file.
35499         * modules/uninorm/u32-normalize: New file.
35500
35501         New module 'uninorm/u16-normalize'.
35502         * lib/uninorm/u16-normalize.c: New file.
35503         * modules/uninorm/u16-normalize: New file.
35504
35505         New module 'uninorm/u8-normalize'.
35506         * lib/uninorm/u8-normalize.c: New file.
35507         * lib/uninorm/normalize-internal.h: New file.
35508         * lib/uninorm/u-normalize-internal.h: New file.
35509         * modules/uninorm/u8-normalize: New file.
35510
35511         New module 'uninorm/decompose-internal'.
35512         * lib/uninorm/decompose-internal.c: New file.
35513         * modules/uninorm/decompose-internal: New file.
35514
35515         Tests for module 'uninorm/composition'.
35516         * tests/uninorm/test-composition.c: New file.
35517         * modules/uninorm/composition-tests: New file.
35518
35519         New module 'uninorm/composition'.
35520         * lib/uninorm/composition.c: New file.
35521         * lib/uninorm/composition-table.gperf: New file, generated by
35522         gen-uni-tables.
35523         * modules/uninorm/composition: New file.
35524
35525         Tests for module 'uninorm/compat-decomposition'.
35526         * tests/uninorm/test-compat-decomposition.c: New file.
35527         * modules/uninorm/compat-decomposition-tests: New file.
35528
35529         New module 'uninorm/compat-decomposition'.
35530         * lib/uninorm/decompose-internal.h: New file.
35531         * lib/uninorm/compat-decomposition.c: New file.
35532         * modules/uninorm/compat-decomposition: New file.
35533
35534         Tests for module 'uninorm/canonical-decomposition'.
35535         * tests/uninorm/test-canonical-decomposition.c: New file.
35536         * modules/uninorm/canonical-decomposition-tests: New file.
35537
35538         New module 'uninorm/canonical-decomposition'.
35539         * lib/uninorm/canonical-decomposition.c: New file.
35540         * modules/uninorm/canonical-decomposition: New file.
35541
35542         Tests for module 'uninorm/decomposition'.
35543         * tests/uninorm/test-decomposition.c: New file.
35544         * modules/uninorm/decomposition-tests: New file.
35545
35546         New module 'uninorm/decomposition'.
35547         * lib/uninorm/decomposition.c: New file.
35548         * modules/uninorm/decomposition: New file.
35549
35550         New module 'uninorm/decomposition-table'.
35551         * lib/uninorm/decomposition-table.h: New file.
35552         * lib/uninorm/decomposition-table.c: New file.
35553         * lib/uninorm/decomposition-table1.h: New file, generated by
35554         gen-uni-tables.
35555         * lib/uninorm/decomposition-table2.h: New file, generated by
35556         gen-uni-tables.
35557         * modules/uninorm/decomposition-table: New file.
35558
35559         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35560         (UC_DECOMP_*): New enumeration items.
35561         (get_decomposition): New function.
35562         (struct decomp_table): New type.
35563         (output_decomposition, output_decomposition_tables): New functions.
35564         (unicode_composition_exclusions): New variable.
35565         (fill_composition_exclusions, debug_output_composition_tables): New
35566         functions.
35567         (main): Accept one more argument. Invoke fill_composition_exclusions.
35568         Output decomposition and composition tables.
35569
35570         New module 'uninorm/base'.
35571         * lib/uninorm.h: New file.
35572         * lib/unictype.h: Update comment.
35573         * modules/uninorm/base: New file.
35574
35575 2009-02-21  David Lutterkort  <lutter@redhat.com>
35576
35577         Tests for module 'safe-alloc'.
35578         * tests/test-safe-alloc.c: New file.
35579         * modules/safe-alloc-tests: New file.
35580
35581         New module 'safe-alloc'.
35582         * lib/safe-alloc.h: New file.
35583         * lib/safe-alloc.c: New file.
35584         * m4/safe-alloc.m4: New file.
35585         * modules/safe-alloc: New file.
35586         * doc/safe-alloc.texi: New file.
35587         * doc/gnulib.texi: Include it.
35588         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35589         safe-alloc.
35590
35591 2009-02-18  Bruno Haible  <bruno@clisp.org>
35592
35593         Fix link error on non-glibc systems.
35594         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35595         variable.
35596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35597
35598 2009-02-18  Jim Meyering  <meyering@redhat.com>
35599
35600         fts: avoid used-uninitialized error due to recent change
35601         * lib/fts.c (fts_read): Guard uses of the new member,
35602         parent->fts_n_dirs_remaining, since it's not relevant for
35603         the parent of a directory specified on the command-line.
35604
35605 2009-02-17  James Youngman  <jay@gnu.org>
35606             Bruno Haible  <bruno@clisp.org>
35607
35608         * m4/include_next.m4: Reformulate comment.
35609
35610 2009-02-16  Jim Meyering  <meyering@redhat.com>
35611
35612         fts: add #if guards so that the fts_lgpl module still builds
35613         * lib/fts.c: Guard just-added hash-table-using parts with
35614         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35615         Reported by Simon Josefsson.
35616
35617 2009-02-15  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/array-mergesort-tests: New file.
35620         * tests/test-array-mergesort.c: New file.
35621
35622         New module 'array-mergesort'.
35623         * modules/array-mergesort: New file.
35624         * lib/array-mergesort.h: New file.
35625
35626 2009-02-15  Bruno Haible  <bruno@clisp.org>
35627
35628         Fix 2009-02-07 commit.
35629         * lib/gen-uni-tables.c (output_predicate, output_category,
35630         output_combclass, output_bidi_category, output_decimal_digit,
35631         output_digit, output_numeric, output_mirror, output_scripts,
35632         output_ident_category, output_simple_mapping): Fix format directives.
35633         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35634
35635 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35636
35637         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35638         fixes are available from IBM.
35639
35640 2009-02-13  Jim Meyering  <meyering@redhat.com>
35641
35642         fts: arrange not to stat non-directories in more cases
35643         This makes GNU find (when it doesn't need to stat each file)
35644         *much* more efficient at traversing reiserfs file systems.
35645         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35646         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35647         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35648         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35649         (leaf_optimization_applies): New function.
35650         (LCO_hash, LCO_compare): New helper functions.
35651         (link_count_optimize_ok): New function.
35652         (fts_stat): Initialize new member (if dir).
35653         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35654         we've just stat'ed a directory.  Skip the stat call when possible.
35655         ---
35656         Note this AFS-related exchange:
35657         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35658         and note find's pioctl call in find/fstype.c.
35659         But that is necessary only if you want to enable the
35660         optimization for AFS, and for now, I don't.
35661
35662         fts: move a function definition "up" (no semantic change)
35663         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35664         "up" to precede upcoming use of a related function.
35665
35666 2009-02-11  Jim Meyering  <meyering@redhat.com>
35667
35668         fts: correct internal computation of nlinks (optimization-related)
35669         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35670         whether the current entry is a directory, so don't test it.
35671
35672 2009-02-10  Bruno Haible  <bruno@clisp.org>
35673
35674         Tests for module 'uniwbrk/ulc-wordbreaks'.
35675         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35676         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35677         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35678
35679         Tests for module 'uniwbrk/u32-wordbreaks'.
35680         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35681         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35682
35683         Tests for module 'uniwbrk/u16-wordbreaks'.
35684         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35685         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35686
35687         Tests for module 'uniwbrk/u8-wordbreaks'.
35688         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35689         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35690
35691 2009-02-10  Bruno Haible  <bruno@clisp.org>
35692
35693         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35694         property.
35695         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35696         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35697         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35698
35699 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35700
35701         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35702         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35703
35704 2009-02-10  Bruno Haible  <bruno@clisp.org>
35705
35706         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35707         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35708         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35709         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35710         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35711         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35712
35713 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35714
35715         * lib/sockets.h (gl_fd_to_handle): New function.
35716
35717         * tests/test-sockets.c: Call gl_fd_to_handle.
35718
35719 2009-02-09  Bruno Haible  <bruno@clisp.org>
35720
35721         * doc/havelib.texi: Document the conventions on bi-arch systems.
35722
35723 2009-02-08  Bruno Haible  <bruno@clisp.org>
35724
35725         Document the AC_LIB_LINKFLAGS macro.
35726         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35727         * doc/gnulib.texi: Include it.
35728
35729 2009-02-08  Bruno Haible  <bruno@clisp.org>
35730
35731         Fix wrong order of sections, compared to TOC.
35732         * doc/gnulib.texi: Include relocatable-maint.texi after the
35733         "Regular expressions" node, not before.
35734
35735 2009-02-08  Bruno Haible  <bruno@clisp.org>
35736
35737         Tests for module 'unicase/totitle'.
35738         * modules/unicase/totitle-tests: New file.
35739
35740         Tests for module 'unicase/tolower'.
35741         * modules/unicase/tolower-tests: New file.
35742
35743         Tests for module 'unicase/toupper'.
35744         * modules/unicase/toupper-tests: New file.
35745         * tests/unicase/test-mapping-part1.h: New file.
35746         * tests/unicase/test-mapping-part2.h: New file.
35747
35748         New module 'unicase/totitle'.
35749         * modules/unicase/totitle: New file.
35750         * lib/unicase/totitle.c: New file.
35751
35752         New module 'unicase/tolower'.
35753         * modules/unicase/tolower: New file.
35754         * lib/unicase/tolower.c: New file.
35755
35756         New module 'unicase/toupper'.
35757         * modules/unicase/toupper: New file.
35758         * lib/unicase/toupper.c: New file.
35759         * lib/unicase/simple-mapping.h: New file.
35760
35761         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35762         (mapping_table): New structure.
35763         (output_simple_mapping): New function.
35764         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35765         * modules/gen-uni-tables (Description): Update.
35766         * lib/unicase/toupper.h: New file, automatically generated by
35767         gen-uni-tables.
35768         * lib/unicase/tolower.h: New file, automatically generated by
35769         gen-uni-tables.
35770         * lib/unicase/totitle.h: New file, automatically generated by
35771         gen-uni-tables.
35772         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35773         gen-uni-tables.
35774         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35775         gen-uni-tables.
35776         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35777         gen-uni-tables.
35778
35779         New module 'unicase/base'.
35780         * modules/unicase/base: New file.
35781         * lib/unicase.h: New file.
35782
35783 2009-02-08  Bruno Haible  <bruno@clisp.org>
35784
35785         New module 'uniwbrk/ulc-wordbreaks'.
35786         * modules/uniwbrk/ulc-wordbreaks: New file.
35787         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35788
35789         New module 'uniwbrk/u32-wordbreaks'.
35790         * modules/uniwbrk/u32-wordbreaks: New file.
35791         * lib/uniwbrk/u32-wordbreaks.c: New file.
35792
35793         New module 'uniwbrk/u16-wordbreaks'.
35794         * modules/uniwbrk/u16-wordbreaks: New file.
35795         * lib/uniwbrk/u16-wordbreaks.c: New file.
35796
35797         New module 'uniwbrk/u8-wordbreaks'.
35798         * modules/uniwbrk/u8-wordbreaks: New file.
35799         * lib/uniwbrk/u8-wordbreaks.c: New file.
35800         * lib/uniwbrk/u-wordbreaks.h: New file.
35801
35802         New module 'uniwbrk/table'.
35803         * modules/uniwbrk/table: New file.
35804         * lib/uniwbrk/wbrktable.h: New file.
35805         * lib/uniwbrk/wbrktable.c: New file.
35806
35807         New module 'uniwbrk/wordbreak-property'.
35808         * modules/uniwbrk/wordbreak-property: New file.
35809         * lib/uniwbrk/wordbreak-property.c: New file.
35810
35811         * lib/gen-uni-tables.c (WBP_*): New enum items.
35812         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35813         (unicode_org_wbp): New variable.
35814         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35815         New functions.
35816         (wbp_table): New structure.
35817         (output_wbp, output_wbrk_tables): New functions.
35818         (main): Accept additional argument. Invoke fill_org_wbp,
35819         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35820         output_wbrk_tables.
35821         * modules/gen-uni-tables (Description): Update.
35822         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35823         gen-uni-tables.
35824
35825         New module 'uniwbrk/base'.
35826         * modules/uniwbrk/base: New file.
35827         * lib/uniwbrk.h: New file.
35828
35829 2009-02-08  Bruno Haible  <bruno@clisp.org>
35830
35831         Update to Unicode 5.1.0.
35832         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35833         U+2185..U+2188.
35834         (is_property_default_ignorable_code_point): Don't include characters
35835         of category Cc or Cs and not-a-characters.
35836         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35837         U+0D79, U+109E, U+109F, U+A60C.
35838         * lib/unictype/bidi_of.h: Regenerated.
35839         * lib/unictype/blocks.h: Regenerated.
35840         * lib/unictype/categ_C.h: Regenerated.
35841         * lib/unictype/categ_Cf.h: Regenerated.
35842         * lib/unictype/categ_Cn.h: Regenerated.
35843         * lib/unictype/categ_L.h: Regenerated.
35844         * lib/unictype/categ_Ll.h: Regenerated.
35845         * lib/unictype/categ_Lm.h: Regenerated.
35846         * lib/unictype/categ_Lo.h: Regenerated.
35847         * lib/unictype/categ_Lu.h: Regenerated.
35848         * lib/unictype/categ_M.h: Regenerated.
35849         * lib/unictype/categ_Mc.h: Regenerated.
35850         * lib/unictype/categ_Me.h: Regenerated.
35851         * lib/unictype/categ_Mn.h: Regenerated.
35852         * lib/unictype/categ_N.h: Regenerated.
35853         * lib/unictype/categ_Nd.h: Regenerated.
35854         * lib/unictype/categ_Nl.h: Regenerated.
35855         * lib/unictype/categ_No.h: Regenerated.
35856         * lib/unictype/categ_P.h: Regenerated.
35857         * lib/unictype/categ_Pd.h: Regenerated.
35858         * lib/unictype/categ_Pe.h: Regenerated.
35859         * lib/unictype/categ_Pf.h: Regenerated.
35860         * lib/unictype/categ_Pi.h: Regenerated.
35861         * lib/unictype/categ_Po.h: Regenerated.
35862         * lib/unictype/categ_Ps.h: Regenerated.
35863         * lib/unictype/categ_S.h: Regenerated.
35864         * lib/unictype/categ_Sk.h: Regenerated.
35865         * lib/unictype/categ_Sm.h: Regenerated.
35866         * lib/unictype/categ_So.h: Regenerated.
35867         * lib/unictype/categ_of.h: Regenerated.
35868         * lib/unictype/combining.h: Regenerated.
35869         * lib/unictype/ctype_alnum.h: Regenerated.
35870         * lib/unictype/ctype_alpha.h: Regenerated.
35871         * lib/unictype/ctype_graph.h: Regenerated.
35872         * lib/unictype/ctype_lower.h: Regenerated.
35873         * lib/unictype/ctype_print.h: Regenerated.
35874         * lib/unictype/ctype_punct.h: Regenerated.
35875         * lib/unictype/ctype_upper.h: Regenerated.
35876         * lib/unictype/decdigit.h: Regenerated.
35877         * lib/unictype/digit.h: Regenerated.
35878         * lib/unictype/mirror.h: Regenerated.
35879         * lib/unictype/numeric.h: Regenerated.
35880         * lib/unictype/pr_alphabetic.h: Regenerated.
35881         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35882         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35883         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35884         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35885         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35886         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35887         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35888         * lib/unictype/pr_combining.h: Regenerated.
35889         * lib/unictype/pr_dash.h: Regenerated.
35890         * lib/unictype/pr_decimal_digit.h: Regenerated.
35891         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35892         * lib/unictype/pr_deprecated.h: Regenerated.
35893         * lib/unictype/pr_diacritic.h: Regenerated.
35894         * lib/unictype/pr_extender.h: Regenerated.
35895         * lib/unictype/pr_format_control.h: Regenerated.
35896         * lib/unictype/pr_grapheme_base.h: Regenerated.
35897         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35898         * lib/unictype/pr_grapheme_link.h: Regenerated.
35899         * lib/unictype/pr_id_continue.h: Regenerated.
35900         * lib/unictype/pr_id_start.h: Regenerated.
35901         * lib/unictype/pr_ideographic.h: Regenerated.
35902         * lib/unictype/pr_ignorable_control.h: Regenerated.
35903         * lib/unictype/pr_lowercase.h: Regenerated.
35904         * lib/unictype/pr_math.h: Regenerated.
35905         * lib/unictype/pr_numeric.h: Regenerated.
35906         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35907         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35908         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35909         * lib/unictype/pr_other_id_continue.h: Regenerated.
35910         * lib/unictype/pr_other_lowercase.h: Regenerated.
35911         * lib/unictype/pr_other_math.h: Regenerated.
35912         * lib/unictype/pr_punctuation.h: Regenerated.
35913         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35914         * lib/unictype/pr_soft_dotted.h: Regenerated.
35915         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35916         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35917         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35918         * lib/unictype/pr_uppercase.h: Regenerated.
35919         * lib/unictype/pr_xid_continue.h: Regenerated.
35920         * lib/unictype/pr_xid_start.h: Regenerated.
35921         * lib/unictype/pr_zero_width.h: Regenerated.
35922         * lib/unictype/scripts.h: Regenerated.
35923         * lib/unictype/scripts_byname.gperf: Regenerated.
35924         * lib/unictype/sy_java_ident.h: Regenerated.
35925         * lib/unilbrk/lbrkprop1.h: Regenerated.
35926         * lib/unilbrk/lbrkprop2.h: Regenerated.
35927         * tests/unictype/test-categ_C.c: Regenerated.
35928         * tests/unictype/test-categ_Cf.c: Regenerated.
35929         * tests/unictype/test-categ_Cn.c: Regenerated.
35930         * tests/unictype/test-categ_L.c: Regenerated.
35931         * tests/unictype/test-categ_Ll.c: Regenerated.
35932         * tests/unictype/test-categ_Lm.c: Regenerated.
35933         * tests/unictype/test-categ_Lo.c: Regenerated.
35934         * tests/unictype/test-categ_Lu.c: Regenerated.
35935         * tests/unictype/test-categ_M.c: Regenerated.
35936         * tests/unictype/test-categ_Mc.c: Regenerated.
35937         * tests/unictype/test-categ_Me.c: Regenerated.
35938         * tests/unictype/test-categ_Mn.c: Regenerated.
35939         * tests/unictype/test-categ_N.c: Regenerated.
35940         * tests/unictype/test-categ_Nd.c: Regenerated.
35941         * tests/unictype/test-categ_Nl.c: Regenerated.
35942         * tests/unictype/test-categ_No.c: Regenerated.
35943         * tests/unictype/test-categ_P.c: Regenerated.
35944         * tests/unictype/test-categ_Pd.c: Regenerated.
35945         * tests/unictype/test-categ_Pe.c: Regenerated.
35946         * tests/unictype/test-categ_Pf.c: Regenerated.
35947         * tests/unictype/test-categ_Pi.c: Regenerated.
35948         * tests/unictype/test-categ_Po.c: Regenerated.
35949         * tests/unictype/test-categ_Ps.c: Regenerated.
35950         * tests/unictype/test-categ_S.c: Regenerated.
35951         * tests/unictype/test-categ_Sk.c: Regenerated.
35952         * tests/unictype/test-categ_Sm.c: Regenerated.
35953         * tests/unictype/test-categ_So.c: Regenerated.
35954         * tests/unictype/test-ctype_alnum.c: Regenerated.
35955         * tests/unictype/test-ctype_alpha.c: Regenerated.
35956         * tests/unictype/test-ctype_graph.c: Regenerated.
35957         * tests/unictype/test-ctype_lower.c: Regenerated.
35958         * tests/unictype/test-ctype_print.c: Regenerated.
35959         * tests/unictype/test-ctype_punct.c: Regenerated.
35960         * tests/unictype/test-ctype_upper.c: Regenerated.
35961         * tests/unictype/test-decdigit.h: Regenerated.
35962         * tests/unictype/test-digit.h: Regenerated.
35963         * tests/unictype/test-numeric.h: Regenerated.
35964         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35965         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35966         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35967         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35968         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35969         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35970         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35971         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35972         * tests/unictype/test-pr_combining.c: Regenerated.
35973         * tests/unictype/test-pr_dash.c: Regenerated.
35974         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35975         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35976         * tests/unictype/test-pr_deprecated.c: Regenerated.
35977         * tests/unictype/test-pr_diacritic.c: Regenerated.
35978         * tests/unictype/test-pr_extender.c: Regenerated.
35979         * tests/unictype/test-pr_format_control.c: Regenerated.
35980         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35981         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35982         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35983         * tests/unictype/test-pr_id_continue.c: Regenerated.
35984         * tests/unictype/test-pr_id_start.c: Regenerated.
35985         * tests/unictype/test-pr_ideographic.c: Regenerated.
35986         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35987         * tests/unictype/test-pr_lowercase.c: Regenerated.
35988         * tests/unictype/test-pr_math.c: Regenerated.
35989         * tests/unictype/test-pr_numeric.c: Regenerated.
35990         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35991         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35992         Regenerated.
35993         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35994         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35995         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35996         * tests/unictype/test-pr_other_math.c: Regenerated.
35997         * tests/unictype/test-pr_punctuation.c: Regenerated.
35998         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35999         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36000         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36001         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36002         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36003         * tests/unictype/test-pr_uppercase.c: Regenerated.
36004         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36005         * tests/unictype/test-pr_xid_start.c: Regenerated.
36006         * tests/unictype/test-pr_zero_width.c: Regenerated.
36007
36008         Update to Unicode 5.1.0.
36009         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36010         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36011         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36012         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36013         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36014         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36015         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36016         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36017         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36018         (nonspacing_table_ind): Update.
36019         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36020
36021         Update to Unicode 5.1.0.
36022         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36023         code transform.
36024         * lib/uniname/uniname.c (unicode_character_name,
36025         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36026         * lib/uniname/uninames.h: Regenerated.
36027         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36028
36029 2009-02-07  Bruno Haible  <bruno@clisp.org>
36030
36031         Merge gen-ctype and gen-lbrk into a single program.
36032         * lib/gen-uni-tables.c: New file, incorporating
36033         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36034         Add directory prefixes to the names of the generated files.
36035         * lib/unictype/gen-ctype.c: Remove file.
36036         * lib/unilbrk/gen-lbrk.c: Remove file.
36037         * modules/gen-uni-tables: New file.
36038         * modules/unictype/gen-ctype: Remove file.
36039         * modules/unilbrk/gen-lbrk: Remove file.
36040
36041 2009-02-07  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36044
36045         New module 'unistr/u32-strcoll'.
36046         * modules/unistr/u32-strcoll: New file.
36047         * lib/unistr/u32-strcoll.c: New file.
36048
36049         New module 'unistr/u16-strcoll'.
36050         * modules/unistr/u16-strcoll: New file.
36051         * lib/unistr/u16-strcoll.c: New file.
36052
36053         New module 'unistr/u8-strcoll'.
36054         * modules/unistr/u8-strcoll: New file.
36055         * lib/unistr/u8-strcoll.c: New file.
36056         * lib/unistr/u-strcoll.h: New file.
36057
36058 2009-02-07  Bruno Haible  <bruno@clisp.org>
36059
36060         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36061         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36062         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36063         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36064         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36065         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36066
36067 2009-02-07  Bruno Haible  <bruno@clisp.org>
36068
36069         Make 64-bit clean.
36070         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36071         output_combclass, output_bidi_category, output_decimal_digit,
36072         output_digit, output_numeric, output_mirror, output_scripts,
36073         output_ident_category): Use proper width specifier in format strings.
36074
36075 2009-02-07  Bruno Haible  <bruno@clisp.org>
36076
36077         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36078         failure behaviour.
36079
36080 2009-02-07  Jim Meyering  <meyering@redhat.com>
36081
36082         regex: avoid compilation failure with upcoming gcc-4.4
36083         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36084         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36085         "... error: integer overflow in preprocessor expression".
36086
36087 2009-02-05  Ben Pfaff  <blp@gnu.org>
36088
36089         Fix link errors on Windows when close module is used.
36090         * modules/close: Add $(LIB_CLOSE) to Link section.
36091         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36092         $(LIB_CLOSE) on Windows.
36093
36094 2009-02-05  Jim Meyering  <meyering@redhat.com>
36095
36096         still avoid unused-parameter warnings, but do it cleanly
36097         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36098         (get_fs_usage): Cast to void instead.
36099         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36100         (dev_from_mount_options, read_file_system_list): Cast to void.
36101         Prompted by Bruno Haible.
36102
36103 2009-02-04  Jim Meyering  <meyering@redhat.com>
36104
36105         fsusage.c: correct copyright year
36106         * lib/fsusage.c: Reflect year in which the change is pushed into
36107
36108         avoid misc. warnings
36109         * lib/fsusage.c (UNUSED_PARAM): Define.
36110         (get_fs_usage): Mark parameter "disk" as unused.
36111         * lib/getugroups.c (getgrent): Use "void" in prototype.
36112         * lib/mountlist.c: Mark unused parameters.
36113         (read_file_system_list): Declare a local with "const".
36114         * lib/nanosleep.c (getnow): Declare static.
36115         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36116
36117         dirfd: set errno upon failure
36118         * lib/dirfd.c: Include <errno.h>.
36119         Set errno to ENOTSUP when returning -1.
36120         * modules/dirfd (Depends-on): Add errno.
36121         Suggested by John Kodis <kodis@comcast.net>.
36122
36123 2009-02-01  Bruno Haible  <bruno@clisp.org>
36124
36125         Don't assume sizeof (long) >= sizeof (void *).
36126         * lib/memcmp.c: Include stdint.h.
36127         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36128         srcp2 to 'const byte *'.
36129         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36130         types to uintptr_t.
36131         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36132         * modules/memcmp (Depends-on): Add stdint.
36133         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36134
36135 2009-01-30  Eric Blake  <ebb9@byu.net>
36136
36137         fix more require-before-expand issues
36138         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36139         expand, AC_PROG_AWK.
36140         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36141
36142 2009-01-28  Eric Blake  <ebb9@byu.net>
36143
36144         version-etc: use consistent URL formatting
36145         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36146         Improve formatting.  Use fputs for string without %.
36147
36148 2009-01-28  Jim Meyering  <meyering@redhat.com>
36149
36150         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36151         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36152         "underquoted definition of NAME" from autoconf-2.59.
36153
36154 2009-01-28  Bruno Haible  <bruno@clisp.org>
36155
36156         * doc/gnulib.texi: Add "Obsolete modules" to index.
36157
36158 2009-01-28  Jim Meyering  <meyering@redhat.com>
36159
36160         useless-if-before-free: recognize more variants
36161         * build-aux/useless-if-before-free: Also recognize e.g.,
36162         if (NULL != p) free (p);
36163
36164 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36165
36166         test-getaddrinfo: skip (don't fail) this test when there's no network
36167         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36168         on the presumption that it means you lack network access.
36169
36170 2009-01-26  Jim Meyering  <meyering@redhat.com>
36171
36172         fflush: avoid warnings on modern systems
36173         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36174         pos and result, into scopes where they're used.
36175
36176 2009-01-26  Eric Blake  <ebb9@byu.net>
36177
36178         Silence warning reintroduced by recent extensions patch.
36179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36180         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36181         autoconf.
36182
36183         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36184         * m4/00gnulib.m4: New file.
36185         * gnulib-tool (func_get_filelist): Always use it.
36186         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36187         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36188
36189 2009-01-25  Bruno Haible  <bruno@clisp.org>
36190
36191         Make test-quotearg work on MacOS X and AIX.
36192         * tests/test-quotearg.sh: New file.
36193         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36194         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36195         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36196         include <libintl.h>.
36197         (fake_locale): Remove variable.
36198         (gettext, dgettext, dcgettext): Remove functions.
36199         (main): Instead of setting a fake locale, set a real locale. Call
36200         textdomain and bindtextdomain.
36201         * modules/quotearg-tests (Files): Add the new files.
36202         (Depends-on): Add gettext, setenv, unsetenv.
36203         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36204         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36205         Augment TESTS_ENVIRONMENT.
36206
36207 2009-01-25  Bruno Haible  <bruno@clisp.org>
36208
36209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36210         fr_FR.ISO8859-1 locale on MacOS X.
36211         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36212         ja_JP.eucJP locale on MacOS X.
36213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36214         zh_CN.GB18030 locale on MacOS X.
36215
36216 2009-01-25  Bruno Haible  <bruno@clisp.org>
36217
36218         Avoid link errors on MacOS X 10.3.
36219         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36220         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36221
36222 2009-01-25  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36225         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36226         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36227         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36228         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36229         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36230         posix_spawnattr_init, posix_spawnattr_setsigmask,
36231         posix_spawnattr_setflags, posix_spawnattr_destroy.
36232
36233         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36234         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36235         * modules/execute (Files): Remove m4/posix_spawn.m4.
36236         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36237         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36238         posix_spawnattr_init, posix_spawnattr_setsigmask,
36239         posix_spawnattr_setflags, posix_spawnattr_destroy.
36240
36241 2009-01-25  Bruno Haible  <bruno@clisp.org>
36242
36243         * lib/glthread/threadlib.c: Include <stdlib.h>.
36244
36245 2009-01-25  Bruno Haible  <bruno@clisp.org>
36246
36247         * lib/glthread/threadlib.c (dummy): New declaration.
36248
36249 2009-01-25  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36252         multibyte characters also for the GB18030 encoding. Don't crash when
36253         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36254
36255 2009-01-25  Bruno Haible  <bruno@clisp.org>
36256
36257         Avoid redefining 'struct random_data' on OSF/1 5.1.
36258         * lib/stdlib.in.h: Include <random.h> if it exists.
36259         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36260         HAVE_RANDOM_H. Include <random.h> when testing whether
36261         'struct random_data' exists.
36262         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36263
36264 2009-01-25  Bruno Haible  <bruno@clisp.org>
36265
36266         Don't install charset.alias on MacOS X >= 10.3.
36267         * lib/localcharset.c (DARWIN7): New macro.
36268         (get_charset_aliases): Hardcode the result for Darwin7.
36269         * modules/localcharset (install-exec-local): Don't install
36270         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36271
36272 2009-01-25  Bruno Haible  <bruno@clisp.org>
36273
36274         Don't install charset.alias on mingw and Cygwin.
36275         * modules/localcharset (install-exec-local): Don't install
36276         charset.alias on mingw and Cygwin, if the file does not yet exist.
36277         The result for these platforms is hardcoded in localcharset.c.
36278
36279 2009-01-25  Bruno Haible  <bruno@clisp.org>
36280
36281         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36283         before requiring AC_USE_SYSTEM_EXTENSIONS.
36284
36285 2009-01-25  Jim Meyering  <meyering@redhat.com>
36286
36287         c-strtod: avoid warnings
36288         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36289         "assignment discards qualifiers from pointer target type" warnings.
36290
36291 2009-01-24  Bruno Haible  <bruno@clisp.org>
36292
36293         Add support for non-UTF-8 locales on MacOS X.
36294         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36295         canonical encodings. For Darwin 7 and newer, don't map traditional
36296         encodings to UTF-8.
36297         Reported by Vincent Lefevre <vincent@vinc17.org>
36298         at <http://savannah.gnu.org/bugs/?25235>.
36299
36300 2009-01-24  Bruno Haible  <bruno@clisp.org>
36301
36302         * doc/gnulib.texi (Obsolete modules): New section.
36303         Reported by Mike Frysinger <vapier@gentoo.org>.
36304
36305 2009-01-24  Bruno Haible  <bruno@clisp.org>
36306
36307         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36308         (%.dvi): New rule.
36309
36310 2009-01-24  Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36313         Reported by Eric Blake.
36314
36315 2009-01-24  Bruno Haible  <bruno@clisp.org>
36316
36317         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36318         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36319         Reported by Gary V. Vaughan <gary@gnu.org>.
36320
36321 2009-01-24  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36324
36325 2009-01-23  Bruno Haible  <bruno@clisp.org>
36326
36327         Make c-strtod, c-strtold usable in libraries.
36328         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36329         (C_STRTOD): Call strdup instead of xstrdup.
36330         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36331         * modules/c-strtold (Depends-on): Likewise.
36332         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36333         * NEWS: Mention the change.
36334         Reported by Michael Gold <mgold@ncf.ca>.
36335
36336 2009-01-23  Jim Meyering  <meyering@redhat.com>
36337
36338         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36339         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36340         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36341
36342 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36343
36344         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36345         GNU CoreUtils.
36346         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36347         * modules/version-etc (Description): Update.
36348
36349 2009-01-22  Bruno Haible  <bruno@clisp.org>
36350
36351         Cache the C locale object.
36352         * lib/c-strtod.c (c_locale_cache): New variable.
36353         (c_locale): New function.
36354         (C_STRTOD): Use it, and don't call freelocale.
36355         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36356         Suggested by Paolo Bonzini.
36357
36358 2009-01-21  Bruno Haible  <bruno@clisp.org>
36359
36360         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36361         conditions other than overflow.
36362
36363 2009-01-21  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/c-strtod.c: Include errno.h.
36366         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36367         value from STRTOD_L and STRTOD.
36368
36369 2009-01-21  Bruno Haible  <bruno@clisp.org>
36370         and Jim Meyering  <meyering@redhat.com>
36371
36372         nanosleep: skip configure test (fail it) for apple universal builds
36373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36374         universal builds, assume that nanosleep does not work.
36375         * modules/nanosleep (Depends-on): Add multiarch.
36376
36377         mktime: skip configure test (fail it) for apple universal builds
36378         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36379         universal builds, assume that mktime does not work.
36380         * modules/mktime (Depends-on): Add multiarch.
36381
36382 2009-01-21  Eric Blake  <ebb9@byu.net>
36383
36384         multiarch: avoid expand-before-require warning
36385         * modules/multiarch (configure.ac): Require, rather than expand,
36386         gl_MULTIARCH.
36387         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36388         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36389         enforce that all clients require it.  Partial reversion of
36390         2008-12-29 patch.
36391
36392         error: avoid expand-before-require warning
36393         * modules/errno (configure.ac): Require, rather than expand,
36394         gl_HEADER_ERRNO_H.
36395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36396         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36397         enforce that all clients require it.
36398
36399         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36400         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36401         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36402         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36403
36404 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36405
36406         Revert:
36407         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36408
36409         regex: do not depend on obsolete modules.
36410         * modules/regex: Remove memcmp and memmove.
36411
36412 2009-01-20  Bruno Haible  <bruno@clisp.org>
36413
36414         Make the 'link' module link on Windows NT 4.
36415         * lib/link.c (_WIN32_WINNT): Don't define.
36416         (CreateHardLinkFuncType): New type.
36417         (CreateHardLinkFunc, initialized): New variables.
36418         (initialize): New function.
36419         (link): Invoke CreateHardLink indirectly through the function pointer.
36420
36421 2009-01-20  Bruno Haible  <bruno@clisp.org>
36422
36423         Fix compilation failure on mingw.
36424         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36425
36426 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36427
36428         * doc/c-strtod.texi: Mention a couple of restrictions.
36429
36430 2009-01-20  Jim Meyering  <meyering@redhat.com>
36431
36432         gettimeofday: move more declarations out of functions
36433         * lib/gettimeofday.c: Move extern declarations of tzset and
36434         gmtime out of containing functions.  Prompted by Bruno Haible.
36435
36436 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36437
36438         regex: do not depend on obsolete modules.
36439         * modules/regex: Remove memcmp and memmove.
36440
36441 2009-01-19  Bruno Haible  <bruno@clisp.org>
36442
36443         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36444         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36445         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36446         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36447         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36448
36449 2009-01-19  Bruno Haible  <bruno@clisp.org>
36450
36451         * tests/test-link.c: Include <errno.h>.
36452         (main): Exit with code 77 when a hard link cannot be created due to
36453         the file system.
36454         * tests/test-link.sh: Skip test when a hard link cannot be created due
36455         to the file system.
36456         Suggested by Eric Blake.
36457
36458 2009-01-19  Martin Lambers  <marlam@marlam.de>
36459
36460         * modules/link-tests: New file.
36461         * tests/test-link.sh: New file.
36462         * tests/test-link.c: New file.
36463
36464 2009-01-19  Eric Blake  <ebb9@byu.net>
36465
36466         doc: mention another function added in cygwin 1.7.0
36467         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36468         Another new function in cygwin 1.7.
36469
36470 2009-01-19  Bruno Haible  <bruno@clisp.org>
36471
36472         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36473         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36474         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36475         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36477         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36478         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36479         * m4/md4.m4 (gl_MD4): Likewise.
36480         * m4/md5.m4 (gl_MD5): Likewise.
36481         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36482         * m4/sha1.m4 (gl_SHA1): Likewise.
36483         * m4/sha256.m4 (gl_SHA256): Likewise.
36484         * m4/sha512.m4 (gl_SHA512): Likewise.
36485
36486 2009-01-19  Bruno Haible  <bruno@clisp.org>
36487
36488         * modules/uniname/uniname-tests (Depends-on): Add progname.
36489         * tests/uniname/test-uninames.c: Include progname.h.
36490         (main): Call set_program_name.
36491
36492         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36493         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36494         (main): Call set_program_name.
36495
36496         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36497         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36498         (main): Call set_program_name.
36499
36500         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36501         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36502         (main): Call set_program_name.
36503
36504         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36505         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36506         (main): Call set_program_name.
36507
36508         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36509         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36510         (main): Call set_program_name.
36511
36512         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36513         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36514         (main): Call set_program_name.
36515
36516         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36517         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36518         (main): Call set_program_name.
36519
36520         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36521         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36522         (main): Call set_program_name.
36523
36524 2009-01-19  Eric Blake  <ebb9@byu.net>
36525
36526         test-unistd: test previous patch
36527         * tests/test-unistd.c: Test *_FILENO macros.
36528
36529         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36530         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36531         Guarantee a definition.
36532         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36533         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36534         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36535         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36536         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36537         Likewise.
36538         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36539         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36540         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36541         Likewise.
36542         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36543         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36544         (STDERR_FILENO): Likewise.
36545         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36546         (STDERR_FILENO): Likewise.
36547         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36548         (STDERR_FILENO): Likewise.
36549         Reported by Elbert Pol.
36550
36551 2009-01-19  Eric Blake  <ebb9@byu.net>
36552
36553         doc: mention more functions added in cygwin 1.7.0
36554         * doc/posix-functions/abort.texi (abort): Update wording related
36555         to cygwin.
36556         * doc/posix-functions/daylight.texi (daylight): Likewise.
36557         * doc/posix-functions/optarg.texi (optarg): Likewise.
36558         * doc/posix-functions/optarg.texi (opterr): Likewise.
36559         * doc/posix-functions/optarg.texi (optind): Likewise.
36560         * doc/posix-functions/optarg.texi (optopt): Likewise.
36561         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36562         worked in 1.5.x, and was withdrawn in 1.7.
36563         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36564         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36565         cygwin versions.
36566         * doc/posix-functions/perror.texi (perror): Likewise.
36567         * doc/posix-functions/printf.texi (printf): Likewise.
36568         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36569         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36570         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36571         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36572         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36573         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36574         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36575         Likewise.
36576         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36577         Likewise.
36578         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36579         this function.
36580         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36581         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36582         Likewise.
36583         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36584         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36585         * doc/posix-functions/confstr.texi (confstr): Likewise.
36586         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36587         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36588         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36589         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36590         * doc/posix-functions/fputws.texi (fputws): Likewise.
36591         * doc/posix-functions/fwide.texi (fwide): Likewise.
36592         * doc/posix-functions/getwc.texi (getwc): Likewise.
36593         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36594         * doc/posix-functions/putwc.texi (putwc): Likewise.
36595         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36596         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36597         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36598         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36599         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36600         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36601         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36602         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36603         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36604         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36605         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36606
36607 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36608
36609         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36610         * lib/ioctl.c: Include <sys/ioctl.h>.
36611
36612 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36613
36614         * modules/getdate-tests (Depends-on): Add progname.
36615         * tests/test-getdate.c: Use progname module, to avoid link errors
36616         on non-glibc systems.
36617
36618 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36619
36620         * modules/filenamecat-tests (Depends-on): Add progname.
36621         * modules/fstrcmp-tests (Depends-on): Likewise.
36622
36623         * tests/test-filenamecat.c: Use progname module, to avoid link
36624         errors on non-glibc systems.
36625         * tests/test-fstrcmp.c: Likewise.
36626
36627 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36628
36629         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36630         * lib/gettimeofday.c: Move extern declaration out of function.
36631
36632 2009-01-18  Bruno Haible  <bruno@clisp.org>
36633
36634         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36635         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36636         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36637
36638 2009-01-18  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/strftime.c (MEMPCPY): Remove unused macro.
36641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36642
36643 2009-01-18  Martin Lambers  <marlam@marlam.de>
36644
36645         New module 'link'.
36646         * lib/unistd.in.h (link): New declaration.
36647         * lib/link.c: New file.
36648         * m4/link.m4: New file.
36649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36650         HAVE_LINK.
36651         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36652         * modules/link: New file.
36653         * doc/posix-functions/link.texi: Mention the new module.
36654
36655 2009-01-18  Bruno Haible  <bruno@clisp.org>
36656
36657         * tests/test-avltree_list.c (main): Call set_program_name.
36658         * tests/test-avltree_oset.c (main): Likewise.
36659         * tests/test-obstack-printf.c: Include progname.h.
36660         (main): Call set_program_name.
36661         * tests/test-quotearg.c: Include progname.h.
36662         (main): Call set_program_name.
36663         * tests/test-xmemdup0.c: Include progname.h.
36664         (main): Call set_program_name.
36665
36666 2009-01-18  Bruno Haible  <bruno@clisp.org>
36667
36668         New module 'alphasort'.
36669         * lib/dirent.in.h (alphasort): New declaration.
36670         * lib/alphasort.c: New file, from glibc with modifications.
36671         * m4/alphasort.m4: New file.
36672         * modules/alphasort: New file.
36673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36674         HAVE_ALPHASORT.
36675         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36676         HAVE_ALPHASORT.
36677         * doc/posix-functions/alphasort.texi: Mention the new module and the
36678         portability problems.
36679
36680 2009-01-18  Bruno Haible  <bruno@clisp.org>
36681
36682         New module 'scandir'.
36683         * lib/dirent.in.h (scandir): New declaration.
36684         * lib/scandir.c: New file, from glibc with modifications.
36685         * m4/scandir.m4: New file.
36686         * modules/scandir: New file.
36687         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36688         HAVE_SCANDIR.
36689         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36690         HAVE_SCANDIR.
36691         * doc/posix-functions/scandir.texi: Mention the new module and the
36692         portability problems.
36693
36694 2009-01-17  Bruno Haible  <bruno@clisp.org>
36695
36696         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36697         Update documentation.
36698         (func_remove_suffix): Escape all dots in the suffix. Update
36699         documentation.
36700         (func_filter_filelist): Update documentation.
36701         Reported by Ralf Wildenhues.
36702
36703 2009-01-17  Bruno Haible  <bruno@clisp.org>
36704
36705         * modules/dprintf-posix-tests: New file.
36706         * tests/test-dprintf-posix.sh: New file.
36707         * tests/test-dprintf-posix.c: New file.
36708
36709         New modules 'dprintf', 'dprintf-posix'.
36710         * lib/stdio.in.h (dprintf): New declaration.
36711         * lib/dprintf.c: New file.
36712         * m4/dprintf.m4: New file.
36713         * m4/dprintf-posix.m4: New file.
36714         * modules/dprintf: New file.
36715         * modules/dprintf-posix: New file.
36716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36717         HAVE_DPRINTF, REPLACE_DPRINTF.
36718         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36719         HAVE_DPRINTF, REPLACE_DPRINTF.
36720         * doc/posix-functions/dprintf.texi: Mention the new modules.
36721
36722 2009-01-17  Bruno Haible  <bruno@clisp.org>
36723
36724         * modules/vdprintf-posix-tests: New file.
36725         * tests/test-vdprintf-posix.sh: New file.
36726         * tests/test-vdprintf-posix.c: New file.
36727
36728         New modules 'vdprintf', 'vdprintf-posix'.
36729         * lib/stdio.in.h (vdprintf): New declaration.
36730         * lib/vdprintf.c: New file.
36731         * m4/vdprintf.m4: New file.
36732         * m4/vdprintf-posix.m4: New file.
36733         * modules/vdprintf: New file.
36734         * modules/vdprintf-posix: New file.
36735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36736         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36737         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36738         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36739         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36740
36741 2009-01-17  Bruno Haible  <bruno@clisp.org>
36742
36743         Fix replacement of fopen on mingw.
36744         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36745         mingw.
36746
36747 2009-01-17  Bruno Haible  <bruno@clisp.org>
36748
36749         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36750         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36751
36752 2009-01-17  Bruno Haible  <bruno@clisp.org>
36753
36754         Avoid test-fflush2.sh failure on mingw.
36755         * tests/test-fflush2.c: Include binary-io.h.
36756         (main): Put standard input into binary mode.
36757         * modules/fflush-tests (Depends-on): Add binary-io.
36758
36759 2009-01-17  Bruno Haible  <bruno@clisp.org>
36760
36761         * lib/wchar.in.h: In another particular situation, include only the
36762         system's <wchar.h> file.
36763         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36764         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36765         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36766
36767 2009-01-17  Bruno Haible  <bruno@clisp.org>
36768
36769         Support for stripping executables in --enable-relocatable.
36770         * build-aux/install-reloc: Expect one more argument, or an environment
36771         variable RELOC_STRIP_PROG. If set, strip the destination program and
36772         its wrapper.
36773         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36774         RELOC_STRIP_PROG.
36775         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36776         to set RELOCATABLE_STRIP.
36777         * NEWS: Mention the new Makefile requirement.
36778
36779 2009-01-17  Bruno Haible  <bruno@clisp.org>
36780
36781         * build-aux/install-reloc: Remove debugging information left over by
36782         C compiler on MacOS X.
36783
36784 2009-01-17  Bruno Haible  <bruno@clisp.org>
36785
36786         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36787         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36788         _NSGetExecutablePath.
36789
36790 2009-01-16  Jim Meyering  <meyering@redhat.com>
36791
36792         strerror: avoid warnings about discarding "const"
36793         * lib/strerror.c (rpl_strerror): Instead of returning a const
36794         string from each and every "case", use a variable, and add a single
36795         cast after the switch.
36796
36797 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36798
36799         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36800
36801 2009-01-16  Bruno Haible  <bruno@clisp.org>
36802
36803         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36804         array initializer syntax that also works in C++ mode.
36805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36806
36807 2009-01-16  Jim Meyering  <meyering@redhat.com>
36808
36809         poll: suppress a warning
36810         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36811         to ignore "...unsigned expression < 0 is always false" warnings.
36812
36813 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36814
36815         poll: remove declarations of unused variables
36816         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36817         sockbuf and optlen.
36818
36819 2009-01-15  Bruno Haible  <bruno@clisp.org>
36820
36821         Make fflush-after-ungetc POSIX compliant on BSD systems.
36822         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36823         (clear_ungetc_buffer): Implement also for other systems.
36824         (rpl_fflush): On glibc systems, invoke
36825         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36826         clear_ungetc_buffer after fetching the stream's position, not before.
36827
36828 2009-01-15  Bruno Haible  <bruno@clisp.org>
36829
36830         Make fflush-after-ungetc POSIX compliant on glibc systems.
36831         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36832         after ungetc.
36833         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36834         (rpl_fflush): On glibc systems, simply call the system's fflush
36835         function after clearing the ungetc buffer.
36836         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36837         Instead, lseek only to the end of file, then use the system's fseeko
36838         for the rest. On glibc systems, reset the EOF indicator bit.
36839
36840 2009-01-15  Jim Meyering  <meyering@redhat.com>
36841
36842         openmp.m4: revert quote-adding change, for portability to older autoconf
36843         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36844         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36845         Simon Josefsson noticed the problem when using autoconf-2.61.
36846
36847 2009-01-15  Bruno Haible  <bruno@clisp.org>
36848
36849         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36850         * tests/test-fflush2.c (ASSERT): Always fail.
36851         (main): Add two tests for fflush() after ungetc(), taking into account
36852         the Austin Group's clarification.
36853         Suggested by Eric Blake.
36854
36855 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36856
36857         mktime.m4: remove K&R-style function prototypes
36858         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36859         for the Sun C++ compiler.
36860
36861 2009-01-14  Bruno Haible  <bruno@clisp.org>
36862
36863         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36864         while including <wchar.h>.
36865         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36866         the system's <wchar.h> file.
36867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36868
36869 2009-01-14  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/csharp.m4: Don't mention gettext on the serial number line.
36872         * m4/csharpexec.m4: Likewise.
36873         * m4/eaccess.m4: Likewise.
36874         * m4/javaexec.m4: Likewise.
36875         * m4/sig_atomic_t.m4: Likewise.
36876         * m4/tmpdir.m4: Likewise.
36877         * m4/intldir.m4: Bump gettext version.
36878         * m4/lib-ld.m4: Likewise.
36879
36880 2009-01-14  Bruno Haible  <bruno@clisp.org>
36881
36882         * lib/progname.c (set_program_name): Add more comments.
36883         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36884
36885 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36886
36887         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36888         were sys/stat.h does not define it.
36889
36890 2009-01-14  Jim Meyering  <meyering@redhat.com>
36891
36892         many *.m4 files: improve m4 quoting
36893         99% of this change was performed by running the following commands:
36894         git ls-files | grep '\.m4$' | xargs perl -pi \
36895           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36896           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36897           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36898           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36899         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36900         The remainder were to add Copyright dates, increment serial numbers,
36901         undo some changes in comments, exclude m4/intl.m4, and add quotes
36902         around the "1" in ",1" where the unusual spacing prohibited the
36903         above regexps from doing the job.  For more details, see
36904         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36905         * m4/acl.m4: Modified.
36906         * m4/afs.m4: Likewise.
36907         * m4/alloca.m4: Likewise.
36908         * m4/argp.m4: Likewise.
36909         * m4/argz.m4: Likewise.
36910         * m4/atexit.m4: Likewise.
36911         * m4/bison-i18n.m4: Likewise.
36912         * m4/bison.m4: Likewise.
36913         * m4/byteswap.m4: Likewise.
36914         * m4/c-stack.m4: Likewise.
36915         * m4/c-strtod.m4: Likewise.
36916         * m4/calloc.m4: Likewise.
36917         * m4/canonicalize-lgpl.m4: Likewise.
36918         * m4/chown.m4: Likewise.
36919         * m4/clock_time.m4: Likewise.
36920         * m4/codeset.m4: Likewise.
36921         * m4/copy-file.m4: Likewise.
36922         * m4/csharp.m4: Likewise.
36923         * m4/csharpcomp.m4: Likewise.
36924         * m4/csharpexec.m4: Likewise.
36925         * m4/d-ino.m4: Likewise.
36926         * m4/d-type.m4: Likewise.
36927         * m4/dirfd.m4: Likewise.
36928         * m4/double-slash-root.m4: Likewise.
36929         * m4/eaccess.m4: Likewise.
36930         * m4/eealloc.m4: Likewise.
36931         * m4/environ.m4: Likewise.
36932         * m4/errno_h.m4: Likewise.
36933         * m4/euidaccess.m4: Likewise.
36934         * m4/execute.m4: Likewise.
36935         * m4/fatal-signal.m4: Likewise.
36936         * m4/fchdir.m4: Likewise.
36937         * m4/fcntl_h.m4: Likewise.
36938         * m4/fileblocks.m4: Likewise.
36939         * m4/filenamecat.m4: Likewise.
36940         * m4/findprog.m4: Likewise.
36941         * m4/flexmember.m4: Likewise.
36942         * m4/fnmatch.m4: Likewise.
36943         * m4/fopen.m4: Likewise.
36944         * m4/fpending.m4: Likewise.
36945         * m4/fprintf-posix.m4: Likewise.
36946         * m4/free.m4: Likewise.
36947         * m4/frexp.m4: Likewise.
36948         * m4/frexpl.m4: Likewise.
36949         * m4/fsusage.m4: Likewise.
36950         * m4/ftruncate.m4: Likewise.
36951         * m4/gc-camellia.m4: Likewise.
36952         * m4/gc-random.m4: Likewise.
36953         * m4/gc.m4: Likewise.
36954         * m4/getaddrinfo.m4: Likewise.
36955         * m4/getcwd-abort-bug.m4: Likewise.
36956         * m4/getcwd-path-max.m4: Likewise.
36957         * m4/getdate.m4: Likewise.
36958         * m4/getdomainname.m4: Likewise.
36959         * m4/getgroups.m4: Likewise.
36960         * m4/gethostname.m4: Likewise.
36961         * m4/gethrxtime.m4: Likewise.
36962         * m4/getline.m4: Likewise.
36963         * m4/getloadavg.m4: Likewise.
36964         * m4/getndelim2.m4: Likewise.
36965         * m4/getpass.m4: Likewise.
36966         * m4/gettext.m4: Likewise.
36967         * m4/gettime.m4: Likewise.
36968         * m4/gettimeofday.m4: Likewise.
36969         * m4/gnulib-common.m4: Likewise.
36970         * m4/group-member.m4: Likewise.
36971         * m4/host-os.m4: Likewise.
36972         * m4/iconv.m4: Likewise.
36973         * m4/iconv_open.m4: Likewise.
36974         * m4/inet_ntop.m4: Likewise.
36975         * m4/inet_pton.m4: Likewise.
36976         * m4/inline.m4: Likewise.
36977         * m4/intldir.m4: Likewise.
36978         * m4/intlmacosx.m4: Likewise.
36979         * m4/intmax.m4: Likewise.
36980         * m4/intmax_t.m4: Likewise.
36981         * m4/inttypes.m4: Likewise.
36982         * m4/inttypes_h.m4: Likewise.
36983         * m4/inttypes-pri.m4: Likewise.
36984         * m4/isapipe.m4: Likewise.
36985         * m4/isnand.m4: Likewise.
36986         * m4/isnanf.m4: Likewise.
36987         * m4/isnanl.m4: Likewise.
36988         * m4/javacomp.m4: Likewise.
36989         * m4/javaexec.m4: Likewise.
36990         * m4/jm-winsz1.m4: Likewise.
36991         * m4/jm-winsz2.m4: Likewise.
36992         * m4/lchown.m4: Likewise.
36993         * m4/lcmessage.m4: Likewise.
36994         * m4/ldexpl.m4: Likewise.
36995         * m4/lib-ld.m4: Likewise.
36996         * m4/lib-link.m4: Likewise.
36997         * m4/libsigsegv.m4: Likewise.
36998         * m4/link-follow.m4: Likewise.
36999         * m4/localcharset.m4: Likewise.
37000         * m4/locale-fr.m4: Likewise.
37001         * m4/locale-ja.m4: Likewise.
37002         * m4/locale-tr.m4: Likewise.
37003         * m4/locale-zh.m4: Likewise.
37004         * m4/lock.m4: Likewise.
37005         * m4/longlong.m4: Likewise.
37006         * m4/ls-mntd-fs.m4: Likewise.
37007         * m4/lstat.m4: Likewise.
37008         * m4/malloc.m4: Likewise.
37009         * m4/mathl.m4: Likewise.
37010         * m4/mbrtowc.m4: Likewise.
37011         * m4/mbstate_t.m4: Likewise.
37012         * m4/mbswidth.m4: Likewise.
37013         * m4/memchr.m4: Likewise.
37014         * m4/memcmp.m4: Likewise.
37015         * m4/memcpy.m4: Likewise.
37016         * m4/memmem.m4: Likewise.
37017         * m4/memmove.m4: Likewise.
37018         * m4/mempcpy.m4: Likewise.
37019         * m4/memrchr.m4: Likewise.
37020         * m4/memset.m4: Likewise.
37021         * m4/minmax.m4: Likewise.
37022         * m4/mkdir-slash.m4: Likewise.
37023         * m4/mkdtemp.m4: Likewise.
37024         * m4/mktime.m4: Likewise.
37025         * m4/mmap-anon.m4: Likewise.
37026         * m4/mountlist.m4: Likewise.
37027         * m4/nanosleep.m4: Likewise.
37028         * m4/nls.m4: Likewise.
37029         * m4/nocrash.m4: Likewise.
37030         * m4/open.m4: Likewise.
37031         * m4/openat.m4: Likewise.
37032         * m4/openmp.m4: Likewise.
37033         * m4/pathmax.m4: Likewise.
37034         * m4/perl.m4: Likewise.
37035         * m4/physmem.m4: Likewise.
37036         * m4/pipe.m4: Likewise.
37037         * m4/po.m4: Likewise.
37038         * m4/poll.m4: Likewise.
37039         * m4/posixtm.m4: Likewise.
37040         * m4/posixver.m4: Likewise.
37041         * m4/printf-frexp.m4: Likewise.
37042         * m4/printf-frexpl.m4: Likewise.
37043         * m4/printf-posix.m4: Likewise.
37044         * m4/printf-posix-rpl.m4: Likewise.
37045         * m4/printf.m4: Likewise.
37046         * m4/progtest.m4: Likewise.
37047         * m4/putenv.m4: Likewise.
37048         * m4/readline.m4: Likewise.
37049         * m4/readlink.m4: Likewise.
37050         * m4/readutmp.m4: Likewise.
37051         * m4/realloc.m4: Likewise.
37052         * m4/regex.m4: Likewise.
37053         * m4/relocatable.m4: Likewise.
37054         * m4/relocatable-lib.m4: Likewise.
37055         * m4/rename-dest-slash.m4: Likewise.
37056         * m4/rename.m4: Likewise.
37057         * m4/rmdir-errno.m4: Likewise.
37058         * m4/rmdir.m4: Likewise.
37059         * m4/roundf.m4: Likewise.
37060         * m4/roundl.m4: Likewise.
37061         * m4/rpmatch.m4: Likewise.
37062         * m4/save-cwd.m4: Likewise.
37063         * m4/selinux-selinux-h.m4: Likewise.
37064         * m4/setenv.m4: Likewise.
37065         * m4/settime.m4: Likewise.
37066         * m4/sig2str.m4: Likewise.
37067         * m4/sig_atomic_t.m4: Likewise.
37068         * m4/signalblocking.m4: Likewise.
37069         * m4/signbit.m4: Likewise.
37070         * m4/sigpipe.m4: Likewise.
37071         * m4/sockets.m4: Likewise.
37072         * m4/sockpfaf.m4: Likewise.
37073         * m4/st_dm_mode.m4: Likewise.
37074         * m4/stat-time.m4: Likewise.
37075         * m4/stdbool.m4: Likewise.
37076         * m4/stdint.m4: Likewise.
37077         * m4/stdint_h.m4: Likewise.
37078         * m4/stpcpy.m4: Likewise.
37079         * m4/stpncpy.m4: Likewise.
37080         * m4/strcase.m4: Likewise.
37081         * m4/strchrnul.m4: Likewise.
37082         * m4/strcspn.m4: Likewise.
37083         * m4/strdup.m4: Likewise.
37084         * m4/strftime.m4: Likewise.
37085         * m4/strndup.m4: Likewise.
37086         * m4/strnlen.m4: Likewise.
37087         * m4/strpbrk.m4: Likewise.
37088         * m4/strptime.m4: Likewise.
37089         * m4/strsep.m4: Likewise.
37090         * m4/strtod.m4: Likewise.
37091         * m4/strtoimax.m4: Likewise.
37092         * m4/strtok_r.m4: Likewise.
37093         * m4/strtol.m4: Likewise.
37094         * m4/strtoll.m4: Likewise.
37095         * m4/strtoul.m4: Likewise.
37096         * m4/strtoull.m4: Likewise.
37097         * m4/strtoumax.m4: Likewise.
37098         * m4/strverscmp.m4: Likewise.
37099         * m4/threadlib.m4: Likewise.
37100         * m4/timegm.m4: Likewise.
37101         * m4/tm_gmtoff.m4: Likewise.
37102         * m4/tmpdir.m4: Likewise.
37103         * m4/tmpfile.m4: Likewise.
37104         * m4/tzset.m4: Likewise.
37105         * m4/uintmax_t.m4: Likewise.
37106         * m4/unlinkdir.m4: Likewise.
37107         * m4/unlocked-io.m4: Likewise.
37108         * m4/uptime.m4: Likewise.
37109         * m4/userspec.m4: Likewise.
37110         * m4/utimbuf.m4: Likewise.
37111         * m4/utime.m4: Likewise.
37112         * m4/utimes-null.m4: Likewise.
37113         * m4/utimes.m4: Likewise.
37114         * m4/vararrays.m4: Likewise.
37115         * m4/vasnprintf.m4: Likewise.
37116         * m4/vfprintf-posix.m4: Likewise.
37117         * m4/vprintf-posix.m4: Likewise.
37118         * m4/wait-process.m4: Likewise.
37119         * m4/wchar_t.m4: Likewise.
37120         * m4/wint_t.m4: Likewise.
37121         * m4/write-any-file.m4: Likewise.
37122         * m4/yield.m4: Likewise.
37123
37124 2009-01-13  Bruno Haible  <bruno@clisp.org>
37125
37126         Avoid test-copy-file.sh failures when ACL support insufficient.
37127         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37128         TESTS_ENVIRONMENT.
37129         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37130         Reported by Jim Meyering.
37131
37132 2009-01-13  Bruno Haible  <bruno@clisp.org>
37133
37134         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37135         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37136         * modules/unistdio/u8-printf-parse (Files): Likewise.
37137         * modules/unistdio/u32-printf-parse (Files): Likewise.
37138         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37139
37140 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37141
37142         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37143         and m4/inttypes_h.m4 too.
37144
37145 2009-01-12  Eric Blake  <ebb9@byu.net>
37146
37147         tests: IRIX 6.2 cc can't compile -0.0 into .data
37148         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37149         rather than at compile-time.
37150         * tests/test-floorl.c (minus_zero): Likewise.
37151         * tests/test-frexpl.c (minus_zero): Likewise.
37152         * tests/test-isnan.c (minus_zerol): Likewise.
37153         * tests/test-isnanl.h (minus_zero): Likewise.
37154         * tests/test-ldexpl.c (minus_zero): Likewise.
37155         * tests/test-roundl.c (minus_zero): Likewise.
37156         * tests/test-signbit.c (minus_zerol): Likewise.
37157         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37158         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37159         * tests/test-truncl.c (minus_zero): Likewise.
37160         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37161         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37162         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37163
37164 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37165
37166         regex: fix glibc bug 9697
37167         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37168         handling.
37169
37170 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37171
37172         regex: fix glibc bug 697
37173         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37174         being NULL also if there are no backreferences.
37175
37176 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37177
37178         regex: merge glibc changes
37179         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37180         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37181         re_string_skip_chars, re_string_reconstruct): Likewise.
37182         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37183
37184 2009-01-07  Jim Meyering  <meyering@redhat.com>
37185
37186         poll: filter through cppi
37187         * lib/poll.c: Indent cpp directives to reflect nesting.
37188
37189 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37190
37191         poll: don't return uninitialized
37192         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37193
37194 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37195
37196         avoid compile failure on AIX 6.1
37197         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37198         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37199
37200 2009-01-04  Jim Meyering  <meyering@redhat.com>
37201
37202         remove duplicate inclusion of <stdio.h>
37203         * tests/test-fprintf-posix.c: Likewise.
37204         * tests/test-printf-posix.c: Likewise.
37205         * tests/test-snprintf-posix.c: Likewise.
37206         * tests/test-sprintf-posix.c: Likewise.
37207         * tests/test-vasprintf-posix.c: Likewise.
37208         * tests/test-vfprintf-posix.c: Likewise.
37209         * tests/test-vprintf-posix.c: Likewise.
37210         * tests/test-vsnprintf-posix.c: Likewise.
37211         * tests/test-vsprintf-posix.c: Likewise.
37212
37213 2009-01-03  Jim Meyering  <meyering@redhat.com>
37214
37215         gnulib-tool: fix sed-based filtering
37216         * gnulib-tool (func_filter_filelist): Remove extra backslash
37217         in sed_fff_filter definition.
37218
37219 2009-01-02  Jim Meyering  <meyering@redhat.com>
37220
37221         strftime: avoid compilation failure on Solaris 2.6
37222         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37223         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37224         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37225         be available.  Reported by Tom G. Christensen.  Details in
37226         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37227
37228 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37229             Bruno Haible  <bruno@clisp.org>
37230
37231         Speed up gnulib-tool by doing more string processing through shell
37232         built-ins.
37233         * gnulib-tool (fast_func_append): New variable.
37234         (func_remove_prefix, func_remove_suffix): New functions.
37235         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37236         (func_filter_filelist): New function.
37237         (func_get_dependencies): Use func_remove_suffix instead of sed.
37238         (func_get_automake_snippet): Use func_filter_filelist instead of a
37239         subshell and sed invocation.
37240
37241 2009-01-01  Bruno Haible  <bruno@clisp.org>
37242
37243         Fix a security bug.
37244         * gnulib-tool (func_import, import, update): Don't allow the characters
37245         '"', '$', '`', '\' in macro arguments that become part of commands that
37246         are evaluated.
37247
37248 2009-01-01  Bruno Haible  <bruno@clisp.org>
37249
37250         * gnulib-tool (func_reset_sigpipe): Add more comments.
37251
37252 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37253
37254         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37255         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37256         already know the answer.
37257
37258 2009-01-01  Jim Meyering  <meyering@redhat.com>
37259
37260         * lib/version-etc.c (version_etc_va): Update copyright year.
37261
37262 2008-12-30  Bruno Haible  <bruno@clisp.org>
37263
37264         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37265         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37266         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37267
37268 2008-12-29  Eric Blake  <ebb9@byu.net>
37269
37270         multiarch: avoid autoconf AC_REQUIRE bug
37271         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37272         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37273         2.63 and older.
37274         Reported by Bruno Haible, and analyzed in
37275         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37276
37277 2008-12-29  Bruno Haible  <bruno@clisp.org>
37278
37279         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37280         files in subdirectories correctly.
37281         Reported by Ralf Wildenhues.
37282
37283 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37284
37285         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37286         rather than 'join FILE -', for Solaris join.
37287
37288 2008-12-29  Bruno Haible  <bruno@clisp.org>
37289
37290         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37291         quoting.
37292         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37293         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37294         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37295         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37296         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37297         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37298         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37299         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37300         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37301         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37302         * m4/nls.m4 (AM_NLS): Likewise.
37303         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37304         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37305         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37306         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37307         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37308         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37309         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37310         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37311         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37312         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37313         * m4/xsize.m4 (gl_XSIZE): Likewise.
37314         Suggested by Jim Meyering.
37315
37316 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37317
37318         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37319         * lib/parse-duration.c: use a switch instead of cascading if's.
37320
37321 2008-12-29  Eric Blake  <ebb9@byu.net>
37322
37323         wchar.h: supply WEOF on Irix 5.3
37324         * lib/wchar.in.h (wint_t): Also supply WEOF.
37325         * lib/wctype.in.h (wint_t): Likewise.
37326         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37327         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37328         Reported by Tom G. Christensen.
37329
37330 2008-12-26  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37333         i486, i586, i686.
37334
37335 2008-12-26  Bruno Haible  <bruno@clisp.org>
37336
37337         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37338
37339 2008-12-26  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37342         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37343         not __STDC_CONSTANT_MACROS.
37344         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37345
37346 2008-12-25  Bruno Haible  <bruno@clisp.org>
37347
37348         Add support for universal builds to vasnprintf.
37349         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37350         universal builds, guess no.
37351         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37352         * modules/vasprintf-posix (Depends-on): Likewise.
37353         * modules/fprintf-posix (Depends-on): Likewise.
37354         * modules/vfprintf-posix (Depends-on): Likewise.
37355         * modules/snprintf-posix (Depends-on): Likewise.
37356         * modules/vsnprintf-posix (Depends-on): Likewise.
37357         * modules/sprintf-posix (Depends-on): Likewise.
37358         * modules/vsprintf-posix (Depends-on): Likewise.
37359         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37360         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37361         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37362         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37363         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37364         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37365         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37366
37367         Add support for universal builds to <inttypes.h>.
37368         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37369         _SCNu64_PREFIX): In Apple
37370         universal builds, define directly, using _LP64.
37371         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37372         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37373         * modules/inttypes (Depends-on): Add multiarch.
37374         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37375
37376         Add support for universal builds to <stdint.h>.
37377         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37378         universal builds, define directly, using _LP64.
37379         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37380         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37381         and size_t.
37382         * modules/stdint (Depends-on): Add multiarch.
37383         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37384
37385         New module 'multiarch'.
37386         * modules/multiarch: New file.
37387         * m4/multiarch.m4: New file.
37388
37389 2008-12-25  Bruno Haible  <bruno@clisp.org>
37390
37391         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37392
37393 2008-12-25  Bruno Haible  <bruno@clisp.org>
37394
37395         * modules/btowc (License): Relicense under LGPLv2+.
37396         * modules/mbsinit (License): Likewise.
37397         * modules/mbrtowc (License): Likewise.
37398         * modules/wcrtomb (License): Likewise.
37399         * modules/streq (License): Likewise.
37400         Reported by David Lutterkort <lutter@redhat.com>.
37401
37402 2008-12-23  Bruno Haible  <bruno@clisp.org>
37403
37404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37405
37406 2008-12-23  Bruno Haible  <bruno@clisp.org>
37407
37408         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37410         GETADDRINFO_LIB, not in LIBS.
37411         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37412         * modules/canon-host (Link): Likewise.
37413         * NEWS: Mention the change.
37414         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37415         GETADDRINFO_LIB.
37416
37417 2008-12-22  Bruno Haible  <bruno@clisp.org>
37418
37419         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37420         * doc/posix-functions/iswalpha_l.texi: Likewise.
37421         * doc/posix-functions/iswblank_l.texi: Likewise.
37422         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37423         * doc/posix-functions/iswctype_l.texi: Likewise.
37424         * doc/posix-functions/iswdigit_l.texi: Likewise.
37425         * doc/posix-functions/iswgraph_l.texi: Likewise.
37426         * doc/posix-functions/iswlower_l.texi: Likewise.
37427         * doc/posix-functions/iswprint_l.texi: Likewise.
37428         * doc/posix-functions/iswpunct_l.texi: Likewise.
37429         * doc/posix-functions/iswspace_l.texi: Likewise.
37430         * doc/posix-functions/iswupper_l.texi: Likewise.
37431         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37432         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37433         * doc/posix-functions/open_wmemstream.texi: Likewise.
37434         * doc/posix-functions/swscanf.texi: Likewise.
37435         * doc/posix-functions/towctrans_l.texi: Likewise.
37436         * doc/posix-functions/towlower.texi: Likewise.
37437         * doc/posix-functions/towlower_l.texi: Likewise.
37438         * doc/posix-functions/towupper.texi: Likewise.
37439         * doc/posix-functions/towupper_l.texi: Likewise.
37440         * doc/posix-functions/vfwprintf.texi: Likewise.
37441         * doc/posix-functions/vfwscanf.texi: Likewise.
37442         * doc/posix-functions/vswscanf.texi: Likewise.
37443         * doc/posix-functions/vwprintf.texi: Likewise.
37444         * doc/posix-functions/vwscanf.texi: Likewise.
37445         * doc/posix-functions/wcpcpy.texi: Likewise.
37446         * doc/posix-functions/wcpncpy.texi: Likewise.
37447         * doc/posix-functions/wcscasecmp.texi: Likewise.
37448         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37449         * doc/posix-functions/wcscoll_l.texi: Likewise.
37450         * doc/posix-functions/wcsdup.texi: Likewise.
37451         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37452         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37453         * doc/posix-functions/wcsnlen.texi: Likewise.
37454         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37455         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37456         * doc/posix-functions/wctrans_l.texi: Likewise.
37457         * doc/posix-functions/wctype_l.texi: Likewise.
37458         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37459         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37460         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37461         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37462         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37463         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37464         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37465         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37466         * doc/glibc-functions/wcschrnul.texi: Likewise.
37467         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37468         * doc/glibc-functions/wcstod_l.texi: Likewise.
37469         * doc/glibc-functions/wcstof_l.texi: Likewise.
37470         * doc/glibc-functions/wcstol_l.texi: Likewise.
37471         * doc/glibc-functions/wcstold_l.texi: Likewise.
37472         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37473         * doc/glibc-functions/wcstoq.texi: Likewise.
37474         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37475         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37476         * doc/glibc-functions/wcstouq.texi: Likewise.
37477         * doc/glibc-functions/wmempcpy.texi: Likewise.
37478
37479 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37480             Eric Blake  <ebb9@byu.net>
37481             Paolo Bonzini  <bonzini@gnu.org>
37482             Bruno Haible  <bruno@clisp.org>
37483
37484         Make c-stack work on Haiku.
37485         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37486         (c_stack_action): Use SA_ONSTACK flag.
37487
37488 2008-12-22  Bruno Haible  <bruno@clisp.org>
37489
37490         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37491
37492 2008-12-22  Bruno Haible  <bruno@clisp.org>
37493
37494         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37495         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37496         being overridden.
37497         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37498         New macros.
37499         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37501         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37502         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37503
37504 2008-12-22  Bruno Haible  <bruno@clisp.org>
37505
37506         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37507         from test code.
37508
37509 2008-12-22  Eric Blake  <ebb9@byu.net>
37510
37511         Avoid gcc warnings on cygwin.
37512         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37513         Avoid unused variable.
37514         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37515         Likewise.
37516
37517 2008-12-22  Bruno Haible  <bruno@clisp.org>
37518
37519         Remove HAVE_MBRTOWC conditionals.
37520         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37521         (mbscasecmp): Assume mbrtowc function.
37522         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37523         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37524         * lib/mbschr.c: Include mbuiter.h unconditionally.
37525         (mbschr): Assume mbrtowc function.
37526         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37527         (mbscspn): Assume mbrtowc function.
37528         * lib/mbslen.c: Include mbuiter.h unconditionally.
37529         (mbslen): Assume mbrtowc function.
37530         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37531         (mbsncasecmp): Assume mbrtowc function.
37532         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37533         (mbsnlen): Assume mbrtowc function.
37534         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37535         (mbspbrk): Assume mbrtowc function.
37536         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37537         (mbspcasecmp): Assume mbrtowc function.
37538         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37539         (mbsrchr): Assume mbrtowc function.
37540         * lib/mbssep.c: Include mbuiter.h unconditionally.
37541         (mbssep): Assume mbrtowc function.
37542         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37543         (mbsspn): Assume mbrtowc function.
37544         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37545         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37546         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37547         (mbstok_r): Assume mbrtowc function.
37548         * lib/propername.c: Include mbuiter.h unconditionally.
37549         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37550         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37551         (trim2): Assume mbrtowc function.
37552         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37553         (mbsnwidth): Assume mbrtowc function.
37554         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37555         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37556         fallback definitions.
37557         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37558
37559 2008-12-22  Bruno Haible  <bruno@clisp.org>
37560
37561         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37562
37563 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37564
37565         * modules/regex: Request emulations for the mb*/wc* functions we need.
37566         * m4/regex.m4: Don't look for those functions here.
37567         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37568
37569 2008-12-22  Bruno Haible  <bruno@clisp.org>
37570
37571         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37572
37573 2008-12-21  Bruno Haible  <bruno@clisp.org>
37574
37575         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37576         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37577         (Include): Remove conditionalization.
37578         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37579         (Include): Remove conditionalization.
37580         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37581         (Include): Remove conditionalization.
37582         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37583         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37584         * NEWS: Mention the change.
37585         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37586         via Sergey Poznyakoff <gray@gnu.org.ua>.
37587
37588 2008-12-21  Bruno Haible  <bruno@clisp.org>
37589
37590         * MODULES.html.sh (Extended multibyte and wide character utilities
37591         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37592         wcrtomb, wcsrtombs.
37593         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37594         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37595         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37596         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37597
37598 2008-12-21  Bruno Haible  <bruno@clisp.org>
37599
37600         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37601
37602 2008-12-21  Bruno Haible  <bruno@clisp.org>
37603
37604         * modules/wcsnrtombs-tests: New file.
37605         * tests/test-wcsnrtombs1.sh: New file.
37606         * tests/test-wcsnrtombs2.sh: New file.
37607         * tests/test-wcsnrtombs3.sh: New file.
37608         * tests/test-wcsnrtombs4.sh: New file.
37609         * tests/test-wcsnrtombs.c: New file.
37610
37611         New module 'wcsnrtombs'.
37612         * lib/wchar.in.h (wcsnrtombs): New declaration.
37613         * lib/wcsnrtombs.c: New file.
37614         * lib/wcsrtombs-state.c: New file.
37615         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37616         (internal_state): Remove variable.
37617         * m4/wcsnrtombs.m4: New file.
37618         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37619         compilation units.
37620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37621         HAVE_WCSNRTOMBS.
37622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37623         HAVE_WCSNRTOMBS.
37624         * modules/wcsnrtombs: New file.
37625         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37626         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37627
37628 2008-12-21  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/wcsrtombs-tests: New file.
37631         * tests/test-wcsrtombs1.sh: New file.
37632         * tests/test-wcsrtombs2.sh: New file.
37633         * tests/test-wcsrtombs3.sh: New file.
37634         * tests/test-wcsrtombs4.sh: New file.
37635         * tests/test-wcsrtombs.c: New file.
37636
37637         New module 'wcsrtombs'.
37638         * lib/wchar.in.h (wcsrtombs): New declaration.
37639         * lib/wcsrtombs.c: New file.
37640         * m4/wcsrtombs.m4: New file.
37641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37642         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37644         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37645         * modules/wcsrtombs: New file.
37646         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37647         bugs.
37648
37649 2008-12-21  Bruno Haible  <bruno@clisp.org>
37650
37651         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37652         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37654         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37655         if not correct.
37656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37657         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37658         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37659         m4/locale-zh.m4, m4/codeset.m4.
37660         * doc/posix-functions/wcrtomb.texi: Document the bug.
37661
37662 2008-12-21  Bruno Haible  <bruno@clisp.org>
37663
37664         Work around a btowc() bug on IRIX 6.5.
37665         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37666         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37667         REPLACE_WTOBC if not.
37668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37669         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37670         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37671
37672 2008-12-21  Bruno Haible  <bruno@clisp.org>
37673
37674         * modules/wcrtomb-tests: New file.
37675         * tests/test-wcrtomb.sh: New file.
37676         * tests/test-wcrtomb.c: New file.
37677
37678         New module 'wcrtomb'.
37679         * lib/wchar.in.h (wcrtomb): New declaration.
37680         * lib/wcrtomb.c: New file.
37681         * m4/wcrtomb.m4: New file.
37682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37683         HAVE_WCRTOMB.
37684         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37685         HAVE_WCRTOMB.
37686         * modules/wcrtomb: New file.
37687         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37688
37689 2008-12-21  Bruno Haible  <bruno@clisp.org>
37690
37691         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37692         * modules/mbsrtowcs (Files): Likewise.
37693         * modules/wctob (Files): Likewise.
37694         * modules/c-strcase-tests (Files): Likewise.
37695         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37696         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37697         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37698         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37699         * modules/vasnprintf-posix-tests (Files): Likewise.
37700
37701 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37702
37703         gitlog-to-changelog: pass all command-line arguments to git-log
37704         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37705         it is sometimes convenient to filter the commits in various ways.
37706         gitlog-to-changelog only allows --since to specify a start date,
37707         but git-log itself supports many other filtering mechanisms.
37708         At the moment, I want to filter by branch name.  Rather than
37709         adding a --branch option to gitlog-to-changelog, it seems more
37710         flexible to simply pass all options directly to git-log and let
37711         git do the work.  Notice that this effectively makes --since a
37712         redundant option for gitlog-to-changelog, but removing it would
37713         require current usage to change since calls would then require
37714         an additional '--'.
37715
37716 2008-12-21  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/mbsnrtowcs-tests: New file.
37719         * tests/test-mbsnrtowcs1.sh: New file.
37720         * tests/test-mbsnrtowcs2.sh: New file.
37721         * tests/test-mbsnrtowcs3.sh: New file.
37722         * tests/test-mbsnrtowcs4.sh: New file.
37723         * tests/test-mbsnrtowcs.c: New file.
37724
37725         New module 'mbsnrtowcs'.
37726         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37727         * lib/mbsnrtowcs.c: New file.
37728         * lib/mbsrtowcs-state.c: New file.
37729         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37730         (internal_state): Remove variable.
37731         * m4/mbsnrtowcs.m4: New file.
37732         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37733         compilation units.
37734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37735         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37736         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37737         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37738         * modules/mbsnrtowcs: New file.
37739         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37740         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37741         portability problem.
37742
37743 2008-12-21  Bruno Haible  <bruno@clisp.org>
37744
37745         Work around mbsrtowcs bug.
37746         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37747         (gl_FUNC_MBSRTOWCS): Invoke it.
37748         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37749         m4/locale-zh.m4.
37750         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37751
37752 2008-12-21  Bruno Haible  <bruno@clisp.org>
37753
37754         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37755
37756 2008-12-21  Bruno Haible  <bruno@clisp.org>
37757
37758         Update doc for AIX.
37759         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37760         16-bit wchar_t type.
37761         * doc/posix-functions/btowc.texi: Likewise.
37762         * doc/posix-functions/fgetwc.texi: Likewise.
37763         * doc/posix-functions/fgetws.texi: Likewise.
37764         * doc/posix-functions/fputwc.texi: Likewise.
37765         * doc/posix-functions/fputws.texi: Likewise.
37766         * doc/posix-functions/fwide.texi: Likewise.
37767         * doc/posix-functions/fwprintf.texi: Likewise.
37768         * doc/posix-functions/fwscanf.texi: Likewise.
37769         * doc/posix-functions/getwchar.texi: Likewise.
37770         * doc/posix-functions/getwc.texi: Likewise.
37771         * doc/posix-functions/iswalnum.texi: Likewise.
37772         * doc/posix-functions/iswalpha.texi: Likewise.
37773         * doc/posix-functions/iswblank.texi: Likewise.
37774         * doc/posix-functions/iswcntrl.texi: Likewise.
37775         * doc/posix-functions/iswctype.texi: Likewise.
37776         * doc/posix-functions/iswdigit.texi: Likewise.
37777         * doc/posix-functions/iswgraph.texi: Likewise.
37778         * doc/posix-functions/iswlower.texi: Likewise.
37779         * doc/posix-functions/iswprint.texi: Likewise.
37780         * doc/posix-functions/iswpunct.texi: Likewise.
37781         * doc/posix-functions/iswspace.texi: Likewise.
37782         * doc/posix-functions/iswupper.texi: Likewise.
37783         * doc/posix-functions/iswxdigit.texi: Likewise.
37784         * doc/posix-functions/mbrtowc.texi: Likewise.
37785         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37786         * doc/posix-functions/mbstowcs.texi: Likewise.
37787         * doc/posix-functions/mbtowc.texi: Likewise.
37788         * doc/posix-functions/putwchar.texi: Likewise.
37789         * doc/posix-functions/putwc.texi: Likewise.
37790         * doc/posix-functions/swprintf.texi: Likewise.
37791         * doc/posix-functions/tolower.texi: Likewise.
37792         * doc/posix-functions/toupper.texi: Likewise.
37793         * doc/posix-functions/towctrans.texi: Likewise.
37794         * doc/posix-functions/ungetwc.texi: Likewise.
37795         * doc/posix-functions/vswprintf.texi: Likewise.
37796         * doc/posix-functions/wcrtomb.texi: Likewise.
37797         * doc/posix-functions/wcscat.texi: Likewise.
37798         * doc/posix-functions/wcschr.texi: Likewise.
37799         * doc/posix-functions/wcscmp.texi: Likewise.
37800         * doc/posix-functions/wcscoll.texi: Likewise.
37801         * doc/posix-functions/wcscpy.texi: Likewise.
37802         * doc/posix-functions/wcscspn.texi: Likewise.
37803         * doc/posix-functions/wcsftime.texi: Likewise.
37804         * doc/posix-functions/wcslen.texi: Likewise.
37805         * doc/posix-functions/wcsncat.texi: Likewise.
37806         * doc/posix-functions/wcsncmp.texi: Likewise.
37807         * doc/posix-functions/wcsncpy.texi: Likewise.
37808         * doc/posix-functions/wcspbrk.texi: Likewise.
37809         * doc/posix-functions/wcsrchr.texi: Likewise.
37810         * doc/posix-functions/wcsrtombs.texi: Likewise.
37811         * doc/posix-functions/wcsspn.texi: Likewise.
37812         * doc/posix-functions/wcsstr.texi: Likewise.
37813         * doc/posix-functions/wcstod.texi: Likewise.
37814         * doc/posix-functions/wcstof.texi: Likewise.
37815         * doc/posix-functions/wcstoimax.texi: Likewise.
37816         * doc/posix-functions/wcstok.texi: Likewise.
37817         * doc/posix-functions/wcstold.texi: Likewise.
37818         * doc/posix-functions/wcstoll.texi: Likewise.
37819         * doc/posix-functions/wcstol.texi: Likewise.
37820         * doc/posix-functions/wcstombs.texi: Likewise.
37821         * doc/posix-functions/wcstoull.texi: Likewise.
37822         * doc/posix-functions/wcstoul.texi: Likewise.
37823         * doc/posix-functions/wcstoumax.texi: Likewise.
37824         * doc/posix-functions/wcswidth.texi: Likewise.
37825         * doc/posix-functions/wcsxfrm.texi: Likewise.
37826         * doc/posix-functions/wctob.texi: Likewise.
37827         * doc/posix-functions/wctomb.texi: Likewise.
37828         * doc/posix-functions/wctrans.texi: Likewise.
37829         * doc/posix-functions/wctype.texi: Likewise.
37830         * doc/posix-functions/wcwidth.texi: Likewise.
37831         * doc/posix-functions/wmemchr.texi: Likewise.
37832         * doc/posix-functions/wmemcmp.texi: Likewise.
37833         * doc/posix-functions/wmemcpy.texi: Likewise.
37834         * doc/posix-functions/wmemmove.texi: Likewise.
37835         * doc/posix-functions/wmemset.texi: Likewise.
37836         * doc/posix-functions/wprintf.texi: Likewise.
37837         * doc/posix-functions/wscanf.texi: Likewise.
37838
37839 2008-12-21  Bruno Haible  <bruno@clisp.org>
37840
37841         Update doc for HP-UX 11.11.
37842         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37843         in HP-UX version 11.00, not in all versions of HP-UX 11.
37844         * doc/posix-functions/fwide.texi: Likewise.
37845         * doc/posix-functions/fwprintf.texi: Likewise.
37846         * doc/posix-functions/fwscanf.texi: Likewise.
37847         * doc/posix-functions/inet_ntop.texi: Likewise.
37848         * doc/posix-functions/inet_pton.texi: Likewise.
37849         * doc/posix-functions/mbrlen.texi: Likewise.
37850         * doc/posix-functions/mbrtowc.texi: Likewise.
37851         * doc/posix-functions/mbsinit.texi: Likewise.
37852         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37853         * doc/posix-functions/swprintf.texi: Likewise.
37854         * doc/posix-functions/swscanf.texi: Likewise.
37855         * doc/posix-functions/towctrans.texi: Likewise.
37856         * doc/posix-functions/vfwprintf.texi: Likewise.
37857         * doc/posix-functions/vswprintf.texi: Likewise.
37858         * doc/posix-functions/vwprintf.texi: Likewise.
37859         * doc/posix-functions/wcrtomb.texi: Likewise.
37860         * doc/posix-functions/wcsrtombs.texi: Likewise.
37861         * doc/posix-functions/wcsstr.texi: Likewise.
37862         * doc/posix-functions/wctob.texi: Likewise.
37863         * doc/posix-functions/wctrans.texi: Likewise.
37864         * doc/posix-functions/wmemchr.texi: Likewise.
37865         * doc/posix-functions/wmemcmp.texi: Likewise.
37866         * doc/posix-functions/wmemcpy.texi: Likewise.
37867         * doc/posix-functions/wmemmove.texi: Likewise.
37868         * doc/posix-functions/wmemset.texi: Likewise.
37869         * doc/posix-functions/wprintf.texi: Likewise.
37870         * doc/posix-functions/wscanf.texi: Likewise.
37871
37872 2008-12-21  Bruno Haible  <bruno@clisp.org>
37873
37874         Work around a portability problem.
37875         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37876         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37877
37878 2008-12-20  Bruno Haible  <bruno@clisp.org>
37879
37880         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37881         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37882         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37884         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37885
37886         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37887         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37888         set.
37889         (GNULIB_defined_mbstate_t): New macro.
37890         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37891         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37892         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37893         reuses the system's mbrtowc function but works around the bugs.
37894         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37895         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37896         macros.
37897         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37898         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37899         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37900         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37901         REPLACE_MBSINIT if mbsinit needs to be overridden.
37902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37903         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37904         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37905         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37906         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37907         m4/locale-zh.m4.
37908         (Depends): Add mbsinit.
37909         * modules/mbsinit (Depends): Add mbrtowc.
37910         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37911
37912 2008-12-20  Bruno Haible  <bruno@clisp.org>
37913
37914         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37915         so that there are no conversion errors on AIX.
37916         * tests/test-mbsrtowcs.c (main): LIkewise.
37917
37918 2008-12-20  Bruno Haible  <bruno@clisp.org>
37919
37920         Work around wctob bug on Solaris <= 9.
37921         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37922         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37924         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37925         * modules/wctob (Files): Add m4/locale-fr.m4.
37926         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37927
37928 2008-12-20  Bruno Haible  <bruno@clisp.org>
37929
37930         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37931         /dev/null.
37932         * tests/test-select-in.sh: Likewise.
37933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37934
37935 2008-12-20  Bruno Haible  <bruno@clisp.org>
37936
37937         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37938         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37939         Cygwin 1.5.x.
37940
37941 2008-12-20  Bruno Haible  <bruno@clisp.org>
37942
37943         Ensure mbstate_t is defined on HP-UX 11.11.
37944         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37945         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37946         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37947         AC_USE_SYSTEM_EXTENSIONS.
37948         * modules/fnmatch (Depends-on): Add extensions.
37949         * modules/mbrlen (Depends-on): Likewise.
37950         * modules/mbrtowc (Depends-on): Likewise.
37951         * modules/mbsinit (Depends-on): Likewise.
37952         * modules/mbsrtowcs (Depends-on): Likewise.
37953         * modules/mbswidth (Depends-on): Likewise.
37954         * modules/quotearg (Depends-on): Likewise.
37955         * modules/strftime (Depends-on): Likewise.
37956
37957 2008-12-20  Bruno Haible  <bruno@clisp.org>
37958
37959         Ensure wctob is declared on IRIX 6.5.
37960         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37961         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37962         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37964         of HAVE_WCTOB.
37965         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37966         HAVE_WCTOB.
37967         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37968
37969 2008-12-19  Bruno Haible  <bruno@clisp.org>
37970
37971         * modules/mbsrtowcs-tests: New file.
37972         * tests/test-mbsrtowcs1.sh: New file.
37973         * tests/test-mbsrtowcs2.sh: New file.
37974         * tests/test-mbsrtowcs3.sh: New file.
37975         * tests/test-mbsrtowcs4.sh: New file.
37976         * tests/test-mbsrtowcs.c: New file.
37977
37978         New module 'mbsrtowcs'.
37979         * lib/wchar.in.h (mbsrtowcs): New declaration.
37980         * lib/mbsrtowcs.c: New file.
37981         * m4/mbsrtowcs.m4: New file.
37982         * modules/mbsrtowcs: New file.
37983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37984         HAVE_MBSRTOWCS.
37985         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37986         HAVE_MBSRTOWCS.
37987         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37988
37989 2008-12-19  Bruno Haible  <bruno@clisp.org>
37990
37991         New module 'mbrlen'.
37992         * lib/wchar.in.h (mbrlen): New declaration.
37993         * lib/mbrlen.c: New file.
37994         * m4/mbrlen.m4: New file.
37995         * modules/mbrlen: New file.
37996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37997         HAVE_MBRLEN.
37998         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37999         HAVE_MBRLEN.
38000         * doc/posix-functions/mbrlen.texi: Document the new module.
38001
38002 2008-12-19  Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38005         * modules/mbrtowc (Depends-on): Add verify.
38006         Suggested by Paul Eggert.
38007
38008 2008-12-18  Bruno Haible  <bruno@clisp.org>
38009
38010         * modules/mbsinit-tests: New file.
38011         * tests/test-mbsinit.sh: New file.
38012         * tests/test-mbsinit.c: New file.
38013
38014 2008-12-18  Bruno Haible  <bruno@clisp.org>
38015
38016         * modules/mbrtowc-tests: New file.
38017         * tests/test-mbrtowc1.sh: New file.
38018         * tests/test-mbrtowc2.sh: New file.
38019         * tests/test-mbrtowc3.sh: New file.
38020         * tests/test-mbrtowc4.sh: New file.
38021         * tests/test-mbrtowc.c: New file.
38022
38023         New module 'mbrtowc'.
38024         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38025         mbsinit and mbrtowc.
38026         (mbrtowc): New declaration.
38027         * lib/mbrtowc.c: New file.
38028         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38029         * modules/mbrtowc: New file.
38030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38031         HAVE_MBRTOWC.
38032         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38033         HAVE_MBRTOWC.
38034         * doc/posix-functions/mbrtowc.texi: Document the new module.
38035
38036 2008-12-18  Bruno Haible  <bruno@clisp.org>
38037
38038         New module 'wctob'.
38039         * lib/wchar.in.h (wctob): New declaration.
38040         * lib/wctob.c: New file.
38041         * m4/wctob.m4: New file.
38042         * modules/wctob: New file.
38043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38044         HAVE_WCTOB.
38045         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38046         * doc/posix-functions/wctob.texi: Document the new module.
38047
38048 2008-12-18  Bruno Haible  <bruno@clisp.org>
38049
38050         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38051         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38052
38053 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38054
38055         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38056         G. Christensen" <tgc@jupiterrise.com>.
38057
38058         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38059         G. Christensen" <tgc@jupiterrise.com>.
38060
38061         * lib/flock.c: Need to include string.h.  Reported by "Tom
38062         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38063         <ebb9@byu.net>.
38064
38065 2008-12-18  Bruno Haible  <bruno@clisp.org>
38066
38067         * m4/locale-ja.m4: New file, from GNU gettext.
38068
38069 2008-12-17  Bruno Haible  <bruno@clisp.org>
38070
38071         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38072         Suggested by Eric Blake.
38073
38074 2008-12-17  Bruno Haible  <bruno@clisp.org>
38075
38076         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38077
38078 2008-12-17  Bruno Haible  <bruno@clisp.org>
38079
38080         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38081         * modules/mbsinit (Depends-on): Add verify.
38082         Suggested by Paul Eggert.
38083
38084 2008-12-17  Bruno Haible  <bruno@clisp.org>
38085
38086         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38087         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38088         gl_FUNC_MBRTOWC.
38089         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38090         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38091         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38092         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38093         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38094         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38095         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38096         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38097         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38098         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38099         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38100         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38101         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38102         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38103         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38104         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38105         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38106         * modules/trim (configure.ac): Likewise.
38107
38108 2008-12-17  Bruno Haible  <bruno@clisp.org>
38109
38110         * modules/btowc-tests: New file.
38111         * tests/test-btowc1.sh: New file.
38112         * tests/test-btowc2.sh: New file.
38113         * tests/test-btowc.c: New file.
38114
38115         New module 'btowc'.
38116         * lib/wchar.in.h (btowc): New declaration.
38117         * lib/btowc.c: New file.
38118         * m4/btowc.m4: New file.
38119         * modules/btowc: New file.
38120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38121         HAVE_BTOWC.
38122         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38123         * doc/posix-functions/btowc.texi: Document the new module.
38124
38125 2008-12-17  Bruno Haible  <bruno@clisp.org>
38126
38127         New module 'mbsinit'.
38128         * lib/wchar.in.h (mbsinit): New declaration.
38129         * lib/mbsinit.c: New file.
38130         * m4/mbsinit.m4: New file.
38131         * modules/mbsinit: New file.
38132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38133         HAVE_MBSINIT.
38134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38135         HAVE_MBSINIT.
38136         * doc/posix-functions/mbsinit.texi: Document the new module.
38137
38138 2008-12-16  Bruno Haible  <bruno@clisp.org>
38139
38140         * lib/unistd.in.h: Add comment.
38141         * tests/test-environ.c: Don't include <stdlib.h>.
38142
38143 2008-12-16  Bruno Haible  <bruno@clisp.org>
38144
38145         * lib/parse-duration.h (parse_duration): Document return value
38146         convention.
38147         * lib/parse-duration.c: Include specification header first. Add
38148         comments.
38149         (_): Remove macro.
38150         (parse_year_month_day, parse_hour_minute_second): Move side effects
38151         outside of strchr call.
38152         (parse_non_iso8601): Move side effects outside of isspace call.
38153         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38154         call.
38155
38156 2008-12-16  Bruno Haible  <bruno@clisp.org>
38157
38158         * tests/test-parse-duration.sh: Produce no output when the test
38159         succeeds.
38160
38161 2008-12-16  Bruno Haible  <bruno@clisp.org>
38162
38163         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38164         expressions.
38165
38166 2008-12-15  Bruno Haible  <bruno@clisp.org>
38167
38168         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38169         * doc/glibc-functions/flistxattr.texi: Likewise.
38170         * doc/glibc-functions/fopencookie.texi: Likewise.
38171         * doc/glibc-functions/fremovexattr.texi: Likewise.
38172         * doc/glibc-functions/fsetxattr.texi: Likewise.
38173         * doc/glibc-functions/getxattr.texi: Likewise.
38174         * doc/glibc-functions/lgetxattr.texi: Likewise.
38175         * doc/glibc-functions/listxattr.texi: Likewise.
38176         * doc/glibc-functions/llistxattr.texi: Likewise.
38177         * doc/glibc-functions/lremovexattr.texi: Likewise.
38178         * doc/glibc-functions/lsetxattr.texi: Likewise.
38179         * doc/glibc-functions/removexattr.texi: Likewise.
38180         * doc/glibc-functions/setxattr.texi: Likewise.
38181         * doc/posix-functions/open_memstream.texi: Likewise.
38182
38183 2008-12-15  Eric Blake  <ebb9@byu.net>
38184
38185         Update doc for cygwin 1.7.
38186         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38187         functions.
38188         * doc/posix-functions/fchmodat.texi: Likewise.
38189         * doc/posix-functions/fchownat.texi: Likewise.
38190         * doc/posix-functions/fdopendir.texi: Likewise.
38191         * doc/posix-functions/fmemopen.texi: Likewise.
38192         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38193         * doc/posix-functions/fstatat.texi: Likewise.
38194         * doc/posix-functions/futimens.texi: Likewise.
38195         * doc/posix-functions/gai_strerror.texi: Likewise.
38196         * doc/posix-functions/getaddrinfo.texi: Likewise.
38197         * doc/posix-functions/getnameinfo.texi: Likewise.
38198         * doc/posix-functions/if_freenameindex.texi: Likewise.
38199         * doc/posix-functions/if_indextoname.texi: Likewise.
38200         * doc/posix-functions/if_nameindex.texi: Likewise.
38201         * doc/posix-functions/if_nametoindex.texi: Likewise.
38202         * doc/posix-functions/insque.texi: Likewise.
38203         * doc/posix-functions/linkat.texi: Likewise.
38204         * doc/posix-functions/llrint.texi: Likewise.
38205         * doc/posix-functions/llrintf.texi: Likewise.
38206         * doc/posix-functions/llrintl.texi: Likewise.
38207         * doc/posix-functions/lockf.texi: Likewise.
38208         * doc/posix-functions/lrintl.texi: Likewise.
38209         * doc/posix-functions/mkdirat.texi: Likewise.
38210         * doc/posix-functions/mkfifoat.texi: Likewise.
38211         * doc/posix-functions/mknodat.texi: Likewise.
38212         * doc/posix-functions/mq_close.texi: Likewise.
38213         * doc/posix-functions/mq_getattr.texi: Likewise.
38214         * doc/posix-functions/mq_notify.texi: Likewise.
38215         * doc/posix-functions/mq_open.texi: Likewise.
38216         * doc/posix-functions/mq_receive.texi: Likewise.
38217         * doc/posix-functions/mq_send.texi: Likewise.
38218         * doc/posix-functions/mq_setattr.texi: Likewise.
38219         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38220         * doc/posix-functions/mq_timedsend.texi: Likewise.
38221         * doc/posix-functions/mq_unlink.texi: Likewise.
38222         * doc/posix-functions/open_memstream.texi: Likewise.
38223         * doc/posix-functions/openat.texi: Likewise.
38224         * doc/posix-functions/posix_fadvise.texi: Likewise.
38225         * doc/posix-functions/posix_fallocate.texi: Likewise.
38226         * doc/posix-functions/posix_madvise.texi: Likewise.
38227         * doc/posix-functions/posix_memalign.texi: Likewise.
38228         * doc/posix-functions/posix_openpt.texi: Likewise.
38229         * doc/posix-functions/readlinkat.texi: Likewise.
38230         * doc/posix-functions/remque.texi: Likewise.
38231         * doc/posix-functions/renameat.texi: Likewise.
38232         * doc/posix-functions/rintl.texi: Likewise.
38233         * doc/posix-functions/sem_unlink.texi: Likewise.
38234         * doc/posix-functions/shm_open.texi: Likewise.
38235         * doc/posix-functions/shm_unlink.texi: Likewise.
38236         * doc/posix-functions/signgam.texi: Likewise.
38237         * doc/posix-functions/sigset.texi: Likewise.
38238         * doc/posix-functions/stpcpy.texi: Likewise.
38239         * doc/posix-functions/stpncpy.texi: Likewise.
38240         * doc/posix-functions/strerror.texi: Likewise.
38241         * doc/posix-functions/strtod.texi: Likewise.
38242         * doc/posix-functions/symlinkat.texi: Likewise.
38243         * doc/posix-functions/unlinkat.texi: Likewise.
38244         * doc/posix-functions/utimensat.texi: Likewise.
38245         * doc/glibc-functions/bindresvport.texi: Likewise.
38246         * doc/glibc-functions/dn_expand.texi: Likewise.
38247         * doc/glibc-functions/exp10.texi: Likewise.
38248         * doc/glibc-functions/exp10f.texi: Likewise.
38249         * doc/glibc-functions/fgetxattr.texi: Likewise.
38250         * doc/glibc-functions/flistxattr.texi: Likewise.
38251         * doc/glibc-functions/fopencookie.texi: Likewise.
38252         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38253         * doc/glibc-functions/fremovexattr.texi: Likewise.
38254         * doc/glibc-functions/fsetxattr.texi: Likewise.
38255         * doc/glibc-functions/getifaddrs.texi: Likewise.
38256         * doc/glibc-functions/getxattr.texi: Likewise.
38257         * doc/glibc-functions/lgetxattr.texi: Likewise.
38258         * doc/glibc-functions/listxattr.texi: Likewise.
38259         * doc/glibc-functions/llistxattr.texi: Likewise.
38260         * doc/glibc-functions/lremovexattr.texi: Likewise.
38261         * doc/glibc-functions/lsetxattr.texi: Likewise.
38262         * doc/glibc-functions/pow10.texi: Likewise.
38263         * doc/glibc-functions/pow10f.texi: Likewise.
38264         * doc/glibc-functions/rcmd_af.texi: Likewise.
38265         * doc/glibc-functions/removexattr.texi: Likewise.
38266         * doc/glibc-functions/res_init.texi: Likewise.
38267         * doc/glibc-functions/res_mkquery.texi: Likewise.
38268         * doc/glibc-functions/res_query.texi: Likewise.
38269         * doc/glibc-functions/res_querydomain.texi: Likewise.
38270         * doc/glibc-functions/res_send.texi: Likewise.
38271         * doc/glibc-functions/rresvport_af.texi: Likewise.
38272         * doc/glibc-functions/setxattr.texi: Likewise.
38273         * doc/glibc-functions/strcasestr.texi: Likewise.
38274
38275 2008-12-15  Bruno Haible  <bruno@clisp.org>
38276
38277         Fix compilation error on OSF/1 4.0.
38278         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38279         <sys/time.h>, simply delegate to the system header.
38280         Reported by Daniel Richard G. <oss@teragram.com>.
38281
38282 2008-12-15  Bruno Haible  <bruno@clisp.org>
38283
38284         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38285         * doc/posix-functions/fchmodat.texi: Likewise.
38286         * doc/posix-functions/fchownat.texi: Likewise.
38287         * doc/posix-functions/fdopendir.texi: Likewise.
38288         * doc/posix-functions/fstatat.texi: Likewise.
38289         * doc/posix-functions/mkdirat.texi: Likewise.
38290         * doc/posix-functions/unlinkat.texi: Likewise.
38291
38292 2008-12-14  Bruno Haible  <bruno@clisp.org>
38293
38294         Update doc for POSIX:2008.
38295         * doc/posix-functions/faccessat.texi: New file.
38296         * doc/posix-functions/fchmodat.texi: New file.
38297         * doc/posix-functions/fchownat.texi: New file.
38298         * doc/posix-functions/fdopendir.texi: New file.
38299         * doc/posix-functions/fstatat.texi: New file.
38300         * doc/posix-functions/futimens.texi: New file.
38301         * doc/posix-functions/linkat.texi: New file.
38302         * doc/posix-functions/mkdirat.texi: New file.
38303         * doc/posix-functions/mkfifoat.texi: New file.
38304         * doc/posix-functions/mknodat.texi: New file.
38305         * doc/posix-functions/open_wmemstream.texi: New file.
38306         * doc/posix-functions/openat.texi: New file.
38307         * doc/posix-functions/psiginfo.texi: New file.
38308         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38309         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38310         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38311         * doc/posix-functions/readlinkat.texi: New file.
38312         * doc/posix-functions/renameat.texi: New file.
38313         * doc/posix-functions/strerror_l.texi: New file.
38314         * doc/posix-functions/symlinkat.texi: New file.
38315         * doc/posix-functions/unlinkat.texi: New file.
38316         * doc/posix-functions/utimensat.texi: New file.
38317         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38318
38319 2008-12-14  Bruno Haible  <bruno@clisp.org>
38320
38321         Update doc for POSIX:2008.
38322         * doc/posix-functions/alphasort.texi: Renamed from
38323         doc/glibc-functions/alphasort.texi.
38324         * doc/posix-functions/dirfd.texi: Renamed from
38325         doc/glibc-functions/dirfd.texi.
38326         * doc/posix-functions/dprintf.texi: Renamed from
38327         doc/glibc-functions/dprintf.texi.
38328         * doc/posix-functions/duplocale.texi: Renamed from
38329         doc/glibc-functions/duplocale.texi.
38330         * doc/posix-functions/fexecve.texi: Renamed from
38331         doc/glibc-functions/fexecve.texi.
38332         * doc/posix-functions/fmemopen.texi: Renamed from
38333         doc/glibc-functions/fmemopen.texi.
38334         * doc/posix-functions/freelocale.texi: Renamed from
38335         doc/glibc-functions/freelocale.texi.
38336         * doc/posix-functions/getdate_err.texi: Renamed from
38337         doc/glibc-functions/getdate_err.texi.
38338         * doc/posix-functions/isalnum_l.texi: Renamed from
38339         doc/glibc-functions/isalnum_l.texi.
38340         * doc/posix-functions/isalpha_l.texi: Renamed from
38341         doc/glibc-functions/isalpha_l.texi.
38342         * doc/posix-functions/isblank_l.texi: Renamed from
38343         doc/glibc-functions/isblank_l.texi.
38344         * doc/posix-functions/iscntrl_l.texi: Renamed from
38345         doc/glibc-functions/iscntrl_l.texi.
38346         * doc/posix-functions/isdigit_l.texi: Renamed from
38347         doc/glibc-functions/isdigit_l.texi.
38348         * doc/posix-functions/isgraph_l.texi: Renamed from
38349         doc/glibc-functions/isgraph_l.texi.
38350         * doc/posix-functions/islower_l.texi: Renamed from
38351         doc/glibc-functions/islower_l.texi.
38352         * doc/posix-functions/isprint_l.texi: Renamed from
38353         doc/glibc-functions/isprint_l.texi.
38354         * doc/posix-functions/ispunct_l.texi: Renamed from
38355         doc/glibc-functions/ispunct_l.texi.
38356         * doc/posix-functions/isspace_l.texi: Renamed from
38357         doc/glibc-functions/isspace_l.texi.
38358         * doc/posix-functions/isupper_l.texi: Renamed from
38359         doc/glibc-functions/isupper_l.texi.
38360         * doc/posix-functions/iswalnum_l.texi: Renamed from
38361         doc/glibc-functions/iswalnum_l.texi.
38362         * doc/posix-functions/iswalpha_l.texi: Renamed from
38363         doc/glibc-functions/iswalpha_l.texi.
38364         * doc/posix-functions/iswblank_l.texi: Renamed from
38365         doc/glibc-functions/iswblank_l.texi.
38366         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38367         doc/glibc-functions/iswcntrl_l.texi.
38368         * doc/posix-functions/iswctype_l.texi: Renamed from
38369         doc/glibc-functions/iswctype_l.texi.
38370         * doc/posix-functions/iswdigit_l.texi: Renamed from
38371         doc/glibc-functions/iswdigit_l.texi.
38372         * doc/posix-functions/iswgraph_l.texi: Renamed from
38373         doc/glibc-functions/iswgraph_l.texi.
38374         * doc/posix-functions/iswlower_l.texi: Renamed from
38375         doc/glibc-functions/iswlower_l.texi.
38376         * doc/posix-functions/iswprint_l.texi: Renamed from
38377         doc/glibc-functions/iswprint_l.texi.
38378         * doc/posix-functions/iswpunct_l.texi: Renamed from
38379         doc/glibc-functions/iswpunct_l.texi.
38380         * doc/posix-functions/iswspace_l.texi: Renamed from
38381         doc/glibc-functions/iswspace_l.texi.
38382         * doc/posix-functions/iswupper_l.texi: Renamed from
38383         doc/glibc-functions/iswupper_l.texi.
38384         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38385         doc/glibc-functions/iswxdigit_l.texi.
38386         * doc/posix-functions/isxdigit_l.texi: Renamed from
38387         doc/glibc-functions/isxdigit_l.texi.
38388         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38389         doc/glibc-functions/mbsnrtowcs.texi.
38390         * doc/posix-functions/mkdtemp.texi: Renamed from
38391         doc/glibc-functions/mkdtemp.texi.
38392         * doc/posix-functions/newlocale.texi: Renamed from
38393         doc/glibc-functions/newlocale.texi.
38394         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38395         doc/glibc-functions/nl_langinfo_l.texi.
38396         * doc/posix-functions/open_memstream.texi: Renamed from
38397         doc/glibc-functions/open_memstream.texi.
38398         * doc/posix-functions/opterr.texi: Renamed from
38399         doc/glibc-functions/opterr.texi.
38400         * doc/posix-functions/optind.texi: Renamed from
38401         doc/glibc-functions/optind.texi.
38402         * doc/posix-functions/optopt.texi: Renamed from
38403         doc/glibc-functions/optopt.texi.
38404         * doc/posix-functions/psignal.texi: Renamed from
38405         doc/glibc-functions/psignal.texi.
38406         * doc/posix-functions/scandir.texi: Renamed from
38407         doc/glibc-functions/scandir.texi.
38408         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38409         doc/glibc-functions/sched_get_priority_min.texi.
38410         * doc/posix-functions/signgam.texi: Renamed from
38411         doc/glibc-functions/signgam.texi.
38412         * doc/posix-functions/stpcpy.texi: Renamed from
38413         doc/glibc-functions/stpcpy.texi.
38414         * doc/posix-functions/stpncpy.texi: Renamed from
38415         doc/glibc-functions/stpncpy.texi.
38416         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38417         doc/glibc-functions/strcasecmp_l.texi.
38418         * doc/posix-functions/strcoll_l.texi: Renamed from
38419         doc/glibc-functions/strcoll_l.texi.
38420         * doc/posix-functions/strfmon_l.texi: Renamed from
38421         doc/glibc-functions/strfmon_l.texi.
38422         * doc/posix-functions/strftime_l.texi: Renamed from
38423         doc/glibc-functions/strftime_l.texi.
38424         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38425         doc/glibc-functions/strncasecmp_l.texi.
38426         * doc/posix-functions/strndup.texi: Renamed from
38427         doc/glibc-functions/strndup.texi.
38428         * doc/posix-functions/strnlen.texi: Renamed from
38429         doc/glibc-functions/strnlen.texi.
38430         * doc/posix-functions/strsignal.texi: Renamed from
38431         doc/glibc-functions/strsignal.texi.
38432         * doc/posix-functions/strxfrm_l.texi: Renamed from
38433         doc/glibc-functions/strxfrm_l.texi.
38434         * doc/posix-functions/timer_gettime.texi: Renamed from
38435         doc/glibc-functions/timer_gettime.texi.
38436         * doc/posix-functions/tolower_l.texi: Renamed from
38437         doc/glibc-functions/tolower_l.texi.
38438         * doc/posix-functions/toupper_l.texi: Renamed from
38439         doc/glibc-functions/toupper_l.texi.
38440         * doc/posix-functions/towctrans_l.texi: Renamed from
38441         doc/glibc-functions/towctrans_l.texi.
38442         * doc/posix-functions/towlower_l.texi: Renamed from
38443         doc/glibc-functions/towlower_l.texi.
38444         * doc/posix-functions/towupper_l.texi: Renamed from
38445         doc/glibc-functions/towupper_l.texi.
38446         * doc/posix-functions/uselocale.texi: Renamed from
38447         doc/glibc-functions/uselocale.texi.
38448         * doc/posix-functions/vdprintf.texi: Renamed from
38449         doc/glibc-functions/vdprintf.texi.
38450         * doc/posix-functions/wcpcpy.texi:
38451         Renamed from doc/glibc-functions/wcpcpy.texi.
38452         * doc/posix-functions/wcpncpy.texi: Renamed from
38453         doc/glibc-functions/wcpncpy.texi.
38454         * doc/posix-functions/wcscasecmp.texi: Renamed from
38455         doc/glibc-functions/wcscasecmp.texi.
38456         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38457         doc/glibc-functions/wcscasecmp_l.texi.
38458         * doc/posix-functions/wcscoll_l.texi: Renamed from
38459         doc/glibc-functions/wcscoll_l.texi.
38460         * doc/posix-functions/wcsdup.texi: Renamed from
38461         doc/glibc-functions/wcsdup.texi.
38462         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38463         doc/glibc-functions/wcsncasecmp.texi.
38464         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38465         doc/glibc-functions/wcsncasecmp_l.texi.
38466         * doc/posix-functions/wcsnlen.texi: Renamed from
38467         doc/glibc-functions/wcsnlen.texi.
38468         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38469         doc/glibc-functions/wcsnrtombs.texi.
38470         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38471         doc/glibc-functions/wcsxfrm_l.texi.
38472         * doc/posix-functions/wctrans_l.texi: Renamed from
38473         doc/glibc-functions/wctrans_l.texi.
38474         * doc/posix-functions/wctype_l.texi: Renamed from
38475         doc/glibc-functions/wctype_l.texi.
38476         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38477         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38478         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38479         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38480         these subsections.
38481         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38482         Remove sections.
38483
38484 2008-12-14  Bruno Haible  <bruno@clisp.org>
38485
38486         Update doc for POSIX:2008.
38487         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38488
38489 2008-12-14  Bruno Haible  <bruno@clisp.org>
38490
38491         Update doc for POSIX:2008.
38492         * doc/pastposix-functions/bcmp.texi: Renamed from
38493         doc/posix-functions/bcmp.texi.
38494         * doc/pastposix-functions/bcopy.texi: Renamed from
38495         doc/posix-functions/bcopy.texi.
38496         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38497         doc/posix-functions/bsd_signal.texi.
38498         * doc/pastposix-functions/bzero.texi: Renamed from
38499         doc/posix-functions/bzero.texi.
38500         * doc/pastposix-functions/ecvt.texi: Renamed from
38501         doc/posix-functions/ecvt.texi.
38502         * doc/pastposix-functions/fcvt.texi: Renamed from
38503         doc/posix-functions/fcvt.texi.
38504         * doc/pastposix-functions/ftime.texi: Renamed from
38505         doc/posix-functions/ftime.texi.
38506         * doc/pastposix-functions/gcvt.texi: Renamed from
38507         doc/posix-functions/gcvt.texi.
38508         * doc/pastposix-functions/getcontext.texi: Renamed from
38509         doc/posix-functions/getcontext.texi.
38510         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38511         doc/posix-functions/gethostbyaddr.texi.
38512         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38513         doc/posix-functions/gethostbyname.texi.
38514         * doc/pastposix-functions/getwd.texi: Renamed from
38515         doc/posix-functions/getwd.texi.
38516         * doc/pastposix-functions/h_errno.texi: Renamed from
38517         doc/posix-functions/h_errno.texi.
38518         * doc/pastposix-functions/index.texi: Renamed from
38519         doc/posix-functions/index.texi.
38520         * doc/pastposix-functions/makecontext.texi: Renamed from
38521         doc/posix-functions/makecontext.texi.
38522         * doc/pastposix-functions/mktemp.texi: Renamed from
38523         doc/posix-functions/mktemp.texi.
38524         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38525         doc/posix-functions/pthread_attr_getstackaddr.texi.
38526         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38527         doc/posix-functions/pthread_attr_setstackaddr.texi.
38528         * doc/pastposix-functions/rindex.texi: Renamed from
38529         doc/posix-functions/rindex.texi.
38530         * doc/pastposix-functions/scalb.texi: Renamed from
38531         doc/posix-functions/scalb.texi.
38532         * doc/pastposix-functions/setcontext.texi: Renamed from
38533         doc/posix-functions/setcontext.texi.
38534         * doc/pastposix-functions/swapcontext.texi: Renamed from
38535         doc/posix-functions/swapcontext.texi.
38536         * doc/pastposix-functions/ualarm.texi: Renamed from
38537         doc/posix-functions/ualarm.texi.
38538         * doc/pastposix-functions/usleep.texi: Renamed from
38539         doc/posix-functions/usleep.texi.
38540         * doc/pastposix-functions/vfork.texi: Renamed from
38541         doc/posix-functions/vfork.texi.
38542         * doc/pastposix-functions/wcswcs.texi: Renamed from
38543         doc/posix-functions/wcswcs.texi.
38544         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38545         (Function Substitutes): Update.
38546
38547 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38548
38549         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38550         m4/strerror.m4.
38551
38552 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38553             Bruno Haible  <bruno@clisp.org>
38554
38555         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38556
38557 2008-12-13  Bruno Haible  <bruno@clisp.org>
38558
38559         * modules/strtoull (Depends-on): Remove unistd.
38560
38561 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38562
38563         * modules/strtoull (Depends-on): Add stdlib.
38564
38565 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38566
38567         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38568
38569 2008-12-10  Jim Meyering  <meyering@redhat.com>
38570
38571         gl_ASSERT: don't say assertions are disabled when they're not
38572         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38573         "checking whether to enable assertions... no", when they are in
38574         fact enabled.  This is solely a bug in the output of configure.
38575         In spite of saying "no", NDEBUG was not defined in that case.
38576         Also, as noted by Eric Blake, leave assertions enabled upon
38577         --enable-assert=INVALID.
38578
38579 2008-12-10  Bruno Haible  <bruno@clisp.org>
38580
38581         Change MODULES.html to refer to POSIX:2008 where possible.
38582         * MODULES.html.sh (POSIX2008_URL): New variable.
38583         (posix_headers): Remove sys/timeb, ucontext.
38584         (posix2001_headers): New variable.
38585         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38586         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38587         index, makecontext, mktemp, pthread_attr_getstackaddr,
38588         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38589         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38590         (posix2001_functions): New variable.
38591         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38592         otherwise.
38593
38594 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38595
38596         add missing include to parse-duration.c
38597         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38598         * modules/parse-duration (Depends-on): Add xalloc.
38599
38600         fix sed script reading maint.mk
38601         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38602         (syntax-check-rules): Use it.
38603
38604 2008-12-09  Bruno Haible  <bruno@clisp.org>
38605
38606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38607         MacOS X 10.4/PowerPC.
38608         Reported by Simon Josefsson.
38609
38610 2008-12-08  Jim Meyering  <meyering@redhat.com>
38611
38612         work around mingw's lack of some S_IF definitions
38613         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38614         Reported by Simon Josefsson.
38615
38616 2008-12-08  Bruno Haible  <bruno@clisp.org>
38617
38618         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38619         applied to variables. Needed on MacOS X 10.4/PowerPC.
38620         Reported by Simon Josefsson.
38621
38622 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38623         and Eric Blake  <ebb9@byu.net>
38624
38625         assert: honor --enable-assert
38626         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38627         order to honor --enable-assert, rather than treating it as a
38628         synonym for --disable-assert.
38629
38630 2008-12-08  Jim Meyering  <meyering@redhat.com>
38631
38632         * lib/posixtm.c: Remove now-useless declaration of mktime.
38633
38634         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38635
38636 2008-12-07  Bruno Haible  <bruno@clisp.org>
38637
38638         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38639         test_once): Mark functions as static.
38640         * tests/test-tls.c (test_tls): Likewise.
38641
38642 2008-12-07  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38645         iconv_register_autodetect.
38646
38647 2008-12-07  Jim Meyering  <meyering@redhat.com>
38648
38649         posixtm.c: avoid a warning
38650         * lib/posixtm.c (posixtime): Don't initialize tm0.
38651         It's no longer needed to placate gcc4's -Wuninitialized,
38652         and the attempt to placate would elicit a new warning.
38653
38654         unicodeio.c: mark unused parameters
38655         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38656         (fallback_failure_callback): Likewise.
38657
38658 2008-12-07  Bruno Haible  <bruno@clisp.org>
38659
38660         * gnulib-tool (func_create_testdir): When building the tests
38661         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38662         Reported by Simon Josefsson.
38663
38664 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38665
38666         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38667
38668 2008-12-06  Bruno Haible  <bruno@clisp.org>
38669
38670         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38671         Suggested by Eric Blake.
38672
38673 2008-12-06  Bruno Haible  <bruno@clisp.org>
38674
38675         Fix a c-stack test failure on MacOS X.
38676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38677         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38678         handler for SIGBUS as well.
38679         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38680         install a signal handler for SIGBUS as well.
38681         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38682
38683 2008-12-06  Bruno Haible  <bruno@clisp.org>
38684
38685         Advocacy documentation.
38686         * doc/gnulib-intro.texi (Benefits): New section.
38687         * doc/gnulib.texi: Update.
38688
38689 2008-12-06  Bruno Haible  <bruno@clisp.org>
38690
38691         Document the 'manywarnings' module.
38692         * doc/manywarnings.texi: New file.
38693         * doc/gnulib.texi: Include it.
38694
38695 2008-12-05  Eric Blake  <ebb9@byu.net>
38696
38697         tests: silence some gcc warnings
38698         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38699         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38700         type mismatches.
38701
38702 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38703             Bruno Haible  <bruno@clisp.org>
38704
38705         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38706
38707 2008-11-29  Jim Meyering  <meyering@redhat.com>
38708
38709         unicodeio.c: mark unused parameters
38710         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38711         (fallback_failure_callback): Likewise.
38712
38713         fts: fix a thinko
38714         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38715         (set_stat_type): Return S_IF*-valued "type" directly.
38716         Prompted by James Youngman's spotting a related bug.
38717         Confirmed by further testing through find.
38718
38719         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38720         * lib/fts.c (D_TYPE): Define.
38721         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38722         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38723         (s_ifmt_shift_bits): New function.
38724         (set_stat_type): New function.
38725         (fts_build): When not calling fts_stat, call set_stat_type
38726         to propagate dirent.d_type info to fts_read caller.
38727         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38728         fts_statp->st_mode type information may be valid.
38729
38730 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38731
38732         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38733         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38734         <sds@gnu.org>.
38735
38736 2008-11-20  Bruno Haible  <bruno@clisp.org>
38737
38738         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38739         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38740         INCLUDE_NEXT.
38741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38742         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38743         * modules/math (Makefile.am): Substitute
38744         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38745         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38746
38747 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38748             Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/stdint.in.h: Define all type macros so that their expansion is
38751         a single typedef'ed token. Fixes a compilation failure in Boost which
38752         does "using ::int8_t;".
38753
38754 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38755
38756         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38757         gl_MANYWARN_ALL_GCC.
38758         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38759         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38760         * modules/manywarnings: New file.
38761         * MODULES.html.sh: Mention manywarnings module.
38762
38763 2008-11-18  Bruno Haible  <bruno@clisp.org>
38764
38765         * doc/gnulib-tool.texi (Unit tests): New section.
38766
38767 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38768
38769         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38770         paths like 'lib/po/foo.po'.
38771
38772 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38773
38774         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38775         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38776
38777 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38778
38779         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38780         parameter works.
38781
38782 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38783
38784         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38785
38786 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38787
38788         * modules/parse-duration-tests: New file.
38789         * tests/test-parse-duration.sh: New file.
38790         * tests/test-parse-duration.c: New file.
38791
38792         New module 'parse-duration'.
38793         * lib/parse-duration.h: New file.
38794         * lib/parse-duration.c: New file.
38795         * modules/parse-duration: New file.
38796
38797 2008-11-17  Bruno Haible  <bruno@clisp.org>
38798
38799         * tests/test-select-out.sh: Comment out the first pipe test.
38800         Reported by Simon Josefsson.
38801
38802 2008-11-17  Bruno Haible  <bruno@clisp.org>
38803
38804         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38806         gl_HOSTENT.
38807
38808 2008-11-17  Bruno Haible  <bruno@clisp.org>
38809
38810         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38811         -lnetwork and -lnet. Needed for Haiku and BeOS.
38812
38813 2008-11-16  Bruno Haible  <bruno@clisp.org>
38814
38815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38816
38817 2008-11-16  Bruno Haible  <bruno@clisp.org>
38818
38819         Avoid test failure on Haiku.
38820         * tests/test-fsync.c: Include <errno.h>.
38821         (main): Don't require that fsync (0) fails.
38822
38823 2008-11-15  Bruno Haible  <bruno@clisp.org>
38824
38825         New module 'hostent'.
38826         * modules/hostent: New file.
38827         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38828
38829 2008-11-15  Bruno Haible  <bruno@clisp.org>
38830
38831         New module 'servent'.
38832         * modules/servent: New file.
38833         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38834
38835 2008-11-15  Bruno Haible  <bruno@clisp.org>
38836
38837         Avoid generating same test program with two different rules.
38838         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38839         test-frexp to test-frexp-nolibm.
38840         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38841         test-frexpl to test-frexpl-nolibm.
38842
38843 2008-11-15  Bruno Haible  <bruno@clisp.org>
38844
38845         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38846         $(FREXPL_LIBM).
38847
38848 2008-11-15  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/netdb.in.h: Activate the definitions also when the system's
38851         <netdb.h> has 'struct addrinfo'.
38852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38853         EAI_OVERFLOW or AI_NUMERICSERV.
38854         * doc/posix-headers/netdb.texi: Document the problem.
38855
38856 2008-11-15  Bruno Haible  <bruno@clisp.org>
38857
38858         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38859
38860         Make the 'sched' module work on platforms where <sched.h> exists but
38861         is incomplete (such as Haiku).
38862         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38863         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38864         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38865         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38866         HAVE_STRUCT_SCHED_PARAM.
38867         * modules/sched (Depends-on): Add include_next.
38868         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38869         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38870         * doc/posix-headers/sched.texi: Document the issue.
38871
38872 2008-11-13  Jim Meyering  <meyering@redhat.com>
38873
38874         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38875         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38876         test would fail due to the difference in the Report bugs to ...
38877         line.  The expected address is empty, "<>", while the actual
38878         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38879
38880 2008-11-12  Bruno Haible  <bruno@clisp.org>
38881
38882         lstat: don't compile lstat.c on systems lacking lstat
38883         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38884         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38885         Reported by Daniel P. Berrange via Jim Meyering.
38886
38887 2008-11-12  Jim Meyering  <meyering@redhat.com>
38888
38889         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38890
38891 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38892
38893         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38894         instead.
38895
38896 2008-11-12  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/unicodeio.c: Include unistr.h.
38899         (utf8_wctomb): Remove function.
38900         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38901
38902 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38903
38904         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38905         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38906         <bruno@clisp.org>.
38907         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38908
38909 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38910
38911         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38912         * doc/gnulib.texi: Add section for warnings.
38913
38914 2008-11-11  Bruno Haible  <bruno@clisp.org>
38915
38916         * lib/sockets.h: Add a comment.
38917
38918 2008-11-11  Karl Berry  <karl@gnu.org>
38919
38920         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38921
38922 2008-11-11  Eric Blake  <ebb9@byu.net>
38923
38924         fdl.texi: avoid git symlinks
38925         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38926
38927 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38928
38929         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38930
38931 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38932
38933         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38934         (gl_WARN_ADD): Substitute $2 if literal.
38935
38936 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38937
38938         * m4/warning.m4: Remove.
38939
38940 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38941
38942         * m4/warnings.m4: Almost complete rewrite. :-)
38943
38944 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38945
38946         * modules/warnings: New module.
38947         * m4/warnings.m4: New file.
38948         * MODULES.html.sh: Mention warnings module.
38949         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38950         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38951
38952 2008-11-10  Eric Blake  <ebb9@byu.net>
38953
38954         fdl.texi: make a symlink to the latest version
38955         * doc/standards.texi: Revert today's earlier change.
38956         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38957         * doc/fdl.texi: ...and replace this with a symlink to the newer
38958         fdl-1.3.texi.
38959
38960 2008-11-10  Bruno Haible  <bruno@clisp.org>
38961
38962         * tests/test-select-fd.c (main): Accept the result file name as fourth
38963         argument.
38964         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38965         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38966
38967 2008-11-10  Bruno Haible  <bruno@clisp.org>
38968
38969         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38970         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38971         as autoconf-substituted macros.
38972         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38974         gl_NETDB_H_DEFAULTS. Set these variables.
38975         * modules/netdb (Makefile.am): Substitute these variables.
38976
38977 2008-11-10  Eric Blake  <ebb9@byu.net>
38978
38979         standards.texi: include correct file for FDL 1.3
38980         * doc/standards.texi (GNU Free Documentation License): Change
38981         include file to pull in FDL 1.3, not 1.2.
38982
38983         fdl.texi: revert accidental change to license
38984         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38985
38986 2008-11-10  Bruno Haible  <bruno@clisp.org>
38987
38988         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38989         cross-compiling guesses also when the native compile gives no result.
38990
38991 2008-11-10  Bruno Haible  <bruno@clisp.org>
38992
38993         * lib/spawni.c (__spawni): Force variable into the stack.
38994
38995 2008-11-10  Bruno Haible  <bruno@clisp.org>
38996
38997         Add support for Haiku.
38998         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38999         glibc and BeOS, but also on Haiku.
39000         * lib/fpurge.c (fpurge): Likewise.
39001         * lib/freadable.c (freadable): Likewise.
39002         * lib/freadahead.c (freadahead): Likewise.
39003         * lib/freading.c (freading): Likewise.
39004         * lib/freadptr.c (freadptr): Likewise.
39005         * lib/freadseek.c (freadptrinc): Likewise.
39006         * lib/fseeko.c (rpl_fseeko): Likewise.
39007         * lib/fseterr.c (fseterr): Likewise.
39008         * lib/fwritable.c (fwritable): Likewise.
39009         * lib/fwriting.c (fwriting): Likewise.
39010         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39011
39012 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39013
39014         * lib/config.charset: Treat Haiku like BeOS.
39015
39016 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39017
39018         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39019         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39020
39021 2008-11-08  Bruno Haible  <bruno@clisp.org>
39022
39023         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39024         AC_CACHE_CHECK.
39025
39026 2008-11-08  Bruno Haible  <bruno@clisp.org>
39027
39028         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39029
39030 2008-11-08  Bruno Haible  <bruno@clisp.org>
39031
39032         * tests/test-select-fd.c: New file.
39033         * tests/test-select-in.sh: New file.
39034         * tests/test-select-out.sh: New file.
39035         * tests/test-select-stdin.c: New file.
39036         * modules/select-tests (Files): Add the new files.
39037         (Depends-on): Add gettimeofday.
39038         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39039         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39040         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39041
39042 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39043             Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39046
39047 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39048
39049         * build-aux/pmccabe2html: Added support for C++ source files.
39050
39051 2008-11-05  Ben Pfaff  <blp@gnu.org>
39052
39053         Fix lib/close.c build on Windows.
39054         * modules/close (Files): Add lib/w32sock.h.
39055
39056 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39057
39058         Accept Bison's NEWS format.
39059         * build-aux/announce-gen (print_news_deltas): Tweak
39060         $re_prefix.
39061
39062 2008-11-04  Bruno Haible  <bruno@clisp.org>
39063
39064         * modules/random_r (Maintainer): Add glibc.
39065
39066 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39067
39068         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39069         by karl@freefriends.org (Karl Berry).
39070         * doc/alloca.texi: Likewise.
39071         * doc/c-ctype.texi: Likewise.
39072         * doc/c-strcase.texi: Likewise.
39073         * doc/c-strcaseeq.texi: Likewise.
39074         * doc/c-strcasestr.texi: Likewise.
39075         * doc/c-strstr.texi: Likewise.
39076         * doc/c-strtod.texi: Likewise.
39077         * doc/c-strtold.texi: Likewise.
39078         * doc/ctime.texi: Likewise.
39079         * doc/error.texi: Likewise.
39080         * doc/fdl.texi: Likewise.
39081         * doc/gcd.texi: Likewise.
39082         * doc/getdate.texi: Likewise.
39083         * doc/gnulib-intro.texi: Likewise.
39084         * doc/gnulib-tool.texi: Likewise.
39085         * doc/gnulib.texi: Likewise.
39086         * doc/inet_ntoa.texi: Likewise.
39087         * doc/maintain.texi: Likewise.
39088         * doc/make-stds.texi: Likewise.
39089         * doc/quote.texi: Likewise.
39090         * doc/regexprops-generic.texi: Likewise.
39091         * doc/standards.texi: Likewise.
39092         * doc/verify.texi: Likewise.
39093         * doc/visibility.texi: Likewise.
39094         * doc/gnulib.texi (GNU Free Documentation License): Include
39095         fdl-1.3.texi instead of fdl.texi.
39096
39097 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39098
39099         * doc/fdl-1.3.texi: New file, from
39100         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39101         * modules/fdl-1.3: Add.
39102         * MODULES.html.sh: Add fdl-1.3.
39103
39104 2008-11-03  Bruno Haible  <bruno@clisp.org>
39105
39106         Make determination of absolute name of header file work with AIX xlc.
39107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39108         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39109         preprocessing.
39110         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39111         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39112
39113 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39114
39115         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39116         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39117         <ludo@gnu.org>.
39118
39119 2008-11-02  Bruno Haible  <bruno@clisp.org>
39120
39121         Mark 'strpbrk' obsolete.
39122         * modules/strpbrk (Status, Notice): New sections.
39123         * modules/strtok_r (Depends-on): Add strpbrk.
39124
39125 2008-11-02  Bruno Haible  <bruno@clisp.org>
39126
39127         Mark 'strdup' obsolete.
39128         * modules/strdup (Status, Notice): New sections.
39129         * modules/findprog (Depends-on): Add strdup.
39130         * modules/getaddrinfo (Depends-on): Likewise.
39131         * modules/localename (Depends-on): Likewise.
39132         * modules/relocatable-lib (Depends-on): Likewise.
39133         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39134         * modules/relocatable-prog (Depends-on): Likewise.
39135         * modules/trim (Depends-on): Likewise.
39136         * modules/unictype/gen-ctype (Depends-on): Likewise.
39137         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39138
39139 2008-11-02  Bruno Haible  <bruno@clisp.org>
39140
39141         Mark 'strcspn' obsolete.
39142         * modules/strcspn (Status, Notice): New sections.
39143
39144 2008-11-02  Bruno Haible  <bruno@clisp.org>
39145
39146         Mark 'rmdir' obsolete.
39147         * modules/rmdir (Status, Notice): New sections.
39148         * modules/clean-temp (Depends-on): Add rmdir.
39149         * modules/openat (Depends-on): Likewise.
39150
39151 2008-11-02  Bruno Haible  <bruno@clisp.org>
39152
39153         Mark 'raise' obsolete.
39154         * modules/raise (Status, Notice): New sections.
39155         (Include): Specify <signal.h>.
39156         * modules/stdio (Depends-on): Add raise.
39157         * modules/write (Depends-on): Likewise.
39158
39159 2008-11-02  Bruno Haible  <bruno@clisp.org>
39160
39161         Mark 'memset' obsolete.
39162         * modules/memset (Status, Notice): New sections.
39163
39164 2008-11-02  Bruno Haible  <bruno@clisp.org>
39165
39166         Mark 'memmove' obsolete.
39167         * modules/memmove (Status, Notice): New sections.
39168         * modules/argp (Depends-on): Add memmove.
39169         * modules/argz (Depends-on): Likewise.
39170         * modules/canonicalize (Depends-on): Likewise.
39171         * modules/canonicalize-lgpl (Depends-on): Likewise.
39172         * modules/fts (Depends-on): Likewise.
39173         * modules/getcwd (Depends-on): Likewise.
39174         * modules/human (Depends-on): Likewise.
39175         * modules/regex (Depends-on): Likewise.
39176         * modules/striconveh (Depends-on): Likewise.
39177         * modules/trim (Depends-on): Likewise.
39178         * modules/unistr/u8-move (Depends-on): Likewise.
39179         * modules/unistr/u16-move (Depends-on): Likewise.
39180         * modules/unistr/u32-move (Depends-on): Likewise.
39181
39182 2008-11-02  Bruno Haible  <bruno@clisp.org>
39183
39184         Mark 'memcpy' obsolete.
39185         * modules/memcpy (Status, Notice): New sections.
39186
39187 2008-11-02  Bruno Haible  <bruno@clisp.org>
39188
39189         Mark 'memcmp' obsolete.
39190         * modules/memcmp (Status, Notice): New sections.
39191         * modules/argmatch (Depends-on): Add memchr.
39192         * modules/backupfile (Depends-on): Likewise.
39193         * modules/c-strcasestr (Depends-on): Likewise.
39194         * modules/crypto/des (Depends-on): Likewise.
39195         * modules/csharpcomp (Depends-on): Likewise.
39196         * modules/fnmatch (Depends-on): Likewise.
39197         * modules/git-merge-changelog (Depends-on): Likewise.
39198         * modules/isnand (Depends-on): Likewise.
39199         * modules/isnand-nolibm (Depends-on): Likewise.
39200         * modules/isnanf (Depends-on): Likewise.
39201         * modules/isnanf-nolibm (Depends-on): Likewise.
39202         * modules/isnanl (Depends-on): Likewise.
39203         * modules/isnanl-nolibm (Depends-on): Likewise.
39204         * modules/mbchar (Depends-on): Likewise.
39205         * modules/memcoll (Depends-on): Likewise.
39206         * modules/quotearg (Depends-on): Likewise.
39207         * modules/regex (Depends-on): Likewise.
39208         * modules/relocatable-prog (Depends-on): Likewise.
39209         * modules/same (Depends-on): Likewise.
39210         * modules/signbit (Depends-on): Likewise.
39211         * modules/strcasestr-simple (Depends-on): Likewise.
39212         * modules/unictype/gen-ctype (Depends-on): Likewise.
39213         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39214         * modules/uniname/uniname (Depends-on): Likewise.
39215         * modules/unistr/u8-cmp (Depends-on): Likewise.
39216
39217 2008-11-02  Bruno Haible  <bruno@clisp.org>
39218
39219         Mark 'memchr' obsolete.
39220         * modules/memchr (Status, Notice): New sections.
39221         * modules/argp (Depends-on): Add memchr.
39222         * modules/base64 (Depends-on): Likewise.
39223         * modules/c-strcasestr (Depends-on): Likewise.
39224         * modules/chdir-long (Depends-on): Likewise.
39225         * modules/fnmatch (Depends-on): Likewise.
39226         * modules/getsubopt (Depends-on): Likewise.
39227         * modules/git-merge-changelog (Depends-on): Likewise.
39228         * modules/glob (Depends-on): Likewise.
39229         * modules/strcasestr-simple (Depends-on): Likewise.
39230         * modules/strnlen (Depends-on): Likewise.
39231
39232 2008-11-02  Bruno Haible  <bruno@clisp.org>
39233
39234         Mark 'atexit' obsolete.
39235         * modules/atexit (Status, Notice): New sections.
39236         * modules/chdir-long (Depends-on): Add atexit.
39237         * modules/wait-process (Depends-on): Likewise.
39238
39239 2008-11-02  Bruno Haible  <bruno@clisp.org>
39240
39241         * gnulib-tool: New option --with-obsolete.
39242         (func_usage): Document it.
39243         (func_modules_transitive_closure): Drop obsolete dependencies if
39244         incobsolete is not true.
39245         (func_import): Read and save the incobsolete variable to the cache.
39246
39247 2008-11-02  Bruno Haible  <bruno@clisp.org>
39248
39249         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39250         * gnulib-tool: New option --extract-status.
39251         (func_usage): Document it.
39252         (sed_extract_prog): Recognize it.
39253         (func_get_status): New function.
39254
39255 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39256
39257         * modules/sockets (License): Change from LGPL to LGPLv2+.
39258
39259 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39260
39261         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39262
39263 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39264
39265         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39266         Mention times and sys_times.
39267         * modules/sys_times, modules/sys_times-tests: New modules.
39268         * modules/times, modules/times-tests: Likewise
39269         * m4/sys_times_h.m4: New file.
39270         * lib/sys_times.in.h: Likewise
39271         * lib/times.c: Likewise.
39272         * tests/test-sys_times.c: Likewise.
39273         * tests/test-times.c: Likewise.
39274         * doc/posix-headers/sys_times.texi: Update.
39275         * doc/posix-functions/times.texi: Update.
39276
39277 2008-10-28  Jim Meyering  <meyering@redhat.com>
39278
39279         * modules/tempname (Depends-on): Add lstat.
39280
39281         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39282
39283 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39284
39285         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39286         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39287         using idiom used elsewhere in gnulib.
39288
39289 2008-10-27  Jim Meyering  <meyering@redhat.com>
39290
39291         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39292
39293 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39294
39295         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39296         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39297         programs.
39298         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39299
39300 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39301
39302         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39303
39304 2008-10-27  Bruno Haible  <bruno@clisp.org>
39305
39306         * tests/test-lstat.c: Include <stdio.h>.
39307
39308 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39309
39310         * modules/lstat-tests: New module.
39311         * tests/test-lstat.c: New file.
39312
39313 2008-10-26  Jim Meyering  <meyering@redhat.com>
39314
39315         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39316
39317 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39318             Bruno Haible  <bruno@clisp.org>
39319
39320         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39321         * modules/configmake (Include): Add a note that the include must come
39322         after all system headers.
39323         * lib/javaversion.c: Include configmake.h after all other includes.
39324
39325 2008-10-26  Bruno Haible  <bruno@clisp.org>
39326
39327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39328         HAVE_STRUCT_RANDOM_DATA to 1.
39329         (gl_STDLIB_H): Simplify.
39330
39331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39332
39333         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39334         substitute HAVE_STRUCT_RANDOM_DATA.
39335         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39336         random_data.
39337         * modules/stdlib (Makefile.am): Substitute
39338         HAVE_STRUCT_RANDOM_DATA.
39339
39340 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39341
39342         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39343         * doc/gnulib-intro.texi (Copyright): Likewise.
39344
39345 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39346
39347         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39348         findings.
39349
39350 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39351             Bruno Haible  <bruno@clisp.org>
39352
39353         * lib/unistd.in.h: Include <winsock2.h>.
39354         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39355         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39356         Provide dummy declarations.
39357         (gethostname): Override.
39358         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39360         gl_PREREQ_SYS_H_WINSOCK2.
39361         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39362         * doc/posix-functions/gethostname.texi: More details.
39363
39364 2008-10-25  Bruno Haible  <bruno@clisp.org>
39365
39366         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39367         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39368         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39369
39370         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39371         here ...
39372         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39373         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39374         gl_UNISTD_H_DEFAULTS.
39375
39376 2008-10-25  Eric Blake  <ebb9@byu.net>
39377
39378         signbit: avoid spurious compiler failure
39379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39380         declarations inside function.
39381
39382 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39383             Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39386         * modules/random_r (Depends-on): Add stdint.
39387
39388 2008-10-24  Bruno Haible  <bruno@clisp.org>
39389
39390         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39391         Eggert.
39392         * modules/strerror (License): Likewise.
39393
39394 2008-10-24  Jim Meyering  <meyering@redhat.com>
39395
39396         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39397         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39398
39399 2008-10-24  Eric Blake  <ebb9@byu.net>
39400
39401         getgroups: fix compilation when getgroups is available
39402         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39403         but with <config.h> override of getgroups disabled.
39404
39405 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39406
39407         * doc/gnulib.texi (Header files): Add note about C++ problems.
39408         Explained by Bruno Haible <bruno@clisp.org>.
39409
39410 2008-10-23  Bruno Haible  <bruno@clisp.org>
39411
39412         Define a dummy SA_NODEFER macro on Interix.
39413         * lib/signal.in.h (SA_NODEFER): Define fallback.
39414         Reported by Aleksey Cheusov <cheusov@tut.by> via
39415         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39416
39417 2008-10-23  Bruno Haible  <bruno@clisp.org>
39418
39419         * modules/freadahead (License): Change to LGPLv2+.
39420         Suggested by Simon Josefsson.
39421
39422 2008-10-23  Jim Meyering  <meyering@redhat.com>
39423
39424         random_r: new module
39425         * modules/random_r: New file.
39426         * m4/random_r.m4: New file.
39427         * lib/random_r.c: New file, from glibc.
39428         * modules/random_r-tests: New file.
39429         * tests/test-random_r.c: New file.
39430         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39431          Declare.
39432         (RAND_MAX): Define.
39433         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39434         * modules/stdlib: Substitute them, too.
39435         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39436         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39437         * doc/glibc-functions/random_r.texi: Likewise.
39438         * doc/glibc-functions/setstate_r.texi: Likewise.
39439         * doc/glibc-functions/srandom_r.texi: Likewise.
39440         * config/srclist.txt: Mention it.
39441
39442 2008-10-23  David Lutterkort  <lutter@redhat.com>
39443
39444         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39445         link requirement
39446
39447 2008-10-23  Jim Meyering  <meyering@redhat.com>
39448
39449         selinux-h: mark parameters of stub functions as intentionally unused
39450         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39451         * lib/se-context.in.h: Likewise.
39452
39453 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39454
39455         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39456
39457 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39458
39459         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39460
39461 2008-10-22  Eric Blake  <ebb9@byu.net>
39462
39463         glthread/thread: avoid compiler warning
39464         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39465         Add unreachable abort to silence compiler.
39466
39467 2008-10-22  Eric Blake  <ebb9@byu.net>
39468
39469         netdb: also supply struct addrinfo for cygwin 1.5.x
39470         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39471         older cygwin.
39472         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39473         cygwin.
39474         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39475
39476 2008-10-22  Bruno Haible  <bruno@clisp.org>
39477
39478         * users.txt: Update entry about pspp.
39479
39480 2008-10-21  Bruno Haible  <bruno@clisp.org>
39481
39482         Simplification.
39483         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39484         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39485
39486         Simplification.
39487         * lib/ioctl.c (ioctl): Don't undefine.
39488         * lib/socket.c (socket): Don't undefine.
39489
39490         Remove unused module indicator macros.
39491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39492         GNULIB_$1 as a C macro.
39493
39494         * doc/posix-functions/close.texi: Undo last change.
39495         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39496         Windows platforms.
39497
39498 2008-10-21  Bruno Haible  <bruno@clisp.org>
39499
39500         Add gethostname() declaration to <unistd.h>.
39501         * lib/unistd.in.h (gethostname): New declaration.
39502         * lib/gethostname.c: Include <unistd.h>.
39503         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39504         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39506         and HAVE_GETHOSTNAME.
39507         * modules/gethostname (Depends-on): Add unistd.
39508         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39509         (Include): Specify <unistd.h>.
39510         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39511         HAVE_GETHOSTNAME.
39512         * tests/test-gethostname.c: Include <unistd.h> first.
39513
39514 2008-10-21  Bruno Haible  <bruno@clisp.org>
39515
39516         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39517         * modules/select-tests (Depends-on): Likewise.
39518         Reported by Simon Josefsson.
39519
39520 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39521
39522         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39523         * lib/accept.c: New file, based on winsock.c.
39524         * lib/bind.c: New file, based on winsock.c.
39525         * lib/connect.c: New file, based on winsock.c.
39526         * lib/getpeername.c: New file, based on winsock.c.
39527         * lib/getsockname.c: New file, based on winsock.c.
39528         * lib/getsockopt.c: New file, based on winsock.c.
39529         * lib/ioctl.c: New file, based on winsock.c.
39530         * lib/listen.c: New file, based on winsock.c.
39531         * lib/recv.c: New file, based on winsock.c.
39532         * lib/recvfrom.c: New file, based on winsock.c.
39533         * lib/send.c: New file, based on winsock.c.
39534         * lib/sendto.c: New file, based on winsock.c.
39535         * lib/setsockopt.c: New file, based on winsock.c.
39536         * lib/shutdown.c: New file, based on winsock.c.
39537         * lib/socket.c: New file, based on winsock.c.
39538         * lib/w32sock.h: New file, based on winsock.c.
39539         * lib/winsock.c: Remove file.
39540         * modules/accept: Likewise.
39541         * modules/bind: Likewise.
39542         * modules/connect: Likewise.
39543         * modules/getpeername: Likewise.
39544         * modules/getsockname: Likewise.
39545         * modules/getsockopt: Likewise.
39546         * modules/ioctl: Likewise.
39547         * modules/listen: Likewise.
39548         * modules/recv: Likewise.
39549         * modules/recvfrom: Likewise.
39550         * modules/send: Likewise.
39551         * modules/sendto: Likewise.
39552         * modules/setsockopt: Likewise.
39553         * modules/shutdown: Likewise.
39554         * modules/socket: Use socket.c instead of winsock.c.
39555         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39556         * doc/posix-functions/accept.texi: Doc fix.
39557         * doc/posix-functions/bind.texi: Doc fix.
39558         * doc/posix-functions/close.texi: Doc fix.
39559         * doc/posix-functions/connect.texi: Doc fix.
39560         * doc/posix-functions/getpeername.texi: Doc fix.
39561         * doc/posix-functions/getsockname.texi: Doc fix.
39562         * doc/posix-functions/getsockopt.texi: Doc fix.
39563         * doc/posix-functions/ioctl.texi: Doc fix.
39564         * doc/posix-functions/listen.texi: Doc fix.
39565         * doc/posix-functions/recv.texi: Doc fix.
39566         * doc/posix-functions/recvfrom.texi: Doc fix.
39567         * doc/posix-functions/send.texi: Doc fix.
39568         * doc/posix-functions/sendto.texi: Doc fix.
39569         * doc/posix-functions/setsockopt.texi: Doc fix.
39570         * doc/posix-functions/shutdown.texi: Doc fix.
39571         * doc/posix-functions/socket.texi: Doc fix.
39572
39573 2008-10-20  Bruno Haible  <bruno@clisp.org>
39574
39575         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39576         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39577         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39578         as an alias for SIGABRT.
39579         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39580         (sigaction): Map it to SIGABRT.
39581         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39582
39583 2008-10-20  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/fts.c: Don't include lstat.h.
39586         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39587
39588         Move the lstat() declaration to <sys/stat.h>.
39589         * lib/lstat.h: Remove file.
39590         * lib/sys_stat.in.h: Add special invocation convention.
39591         (lstat): New declaration.
39592         * lib/lstat.c (orig_lstat): New function.
39593         (rpl_lstat): Use orig_lstat instead of lstat.
39594         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39595         AC_C_INLINE. Set REPLACE_LSTAT.
39596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39597         and REPLACE_LSTAT.
39598         * modules/lstat (Files): Remove lib/lstat.h.
39599         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39600         (Include): Specify <sys/stat.h> instead of lstat.h.
39601         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39602         REPLACE_LSTAT.
39603         * NEWS: Mention the change.
39604
39605 2008-10-20  Bruno Haible  <bruno@clisp.org>
39606
39607         * modules/posix_spawn-tests: New file.
39608         * tests/test-posix_spawn3.c: New file.
39609
39610 2008-10-20  Bruno Haible  <bruno@clisp.org>
39611
39612         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39613         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39614         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39615         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39616         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39617
39618 2008-10-20  Bruno Haible  <bruno@clisp.org>
39619
39620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39621         of posix_spawn on AIX 5.3.
39622
39623 2008-10-20  Bruno Haible  <bruno@clisp.org>
39624
39625         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39626
39627 2008-10-20  Bruno Haible  <bruno@clisp.org>
39628
39629         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39630         of AC_LANG_PROGRAM.
39631
39632 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39633
39634         * lib/netdb.in.h: Don't define GNU specific constants until they
39635         are supported or needed.  Reported by Bruno Haible
39636         <bruno@clisp.org>.
39637
39638 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39639
39640         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39641
39642 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39643
39644         * lib/getaddrinfo.h: Remove file.
39645         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39646         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39647         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39648         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39649         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39650         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39651         * tests/test-getaddrinfo.c: Likewise.
39652         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39653         * NEWS: Mention change.
39654
39655 2008-10-19  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39658
39659 2008-10-19  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/wait-process.c: Include simply <sys/wait.h>.
39662         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39663         WIFSTOPPED): Remove fallback definitions.
39664         * modules/wait-process (Depends-on): Add sys_wait.
39665
39666         New module 'sys_wait'.
39667         * modules/sys_wait: New file.
39668         * lib/sys_wait.in.h: New file, partially copied from
39669         lib/wait-process.c.
39670         * m4/sys_wait_h.m4: New file.
39671         * doc/posix-headers/sys_wait.texi: Mention the new module.
39672
39673 2008-10-19  Bruno Haible  <bruno@clisp.org>
39674
39675         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39676
39677 2008-10-19  Bruno Haible  <bruno@clisp.org>
39678
39679         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39680         * lib/wait-process.c (WAIT_T): Remove type.
39681         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39682         (wait_subprocess): Update.
39683
39684 2008-10-19  Bruno Haible  <bruno@clisp.org>
39685
39686         New module 'atoll'.
39687         * modules/atoll: New file.
39688         * lib/stdlib.in.h (atoll): New declaration.
39689         * lib/atoll.c: New file, from glibc with modifications.
39690         * m4/atoll.m4: New file.
39691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39692         HAVE_ATOLL.
39693         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39694         * doc/posix-functions/atoll.texi: Mention the new module.
39695
39696 2008-10-19  Bruno Haible  <bruno@clisp.org>
39697
39698         Add strtoull() declaration to <stdlib.h>.
39699         * lib/stdlib.in.h (strtoull): New declaration.
39700         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39701         Set HAVE_STRTOULL.
39702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39703         HAVE_STRTOULL.
39704         * modules/strtoull (Depends-on): Add stdlib.
39705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39706         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39707         HAVE_STRTOULL.
39708
39709 2008-10-19  Bruno Haible  <bruno@clisp.org>
39710
39711         Add strtoll() declaration to <stdlib.h>.
39712         * lib/stdlib.in.h (strtoll): New declaration.
39713         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39714         Set HAVE_STRTOLL.
39715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39716         HAVE_STRTOLL.
39717         * modules/strtoll (Depends-on): Add stdlib.
39718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39719         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39720
39721 2008-10-19  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/bcopy (Depends-on): Add strings.
39724         (Include): Specify <strings.h>.
39725
39726 2008-10-19  Bruno Haible  <bruno@clisp.org>
39727
39728         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39729
39730 2008-10-19  Bruno Haible  <bruno@clisp.org>
39731
39732         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39733         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39734         mingw.
39735
39736 2008-10-19  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/atanl.c: Don't include isnanl.h.
39739         * lib/cosl.c: Likewise.
39740         * lib/ldexpl.c: Likewise.
39741         * lib/logl.c: Likewise.
39742         * lib/sinl.c: Likewise.
39743         * lib/sqrtl.c: Likewise.
39744         * lib/tanl.c: Likewise.
39745
39746         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39747         * lib/isnanf.h: Remove file.
39748         * lib/isnand.h: Remove file.
39749         * lib/isnanl.h: Remove file.
39750         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39751         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39752         macros.
39753         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39754         HAVE_ISNANF, don't define it as a C macro.
39755         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39756         HAVE_ISNAND, don't define it as a C macro.
39757         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39758         HAVE_ISNANL, don't define it as a C macro.
39759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39760         HAVE_ISNAN[FDL].
39761         * modules/isnanf (Files): Remove lib/isnanf.h.
39762         (Depends-on): Add math.
39763         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39764         (Include): Specify <math.h> instead of isnanf.h.
39765         * modules/isnand (Files): Remove lib/isnand.h.
39766         (Depends-on): Add math.
39767         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39768         (Include): Specify <math.h> instead of isnand.h.
39769         * modules/isnanl (Files): Remove lib/isnanl.h.
39770         (Depends-on): Add math.
39771         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39772         (Include): Specify <math.h> instead of isnanl.h.
39773         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39774         HAVE_ISNAN[FDL].
39775         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39776         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39777         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39778         * NEWS: Mention the change.
39779
39780 2008-10-18  Bruno Haible  <bruno@clisp.org>
39781
39782         Add getusershell(), setusershell(), endusershell() declarations to
39783         <unistd.h>.
39784         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39785         declarations.
39786         * lib/getusershell.c: Include unistd.h.
39787         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39788         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39789         HAVE_GETUSERSHELL.
39790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39791         and HAVE_GETUSERSHELL.
39792         * modules/getusershell (Depends-on): Add unistd, extensions.
39793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39794         (Include): Specify <unistd.h>.
39795         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39796         HAVE_GETUSERSHELL.
39797
39798 2008-10-18  Bruno Haible  <bruno@clisp.org>
39799
39800         Add a getloadavg() declaration to <stdlib.h>.
39801         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39802         getloadavg declaration.
39803         (getloadavg): New declaration.
39804         * lib/getloadavg.c: Include <stdlib.h> first.
39805         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39806         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39807         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39809         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39810         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39812         (Include): Specify <stdlib.h>.
39813         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39814         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39815
39816 2008-10-18  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/dirchownmod.c: Don't include lchmod.h.
39819
39820         Move the lchmod() declaration to <sys/stat.h>.
39821         * lib/lchmod.h: Remove file.
39822         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39823         (lchmod): New declaration, moved here from lib/lchown.h.
39824         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39825         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39827         and HAVE_LCHMOD.
39828         * modules/lchmod (Files): Remove lib/lchmod.h.
39829         (Depends-on): Add sys_stat, extensions.
39830         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39831         (Include): Specify <sys/stat.h> instead of lchmod.h.
39832         * modules/sys_stat (Depends-on): Add link-warning.
39833         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39834         definition of GL_LINK_WARNING.
39835         * NEWS: Mention the change.
39836
39837 2008-10-18  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/fchdir.c: Don't include dirfd.h.
39840         * lib/fts.c: Likewise.
39841         * lib/getcwd.c: Likewise.
39842         * lib/glob.c: Likewise.
39843
39844         Move the dirfd() declaration to <dirent.h>.
39845         * lib/dirfd.h: Remove file.
39846         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39847         (dirfd): New declaration.
39848         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39850         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39851         HAVE_DECL_DIRFD.
39852         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39853         HAVE_DECL_DIRFD.
39854         * modules/dirfd (Files): Remove lib/dirfd.h.
39855         (Depends-on): Add dirent, extensions.
39856         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39857         (Include): Specify <dirent.h> instead of dirfd.h.
39858         * modules/dirent (Depends-on): Add link-warning.
39859         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39860         definition of GL_LINK_WARNING.
39861         * NEWS: Mention the change.
39862
39863 2008-10-18  Bruno Haible  <bruno@clisp.org>
39864
39865         Move the euidaccess() declaration to <unistd.h>.
39866         * lib/euidaccess.h: Remove file.
39867         * lib/unistd.in.h (euidaccess): New declaration.
39868         * lib/euidaccess.c: Don't include euidaccess.h.
39869         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39870         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39872         and HAVE_EUIDACCESS.
39873         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39874         (Depends-on): Add unistd.
39875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39876         (Include): Specify <unistd.h> instead of euidaccess.h.
39877         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39878         HAVE_EUIDACCESS.
39879         * NEWS: Mention the change.
39880
39881 2008-10-18  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39884
39885         Move the getdomainname() declaration to <unistd.h>.
39886         * lib/getdomainname.h: Remove file.
39887         * lib/unistd.in.h (getdomainname): New declaration.
39888         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39889         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39890         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39891         HAVE_GETDOMAINNAME.
39892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39893         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39894         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39895         (Depends-on): Add unistd, extensions.
39896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39897         (Includes): Specify <unistd.h> instead of getdomainname.h.
39898         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39899         HAVE_GETDOMAINNAME.
39900         * NEWS: Mention the change.
39901
39902 2008-10-18  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/dirent: New file.
39905         * m4/dirent_h.m4: New file.
39906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39907         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39908         * modules/fchdir (Files): Remove lib/dirent.in.h.
39909         (Depends-on): Add dirent.
39910         (Makefile.am): Move rules to modules/dirent.
39911         * doc/posix-headers/dirent.texi: Mention the new module.
39912
39913 2008-10-18  Bruno Haible  <bruno@clisp.org>
39914
39915         Avoid -Wunused-parameter warnings in public gnulib header files.
39916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39917         macro.
39918         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39919
39920 2008-10-18  Bruno Haible  <bruno@clisp.org>
39921
39922         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39923         * doc/glibc-functions/error.texi: Mention the module 'error'.
39924         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39925         * doc/glibc-functions/getdomainname.texi: Mention the module
39926         'getdomainname'.
39927         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39928         * doc/glibc-functions/getpagesize.texi: Mention the module
39929         'getpagesize'.
39930         * doc/glibc-functions/getusershell.texi: Mention the module
39931         'getusershell'.
39932         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39933         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39934         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39935         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39936         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39937         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39938         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39939         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39940         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39941         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39942         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39943         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39944         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39945         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39946
39947 2008-10-17  Bruno Haible  <bruno@clisp.org>
39948
39949         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39950         HP-UX and IRIX, use -0.0L.
39951         * tests/test-ceill.c (minus_zero): Likewise.
39952         * tests/test-floorl.c (minus_zero): Likewise.
39953         * tests/test-frexpl.c (minus_zero): Likewise.
39954         * tests/test-isnan.c (minus_zerol): Likewise.
39955         * tests/test-isnanl.h (minus_zero): Likewise.
39956         * tests/test-ldexpl.c (minus_zero): Likewise.
39957         * tests/test-roundl.c (minus_zero): Likewise.
39958         * tests/test-signbit.c (minus_zerol): Likewise.
39959         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39960         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39961         * tests/test-truncl.c (minus_zero): Likewise.
39962         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39963         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39964         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39965         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39966
39967 2008-10-17  Bruno Haible  <bruno@clisp.org>
39968
39969         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39970         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39971         that it gets activated only for gcc >= 3.0.
39972         * lib/dirent.in.h: Likewise.
39973         * lib/errno.in.h: Likewise.
39974         * lib/fcntl.in.h: Likewise.
39975         * lib/float.in.h: Likewise.
39976         * lib/iconv.in.h: Likewise.
39977         * lib/inttypes.in.h: Likewise.
39978         * lib/locale.in.h: Likewise.
39979         * lib/math.in.h: Likewise.
39980         * lib/netdb.in.h: Likewise.
39981         * lib/netinet_in.in.h: Likewise.
39982         * lib/search.in.h: Likewise.
39983         * lib/signal.in.h: Likewise.
39984         * lib/spawn.in.h: Likewise.
39985         * lib/stdarg.in.h: Likewise.
39986         * lib/stdint.in.h: Likewise.
39987         * lib/stdio.in.h: Likewise.
39988         * lib/stdlib.in.h: Likewise.
39989         * lib/string.in.h: Likewise.
39990         * lib/strings.in.h: Likewise.
39991         * lib/sys_file.in.h: Likewise.
39992         * lib/sys_ioctl.in.h: Likewise.
39993         * lib/sys_select.in.h: Likewise.
39994         * lib/sys_socket.in.h: Likewise.
39995         * lib/sys_stat.in.h: Likewise.
39996         * lib/sys_time.in.h: Likewise.
39997         * lib/sysexits.in.h: Likewise.
39998         * lib/time.in.h: Likewise.
39999         * lib/unistd.in.h: Likewise.
40000         * lib/wchar.in.h: Likewise.
40001         * lib/wctype.in.h: Likewise.
40002         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40003
40004 2008-10-17  Jim Meyering  <meyering@redhat.com>
40005
40006         ignore-value: don't depend on inline module
40007         * modules/ignore-value (Depends-on): Remove 'inline'.
40008         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40009         Suggestion from Bruno Haible.
40010
40011 2008-10-17  Bruno Haible  <bruno@clisp.org>
40012
40013         New implementation of condition variables for Win32.
40014         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40015         (gl_linked_waitqueue_t): New type.
40016         (gl_cond_t): Use it.
40017         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40018         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40019         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40020         (glthread_cond_init_func, glthread_cond_wait_func,
40021         glthread_cond_timedwait_func, glthread_cond_signal_func,
40022         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40023         Reimplemented on the basis of gl_linked_waitqueue_t.
40024         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40025         gl_waitqueue_t.
40026         (gl_rwlock_t): Update.
40027         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40028
40029 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40030
40031         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40032         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40033
40034 2008-10-17  Jim Meyering  <meyering@redhat.com>
40035
40036         ignore-value: new module
40037         * modules/ignore-value: New file.
40038         * lib/ignore-value.h: New file.
40039         * MODULES.html.sh (Compiler warning management): New section,
40040         just for this module.  More to come.
40041
40042 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40043
40044         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40045         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40046         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40047
40048 2008-10-16  Jim Meyering  <meyering@redhat.com>
40049
40050         openat-die.c: avoid 'no previous prototype' warning
40051         * lib/openat-die.c: Include "openat.h".
40052         Reported by Reuben Thomas <rrt@sc3d.org>.
40053
40054 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40055
40056         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40057         * lib/netdb.in.h: Fix typo.
40058         Reported by Bruno Haible  <bruno@clisp.org>
40059
40060         * lib/netdb.in.h: Include sys/socket.h for platforms without
40061         netdb.h, to get structures like hostent on MinGW.
40062         * modules/netdb (Depends-on): Add sys_socket.
40063
40064 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40065
40066         * modules/netdb, modules/netdb-tests: New file.
40067         * m4/netdb_h.m4: New file.
40068         * lib/netdb.in.h: Add, currently just an empty file pending
40069         definitions.
40070         * tests/test-netdb.c: New file.
40071         * doc/posix-headers/netdb.texi: Mention that we replace it if
40072         needed.
40073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40074         netdb.
40075
40076 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40077
40078         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40079         with code.
40080
40081 2008-10-13  Bruno Haible  <bruno@clisp.org>
40082
40083         * lib/glthread/cond.c (glthread_cond_wait_func,
40084         glthread_cond_timedwait_func): Add a comment.
40085
40086 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40087
40088         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40089         * tests/test-select.c: Likewise,
40090
40091 2008-10-13  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/glthread/cond.c (glthread_cond_wait_func,
40094         glthread_cond_timedwait_func): Fix variable name.
40095         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40096
40097 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40098
40099         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40101         struct sockaddr.sa_len.
40102         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40103
40104 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40105
40106         * build-aux/pmccabe2html: Add css and css_url parameters.
40107
40108 2008-10-12  Bruno Haible  <bruno@clisp.org>
40109
40110         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40111         calling aclx_get.
40112         Reported by Rainer Tammer <tammer@tammer.net>.
40113
40114 2008-10-12  Bruno Haible  <bruno@clisp.org>
40115
40116         Use msvcrt aware primitives for creation/termination of Win32 threads.
40117         * lib/glthread/thread.c: Include <process.h>.
40118         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40119         (wrapper_func): Update signature.
40120         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40121
40122 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40123             Bruno Haible  <bruno@clisp.org>
40124
40125         Provide a Win32 implementation of the 'cond' module.
40126         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40127         * lib/glthread/cond.c (glthread_cond_init_func,
40128         glthread_cond_wait_func, glthread_cond_timedwait_func,
40129         glthread_cond_signal_func, glthread_cond_broadcast_func,
40130         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40131         * modules/cond (Dependencies): Add gettimeofday.
40132
40133 2008-10-11  Bruno Haible  <bruno@clisp.org>
40134
40135         Make sleep work on older versions of mingw.
40136         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40137         only whether it exists.
40138         * doc/posix-functions/sleep.texi: Mention the problem with older
40139         versions of mingw.
40140
40141 2008-10-11  Bruno Haible  <bruno@clisp.org>
40142
40143         New module 'shutdown'.
40144         * modules/shutdown: New file.
40145         * lib/sys_socket.in.h (shutdown): New declaration.
40146         * lib/winsock.c (shutdown): New function.
40147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40148         GNULIB_SHUTDOWN.
40149         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40150         * doc/posix-functions/shutdown.texi: Document the new module.
40151
40152 2008-10-11  Jim Meyering  <meyering@redhat.com>
40153
40154         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40155
40156 2008-10-11  Bruno Haible  <bruno@clisp.org>
40157
40158         New module 'fclose'.
40159         * modules/fclose: New file.
40160         * lib/stdio.in.h (fclose): New declaration.
40161         * lib/fclose.c: New file.
40162         * m4/fclose.m4: New file.
40163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40164         REPLACE_FCLOSE.
40165         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40166         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40167         REPLACE_FCLOSE.
40168         * modules/close (Depends-on): fclose.
40169         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40170
40171 2008-10-11  Bruno Haible  <bruno@clisp.org>
40172
40173         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40174         set errno and don't call _close.
40175
40176 2008-10-10  Bruno Haible  <bruno@clisp.org>
40177
40178         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40179         ACL, not afterwards. Fixes test failure on Cygwin.
40180
40181 2008-10-09  Ben Pfaff  <blp@gnu.org>
40182
40183         * build-aux/announce-gen: Fix gnulib version related part of usage
40184         message.  Die with a useful error message if no tarballs are
40185         found.
40186
40187 2008-10-10  Jim Meyering  <meyering@redhat.com>
40188
40189         bootstrap: use git's --depth=N option only if it's supported
40190         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40191         recognize the --depth option.  Reported by Pádraig Brady.
40192
40193 2008-10-09  Bruno Haible  <bruno@clisp.org>
40194
40195         New module 'ioctl'.
40196         * modules/ioctl: New file.
40197         * lib/sys_socket.in.h (ioctl): Remove declaration.
40198         * lib/winsock.c: Include <sys/ioctl.h>.
40199         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40200         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40201         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40202         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40203         * doc/posix-functions/ioctl.texi: Mention the new module.
40204
40205 2008-10-09  Bruno Haible  <bruno@clisp.org>
40206
40207         New module 'sys_ioctl'.
40208         * lib/sys_ioctl.in.h: New file.
40209         * m4/sys_ioctl_h.m4: New file.
40210         * modules/sys_ioctl: New file.
40211         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40212
40213 2008-10-09  Bruno Haible  <bruno@clisp.org>
40214
40215         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40216         * lib/winsock.c: Include <stdarg.h>.
40217         (rpl_ioctl): Change to second argument 'int' and then varargs.
40218
40219 2008-10-09  Bruno Haible  <bruno@clisp.org>
40220
40221         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40222         when the sys_socket module is present and the system has <winsock2.h>.
40223
40224 2008-10-09  Bruno Haible  <bruno@clisp.org>
40225
40226         * doc/posix-functions/close.texi: Mention module 'close' instead of
40227         module 'sys_socket'.
40228
40229 2008-10-09  Bruno Haible  <bruno@clisp.org>
40230
40231         * doc/glibc-headers/sys_ioctl.texi: New file.
40232         * doc/gnulib.texi: Include it.
40233
40234 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40235             Bruno Haible  <bruno@clisp.org>
40236
40237         Combine the two replacements of 'close'.
40238         * lib/sys_socket.in.h (close): Define to a reminder to include
40239         <unistd.h>.
40240         (_gl_close_fd_maybe_socket): New declaration.
40241         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40242         * lib/winsock.c (close): Remove undefinition.
40243         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40244         needed for the gnulib module 'close'.
40245         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40246         define to an error symbol or to a warning, if suitable.
40247         * lib/close.c: Include <sys/socket.h>.
40248         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40249         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40250         UNISTD_H_HAVE_WINSOCK2_H.
40251         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40253         UNISTD_H_HAVE_WINSOCK2_H.
40254         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40255         (configure.ac): Set a module indicator.
40256         (Makefile.am): Substitute GNULIB_CLOSE.
40257         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40258         * modules/poll-tests (Depends-on): Add close.
40259         * modules/select-tests (Depends-on): Likewise.
40260
40261 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40262             Bruno Haible  <bruno@clisp.org>
40263
40264         New module 'close'.
40265         * modules/close: New file.
40266         * lib/unistd.in.h (close): Move declaration out of the
40267         FCHDIR_REPLACEMENT scope.
40268         (_gl_unregister_fd): New declaration.
40269         * lib/close.c: New file.
40270         * lib/fchdir.c (rpl_close): Remove function.
40271         * m4/close.m4: New file.
40272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40273         close.
40274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40275         REPLACE_CLOSE.
40276         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40277         REPLACE_CLOSE.
40278         * modules/fchdir (Depends-on): Add close.
40279
40280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40281             Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/fcntl.in.h (open): Simplify conditionals.
40284         (_gl_register_fd): New declaration.
40285         * lib/fchdir.c (rpl_open): Remove function.
40286         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40287         also.
40288         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40290         open.
40291
40292 2008-10-09  Jim Meyering  <meyering@redhat.com>
40293
40294         GNUmakefile: use the more name-space-friendly "_version"
40295         * top/GNUmakefile (_dummy): Update.
40296         (_version): Rename from "version".
40297
40298 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40299             Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40302         rpl_close.
40303         (_gl_register_fd): New function, extracted from rpl_open.
40304         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40305         (rpl_open, rpl_opendir): Use _gl_register_fd.
40306
40307 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40308
40309         Fix organization of 'open' replacement.
40310         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40311         (gl_FUNC_OPEN): Use it.
40312         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40313
40314 2008-10-08  Bruno Haible  <bruno@clisp.org>
40315
40316         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40317
40318 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40319
40320         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40321         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40322         listen).
40323
40324 2008-10-08  Eric Blake  <ebb9@byu.net>
40325
40326         GNUmakefile: add 'make version' target
40327         * top/GNUmakefile (_curr-ver): Split version update rules...
40328         (version): ...into a target.
40329
40330 2008-10-07  Bruno Haible  <bruno@clisp.org>
40331
40332         Use a more portable replacement expression for -0.0L.
40333         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40334         instead of -0.0L. Fix m4 quotation.
40335
40336         * tests/test-signbit.c: Include <float.h>.
40337         (minus_zero): New variable.
40338         (test_signbitl): Use minus_zero instead of -zero.
40339         * modules/signbit-tests (Depends-on): Add float.
40340
40341         * tests/test-ceill.c: Include <float.h>.
40342         (zero): Remove variable.
40343         (minus_zero): New variable.
40344         (main): Use minus_zero instead of -zero.
40345         * modules/ceill-tests (Depends-on): Add float.
40346
40347         * tests/test-floorl.c: Include <float.h>.
40348         (zero): Remove variable.
40349         (minus_zero): New variable.
40350         (main): Use minus_zero instead of -zero.
40351         * modules/floorl-tests (Depends-on): Add float.
40352
40353         * tests/test-roundl.c: Include <float.h>.
40354         (zero): Remove variable.
40355         (minus_zero): New variable.
40356         (main): Use minus_zero instead of -zero.
40357         * modules/roundl-tests (Depends-on): Add float.
40358
40359         * tests/test-truncl.c: Include <float.h>.
40360         (zero): Remove variable.
40361         (minus_zero): New variable.
40362         (main): Use minus_zero instead of -zero.
40363         * modules/truncl-tests (Depends-on): Add float.
40364
40365         * tests/test-frexpl.c (zero): Remove variable.
40366         (minus_zero): New variable.
40367         (main): Use minus_zero instead of -zero.
40368         * modules/frexpl-tests (Depends-on): Add float.
40369
40370         * tests/test-isnan.c (zerol): Remove variable.
40371         (minus_zerol): New variable.
40372         (test_long_double): Use minus_zerol instead of -zerol.
40373         * modules/isnan-tests (Depends-on): Add float.
40374
40375         * tests/test-isnanl.h (zero): Remove variable.
40376         (minus_zero): New variable.
40377         (main): Use minus_zero instead of -zero.
40378         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40379         * modules/isnanl-tests (Depends-on): Add float.
40380
40381         * tests/test-ldexpl.c (zero): Remove variable.
40382         (minus_zero): New variable.
40383         (main): Use minus_zero instead of -zero.
40384         * modules/ldexpl-tests (Depends-on): Add float.
40385
40386         * tests/test-snprintf-posix.h (zerol): Remove variable.
40387         (minus_zerol): New variable.
40388         (test_function): Use minus_zerol instead of -zerol.
40389         * modules/snprintf-posix-tests (Depends-on): Add float.
40390         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40391
40392         * tests/test-sprintf-posix.h (zerol): Remove variable.
40393         (minus_zerol): New variable.
40394         (test_function): Use minus_zerol instead of -zerol.
40395         * modules/sprintf-posix-tests (Depends-on): Add float.
40396         * modules/vsprintf-posix-tests (Depends-on): Add float.
40397
40398         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40399         (minus_zerol): New variable.
40400         (test_function): Use minus_zerol instead of -zerol.
40401         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40402
40403         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40404         (minus_zerol): New variable.
40405         (test_function): Use minus_zerol instead of -zerol.
40406         * modules/vasprintf-posix-tests (Depends-on): Add float.
40407
40408 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40409
40410         * MODULES.html.sh (Support for building documentation): Mention
40411         pmccabe2html.  Sort entries.
40412
40413         Add pmccabe2html module, from gnupdf.
40414         * build-aux/pmccabe.css: New file.
40415         * build-aux/pmccabe2html: New file.
40416         * m4/pmccabe2html.m4: New file.
40417         * modules/pmccabe2html: New file.
40418
40419 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40420
40421         flock: new module
40422         * MODULES.html.sh: Add to list of modules.
40423         * lib/flock.c: flock implementation for Windows and Unix systems
40424         which have fcntl.
40425         * doc/glibc-functions/flock.texi: Update documentation.
40426         * lib/sys_file.in.h: <sys/file.h> header file.
40427         * m4/flock.m4: M4 macros.
40428         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40429         * modules/flock: flock module.
40430         * modules/flock-tests: flock tests module.
40431         * modules/sys_file: sys/file.h module.
40432         * tests/test-flock.c: test suite for flock.
40433
40434 2008-10-06  Jim Meyering  <meyering@redhat.com>
40435
40436         bootstrap: check for LT_INIT more portably still ;-)
40437         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40438         Spotted by Bruno Haible.
40439
40440 2008-10-06  Eric Blake  <ebb9@byu.net>
40441
40442         test-signbit: avoid tripping Irix cc bug on -0.0L
40443         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40444         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40445         entire testsuite consistent and avoids an Irix 6.2 bug.
40446
40447 2008-10-05  Bruno Haible  <bruno@clisp.org>
40448             Jim Meyering  <jim@meyering.net>
40449
40450         Add an option for ignoring EPIPE during close_stdout.
40451         * lib/closeout.h: Include <stdbool.h>.
40452         (close_stdout_set_ignore_EPIPE): New declaration.
40453         * lib/closeout.c: Include <stdbool.h>.
40454         (ignore_EPIPE): New variable.
40455         (close_stdout_set_ignore_EPIPE): New function.
40456         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40457         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40458         failure.
40459         * modules/closeout (Depends-on): Add stdbool.
40460
40461 2008-10-05  Bruno Haible  <bruno@clisp.org>
40462
40463         * modules/accept: New file.
40464         * modules/bind: New file.
40465         * modules/connect: New file.
40466         * modules/getpeername: New file.
40467         * modules/getsockname: New file.
40468         * modules/getsockopt: New file.
40469         * modules/listen: New file.
40470         * modules/recv: New file.
40471         * modules/recvfrom: New file.
40472         * modules/send: New file.
40473         * modules/sendto: New file.
40474         * modules/setsockopt: New file.
40475         * modules/socket: New file.
40476         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40477         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40478         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40479         the particular module is requested. Add a link warning when the
40480         particular module is not requested.
40481         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40482         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40483         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40484         the particular module is requested.
40485         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40486         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40487         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40488         * modules/sys_socket (Depends-on): Add link-warning.
40489         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40490         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40491         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40492         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40493         GL_LINK_WARNING.
40494         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40495         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40496         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40497         * doc/posix-functions/getpeername.texi: Mention the new module
40498         'getpeername'.
40499         * doc/posix-functions/getsockname.texi: Mention the new module
40500         'getsockname'.
40501         * doc/posix-functions/getsockopt.texi: Mention the new module
40502         'getsockopt'.
40503         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40504         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40505         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40506         * doc/posix-functions/send.texi: Mention the new module 'send'.
40507         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40508         * doc/posix-functions/setsockopt.texi: Mention the new module
40509         'setsockopt'.
40510         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40511         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40512         listen, connect, accept.
40513         * modules/select-tests (Depends-on): Likewise.
40514
40515 2008-10-05  Bruno Haible  <bruno@clisp.org>
40516
40517         * lib/winsock.c (strerror): Remove unused #undef.
40518         (rpl_close): Remove unused local variable.
40519
40520         * modules/sys_socket (Depends-on); Add errno.
40521
40522 2008-10-05  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40525         (select): Add a link warning when the 'select' module is not used.
40526         * modules/sys_select (Depends-on): Add link-warning.
40527         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40528         Suggested by Paolo Bonzini.
40529
40530 2008-10-05  Jim Meyering  <meyering@redhat.com>
40531
40532         bootstrap: check for LT_INIT more portably
40533         * build-aux/bootstrap: Avoid using grep -E, since it's not
40534         portable enough.  Suggestion from Bruno Haible.
40535
40536 2008-10-05  Bruno Haible  <bruno@clisp.org>
40537
40538         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40539         as being fixed by gnulib.
40540
40541 2008-10-05  Bruno Haible  <bruno@clisp.org>
40542
40543         * modules/select-tests: New file, mostly copied from
40544         modules/sys_select-tests.
40545         * tests/test-select.c: New file, mostly copied from
40546         tests/test-sys_select.c.
40547         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40548         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40549         (Makefile.am): Remove test_sys_select_LDADD.
40550
40551         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40552         to an undefined symbol, for an error message.
40553         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40554         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40555         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40556         winsock-select.c here.
40557         * modules/sys_select (Files): Remove lib/winsock-select.c.
40558         (Depends-on): Remove alloca.
40559         (Makefile.am): Substitute GNULIB_SELECT.
40560         * modules/select: New file.
40561         * doc/posix-functions/select.texi: Update.
40562
40563 2008-10-05  Bruno Haible  <bruno@clisp.org>
40564
40565         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40566         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40567         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40568         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40569         getdtablesize.
40570         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40571         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40572
40573 2008-10-05  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/getdtablesize-tests: New file.
40576         * tests/test-getdtablesize.c: New file.
40577
40578         New module 'getdtablesize'.
40579         * lib/unistd.in.h (getdtablesize): New declaration.
40580         * lib/getdtablesize.c: New file.
40581         * m4/getdtablesize.m4: New file.
40582         * modules/getdtablesize: New file.
40583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40584         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40585         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40586         HAVE_GETDTABLESIZE.
40587         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40588
40589 2008-10-05  Bruno Haible  <bruno@clisp.org>
40590
40591         * modules/sched (Makefile.am): Fix typo.
40592         Reported by Simon Josefsson.
40593
40594 2008-10-05  Jim Meyering  <meyering@redhat.com>
40595
40596         bootstrap: check for LT_INIT, too
40597         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40598         are deprecated.  Suggestion from Ralf Wildenhues.
40599
40600 2008-10-05  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40603         overriding them by ours.
40604         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40605
40606 2008-10-05  Jim Meyering  <meyering@redhat.com>
40607
40608         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40609         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40610         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40611
40612 2008-10-04  Bruno Haible  <bruno@clisp.org>
40613
40614         * modules/dup2 (License): Change to LGPLv2+.
40615         * modules/sleep (License): Likewise.
40616         * modules/perror (License): Likewise.
40617         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40618         Blake.
40619         * modules/signal (License): Likewise.
40620         * modules/sigprocmask (License): Likewise.
40621         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40622         Meyering.
40623
40624 2008-10-04  Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40627         Reported by Rainer Tammer <tammer@tammer.net>.
40628
40629 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40630             Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40633         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40634         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40635
40636 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40637
40638         filevercmp: new module
40639         * lib/filevercmp.h: New function filevercmp comparing version strings.
40640         * lib/filevercmp.c: Implementation of filevercmp function.
40641         * modules/filevercmp: Module metadata.
40642         * tests/test-filevercmp.c: Unit test for new module.
40643         * modules/filevercmp-tests: Unit test metadata.
40644         * MODULES.html.sh: Add filevercmp module.
40645
40646 2008-10-03  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/c-ctype.h: Add comment.
40649         Reported by Jim Meyering.
40650
40651 2008-10-02  Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40654
40655 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40656
40657         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40658         name of bootstrap.conf accordingly.
40659
40660 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40661
40662         * build-aux/bootstrap: Install git-merge-changelog configuration
40663         items into .gitconfig if needed.
40664
40665 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40666
40667         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40668         git repository, and initialize/update it accordingly.
40669
40670 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40671
40672         * modules/fsync-tests: New file.
40673         * tests/test-fsync.c: New file.
40674
40675         New module 'fsync'.
40676         * lib/fsync.c: New file.
40677         * m4/fsync.m4: New file.
40678         * modules/fsync: New file.
40679         * lib/unistd.in.h (fsync): New declaration.
40680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40681         GNULIB_FSYNC and HAVE_FSYNC.
40682         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40683         * MODULES.html.sh (posix_functions): Add fsync.
40684         * doc/posix-functions/fsync.texi: Mention the new module.
40685
40686 2008-10-02  Jim Meyering  <meyering@redhat.com>
40687
40688         fts.c: sync with similar code from coreutils' remove.c
40689         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40690         Guard also with "#if defined __linux__", since for now at least,
40691         this code is Linux-kernel-specific.
40692
40693 2008-10-02  Jim Meyering  <meyering@redhat.com>
40694
40695         fts: bug fixes
40696         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40697         Include <sys/vfs.h>, not <sys/statfs.h>.
40698
40699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40700         Include <sys/vfs.h>, not <sys/statfs.h>.
40701
40702 2008-10-01  Bruno Haible  <bruno@clisp.org>
40703
40704         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40705         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40706         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40707         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40708         * doc/posix-functions/posix_spawnp.texi: Likewise.
40709         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40710         whether posix_spawn actually works.
40711         * m4/pipe.m4 (gl_PIPE): Likewise.
40712         * modules/execute (Files): Add m4/posix_spawn.m4.
40713         * modules/pipe (Files): Add m4/posix_spawn.m4.
40714         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40715
40716 2008-10-01  Jim Meyering  <meyering@redhat.com>
40717
40718         remove trailing spaces
40719         * NEWS: Likewise.
40720         * lib/poll.c (poll): Likewise.
40721         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40722         * lib/winsock.c (rpl_close): Likewise.
40723         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40724         * modules/yield: Likewise.
40725         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40726         * tests/test-sys_select.c (connect_to_socket): Likewise.
40727
40728         fts.c: adjust a new interface to be more generally useful
40729         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40730         (fts_build): Adjust caller.
40731
40732 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40733
40734         * modules/cond-tests: New file.
40735         * tests/test-cond.c: New file.
40736
40737 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40738             Bruno Haible  <bruno@clisp.org>
40739
40740         * modules/cond (Dependencies): Add errno, time.
40741         * lib/glthread/cond.h: Include <time.h>.
40742         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40743         across platforms.
40744
40745 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40746             Bruno Haible  <bruno@clisp.org>
40747
40748         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40749
40750 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40751             Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/tls-tests (Depends-on): Add thread, yield.
40754         (configure.ac): Remove all checks.
40755         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40756         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40757         gl_thread_self): Remove definitions. Include glthread/thread.h and
40758         glthread/yield.h instead.
40759         (test_tls): Pass an additional NULL argument to gl_thread_join.
40760
40761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40762             Bruno Haible  <bruno@clisp.org>
40763
40764         * modules/lock-tests (Depends-on): Add thread, yield.
40765         (configure.ac): Remove all checks.
40766         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40767         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40768         gl_thread_self): Remove definitions. Include glthread/thread.h and
40769         glthread/yield.h instead.
40770         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40771         additional NULL argument to gl_thread_join.
40772
40773 2008-09-30  Bruno Haible  <bruno@clisp.org>
40774
40775         Fix the Win32 implementation of the 'thread' module.
40776         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40777         pointer type.
40778         (gl_thread_self): Invoke gl_thread_self_func.
40779         (gl_thread_self_func): New declaration.
40780         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40781         (do_init_self_key, init_self_key): New functions.
40782         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40783         Remove some fields.
40784         (running_threads, running_lock): Remove variables.
40785         (get_current_thread_handle): New function.
40786         (gl_thread_self_func, wrapper_func, glthread_create_func,
40787         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40788         simplified.
40789
40790 2008-09-30  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40793         files.
40794
40795 2008-09-30  Jim Meyering  <meyering@redhat.com>
40796
40797         fts.m4: correct the test for statfs.f_type
40798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40799         when checking for statfs.f_type.
40800
40801 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40802
40803         tests: avoid some compiler warnings
40804         * tests/test-memchr.c (main): Pass NULL indirectly.
40805         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40806
40807 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40808
40809         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40810         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40811         exactly specified dayshifts.
40812         (dayshift): New rule.
40813         (rel): Add dayshift.
40814         (relative_time_table) [tomorrow, yesterday, today, now]:
40815         Use tDAY_SHIFT in place of tDAY_UNIT.
40816         * tests/test-getdate.c: Add tests for now-disallowed countable
40817         dayshifts, e.g., "4 yesterday ago".
40818
40819 2008-09-29  Bruno Haible  <bruno@clisp.org>
40820
40821         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40822         * tests/test-posix_spawn1.in.sh: Renamed from
40823         tests/test-posix_spawn.in.sh.
40824         * tests/test-posix_spawn2.c: New file.
40825         * tests/test-posix_spawn2.in.sh: New file.
40826         * modules/posix_spawnp-tests (Files): Update.
40827         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40828
40829 2008-09-29  Bruno Haible  <bruno@clisp.org>
40830
40831         Propagate effects of putenv/setenv/unsetenv to child processes.
40832         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40833         * lib/pipe.c (create_pipe): Likewise.
40834
40835 2008-09-29  Bruno Haible  <bruno@clisp.org>
40836
40837         Enable use of shell scripts as executables in mingw.
40838         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40839         run the program as a shell script.
40840         * lib/pipe.c (create_pipe): Likewise.
40841         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40842         resulting array.
40843
40844 2008-09-29  Eric Blake  <ebb9@byu.net>
40845
40846         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40847
40848 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40849
40850         * doc/posix-functions/accept.texi: Update mingw problems.
40851         * doc/posix-functions/bind.texi: Update mingw problems.
40852         * doc/posix-functions/close.texi: Update mingw problems.
40853         * doc/posix-functions/connect.texi: Update mingw problems.
40854         * doc/posix-functions/getpeername.texi: Update mingw problems.
40855         * doc/posix-functions/getsockname.texi: Update mingw problems.
40856         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40857         * doc/posix-functions/ioctl.texi: Update mingw problems.
40858         * doc/posix-functions/listen.texi: Update mingw problems.
40859         * doc/posix-functions/recv.texi: Update mingw problems.
40860         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40861         * doc/posix-functions/select.texi: Update mingw problems.
40862         * doc/posix-functions/send.texi: Update mingw problems.
40863         * doc/posix-functions/sendto.texi: Update mingw problems.
40864         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40865         * doc/posix-functions/socket.texi: Update mingw problems.
40866
40867 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40868             Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/sys_select.in.h: Include sys/time.h.
40871         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40872         * modules/sys_select: Depend on sys_time.
40873         * tests/test-sys_select.c: Test that sys/select.h defines struct
40874         timeval fully.
40875
40876 2008-09-29  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40879         * lib/sys_select.in.h: Likewise.
40880
40881 2008-09-29  Bruno Haible  <bruno@clisp.org>
40882
40883         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40884
40885 2008-09-29  Bruno Haible  <bruno@clisp.org>
40886
40887         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40888         Set LIBSOCKET instead of augmenting LIBS.
40889         * modules/sockets (Link): New section.
40890         * modules/sockets-tests (test_sockets_LDADD): New variable.
40891         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40892         * modules/poll-tests (test_poll_LDADD): New variable.
40893         * NEWS: Document the change.
40894
40895 2008-09-29  Bruno Haible  <bruno@clisp.org>
40896
40897         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40898         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40899         ARPA_INET_H directly.
40900         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40901
40902 2008-09-28  Bruno Haible  <bruno@clisp.org>
40903
40904         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40905         from gl_HEADER_SYS_SOCKET.
40906         (gl_HEADER_SYS_SOCKET): Invoke it.
40907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40908
40909 2008-09-28  Bruno Haible  <bruno@clisp.org>
40910
40911         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40912         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40913         Needed on OSF/1 4.0.
40914
40915 2008-09-28  Bruno Haible  <bruno@clisp.org>
40916
40917         Override open more carefully.
40918         * lib/open.c (orig_open): New function.
40919         (rpl_open): Use orig_open instead of open.
40920         * lib/fcntl.in.h: Add special invocation convention.
40921         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40922         (gl_FUNC_OPEN): Invoke it.
40923
40924         Override freopen more carefully.
40925         * lib/freopen.c (orig_freopen): New function.
40926         (rpl_freopen): Use orig_freopen instead of freopen.
40927         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40928         (gl_FUNC_FREOPEN): Invoke it.
40929
40930         Override fopen more carefully.
40931         * lib/fopen.c (orig_fopen): New function.
40932         (rpl_fopen): Use orig_fopen instead of fopen.
40933         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40934         (gl_FUNC_FOPEN): Invoke it.
40935         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40936
40937 2008-09-28  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40940         SIGPIPE.
40941
40942 2008-09-28  Bruno Haible  <bruno@clisp.org>
40943
40944         * tests/test-sigaction.c (handler, main): Disable the check whether
40945         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40946         glibc systems with LinuxThreads.
40947
40948 2008-09-28  Bruno Haible  <bruno@clisp.org>
40949
40950         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40951
40952         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40953         with AIX xlc.
40954         * lib/fcntl.in.h (open): Likewise.
40955         Reported by Rainer Tammer <tammer@tammer.net>.
40956
40957 2008-09-28  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/posix_spawnp-tests: New file.
40960         * tests/test-posix_spawn.c: New file.
40961         * tests/test-posix_spawn.in.sh: New file.
40962
40963         New module 'posix_spawnp'.
40964         * modules/posix_spawnp: New file.
40965         * lib/spawnp.c: New file, from GNU libc with modifications.
40966         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40967
40968         New module 'posix_spawn'.
40969         * modules/posix_spawn: New file.
40970         * lib/spawn.c: New file, from GNU libc with modifications.
40971         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40972
40973         New module 'posix_spawnattr_destroy'.
40974         * modules/posix_spawnattr_destroy: New file.
40975         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40976         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40977         module.
40978
40979         New module 'posix_spawnattr_setsigmask'.
40980         * modules/posix_spawnattr_setsigmask: New file.
40981         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40982         modifications.
40983         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40984         new module.
40985
40986         New module 'posix_spawnattr_getsigmask'.
40987         * modules/posix_spawnattr_getsigmask: New file.
40988         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40989         modifications.
40990         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40991         new module.
40992
40993         New module 'posix_spawnattr_setsigdefault'.
40994         * modules/posix_spawnattr_setsigdefault: New file.
40995         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40996         modifications.
40997         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40998         new module.
40999
41000         New module 'posix_spawnattr_getsigdefault'.
41001         * modules/posix_spawnattr_getsigdefault: New file.
41002         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41003         modifications.
41004         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41005         new module.
41006
41007         New module 'posix_spawnattr_setschedpolicy'.
41008         * modules/posix_spawnattr_setschedpolicy: New file.
41009         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41010         modifications.
41011         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41012         new module.
41013
41014         New module 'posix_spawnattr_getschedpolicy'.
41015         * modules/posix_spawnattr_getschedpolicy: New file.
41016         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41017         modifications.
41018         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41019         new module.
41020
41021         New module 'posix_spawnattr_setschedparam'.
41022         * modules/posix_spawnattr_setschedparam: New file.
41023         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41024         modifications.
41025         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41026         new module.
41027
41028         New module 'posix_spawnattr_getschedparam'.
41029         * modules/posix_spawnattr_getschedparam: New file.
41030         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41031         modifications.
41032         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41033         new module.
41034
41035         New module 'posix_spawnattr_setpgroup'.
41036         * modules/posix_spawnattr_setpgroup: New file.
41037         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41038         modifications.
41039         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41040         module.
41041
41042         New module 'posix_spawnattr_getpgroup'.
41043         * modules/posix_spawnattr_getpgroup: New file.
41044         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41045         modifications.
41046         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41047         module.
41048
41049         New module 'posix_spawnattr_setflags'.
41050         * modules/posix_spawnattr_setflags: New file.
41051         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41052         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41053         module.
41054
41055         New module 'posix_spawnattr_getflags'.
41056         * modules/posix_spawnattr_getflags: New file.
41057         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41058         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41059         module.
41060
41061         New module 'posix_spawnattr_init'.
41062         * modules/posix_spawnattr_init: New file.
41063         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41064         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41065         module.
41066
41067         New module 'posix_spawn_file_actions_destroy'.
41068         * modules/posix_spawn_file_actions_destroy: New file.
41069         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41070         modifications.
41071         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41072         the new module.
41073
41074         New module 'posix_spawn_file_actions_addopen'.
41075         * modules/posix_spawn_file_actions_addopen: New file.
41076         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41077         modifications.
41078         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41079         the new module.
41080
41081         New module 'posix_spawn_file_actions_adddup2'.
41082         * modules/posix_spawn_file_actions_adddup2: New file.
41083         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41084         modifications.
41085         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41086         the new module.
41087
41088         New module 'posix_spawn_file_actions_addclose'.
41089         * modules/posix_spawn_file_actions_addclose: New file.
41090         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41091         modifications.
41092         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41093         the new module.
41094
41095         New module 'posix_spawn_file_actions_init'.
41096         * modules/posix_spawn_file_actions_init: New file.
41097         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41098         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41099         new module.
41100
41101         New module 'posix_spawn-internal'.
41102         * modules/posix_spawn-internal: New file.
41103         * lib/spawn_int.h: New file, from GNU libc with modifications.
41104         * lib/spawni.c: New file, from GNU libc with modifications.
41105         * m4/posix_spawn.m4: New file.
41106
41107         New module 'spawn'.
41108         * modules/spawn: New file.
41109         * lib/spawn.in.h: New file, from GNU libc with modifications.
41110         * m4/spawn_h.m4: New file.
41111         * doc/posix-headers/spawn.texi: Mention the new module.
41112
41113 2008-09-28  Bruno Haible  <bruno@clisp.org>
41114
41115         * modules/sched-tests: New file.
41116         * tests/test-sched.c: New file.
41117
41118         New module 'sched'.
41119         * modules/sched: New file.
41120         * lib/sched.in.h: New file.
41121         * m4/sched_h.m4: New file.
41122         * doc/posix-headers/sched.texi: Mention the new module.
41123
41124 2008-09-27  Eric Blake  <ebb9@byu.net>
41125
41126         Fix previous patch, and tweak references to $0.
41127         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41128         (func_version, func_gnulib_dir): Don't call this program
41129         gnulib-tool.
41130         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41131         with using $0 in function.
41132         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41133         (func_fatal_error): Reuse the name the user invoked us with.
41134
41135 2008-09-27  Bruno Haible  <bruno@clisp.org>
41136
41137         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41138         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41139         (gl_ICONV_H): Not here.
41140         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41141         instead of assigning ICONV_H directly.
41142
41143         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41145         WCHAR_H directly.
41146
41147 2008-09-27  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41150         * modules/arpa_inet (Depends-on): Add link-warning.
41151         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41152         * modules/unistd (Makefile.am): Likewise.
41153
41154 2008-09-26  Bruno Haible  <bruno@clisp.org>
41155
41156         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41157         variables.
41158         (func_version): Essentially copied from gnulib-tool.
41159         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41160         func_readlink): Copied from gnulib-tool.
41161
41162 2008-09-26  Bruno Haible  <bruno@clisp.org>
41163
41164         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41165         invoking git-version-gen.
41166
41167 2008-09-26  Bruno Haible  <bruno@clisp.org>
41168
41169         * posix-modules: Update to directory names changed on 2008-01-19.
41170         Remove commas in output before splitting into words. No more need to
41171         avoid 'ftruncate' since 2007-02-19.
41172
41173 2008-09-26  Bruno Haible  <bruno@clisp.org>
41174
41175         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41176
41177 2008-09-26  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41180         * modules/fwriteerror (Depends-on): Add errno.
41181
41182 2008-09-26  Bruno Haible  <bruno@clisp.org>
41183
41184         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41185         * tests/test-vc-list-files-cvs.sh: Likewise.
41186
41187 2008-09-26  Bruno Haible  <bruno@clisp.org>
41188
41189         * doc/posix-headers/sys_resource.texi: Reorder items.
41190
41191 2008-09-26  Jim Meyering  <meyering@redhat.com>
41192
41193         fts: tweak inode comparison function
41194         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41195         inode numbers, as documented.
41196
41197         fts: sort dirent entries on inode number before traversing
41198         This avoids a quadratic, seek-related performance penalty when
41199         operating on a directory containing many entries (measurable at 10k;
41200         3.5 hours at 2 million entries with a cold cache) on certain types
41201         of file systems, including ext3 and ext4, but not tmpfs.
41202         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41203         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41204         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41205         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41206         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41207         (fts_build): Set the stat.st_ino member from D_INO.
41208         If it is likely to be useful, sort dirent entries on inode number.
41209
41210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41211         and the struct statfs.f_type member.
41212         * modules/fts (Depends-on): Add d-ino.
41213
41214 2008-09-26  Bruno Haible  <bruno@clisp.org>
41215
41216         * modules/sigpipe-die (Depends-on): Add sigpipe.
41217
41218         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41219         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41220         and GNULIB_STDIO_H_SIGPIPE are set.
41221         * lib/stdio-write.c: New file.
41222         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41223         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41224         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41225         REPLACE_STDIO_WRITE_FUNCS.
41226         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41227         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41228         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41229         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41230         * modules/stdio (Files): Add lib/stdio-write.c.
41231         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41232         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41233         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41234         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41235         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41236         REPLACE_FPRINTF_POSIX.
41237         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41238         REPLACE_PRINTF_POSIX.
41239         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41240         REPLACE_VFPRINTF_POSIX.
41241         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41242         REPLACE_VPRINTF_POSIX.
41243         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41244         SIGPIPE issue.
41245         * doc/posix-functions/fputc.texi: Likewise.
41246         * doc/posix-functions/fputs.texi: Likewise.
41247         * doc/posix-functions/fwrite.texi: Likewise.
41248         * doc/posix-functions/printf.texi: Likewise.
41249         * doc/posix-functions/putc.texi: Likewise.
41250         * doc/posix-functions/putchar.texi: Likewise.
41251         * doc/posix-functions/puts.texi: Likewise.
41252         * doc/posix-functions/vfprintf.texi: Likewise.
41253         * doc/posix-functions/vprintf.texi: Likewise.
41254
41255         * modules/safe-write (Depends-on): Add write.
41256
41257         * modules/sigpipe-tests: New file.
41258         * tests/test-sigpipe.c: New file.
41259         * tests/test-sigpipe.sh: New file.
41260
41261         * modules/write: New file.
41262         * lib/unistd.in.h: Include <sys/types.h>.
41263         (write): New declaration.
41264         * lib/write.c: New file.
41265         * m4/write.m4: New file.
41266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41267         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41268         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41269         GNULIB_WRITE, REPLACE_WRITE.
41270         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41271         and the SIGPIPE issue.
41272
41273         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41274         (raise): New declaration.
41275         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41276         (ext_signal): New function.
41277         (rpl_raise): New function.
41278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41279         GNULIB_SIGNAL_H_SIGPIPE.
41280         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41281         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41282
41283         * modules/sigpipe: New file.
41284         * m4/sigpipe.m4: New file.
41285
41286 2008-09-25  Derek Price  <derek@ximbiot.com>
41287             Bruno Haible  <bruno@clisp.org>
41288
41289         * gnulib-tool (func_import): Report all license incompatibilities, not
41290         just the first one.
41291
41292 2008-09-25  Bruno Haible  <bruno@clisp.org>
41293
41294         * gnulib-tool (func_import): When computing the edits, consider not
41295         only the Makefile.ams that exist but also those that will be generated.
41296
41297 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41298
41299         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41300         fixes gnulib-tool --test warning about duplicate dependency.
41301
41302 2008-09-25  Bruno Haible  <bruno@clisp.org>
41303
41304         * gnulib-tool: Don't ask the user to perform edits in the generated
41305         Makefile.ams.
41306         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41307         apply to the Makefile.am being generated.
41308         (func_emit_tests_Makefile_am): Execute edits that apply to the
41309         Makefile.am being generated.
41310         (func_import): Setup list of Makefile.am edits before emitting the
41311         Makefile.ams, not at the end.
41312         (func_create_testdir): Update.
41313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41314
41315 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41316
41317         * gnulib-tool (func_import): Store the --tests-base option in the
41318         comment in gnulib-cache.m4.
41319
41320 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41321
41322         * NEWS: Document increased portability that sys_select now provides.
41323
41324         * lib/sys_select.in.h: Install select wrapper.
41325         * lib/sys_socket.in.h: Use more descriptive name when there is no
41326         select wrapper.
41327         * lib/winsock-select.c: New.
41328         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41329         Require gl_HEADER_SYS_SOCKET.
41330         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41331         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41332         * tests/test-sys_select.c: Add functional tests.
41333
41334 2008-09-24  Eric Blake  <ebb9@byu.net>
41335
41336         open, fopen: close fd leak in last patch
41337         * lib/open.c (rpl_open): Close fd before returning error.
41338         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41339         * doc/posix-functions/open.texi (open): Document that Irix also
41340         has the bug.
41341         * doc/posix-functions/fopen.texi (fopen): Likewise.
41342         Reported by Paolo Bonzini.
41343
41344 2008-09-24  Bruno Haible  <bruno@clisp.org>
41345
41346         Ensure that a filename ending in a slash cannot be used to access a
41347         non-directory.
41348         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41349         to check whether it's really a directory.
41350         * lib/fopen.c: Include fcntl.h, unistd.h.
41351         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41352         and fdopen().
41353         * modules/fopen (Depends-on): Add unistd.
41354         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41355         * tests/test-fopen.c (main): Likewise.
41356         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41357         * doc/posix-functions/fopen.texi: Likewise.
41358         Reported by Eric Blake.
41359
41360 2008-09-23  Eric Blake  <ebb9@byu.net>
41361
41362         c-stack: avoid compiler optimizations when provoking overflow
41363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41364         recursion harder to optimize, to ensure a stack overflow occurs.
41365         * tests/test-c-stack.c (recurse): Likewise.
41366         Borrowed from libsigsegv.
41367
41368         c-stack: work around Irix sigaltstack bug
41369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41370         whether sigaltstack uses wrong end of stack_t (copied in part from
41371         libsigsegv).
41372         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41373         Irix bug, without requiring an over-allocation.
41374         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41375         bug.
41376
41377         fopen: document mingw bug on directories
41378         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41379         not allowing a stream visiting a directory, even though reading
41380         from such a stream is not portable.
41381
41382 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41383
41384         * lib/poll.c: Rewrite.
41385         * modules/poll: Depend on alloca.
41386
41387 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41388
41389         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41390         instead define prototypes for a full set of wrappers.  Ensure
41391         that Cygwin does not use the compatibility code, which is only
41392         for MinGW.
41393         * lib/winsock.c: New.
41394         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41395         * modules/sys_socket: Add lib/winsock.c.
41396
41397         * modules/poll-tests: Add errno and perror.
41398         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41399
41400 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41401
41402         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41403
41404 2008-09-23  Bruno Haible  <bruno@clisp.org>
41405
41406         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41407         * doc/glibc-functions/*: Likewise.
41408
41409 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41410
41411         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41412         success.
41413
41414 2008-09-22  Eric Blake  <ebb9@byu.net>
41415             Bruno Haible  <bruno@clisp.org>
41416
41417         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41418         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41419         supply %A but mishandle pseudo-NaN.
41420         Reported by Simon Josefsson.
41421
41422 2008-09-21  Bruno Haible  <bruno@clisp.org>
41423
41424         * tests/test-lock.c (main): Tweak skip message.
41425         * tests/test-tls.c (main): Likewise.
41426
41427 2008-09-21  Bruno Haible  <bruno@clisp.org>
41428
41429         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41430         whether 'struct sigaction' has sa_sigaction here...
41431         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41432         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41433
41434 2008-09-21  Bruno Haible  <bruno@clisp.org>
41435
41436         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41437         section.
41438         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41439         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41440         the new section.
41441         (Support for obsolete systems lacking POSIX:2001): New section.
41442         (String handling <string.h>): Move strdup to the new section.
41443         Suggested by Simon Josefsson and Paolo Bonzini.
41444
41445 2008-09-21  Bruno Haible  <bruno@clisp.org>
41446
41447         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41448         exponents in %e and %g results on 'long double'. Needed for mingw's
41449         improved *printf functions.
41450         * tests/test-vasprintf-posix.c (test_function): Likewise.
41451         * tests/test-snprintf-posix.h (test_function): Likewise.
41452         * tests/test-sprintf-posix.h (test_function): Likewise.
41453         Reported by Eric Blake.
41454
41455 2008-09-21  Bruno Haible  <bruno@clisp.org>
41456
41457         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41458         * tests/test-sprintf-posix.h (test_function): Likewise.
41459
41460 2008-09-21  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/getpass (Depends-on): Add strdup-posix.
41463
41464         New module 'strdup-posix'.
41465         * modules/strdup-posix: New file.
41466         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41467         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41469         REPLACE_STRDUP.
41470         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41471         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41473         strdup-posix.
41474
41475         * modules/strdup (Depends-on): Remove malloc-posix.
41476
41477 2008-09-20  Bruno Haible  <bruno@clisp.org>
41478
41479         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41480         Wildenhues.
41481
41482 2008-09-20  Bruno Haible  <bruno@clisp.org>
41483
41484         Ensure that wint_t gets defined on IRIX 5.3.
41485         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41486         * lib/wctype.in.h (wint_t): Likewise.
41487         (__wctype_wint_t): Remove type.
41488         (isw*): Use wint_t instead of __wctype_wint_t.
41489         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41490         * modules/wchar (Files): Add m4/wint_t.m4.
41491         (Makefile.am): Substitute HAVE_WINT_T.
41492         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41493         * tests/test-wctype.c: Check that wint_t is defined.
41494         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41495         * doc/posix-headers/wctype.texi: Likewise.
41496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41497
41498 2008-09-18  Bruno Haible  <bruno@clisp.org>
41499
41500         * gnulib-tool (func_exit): Update comment.
41501
41502 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41503
41504         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41505         assumes strdup exists and does not depend on strdup to return
41506         ENOMEM on out of memory conditions.
41507
41508 2008-09-18  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41511         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41512         digits for the exponent.
41513
41514 2008-09-18  Jim Meyering  <meyering@redhat.com>
41515             Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/vasnprintf.c (decimal_point_char): Define also if
41518         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41519
41520 2008-09-16  Bruno Haible  <bruno@clisp.org>
41521         and Eric Blake  <ebb9@byu.net>
41522
41523         vasnprintf: support Irix 5.3
41524         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41525         that mishandle long double infinity.
41526         Reported by Tom G. Christensen.
41527
41528 2008-09-16  Bruno Haible  <bruno@clisp.org>
41529
41530         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41531         Solaris 9.
41532         * doc/glibc-functions/alphasort.texi: Likewise.
41533         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41534
41535 2008-09-16  Jim Meyering  <meyering@redhat.com>
41536
41537         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41538         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41539         a umask modification leak out of a subshell.  Otherwise, the
41540         opensolaris /bin/sh would be accepted and thus cause unwarranted
41541         failures in the coreutils test suite.
41542
41543 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41544
41545         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41546         to succeed.
41547
41548 2008-09-16  Jim Meyering  <meyering@redhat.com>
41549
41550         avoid spurious test failure when library is built without ACL support
41551         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41552         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41553         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41554         * tests/test-copy-acl.sh: Likewise.
41555
41556 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41557
41558         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41559         based on character occurrence counts.
41560
41561 2008-09-15  Eric Blake  <ebb9@byu.net>
41562
41563         tests: avoid some compiler warnings
41564         * tests/test-memchr.c (main): Pass NULL indirectly.
41565         * tests/test-closein.c (main): Avoid unused variable.
41566
41567 2008-09-15  Bruno Haible  <bruno@clisp.org>
41568
41569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41570         are missing on OpenBSD 4.0 individually.
41571         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41572
41573 2008-09-15  Bruno Haible  <bruno@clisp.org>
41574
41575         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41576         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41577         * doc/posix-functions/perror.texi: Likewise.
41578         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41579         is missing.
41580         Reported by Eric Blake.
41581
41582         * lib/errno.in.h: Use replacement values >= 2000.
41583         Reported by Eric Blake.
41584
41585 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41586
41587         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41588         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41589         limit.
41590         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41591         compareseq was aborted.
41592
41593 2008-09-14  Bruno Haible  <bruno@clisp.org>
41594
41595         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41596         yvec_edit_count.
41597         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41598         (fstrcmp_bounded): Simplify result computation accordingly.
41599
41600 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41601
41602         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41603         (fstrcmp): Define in terms of fstrcmp_bounded.
41604         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41605         lower_bound argument.
41606         Return quickly if the result is certainly < lower_bound.
41607         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41608
41609 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41610
41611         * lib/diffseq.h (EARLY_ABORT): New macro.
41612         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41613         evaluates to true.
41614
41615 2008-09-14  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/perror-tests: New file.
41618         * tests/test-perror.sh: New file.
41619         * tests/test-perror.c: New file.
41620
41621         New module 'perror'.
41622         * lib/stdio.in.h (perror): New declaration.
41623         * lib/perror.c: New file.
41624         * m4/perror.m4: New file.
41625         * modules/perror: New file.
41626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41627         * doc/posix-functions/perror.texi: Mention the perror module.
41628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41629         REPLACE_PERROR.
41630         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41631         REPLACE_PERROR.
41632
41633 2008-09-14  Bruno Haible  <bruno@clisp.org>
41634
41635         * modules/stdio (Makefile.am): Reorder to match the order in
41636         lib/stdio.in.h.
41637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41638
41639 2008-09-13  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41642
41643 2008-09-13  Bruno Haible  <bruno@clisp.org>
41644
41645         Extend strerror to cover the added errno values.
41646         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41647         (rpl_strerror): Provide error messages for the added errno values and
41648         for the WSA* values.
41649         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41650         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41651         strerror.
41652         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41653         * modules/strerror (Depends-on): Add errno.
41654         * doc/posix-functions/strerror.texi: Document the change.
41655         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41656         and EOVERFLOW.
41657
41658 2008-09-13  Bruno Haible  <bruno@clisp.org>
41659
41660         * modules/EOVERFLOW: Remove file.
41661         * m4/eoverflow.m4: Remove file.
41662         * modules/EOVERFLOW-tests: Remove file.
41663         * tests/test-EOVERFLOW.c: Remove file.
41664         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41665         * modules/ftell (Depends-on): Likewise.
41666         * modules/getdelim (Depends-on): Likewise.
41667         * modules/getugroups (Depends-on): Likewise.
41668         * modules/poll (Depends-on): Likewise.
41669         * modules/snprintf (Depends-on): Likewise.
41670         * modules/sprintf-posix (Depends-on): Likewise.
41671         * modules/vasnprintf (Depends-on): Likewise.
41672         * modules/vasprintf (Depends-on): Likewise.
41673         * modules/vfprintf-posix (Depends-on): Likewise.
41674         * modules/vsnprintf (Depends-on): Likewise.
41675         * modules/vsprintf-posix (Depends-on): Likewise.
41676         * modules/xvasprintf (Depends-on): Likewise.
41677         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41678         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41679         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41680         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41681         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41682         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41683         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41684         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41685         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41686         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41687         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41688         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41690         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41691         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41692         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41693         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41694         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41695         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41696         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41697         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41698         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41699         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41700         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41701         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41702         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41703         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41704         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41705         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41706         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41707         * MODULES.html.sh: Remove EOVERFLOW.
41708         * NEWS: Mention the change.
41709
41710 2008-09-13  Bruno Haible  <bruno@clisp.org>
41711
41712         * modules/errno-tests: New file.
41713         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41714
41715         * lib/errno.in.h: New file.
41716         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41717         * modules/errno: New file.
41718         * doc/posix-headers/errno.texi: Update documentation.
41719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41720
41721 2008-09-13  Bruno Haible  <bruno@clisp.org>
41722
41723         * tests/test-poll.c: Use #if for native Windows, rather than testing
41724         __MSVCRT__.
41725
41726 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41727             Bruno Haible  <bruno@clisp.org>
41728
41729         * lib/glob.c: Don't include <pwd.h> on native Windows.
41730         (WINDOWS32): New macro.
41731         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41732
41733 2008-09-13  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41736         (ETIMEDOUT): Remove macro.
41737         (glthread_cond_timedwait_multithreaded): New declaration.
41738         (glthread_cond_timedwait): Use it.
41739         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41740         (glthread_cond_timedwait_multithreaded): New function.
41741
41742 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41743
41744         * modules/poll-tests: Do not check for io.h.
41745         * tests/test-poll.c: Check for __MSVCRT__ instead.
41746
41747 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41748
41749         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41750         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41751         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41752
41753 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41754
41755         * modules/poll-tests: New.
41756         * tests/test-poll.c: New.
41757
41758 2008-09-12  Eric Blake  <ebb9@byu.net>
41759
41760         frexp: test for NetBSD failure on -0.0
41761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41762         not all, bugs from NetBSD 3.0 have been fixed.
41763         * doc/posix-functions/frexp.texi (frexp): Document bug.
41764         Reported by Thomas Klausner.
41765
41766         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41767         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41768         literal -0.0.
41769         Reported by Jonathan C. Patschke <jp@centtech.com>.
41770
41771 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41772
41773         * lib/glthread/cond.h: Use dummy implementation also if
41774         USE_WIN32_THREADS.
41775
41776 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41777
41778         * modules/fnmatch-posix (License): Change to LGPLv2+.
41779         * modules/fnmatch-gnu (License): Likewise.
41780
41781 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41782
41783         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41784
41785 2008-09-11  Jim Meyering  <meyering@redhat.com>
41786
41787         * users.txt: Add gtk-vnc.
41788
41789 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41790
41791         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41792         rotate amounts.
41793
41794         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41795         required for 16-bit and 8-bit rotates.
41796         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41797         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41798         UINT8_MAX instead of hard-coded constants.
41799         Suggested by Paul Eggert.
41800
41801 2008-09-07  Bruno Haible  <bruno@clisp.org>
41802
41803         * tests/test-striconveh.c (main): Check behaviour when converting from
41804         UTF-7.
41805
41806         Make striconveh work better with stateful encodings.
41807         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41808         that iconv does not increment the inptr when returning -1/EINVAL.
41809
41810 2008-09-07  Bruno Haible  <bruno@clisp.org>
41811
41812         * build-aux/config.rpath: Update according to libtool-2.2.6.
41813         * build-aux/config.libpath: Likewise.
41814
41815 2008-09-06  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41818         * lib/freadptr.c (freadptr): Likewise.
41819         * lib/freadseek.c (freadptrinc): Likewise.
41820         Reported by Simon Josefsson.
41821
41822 2008-09-06  Bruno Haible  <bruno@clisp.org>
41823
41824         * modules/freadptr (License): Change to LGPLv2+.
41825         * modules/freadseek (License): Likewise.
41826         Suggested by Eric Blake.
41827
41828         * modules/memchr2 (License): Change to LGPLv2+.
41829         Approved by Eric Blake.
41830
41831 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41832             Bruno Haible  <bruno@clisp.org>
41833
41834         Make gnulib-tool work with native 'sed' on AIX.
41835         * gnulib-tool (sed_noop): New variable.
41836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41837         func_add_or_update, func_create_testdir): Use it to initialize sed
41838         script variables.
41839         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41840
41841 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41842             Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41845         also works after #include directives.
41846
41847 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
41848
41849         getdate.y: reject an out-of-range timezone value
41850         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41851         the range [-24...+24].  When specified with only one or two digits,
41852         * tests/test-getdate.c: Tests for the fix.
41853         * doc/getdate.texi: Document this change.
41854
41855 2008-09-03  Bruno Haible  <bruno@clisp.org>
41856
41857         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41858
41859 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41860
41861         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41862         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41863         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41864         Blake <ebb9@byu.net>.
41865
41866         * tests/test-bitrotate.c: Add more test vectors.
41867
41868 2008-09-02  Eric Blake  <ebb9@byu.net>
41869
41870         vasnprintf-posix: handle large precision via %.*d
41871         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41872         when handling it ourselves.
41873         * tests/test-vasnprintf-posix.c (test_function): Add test.
41874         * tests/test-snprintf-posix.h (test_function): Likewise.
41875         * tests/test-sprintf-posix.h (test_function): Likewise.
41876         * tests/test-vasprintf-posix.c (test_function): Likewise.
41877         Reported by Alain Guibert.
41878
41879 2008-09-01  Eric Blake  <ebb9@byu.net>
41880
41881         c-stack: make configure-time check more robust
41882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41883         successful sigaction call.
41884         Reported by Tom G. Christensen.
41885
41886 2008-09-01  Bruno Haible  <bruno@clisp.org>
41887
41888         New module 'findprog-lgpl'.
41889         * modules/findprog-lgpl: New file.
41890         * lib/findprog-lgpl.c: New file.
41891         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41892         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41893         to decide whether to use strdup or xstrdup, concatenated_filename or
41894         xconcatenated_filename.
41895
41896 2008-09-01  Bruno Haible  <bruno@clisp.org>
41897
41898         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41899         'xconcat-filename' (GPL).
41900         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41901         (License): Change to LGPLv2+.
41902         * modules/xconcat-filename: New file.
41903         * lib/concat-filename.h (concatenated_filename): Change specification.
41904         (xconcatenated_filename): New declaration.
41905         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41906         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41907         memory situations.
41908         * lib/xconcat-filename.c: New file.
41909         * NEWS: Mention the change.
41910         * lib/findprog.c: Include concat-filename.h, not filename.h.
41911         (find_in_path): Use xconcatenated_filename instead of
41912         concatenated_filename.
41913         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41914         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41915         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41916         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41917         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41918         instead of concatenated_filename.
41919         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41920         (execute_java_class): Use xconcatenated_filename instead of
41921         concatenated_filename.
41922         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41923         * modules/javacomp (Depends-on): Likewise.
41924         * modules/javaexec (Depends-on): Likewise.
41925
41926 2008-09-01  Bruno Haible  <bruno@clisp.org>
41927
41928         Split module 'filename' into 'filename' and 'concat-filename'.
41929         * modules/filename: Keep only lib/filename.h.
41930         (License): Change to LGPLv2+.
41931         * modules/concat-filename: New file, extracted from modules/filename.
41932         * lib/filename.h (concatenated_filename): Remove declaration.
41933         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41934         * lib/concat-filename.c: Include concat-filename.h.
41935         * NEWS: Mention the change.
41936
41937 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41938
41939         * lib/bitrotate.h (rotl8, rotr8): Add.
41940
41941         * modules/bitrotate (configure.ac): Need
41942         AC_REQUIRE([AC_C_INLINE]).
41943         (Description): Mention stdint.h.  Reported by Bruno Haible
41944         <bruno@clisp.org>.
41945
41946         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41947         Paolo Bonzini <bonzini@gnu.org>.
41948
41949 2008-08-31  Bruno Haible  <bruno@clisp.org>
41950
41951         Assume Solaris specific bi-arch conventions on Solaris systems.
41952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41953         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41955         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41956         like acl_libdirstem.
41957         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41958         acl_libdirstem.
41959         * NEWS: Mention the change.
41960         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41961
41962 2008-08-31  Jim Meyering  <meyering@redhat.com>
41963
41964         * lib/strftime.h: Add comments describing the two added arguments.
41965
41966         remove duplicate #include directives
41967         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41968         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41969
41970 2008-08-31  Bruno Haible  <bruno@clisp.org>
41971
41972         New module 'sigpipe-die'.
41973         * modules/sigpipe-die: New file.
41974         * lib/sigpipe-die.h: New file.
41975         * lib/sigpipe-die.c: New file.
41976         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41977
41978 2008-08-31  Bruno Haible  <bruno@clisp.org>
41979
41980         Don't override previously installed signal handlers.
41981         * lib/fatal-signal.c (saved_sigactions): New variable.
41982         (uninstall_handlers): Reset the signal to the saved handler, not
41983         to SIG_DFL (except when ignored).
41984         (install_handlers): Save the previous handlers.
41985
41986 2008-08-30  Bruno Haible  <bruno@clisp.org>
41987
41988         * gnulib-tool (func_reset_sigpipe): New function.
41989         (func_get_automake_snippet, func_modules_transitive_closure,
41990         func_import): Invoke it before a join command that reads from stdin,
41991         to avoid "echo: write error: Broken pipe" error messages on stderr.
41992         Reported by Sam Steingold <sds@gnu.org>.
41993
41994 2008-08-30  Bruno Haible  <bruno@clisp.org>
41995
41996         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41997         Code copied from m4/open.m4.
41998         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41999         access and the filename ends in a slash. Code copied from lib/open.c.
42000         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42001         * tests/test-fopen.c (main): Check against bug with trailing slash.
42002
42003 2008-08-29  Bruno Haible  <bruno@clisp.org>
42004
42005         Avoid some "gcc -pedantic" warnings.
42006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42007         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42008         * lib/dirent.in.h: Likewise.
42009         * lib/fcntl.in.h: Likewise.
42010         * lib/float.in.h: Likewise.
42011         * lib/iconv.in.h: Likewise.
42012         * lib/inttypes.in.h: Likewise.
42013         * lib/locale.in.h: Likewise.
42014         * lib/math.in.h: Likewise.
42015         * lib/netinet_in.in.h: Likewise.
42016         * lib/search.in.h: Likewise.
42017         * lib/signal.in.h: Likewise.
42018         * lib/stdarg.in.h: Likewise.
42019         * lib/stdint.in.h: Likewise.
42020         * lib/stdio.in.h: Likewise.
42021         * lib/stdlib.in.h: Likewise.
42022         * lib/string.in.h: Likewise.
42023         * lib/strings.in.h: Likewise.
42024         * lib/sys_select.in.h: Likewise.
42025         * lib/sys_socket.in.h: Likewise.
42026         * lib/sys_stat.in.h: Likewise.
42027         * lib/sys_time.in.h: Likewise.
42028         * lib/sysexits.in.h: Likewise.
42029         * lib/time.in.h: Likewise.
42030         * lib/unistd.in.h: Likewise.
42031         * lib/wchar.in.h: Likewise.
42032         * lib/wctype.in.h: Likewise.
42033         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42034         * modules/fchdir (Makefile.am): Likewise.
42035         * modules/fcntl (Makefile.am): Likewise.
42036         * modules/float (Makefile.am): Likewise.
42037         * modules/iconv_open (Makefile.am): Likewise.
42038         * modules/inttypes (Makefile.am): Likewise.
42039         * modules/locale (Makefile.am): Likewise.
42040         * modules/math (Makefile.am): Likewise.
42041         * modules/netinet_in (Makefile.am): Likewise.
42042         * modules/search (Makefile.am): Likewise.
42043         * modules/signal (Makefile.am): Likewise.
42044         * modules/stdarg (Makefile.am): Likewise.
42045         * modules/stdint (Makefile.am): Likewise.
42046         * modules/stdio (Makefile.am): Likewise.
42047         * modules/stdlib (Makefile.am): Likewise.
42048         * modules/string (Makefile.am): Likewise.
42049         * modules/strings (Makefile.am): Likewise.
42050         * modules/sys_select (Makefile.am): Likewise.
42051         * modules/sys_socket (Makefile.am): Likewise.
42052         * modules/sys_stat (Makefile.am): Likewise.
42053         * modules/sys_time (Makefile.am): Likewise.
42054         * modules/sysexits (Makefile.am): Likewise.
42055         * modules/time (Makefile.am): Likewise.
42056         * modules/unistd (Makefile.am): Likewise.
42057         * modules/wchar (Makefile.am): Likewise.
42058         * modules/wctype (Makefile.am): Likewise.
42059         Reported by Reuben Thomas <rrt@sc3d.org>.
42060
42061 2008-08-29  Bruno Haible  <bruno@clisp.org>
42062
42063         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42064         any more.
42065
42066 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42067
42068         * MODULES.html.sh (Misc): Add bitrotate.
42069
42070         * modules/bitrotate: New file.
42071
42072         * lib/bitrotate.h: New file.
42073
42074         * modules/bitrotate-tests: New file.
42075
42076         * tests/test-bitrotate.c: New file.
42077
42078         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42079         on the bitrotate module.
42080
42081         * lib/arctwo.c: Use new bitrotate module.
42082
42083 2008-08-29  Jim Meyering  <meyering@redhat.com>
42084
42085         bootstrap: merge changes from coreutils
42086         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42087         of copied files.  Remove a kludge, now that this is fixed.
42088         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42089         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42090         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42091
42092 2008-08-29  Bruno Haible  <bruno@clisp.org>
42093
42094         * MODULES.html.sh: Remove --cvs-urls option.
42095
42096 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42097
42098         maint.mk: adjust to file name change
42099         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42100
42101 2008-08-28  Jim Meyering  <meyering@redhat.com>
42102
42103         * modules/getndelim2 (License): Relicense to LGPLv2+.
42104         Approved by Richard Stallman for the version of 1995, and by
42105         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42106
42107 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42108
42109         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42110         dummy if one is not available.  Do not touch them if
42111         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42112         (getc_maybe_unlocked): New.
42113         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42114
42115 2008-08-26  Eric Blake  <ebb9@byu.net>
42116
42117         doc/INSTALL: resync from autoconf
42118         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42119         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42120         moving...
42121         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42122         * INSTALL: Regenerate.
42123         * INSTALL.ISO: New file.
42124         * INSTALL.UTF-8: Likewise.
42125
42126 2008-08-26  Jim Meyering  <meyering@redhat.com>
42127
42128         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42129         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42130         these definitions conditional, so that they may be overridden, too.
42131
42132 2008-08-26  Bruno Haible  <bruno@clisp.org>
42133
42134         Generate INSTALL file variants with prettier quotes.
42135         * doc/Makefile (INSTALL_PRELUDE): New macro.
42136         (INSTALL): Use it.
42137         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42138
42139 2008-08-26  Bruno Haible  <bruno@clisp.org>
42140
42141         Run makeinfo in an English locale.
42142         * doc/Makefile (MAKEINFO): New variable.
42143
42144 2008-08-26  Bruno Haible  <bruno@clisp.org>
42145
42146         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42147         Suggested by Eric Blake.
42148
42149 2008-08-25  Bruno Haible  <bruno@clisp.org>
42150
42151         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42152
42153 2008-08-25  Eric Blake  <ebb9@byu.net>
42154
42155         c-stack: test that stack overflow can be caught
42156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42157         that platform allows handling stack overflow; at least OS/2 EMX
42158         has sigaltstack, but crashes before transferring control to
42159         handler on stack overflow.
42160         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42161         check for HAVE_STACK_OVERFLOW_HANDLING.
42162         Reported by Elbert Pol.
42163
42164 2008-08-25  Bruno Haible  <bruno@clisp.org>
42165
42166         * doc/posix-functions/strftime.texi: Fix description of strftime
42167         module.
42168
42169 2008-08-24  Bruno Haible  <bruno@clisp.org>
42170
42171         * tests/uniwidth/test-uc_width2.c: New file.
42172         * tests/uniwidth/test-uc_width2.sh: New file.
42173         * modules/uniwidth/width-tests (Files): Add the new files.
42174         (TESTS): Add uniwidth/test-uc_width2.sh.
42175         (TESTS_ENVIRONMENT): New variable.
42176         (check_PROGRAMS): Add test-uc_width2.
42177         (test_uc_width2_SOURCES): New variable.
42178
42179         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42180         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42181         not 0x00AB.
42182         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42183
42184 2008-08-22  Eric Blake  <ebb9@byu.net>
42185
42186         test-lock, test-tls: mention why a test is skipped
42187         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42188         skipped.
42189         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42190
42191         count-one-bits: relax license
42192         * modules/count-one-bits (License): Relicense to LGPLv2+.
42193         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42194
42195 2008-08-22  Andreas Schwab  <schwab@suse.de>
42196
42197         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42198         Remove spurious space in assignment.
42199
42200 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42201
42202         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42203         Paul Eggert <eggert@CS.UCLA.EDU>.
42204
42205 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42206
42207         * modules/gettext: Add m4/threadlib.m4.
42208
42209 2008-08-19  Eric Blake  <ebb9@byu.net>
42210
42211         test-c-stack: fix compilation failure on FreeBSD 5.0
42212         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42213         headers before <sys/resource.h>.
42214         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42215         the bug.
42216         Reported by Nelson H. F. Beebe.
42217
42218         strverscmp: migrate from "strverscmp.h" to <string.h>
42219         * modules/string (Makefile.am): Add new hooks.
42220         * modules/strverscmp (Files): Remove strverscmp.h.
42221         (Depends-on): Add string.
42222         (configure.ac): Add indicator.
42223         (Include): Mention new header.
42224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42225         defaults.
42226         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42227         results.
42228         * lib/strverscmp.h: Delete.
42229         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42230         * tests/test-strverscmp.c (includes): Adjust client.
42231         * lib/check-version.c (includes): Likewise.
42232         * NEWS: Document the change.
42233
42234         strverscmp: add unit test
42235         * modules/strverscmp-tests: New file.
42236         * tests/test-strverscmp.c: Likewise.
42237
42238 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42239
42240         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42241         regarding Windows crypto stuff, from Mono.
42242
42243 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42244
42245         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42246         if present, for intel RND.  Return error on failures.
42247
42248 2008-08-18  Ben Pfaff  <blp@gnu.org>
42249
42250         gitlog-to-changelog: give better diagnostic for failed pipe-open
42251         * build-aux/gitlog-to-changelog: Improve error message: suggest
42252         that the version of Git may be too old.
42253
42254 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42255
42256         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42257         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42258
42259 2008-08-18  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42262         pthread_in_use().
42263
42264 2008-08-18  Bruno Haible  <bruno@clisp.org>
42265
42266         * lib/glthread/threadlib.c: Include <pthread.h>.
42267
42268 2008-08-18  Bruno Haible  <bruno@clisp.org>
42269
42270         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42271         glthread_recursive_lock_* macros.
42272         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42273         Fix syntax error.
42274
42275 2008-08-18  Bruno Haible  <bruno@clisp.org>
42276
42277         * lib/glthread/thread.c: Avoid forcing a context switch right after
42278         thread creation.
42279
42280 2008-08-17  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42283         * lib/glthread/thread.h: Provide Win32 specific implementation.
42284         * modules/thread (Files): Add lib/glthread/thread.c.
42285         (Depends-on): Add lock.
42286         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42287
42288 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42289
42290         New module 'yield'.
42291         * modules/yield: New file.
42292         * lib/glthread/yield.h: New file.
42293         * m4/yield.m4: New file.
42294         * MODULES.html.sh (Multithreading): Add yield.
42295
42296 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42297
42298         New module 'thread'.
42299         * modules/thread: New file.
42300         * lib/glthread/thread.h: New file.
42301         * m4/thread.m4: New file.
42302         * MODULES.html.sh (Multithreading): Add thread.
42303
42304 2008-08-17  Bruno Haible  <bruno@clisp.org>
42305
42306         * lib/glthread/lock.h: Include <stdlib.h> always.
42307         * lib/glthread/tls.h: Likewise.
42308         * lib/glthread/cond.h: Likewise.
42309
42310 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42311
42312         New module 'cond'.
42313         * modules/cond: New file.
42314         * lib/glthread/cond.h: New file.
42315         * lib/glthread/cond.c: New file.
42316         * m4/cond.m4: New file.
42317         * MODULES.html.sh (Multithreading): Add cond.
42318
42319 2008-08-16  Eric Blake  <ebb9@byu.net>
42320
42321         c-stack: fix regression on Irix 5.3 from 2008-06-21
42322         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42323         sa_sigaction...
42324         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42325         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42327         * modules/signal (Makefile.am): Use the value.
42328         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42329         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42330         * doc/posix-headers/signal.texi (signal.h): Document this
42331         portability issue.
42332         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42333         Reported by Tom G. Christensen.
42334
42335 2008-08-17  Bruno Haible  <bruno@clisp.org>
42336
42337         New module 'threadlib'.
42338         * modules/threadlib: New file.
42339         * lib/glthread/threadlib.c: New file, extracted from
42340         lib/glthread/lock.c.
42341         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42342         functions.
42343         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42344         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42345         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42346         macros.
42347         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42348         (gl_DISABLE_THREADS): Remove macro.
42349         * modules/lock (Files): Remove build-aux/config.rpath.
42350         (Depends-on): Remove havelib. Add threadlib.
42351         (configure.ac-early): Remove section.
42352         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42353         * modules/tls (Depends-on): Remove lock. Add threadlib.
42354         (Link): New section, copied from threadlib.
42355         * MODULES.html.sh (Multithreading): Add threadlib.
42356
42357 2008-08-14  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42360         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42361         glthread_rwlock_unlock, glthread_rwlock_destroy,
42362         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42363         glthread_recursive_lock_destroy): Define as macros always.
42364         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42365         glthread_lock_lock.
42366         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42367         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42368         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42369         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42370         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42371         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42372         (glthread_recursive_lock_lock_func): Renamed from
42373         glthread_recursive_lock_lock.
42374         (glthread_recursive_lock_unlock_func): Renamed from
42375         glthread_recursive_lock_unlock.
42376         (glthread_recursive_lock_destroy_func): Renamed from
42377         glthread_recursive_lock_destroy.
42378
42379 2008-08-14  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/glthread/lock.h: Renamed from lib/lock.h.
42382         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42383         * lib/glthread/tls.h: Renamed from lib/tls.h.
42384         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42385         * lib/fstrcmp.c: Update includes.
42386         * lib/strsignal.c: Update includes.
42387         * modules/lock (Files, Makefile.am): Update.
42388         (Include): Change to "glthread/lock.h".
42389         * modules/tls (Files, Makefile.am): Update.
42390         (Include): Change to "glthread/tls.h".
42391         * tests/test-lock.c: Update includes.
42392         * tests/test-tls.c: Update includes.
42393         * NEWS: Mention the renamed header files.
42394
42395 2008-08-11  Jim Meyering  <meyering@redhat.com>
42396
42397         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42398
42399 2008-08-11  Eric Blake  <ebb9@byu.net>
42400
42401         test-c-stack: avoid C99-ism
42402         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42403         before statement.
42404         Reported by Alain Guibert.
42405
42406 2008-08-10  Jim Meyering  <meyering@redhat.com>
42407
42408         ensure that return value of uinttostr et al are not ignored
42409         * lib/inttostr.h (__GNUC_PREREQ): Define.
42410         (__attribute_warn_unused_result__): Define.
42411         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42412
42413 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42414
42415         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42416         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42417
42418 2008-08-07  Jim Meyering  <meyering@redhat.com>
42419
42420         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42421
42422         * modules/mkstemp (License): Relicense under LGPLv2+.
42423         * modules/tempname (License): Likewise.
42424
42425 2008-08-06  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/poll.c (poll): Further micro-optimization.
42428
42429 2008-08-06  Jim Meyering  <meyering@redhat.com>
42430
42431         inet_pton.c: use locale-independent tolower
42432         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42433         (inet_pton6): Use c_tolower rather than tolower.
42434         * modules/inet_pton (Depends-on): Add c-ctype.
42435
42436 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42437
42438         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42439         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42440
42441 2008-08-06  Jim Meyering  <meyering@redhat.com>
42442
42443         * modules/inet_pton (License): Relicense under LGPLv2+.
42444
42445 2008-08-03  Bruno Haible  <bruno@clisp.org>
42446
42447         Additional non-aborting API for lock and tls.
42448         * lib/lock.h: Include <errno.h>.
42449         (glthread_lock_init): New macro/function.
42450         (gl_lock_init): Define as wrapper around glthread_lock_init.
42451         (glthread_lock_lock): New macro/function.
42452         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42453         (glthread_lock_unlock): New macro/function.
42454         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42455         (glthread_lock_destroy): New macro/function.
42456         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42457         (glthread_rwlock_init): New macro/function.
42458         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42459         (glthread_rwlock_rdlock): New macro/function.
42460         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42461         (glthread_rwlock_wrlock): New macro/function.
42462         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42463         (glthread_rwlock_unlock): New macro/function.
42464         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42465         (glthread_rwlock_destroy): New macro/function.
42466         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42467         (glthread_recursive_lock_init): New macro/function.
42468         (gl_recursive_lock_init): Define as wrapper around
42469         glthread_recursive_lock_init.
42470         (glthread_recursive_lock_lock): New macro/function.
42471         (gl_recursive_lock_lock): Define as wrapper around
42472         glthread_recursive_lock_lock.
42473         (glthread_recursive_lock_unlock): New macro/function.
42474         (gl_recursive_lock_unlock): Define as wrapper around
42475         glthread_recursive_lock_unlock.
42476         (glthread_recursive_lock_destroy): New macro/function.
42477         (gl_recursive_lock_destroy): Define as wrapper around
42478         glthread_recursive_lock_destroy.
42479         (glthread_once): New macro/function.
42480         (gl_once): Define as wrapper around glthread_once.
42481         Update function declarations.
42482         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42483         glthread_rwlock_init. Return error code.
42484         (glthread_rwlock_rdlock_multithreaded): Renamed from
42485         glthread_rwlock_rdlock. Return error code.
42486         (glthread_rwlock_wrlock_multithreaded): Renamed from
42487         glthread_rwlock_wrlock. Return error code.
42488         (glthread_rwlock_unlock_multithreaded): Renamed from
42489         glthread_rwlock_unlock. Return error code.
42490         (glthread_rwlock_destroy_multithreaded): Renamed from
42491         glthread_rwlock_destroy. Return error code.
42492         (glthread_recursive_lock_init_multithreaded): Renamed from
42493         glthread_recursive_lock_init. Return error code.
42494         (glthread_recursive_lock_lock_multithreaded): Renamed from
42495         glthread_recursive_lock_lock. Return error code.
42496         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42497         glthread_recursive_lock_unlock. Return error code.
42498         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42499         glthread_recursive_lock_destroy. Return error code.
42500         (glthread_once_call): Make static.
42501         (glthread_once_multithreaded): Renamed from glthread_once.
42502         * lib/tls.h: Include <errno.h>.
42503         (glthread_tls_key_init): New macro/function.
42504         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42505         (glthread_tls_set): New macro/function.
42506         (gl_tls_set): Define as wrapper around glthread_tls_set.
42507         (glthread_tls_key_destroy): New macro/function.
42508         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42509         Update function declarations.
42510         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42511         glthread_tls_get.
42512         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42513
42514 2008-08-04  Eric Blake  <ebb9@byu.net>
42515
42516         gnumakefile: use space, not TAB, outside of targets
42517         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42518
42519 2008-08-02  Jim Meyering  <meyering@redhat.com>
42520
42521         getdate.y: avoid locale-dependent date parsing failure
42522         In Turkish locales, getdate would fail to recognize keywords
42523         containing a lowercase "i".  The solution is not to rely on
42524         locale-sensitive case-conversion.
42525         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42526         (lookup_word): Use c_toupper in place of toupper.
42527         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42528         Reported by Vefa Bicakci <bicave@superonline.com> in
42529         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42530         * modules/getdate (Depends-on): Add c-ctype.
42531
42532 2008-08-02  Bruno Haible  <bruno@clisp.org>
42533
42534         * gnulib-tool (func_import): When updating or creating a .gitignore
42535         file, prepend each added line with a slash, and ignore leading slashes
42536         from the existing lines.
42537         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42538
42539 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42540
42541         Portability fix for GNU make 3.79.1.
42542         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42543         versions do not understand.
42544
42545 2008-08-01  Bruno Haible  <bruno@clisp.org>
42546
42547         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42548         * tests/test-isnanf.h (zero): New variable.
42549         (main): Avoid literal -0.0f.
42550         * tests/test-isnand.h (zero): New variable.
42551         (main): Avoid literal -0.0.
42552         * tests/test-isnanl.h (zero): New variable.
42553         (main): Avoid literal -0.0L.
42554         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42555         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42556         -0.0, -0.0L.
42557         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42558         (test_signbitd): Avoid literal -0.0.
42559         (test_signbitl): Avoid literal -0.0L.
42560         * tests/test-ceilf1.c (zero): New variable.
42561         (main): Avoid literal -0.0f.
42562         * tests/test-ceill.c (zero): New variable.
42563         (main): Avoid literal -0.0L.
42564         * tests/test-floorf1.c (zero): New variable.
42565         (main): Avoid literal -0.0f.
42566         * tests/test-floorl.c (zero): New variable.
42567         (main): Avoid literal -0.0L.
42568         * tests/test-roundf1.c (zero): New variable.
42569         (main): Avoid literal -0.0f.
42570         * tests/test-round1.c (zero): New variable.
42571         (main): Avoid literal -0.0.
42572         * tests/test-roundl.c (zero): New variable.
42573         (main): Avoid literal -0.0L.
42574         * tests/test-truncf1.c (zero): New variable.
42575         (main): Avoid literal -0.0f.
42576         * tests/test-trunc1.c (zero): New variable.
42577         (main): Avoid literal -0.0.
42578         * tests/test-truncl.c (zero): New variable.
42579         (main): Avoid literal -0.0L.
42580         * tests/test-frexp.c (zero): New variable.
42581         (main): Avoid literal -0.0.
42582         * tests/test-frexpl.c (zero): New variable.
42583         (main): Avoid literal -0.0L.
42584         * tests/test-ldexpl.c (zero): New variable.
42585         (main): Avoid literal -0.0L.
42586         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42587         (zerod, zerol): New variables.
42588         (test_function): Avoid literals -0.0, -0.0L.
42589         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42590         (zerod, zerol): New variables.
42591         (test_function): Avoid literals -0.0, -0.0L.
42592         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42593         (zerod, zerol): New variables.
42594         (test_function): Avoid literals -0.0, -0.0L.
42595         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42596         (zerod, zerol): New variables.
42597         (test_function): Avoid literals -0.0, -0.0L.
42598         * tests/test-strtod.c (zero): New variable.
42599         (main): Avoid literal -0.0.
42600         Reported by Jonathan C. Patschke <jp@centtech.com>.
42601
42602 2008-07-31  Jim Meyering  <meyering@redhat.com>
42603
42604         sha256.h: correct definition of SHA224_DIGEST_SIZE
42605         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42606         Reported by Paulie Pena IV <paulie4@gmail.com>.
42607         Define as 224 / 8, rather than as a literal.
42608         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42609         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42610         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42611
42612 2008-07-31  Bruno Haible  <bruno@clisp.org>
42613
42614         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42615         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42616         Reported by Jonathan Patschke <jp@centtech.com>.
42617
42618 2008-07-31  Bruno Haible  <bruno@clisp.org>
42619
42620         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42621         Reported by Paolo Bonzini <bonzini@gnu.org>.
42622
42623 2008-07-30  Eric Blake  <ebb9@byu.net>
42624
42625         test-strtod: allow compilation without -lm
42626         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42627         Reported by Dennis Clarke <blastwave@gmail.com>.
42628
42629 2008-07-28  Jim Meyering  <meyering@redhat.com>
42630
42631         bootstrap: work also when there are no .po files in po/
42632         * build-aux/bootstrap (update_po_files): Complete the change
42633         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42634
42635 2008-07-27  Jim Meyering  <meyering@redhat.com>
42636
42637         * users.txt: Add zile.
42638
42639 2008-07-26  Ben Pfaff  <blp@gnu.org>
42640
42641         Add missing dependencies on new m4/exponent[fdl].m4 files.
42642         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42643         * modules/isnand-nolibm: Add m4/exponentd.m4.
42644         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42645         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42646         m4/isnan[fdl].m4, because the macros actually used moved.
42647         Reported by Jim Meyering.
42648
42649 2008-07-14  Ben Pfaff  <blp@gnu.org>
42650
42651         Add isinf module.
42652         * lib/isinf.c: New file.
42653         * lib/math.in.h: Define isinf macro if we have decided to replace
42654         it.
42655         * m4/isinf.m4: New file.
42656         * m4/math_h.m4: Initialize and substitute variables for isinf
42657         module.
42658         * modules/isinf: New file.
42659         * modules/isinf-tests: New file.
42660         * modules/math: Add substitutions for new module.
42661         * tests/test-isinf.c: New file.
42662         * doc/posix-functions/isinf.texi: Mention new module.
42663         * MODULES.html.sh: Mention new module.
42664
42665 2008-07-14  Ben Pfaff  <blp@gnu.org>
42666
42667         Factor out some macros for use by additional modules.
42668         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42669         exponentf.m4.
42670         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42671         exponentd.m4.
42672         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42673         file exponentl.m4.
42674         * m4/exponentf.m4: New file.
42675         * m4/exponentd.m4: New file.
42676         * m4/exponentl.m4: New file.
42677         * modules/isnanf: Use new file m4/exponentf.m4.
42678         * modules/isnand: Use new file m4/exponentd.m4.
42679         * modules/isnanl: Use new file m4/exponentl.m4.
42680
42681 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42682
42683         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42684         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42685         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42686         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42687
42688         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42689         readlink on platforms without PATH_MAX.
42690
42691 2008-07-21  Eric Blake  <ebb9@byu.net>
42692
42693         Warn, not fail, on stale version.
42694         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42695
42696         Don't allow installation with stale devel version number.
42697         * top/GNUmakefile (_is-install-target): New macro.
42698         (_curr-ver): Forbid installation with stale version number.
42699
42700 2008-07-20  Bruno Haible  <bruno@clisp.org>
42701
42702         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42703         TESTS_ENVIRONMENT.
42704         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42705
42706 2008-07-20  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/c-stack.h (c_stack_action): Add documentation.
42709         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42710
42711 2008-07-20  Bruno Haible  <bruno@clisp.org>
42712
42713         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42714         * modules/readlink (License): Likewise.
42715
42716 2008-07-17  Eric Blake  <ebb9@byu.net>
42717
42718         * modules/c-stack (Link): Fix typo.
42719
42720         Make c-stack use libsigsegv, when available.
42721         * modules/c-stack (Depends-on): Add libsigsegv.
42722         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42723         needed.
42724         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42725         (segv_handler, overflow_handler, c_stack_action)
42726         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42727         implementation when libsigsegv is available, but only when using
42728         the library is necessary.
42729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42730         comment, explaining why XSI check fails on Linux.
42731         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42732         * tests/test-c-stack2.sh: Tweak skip message.
42733         * NEWS: Document new link-time requirements.
42734
42735 2008-07-16  Eric Blake  <ebb9@byu.net>
42736
42737         c-stack: Expose false positives when not using libsigsegv.
42738         * modules/c-stack-tests (Files): Expand test.
42739         * tests/test-c-stack.c (main): Add means to conditionally trigger
42740         non-overflow SIGSEGV.
42741         * tests/test-c-stack2.sh: New file.
42742
42743 2008-07-14  Bruno Haible  <bruno@clisp.org>
42744
42745         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42746         Reported by Eric Blake.
42747
42748 2008-07-14  Sam Steingold  <sds@gnu.org>
42749             Bruno Haible  <bruno@clisp.org>
42750
42751         New module libsigsegv.
42752         * modules/libsigsegv: New file.
42753         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42754         modifications.
42755         * MODULES.html.sh (Signal handling): New section.
42756
42757 2008-07-14  Bruno Haible  <bruno@clisp.org>
42758
42759         * modules/unictype/ctype-* (Description): Add the word "function".
42760         Improves the resulting doc in MODULES.html.
42761
42762 2008-07-12  Ben Pfaff  <blp@gnu.org>
42763
42764         Add longlong module.
42765         * modules/longlong: New file.
42766
42767 2008-07-12  Bruno Haible  <bruno@clisp.org>
42768
42769         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42770         to empty.
42771
42772 2008-07-10  Ben Pfaff  <blp@gnu.org>
42773
42774         Add isnan module.
42775         * doc/posix-functions/isnan.texi: Mention new module.
42776         * lib/math.in.h: Define isnan macro if we have decided to replace
42777         it.
42778         * m4/isnan.m4: New file.
42779         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42780         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42781         also.
42782         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42783         redundancy.
42784         * m4/math_h.m4: Initialize and substitute variables for isnan
42785         module.
42786         * modules/isnan: New file.
42787         * modules/isnan-tests: New file.
42788         * modules/math: Add substitutions for new module.
42789         * tests/test-isnan.c: New file.
42790         * MODULES.html.sh: Mention new module.
42791
42792 2008-07-10  Ben Pfaff  <blp@gnu.org>
42793
42794         Add isnanf module.
42795         * lib/isnanf.m4: New file.
42796         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42797         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42798         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42799         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42800         * modules/isnanf: New file.
42801         * modules/isnanf-tests: New file.
42802         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42803         files.
42804         * tests/test-isnanf-nolibm.c: factored most of its contents into
42805         new file tests/test-isnanf.h.
42806         * tests/test-isnanf.h: New file.
42807         * tests/test-isnanf.c: New file.
42808         * MODULES.html.sh: Mention new module.
42809         * doc/glibc-functions/isnanf.texi: Mention new module.
42810
42811 2008-07-10  Ben Pfaff  <blp@gnu.org>
42812
42813         Add isnand module.
42814         * lib/isnand.h: New file.
42815         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42816         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42817         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42818         functionality also.
42819         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42820         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42821         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42822         * modules/isnand: New file.
42823         * modules/isnand-tests: New file.
42824         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42825         files.
42826         * tests/test-isnand-nolibm.c: factored most of its contents into
42827         new file tests/test-isnand.h.
42828         * tests/test-isnand.h: New file.
42829         * tests/test-isnand.c: New file.
42830         * MODULES.html.sh: Mention new module.
42831
42832 2008-07-10  Ben Pfaff  <blp@gnu.org>
42833
42834         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42835         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42836         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42837         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42838         * modules/isnanf-nolibm: Update references to renamed files.
42839         * modules/isnand-nolibm: Likewise.
42840         * modules/isnanf-nolibm-tests: Likewise.
42841         * modules/isnand-nolibm-tests: Likewise.
42842         * lib/frexp.c: Likewise.
42843         * lib/isfinite.c: Likewise.
42844         * lib/signbitd.c: Likewise.
42845         * lib/signbitf.c: Likewise.
42846         * lib/vasnprintf.c: Likewise.
42847         * tests/test-ceilf1.c: Likewise.
42848         * tests/test-ceilf2.c: Likewise.
42849         * tests/test-floorf1.c: Likewise.
42850         * tests/test-floorf2.c: Likewise.
42851         * tests/test-frexp.c: Likewise.
42852         * tests/test-round1.c: Likewise.
42853         * tests/test-round2.c: Likewise.
42854         * tests/test-roundf1.c: Likewise.
42855         * tests/test-strtod.c: Likewise.
42856         * tests/test-trunc1.c: Likewise.
42857         * tests/test-trunc2.c: Likewise.
42858         * tests/test-truncf1.c: Likewise.
42859         * tests/test-truncf2.c: Likewise.
42860         * NEWS: Mention the renamed header files.
42861
42862 2008-07-11  Jim Meyering  <meyering@redhat.com>
42863
42864         vc-list-files: make the last-resort awk code more portable
42865         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42866         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42867         does not support it.
42868
42869 2008-07-10  Eric Blake  <ebb9@byu.net>
42870
42871         Work with tar's bootstrap.
42872         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42873         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42874         an m4 comment.
42875
42876 2008-07-09  Jim Meyering  <meyering@redhat.com>
42877
42878         posix-shell.m4: fix typo that made this test malfunction
42879         * m4/posix-shell.m4: Remove capitalization in variable name.
42880
42881 2008-07-08  Bruno Haible  <bruno@clisp.org>
42882
42883         * m4/onceonly.m4: Update comments.
42884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42885
42886 2008-07-04  Jim Meyering  <meyering@redhat.com>
42887
42888         * users.txt: Add vc-dwim.
42889         (bison, coreutils): Use the gitweb URL.
42890
42891 2008-07-03  Jim Meyering  <meyering@redhat.com>
42892
42893         * users.txt: Add libffcall.  From Sam Steingold.
42894
42895 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
42896
42897         getdate.y: do not ignore TZ with relative day, month or year offset
42898         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42899         relative-date-handling, since otherwise, the latter would clobber the
42900         sole output (an updated Start value) of the tz-handling block.
42901         * tests/test-getdate.c: Tests for the fix
42902
42903 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42904
42905         Recognize 'foo_LIBRARIES += libgnu.a'.
42906         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42907         makefile snippet has already specified an installation location,
42908         also using '+='.
42909
42910 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
42911
42912         getdate.y: factor out common actions
42913         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42914         Use them in place of open-coded actions.
42915
42916 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42917
42918         Add self-test for getdate module.
42919         * modules/getdate-tests: New file.
42920         * tests/test-getdate.c: New file.
42921
42922 2008-06-29  Bruno Haible  <bruno@clisp.org>
42923
42924         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42925         .gitignore.
42926         Reported by Sylvain Beucler <beuc@beuc.net>.
42927
42928 2008-06-29  Bruno Haible  <bruno@clisp.org>
42929
42930         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42931         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42932
42933 2008-06-29  Bruno Haible  <bruno@clisp.org>
42934
42935         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42936         EXTRA_DIST.
42937         Reported by Sylvain Beucler <beuc@beuc.net>.
42938
42939 2008-06-26  Jim Meyering  <meyering@redhat.com>
42940
42941         make several modules depend on the "open" module
42942         This provides slightly increased consistency when opening-for-write
42943         the name of a non-directory spelled with a trailing slash.
42944         * modules/chdir-safer: Likewise.
42945         * modules/chown: Likewise.
42946         * modules/clean-temp: Likewise.
42947         * modules/copy-file: Likewise.
42948         * modules/fchdir: Likewise.
42949         * modules/fcntl-safer: Likewise.
42950         * modules/pipe: Likewise.
42951         * modules/utime: Likewise.
42952         Prompted by Eric Blake and Bruno Haible.
42953
42954 2008-06-24  Andreas Schwab  <schwab@suse.de>
42955
42956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42957         literals can be used as initializers for global variables.
42958
42959 2008-06-23  Eric Blake  <ebb9@byu.net>
42960
42961         Make gnulib-cache.m4 easier to diff.
42962         * gnulib-tool (func_import): Allow newlines when reading cached
42963         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42964
42965 2008-06-23  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42968         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42969         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42970         m4/signalblocking.m4.
42971         (gl_PREREQ_SIGACTION): Don't invoke it.
42972         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42973         gl_PREREQ_SIG_HANDLER_H.
42974         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42975         Don't check for sigaction here.
42976
42977 2008-06-23  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42980         (install_handlers): Don't set the SA_RESETHAND flag.
42981
42982 2008-06-23  Bruno Haible  <bruno@clisp.org>
42983
42984         * m4/sigaction.m4: Comment fixes.
42985         * lib/signal.in.h: Likewise.
42986
42987 2008-06-23  Eric Blake  <ebb9@byu.net>
42988
42989         Fix typo.
42990         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42991
42992         Avoid SA_ namespace.
42993         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42994         Reported by Ralf Wildenhues.
42995
42996         Avoid test failure due to SA_RESTORER.
42997         * tests/test-sigaction.c (SA_MASK): New macro.
42998         (main): Avoid failing due to extension flags being set.
42999         Reported by Jim Meyering.
43000
43001         Revert use of sig-handler.h in sigprocmask.c.
43002         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43003         it requires the existence of struct sigaction.
43004         * lib/sigprocmask.c (handler_t): Restore typedef.
43005         (rpl_signal, old_handlers): Use local type.
43006
43007 2008-06-22  Bruno Haible  <bruno@clisp.org>
43008
43009         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43010         conditionally.
43011         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43012
43013 2008-06-22  Bruno Haible  <bruno@clisp.org>
43014
43015         * doc/posix-functions/siginterrupt.texi: Move note.
43016
43017         * lib/signal.in.h (SA_RESTART): New macro.
43018         * lib/sigaction.c: Update comment.
43019
43020         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43021
43022         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43023         (gl_PREREQ_SIGPROCMASK): Invoke it.
43024         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43025
43026         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43027
43028         * lib/sigprocmask.c: Update a comment.
43029
43030 2008-06-21  Eric Blake  <ebb9@byu.net>
43031
43032         Use sigaction module rather than signal().
43033         * modules/c-stack (Depends-on): Add sigaction.
43034         * modules/fatal-signal (Depends-on): Likewise.
43035         * modules/nanosleep (Depends-on): Likewise.
43036         * modules/sigprocmask (Files): Add sig-handler.h.
43037         * modules/sigaction (Files): Likewise.
43038         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43039         Eggert.
43040         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43041         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43042         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43043         (init_fatal_signals): Likewise.
43044         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43045         (siginterrupt): Delete fallback.
43046         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43047         instead.
43048         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43049         siginterrupt.
43050
43051         New module sigaction, for mingw.
43052         * modules/sigaction: New module...
43053         * modules/sigaction-tests: ...and its test.
43054         * m4/sigaction.m4: New file.
43055         * lib/sigaction.c: Likewise.
43056         * tests/test-sigaction.c: Likewise.
43057         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43058         * modules/signal (Makefile.am): Likewise.
43059         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43060         needed.
43061         * doc/posix-headers/signal.texi (signal.h): Mention provided
43062         types.
43063         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43064         that sigaction is preferable.
43065         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43066         module.
43067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43068         sigaction.
43069
43070         Improve robustness of sigprocmask by overriding signal.
43071         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43072         is in use.
43073         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43074         (SIGKILL, SIGSTOP): Provide fallbacks.
43075         (rpl_signal): Implement.
43076         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43077         signal can be called inside handlers.
43078
43079         Fix nanosleep module on mingw.
43080         * modules/nanosleep (Depends-on): Add sys_select.
43081         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43082
43083         Fix licensing of sigprocmask.
43084         * modules/raise (License): Relicense as LGPL.
43085
43086 2008-06-21  Bruno Haible  <bruno@clisp.org>
43087
43088         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43089         result if it contains question marks.
43090         Reported by Michael Geng <linux@michaelgeng.de>.
43091
43092 2008-06-19  Bruno Haible  <bruno@clisp.org>
43093
43094         Fix CVS-ism.
43095         * doc/gnulib.texi: Include updated-stamp.texi.
43096         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43097         (updated-stamp.texi): New rule.
43098         (gnulib.info): Depend on it.
43099         * doc/.gitignore: Add updated-stamp.texi.
43100         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43101
43102 2008-06-19  Bruno Haible  <bruno@clisp.org>
43103
43104         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43105         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43106
43107 2008-06-19  Eric Blake  <ebb9@byu.net>
43108
43109         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43110         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43111         Reported by Stepan Kasal.
43112
43113 2008-06-18  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43116         Reported by Eric Blake.
43117
43118 2008-06-18  Eric Blake  <ebb9@byu.net>
43119
43120         Work around cygwin 1.5.25 strsignal bug.
43121         * tests/test-strsignal.c: Allow for const char *.
43122         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43123
43124 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43125
43126         * users.txt: Update URL to article and add author/date
43127         information.
43128
43129 2008-06-17  Bruno Haible  <bruno@clisp.org>
43130
43131         New macro gl_DISABLE_THREADS.
43132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43133         if the user did not pass --enable-threads or --disable-threads option.
43134         (gl_DISABLE_THREADS): New macro.
43135         Reported by Eric Blake <ebb9@byu.net>.
43136
43137 2008-06-17  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43140         when the macro ignores it.
43141         Based on a patch by Eric Blake <ebb9@byu.net>.
43142
43143 2008-06-17  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/tls (License): Change to LGPLv2+.
43146         Reported by Eric Blake.
43147
43148 2008-06-17  Eric Blake  <ebb9@byu.net>
43149
43150         Simplify c-stack prerequisites.
43151         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43153         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43154         check.
43155         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43156         <sys/resource.h>.
43157
43158         Move c-stack test into testsuite.
43159         * modules/c-stack-tests: New file.
43160         * lib/c-stack.c [DEBUG]: Move test program...
43161         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43162         fail test if sigaltstack is lacking.
43163         * tests/test-c-stack.sh: New driver file.
43164
43165 2008-06-16  Eric Blake  <ebb9@byu.net>
43166
43167         Use raise module consistently.
43168         * modules/fatal-signal (Depends-on): Add raise.
43169         * modules/sigprocmask (Depends-on): Likewise.
43170         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43171         * lib/sigprocmask.c (sigprocmask): Likewise.
43172         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43174
43175         Fix compliance bug in sigpending.
43176         * lib/sigprocmask.c (sigpending): Return pending array via
43177         parameter, not return value.
43178
43179 2008-06-14  Eric Blake  <ebb9@byu.net>
43180
43181         Improve obstack-printf test code.
43182         * tests/test-obstack-printf.c (test_function): Fix comment, and
43183         simplify usage of obstack_* in macros.  Add a test for coverage.
43184         Reported by Bruno Haible.
43185
43186 2008-06-14  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43189         array size as a constant, not as a const variable.
43190         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43191         AC_USE_SYSTEM_EXTENSIONS.
43192         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43193         Test whether the obstack_printf function actually exists.
43194         * modules/obstack-printf (Depends-on): Add extensions.
43195         (Include): Remove obstack.h.
43196         * modules/obstack-printf-posix (Depends-on): Add extensions.
43197         (Include): Remove obstack.h.
43198
43199 2008-06-13  Eric Blake  <ebb9@byu.net>
43200
43201         Add obstack-printf and obstack-printf-posix modules.
43202         * modules/obstack-printf: New file.
43203         * modules/obstack-printf-posix: Likewise.
43204         * MODULES.html.sh (Misc): Mention them.
43205         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43206         Likewise.
43207         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43208         Likewise.
43209         * modules/stdio (Makefile.am): Accomodate new modules.
43210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43211         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43212         Declare.
43213         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43214         functions.
43215         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43216         (gl_REPLACE_OBSTACK_PRINTF): New macros
43217         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43218         * tests/test-obstack-printf.c: New file.
43219         * modules/obstack-printf-tests: Likewise.
43220         * modules/obstack-printf-posix-tests: Likewise.
43221
43222 2008-06-11  Bruno Haible  <bruno@clisp.org>
43223
43224         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43225         * lib/open.c: Include errno.h.
43226         (open): Fail when attempting to write to a file that has a trailing
43227         slash.
43228         * tests/test-open.c (main): Test against trailing slash bug.
43229         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43230
43231 2008-06-10  Bruno Haible  <bruno@clisp.org>
43232
43233         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43234         for $? to work inside the trap command, with various /bin/sh-s.
43235         * tests/test-vc-list-files-cvs.sh: Likewise.
43236
43237 2008-06-10  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/acl-internal.h: Don't include gettext.h here.
43240         * lib/set-mode-acl.c: Include gettext.h here.
43241         * lib/copy-acl.c: Likewise.
43242
43243 2008-06-10  Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43246         * lib/wait-process.c (wait_subprocess): Likewise.
43247         * lib/execute.h (execute): Add termsigp argument.
43248         * lib/execute.c (execute): Likewise.
43249         * lib/csharpcomp.c (compile_csharp_using_pnet,
43250         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43251         * lib/csharpexec.c (execute_csharp_using_pnet,
43252         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43253         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43254         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43255         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43256         is_jikes_present): Update.
43257         * lib/javaexec.c (execute_java_class): Update.
43258         * lib/javaversion.c (execute_and_read_line): Update.
43259         * NEWS: Document the changes.
43260         Reported by Eric Blake.
43261
43262 2008-06-10  Eric Blake  <ebb9@byu.net>
43263
43264         Add missing include.
43265         * tests/test-strstr.c (includes): Add <signal.h>.
43266         * tests/test-strcasestr.c (includes): Likewise.
43267         * tests/test-memmem.c (includes): Likewise.
43268
43269 2008-06-10  Bruno Haible  <bruno@clisp.org>
43270
43271         * lib/wait-process.c (wait_subprocess): Add an assertion.
43272
43273 2008-06-10  Bruno Haible  <bruno@clisp.org>
43274
43275         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43276
43277 2008-06-10  Bruno Haible  <bruno@clisp.org>
43278
43279         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43280         using alarm().
43281         * tests/test-strcasestr.c (main): Likewise.
43282         * tests/test-strstr.c (main): Likewise.
43283
43284 2008-06-09  Bruno Haible  <bruno@clisp.org>
43285
43286         Work around the Solaris 10 ACE ACLs ABI change.
43287         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43288         declare if ACL_NO_TRIVIAL is present.
43289         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43290         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43291         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43292         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43293         define if ACL_NO_TRIVIAL is present.
43294         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43295         and use the current ABI.
43296         (file_has_acl): Use same #if condition as elsewhere.
43297         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43298         in use, and use the current ABI.
43299         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43300         Reported by Jim Meyering.
43301
43302 2008-06-09  Eric Blake  <ebb9@byu.net>
43303
43304         Work around environments that (stupidly) ignore SIGALRM.
43305         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43306         before using alarm().
43307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43309         Reported by Ian Beckwith <ianb@erislabs.net>.
43310
43311         Produce autobuild blurb earlier in log.
43312         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43313
43314 2008-06-09  Jim Meyering  <meyering@redhat.com>
43315         and Ondřej Vašík  <ovasik@redhat.com>
43316
43317         utimens.c: correct kernel bug work-around
43318         Ondřej Vašík found that the invalid return value of 280 indicates
43319         failure, not success, and the kernel bug we're trying to work
43320         around affects not just the utimensat call, but also the fallback
43321         futimens call.
43322         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43323         not success.
43324         [HAVE_FUTIMENS]: Use the same work-around, here.
43325
43326 2008-06-09  Jim Meyering  <meyering@redhat.com>
43327
43328         add more guards around definition of ACE_-related code
43329         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43330         ALLOW and ACE_OWNER are also defined.
43331
43332 2008-06-08  Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/acl-internal.h: Add me as co-author.
43335         * lib/file-has-acl.c: Likewise.
43336         * lib/set-mode-acl.c: Likewise.
43337         * lib/copy-acl.c: Likewise.
43338
43339 2008-06-08  Bruno Haible  <bruno@clisp.org>
43340
43341         Add support for AIX ACLs.
43342         * lib/acl-internal.h (acl_nontrivial): New declaration.
43343         * lib/file-has-acl.c (acl_nontrivial): New function.
43344         (file_has_acl): Add implementation using AIX 4 ACL API.
43345         * lib/set-mode-acl.c (qset_acl): Likewise.
43346         * lib/copy-acl.c (qcopy_acl): Likewise.
43347
43348 2008-06-08  Bruno Haible  <bruno@clisp.org>
43349
43350         Add support for HP-UX ACLs.
43351         * lib/acl-internal.h (acl_nontrivial): New declaration.
43352         * lib/file-has-acl.c (acl_nontrivial): New function.
43353         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43354         * lib/set-mode-acl.c (qset_acl): Likewise.
43355         * lib/copy-acl.c (qcopy_acl): Likewise.
43356
43357 2008-06-08  Bruno Haible  <bruno@clisp.org>
43358
43359         Add support for Cygwin ACLs.
43360         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43361         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43362         the chmod_or_fchmod call.
43363         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43364
43365 2008-06-08  Bruno Haible  <bruno@clisp.org>
43366
43367         Fix bug with setuid modes in Solaris 10+ code.
43368         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43369         succeeded, when the mode contains some special bits.
43370
43371 2008-06-08  Bruno Haible  <bruno@clisp.org>
43372
43373         Add support for Solaris 7..10 ACLs.
43374         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43375         declarations.
43376         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43377         functions.
43378         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43379         * lib/set-mode-acl.c (qset_acl): Likewise.
43380         * lib/copy-acl.c (qcopy_acl): Likewise.
43381
43382 2008-06-08  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43385         declaration.
43386         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43387         (acl_access_nontrivial): Remove MacOS X case.
43388         (file_has_acl): Use acl_extended_nontrivial.
43389         * lib/copy-acl.c (qcopy_acl): Likewise.
43390
43391 2008-06-08  Bruno Haible  <bruno@clisp.org>
43392
43393         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43394
43395 2008-06-08  Jim Meyering  <meyering@redhat.com>
43396
43397         * modules/acl (Maintainer): Add Bruno Haible.
43398
43399 2008-06-07  Bruno Haible  <bruno@clisp.org>
43400
43401         Improve support for Tru64 ACLs.
43402         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43403         ACL on OSF/1.
43404
43405 2008-06-07  Bruno Haible  <bruno@clisp.org>
43406
43407         Add support for MacOS X ACLs.
43408         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43409         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43410         * lib/set-mode-acl.c (qset_acl): Likewise.
43411         * lib/copy-acl.c (qcopy_acl): Likewise.
43412
43413 2008-06-07  Bruno Haible  <bruno@clisp.org>
43414
43415         Fix memory leak introduced on 2008-05-22.
43416         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43417         use.
43418
43419 2008-06-07  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43422         to construct an empty ACL.
43423
43424 2008-06-07  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43427         precisely.
43428         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43429
43430 2008-06-07  Bruno Haible  <bruno@clisp.org>
43431
43432         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43433         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43434
43435 2008-06-07  Bruno Haible  <bruno@clisp.org>
43436
43437         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43438         regardless of POSIX.
43439         * doc/posix-functions/_longjmp.texi: Likewise.
43440         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43441         SystemV platform in this case.
43442
43443 2008-06-06  Eric Blake  <ebb9@byu.net>
43444
43445         Document abort() bugs.
43446         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43447
43448         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43449         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43450         sigsetjmp.
43451         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43452         siglongjmp, but only as a macro.
43453         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43454         is obsolete.
43455         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43456
43457         Tweak documentation to cover cygwin argz bugs.
43458         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43459         argz bug fix; no code change needed since no cygwin releases
43460         occurred between the last fix and the bug being tested.
43461         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43462         module and recently fixed cygwin bugs.
43463         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43464         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43465         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43466         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43467         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43468         Likewise.
43469         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43470         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43471         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43472         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43473         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43474         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43475         Likewise.
43476
43477         Avoid gcc warning on cygwin.
43478         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43479         !ACL_NO_TRIVIAL]: Avoid unused variable.
43480
43481 2008-06-05  Eric Blake  <ebb9@byu.net>
43482
43483         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43484         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43485         git-version-gen fails to come up with a version.
43486         Reported by Simon Josefsson.
43487
43488 2008-06-05  Jim Meyering  <meyering@redhat.com>
43489             Paul Eggert  <eggert@cs.ucla.edu>
43490
43491         utimens.c: work around a probable Linux kernel bug
43492         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43493         appears to be a kernel bug that causes utimensat to return 280
43494         instead of 0, indicating success.
43495
43496 2008-06-04  Bruno Haible  <bruno@clisp.org>
43497
43498         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43499         2008-06-01 commit.
43500
43501 2008-06-04  Bruno Haible  <bruno@clisp.org>
43502
43503         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43504         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43505         (file_has_acl): Use it. Save errno afterwards.
43506         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43507
43508 2008-06-03  Bruno Haible  <bruno@clisp.org>
43509
43510         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43511         draft code. Simplify #ifs.
43512         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43513         Put Solaris code after POSIX-draft code. Fix comments regarding
43514         Solaris 10, HP-UX. Mention Cygwin.
43515         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43516
43517 2008-06-03  Eric Blake  <ebb9@byu.net>
43518
43519         Provide fallback for older kernels.
43520         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43521         Provide runtime fallback if kernel lacks support.
43522         Reported by Mike Frysinger.
43523
43524 2008-06-02  Bruno Haible  <bruno@clisp.org>
43525
43526         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43527         it exists.
43528
43529 2008-06-02  Bruno Haible  <bruno@clisp.org>
43530
43531         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43532         * lib/copy-acl.c (qcopy_acl): Update comment.
43533
43534 2008-06-02  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43537         like ACL APIs.
43538
43539 2008-06-02  Bruno Haible  <bruno@clisp.org>
43540
43541         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43542         * tests/test-set-mode-acl.sh: Likewise.
43543         * tests/test-copy-acl.sh: Likewise.
43544         * tests/test-copy-file.sh: Likewise.
43545
43546 2008-06-02  Bruno Haible  <bruno@clisp.org>
43547
43548         * tests/test-file-has-acl.sh: Remove unused code.
43549
43550 2008-06-01  Bruno Haible  <bruno@clisp.org>
43551
43552         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43553         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43554         messages.
43555         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43556
43557 2008-06-01  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43560         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43561         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43562         APIs.
43563         * modules/acl-tests (configure.ac): Remove tests now contained in
43564         m4/acl.m4.
43565
43566 2008-06-02  Jim Meyering  <meyering@redhat.com>
43567
43568         announce-gen: use a better key-server host name
43569         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43570         it may be more consistently reliable.  Suggested by Werner Koch
43571         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43572
43573 2008-06-01  Bruno Haible  <bruno@clisp.org>
43574
43575         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43576         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43577
43578 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43579
43580         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43581
43582 2008-06-01  Bruno Haible  <bruno@clisp.org>
43583
43584         New ACL tests.
43585         * tests/test-file-has-acl.sh: New file.
43586         * tests/test-file-has-acl.c: New file.
43587         * tests/test-set-mode-acl.sh: New file.
43588         * tests/test-set-mode-acl.c: New file.
43589         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43590         * tests/test-copy-acl.c: New file.
43591         * modules/acl-tests: New file, based on modules/copy-file-tests.
43592         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43593         (Depends-on): Add acl-tests.
43594         (configure.ac): Remove checks.
43595         (Makefile.am): Don't create test-sameacls program here any more.
43596
43597 2008-06-01  Bruno Haible  <bruno@clisp.org>
43598
43599         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43600         * tests/test-sameacls.c: Include progname.h.
43601         (main): Invoke set_program_name. Portability fixes for MacOS X,
43602         Solaris, HP-UX.
43603
43604 2008-06-01  Bruno Haible  <bruno@clisp.org>
43605
43606         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43607         function.
43608         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43609
43610 2008-06-01  Bruno Haible  <bruno@clisp.org>
43611
43612         * modules/rpmatch (Depends-on): Add strdup.
43613
43614 2008-06-01  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/pipe.c: Include unistd-safer.h.
43617         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43618         * modules/pipe (Depends-on): Add unistd-safer.
43619
43620 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43621
43622         * modules/autobuild (configure.ac): Call AB_INIT.
43623
43624 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43625
43626         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43627         Suggested by Bruno Haible <bruno@clisp.org>.
43628
43629 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43630
43631         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43632         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43633         <bruno@clisp.org>.
43634
43635 2008-05-29  Eric Blake  <ebb9@byu.net>
43636
43637         Prefer new POSIX 200x interfaces over futimesat.
43638         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43639         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43640         when available.
43641         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43642
43643 2008-05-28  Bruno Haible  <bruno@clisp.org>
43644
43645         * modules/stpcpy (License): Change to LGPLv2+.
43646         Requested by David Lutterkort <dlutter@redhat.com>.
43647
43648 2008-05-27  Bruno Haible  <bruno@clisp.org>
43649
43650         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43651         current mingw.
43652         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43653
43654 2008-05-27  Bruno Haible  <bruno@clisp.org>
43655
43656         * modules/iconv_open (Link): New section, from module 'iconv'.
43657         * modules/striconv (Link): Likewise.
43658         * modules/striconveh (Link): Likewise.
43659         * modules/xstriconv (Link): Likewise.
43660         * modules/unicodeio (Link): Likewise.
43661         * modules/propername (Link): Likewise.
43662         Reported by Jim Meyering.
43663
43664 2008-05-26  Jim Meyering  <meyering@redhat.com>
43665
43666         sha256: do not artificially restrict buffer length to be < 2^32
43667         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43668         uint32_t to size_t.
43669         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43670         to match.
43671
43672         avoid unaligned access errors, e.g., on sparc
43673         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43674         direct access through a possibly-unaligned uint64* pointer.
43675         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43676         direct access through a possibly-unaligned uint32* pointer.
43677         Prompted by this patch from Tom "spot" Callaway:
43678         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43679
43680         sha512.c: fix typo in comment
43681         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43682
43683 2008-05-25  Bruno Haible  <bruno@clisp.org>
43684
43685         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43686         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43687         (Makefile.am): Update lib_SOURCES.
43688
43689 2008-05-25  Bruno Haible  <bruno@clisp.org>
43690
43691         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43692
43693 2008-05-25  Jim Meyering  <meyering@redhat.com>
43694
43695         useless-if-before-free: freed expr may have white-space differences
43696         * build-aux/useless-if-before-free: Recognize cases in which the
43697         freed expression differs from the tested one in embedded white
43698         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43699         $1 was used, so we can't make any regexp shy.  Improved tests now
43700         detect this.
43701
43702         useless-if-before-free: accept white space in the expression.
43703         * build-aux/useless-if-before-free: For now, any white space
43704         in the expression must be identical in the free argument.
43705
43706         useless-if-before-free: efficiency tweak
43707         * build-aux/useless-if-before-free: Make the expression-matching
43708         regexp "shy".
43709         Make the *outer* regexp shy, not the expr-matching one.
43710
43711         update code-in-comment to accept cast of free arg
43712         * build-aux/useless-if-before-free: Update regexp.
43713
43714 2008-05-25  Bruno Haible  <bruno@clisp.org>
43715
43716         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43717         * modules/copy-file-tests (Files, Makefile.am): Update.
43718         * tests/test-copy-file.c (func_test_copy): Update.
43719
43720 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43721
43722         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43723
43724 2008-05-23  Bruno Haible  <bruno@clisp.org>
43725
43726         Improve support for ACLs on OSF/1.
43727         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43728         Remove fallback for unknown flavors of ACLs.
43729
43730 2008-05-22  Bruno Haible  <bruno@clisp.org>
43731
43732         Add support for ACLs on OSF/1.
43733         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43734         replacements.
43735         (acl_free_text): New macro fallback.
43736         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43737         acl_free.
43738         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43739         acl_free_text function. Require AC_C_INLINE.
43740
43741 2008-05-22  Bruno Haible  <bruno@clisp.org>
43742
43743         Make copy_acl work on MacOS X 10.5.
43744         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43745         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43746         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43747         If MODE_INSIDE_ACL, don't assume that every system has the same text
43748         representation for ACLs as FreeBSD.
43749         * lib/copy-acl.c (copy_acl): Add support for platforms with
43750         !MODE_INSIDE_ACL.
43751         * lib/file-has-acl.c (file_has_acl): Likewise.
43752         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43753         FreeBSD, MacOS X, or IRIX, respectively.
43754
43755 2008-05-22  Bruno Haible  <bruno@clisp.org>
43756
43757         * lib/acl.h: Don't include <sys/acl.h>.
43758         (GETACLCNT): Move fallback to lib/acl-internal.h.
43759         * lib/acl-internal.h: Include <sys/acl.h> here.
43760         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43761
43762 2008-05-22  Bruno Haible  <bruno@clisp.org>
43763
43764         Split off copy_acl function to separate file.
43765         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43766         * lib/acl.c (copy_acl): Moved function to separate file.
43767         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43768         * modules/acl (Files): Add lib/copy-acl.c.
43769         (Makefiles.am): Augment lib_SOURCES.
43770
43771 2008-05-22  Bruno Haible  <bruno@clisp.org>
43772
43773         * modules/copy-file-tests: New file.
43774         * tests/test-copy-file.sh: New file.
43775         * tests/test-copy-file.c: New file.
43776         * tests/test-copy-file-sameacls.c: New file.
43777
43778 2008-05-22  Eric Blake  <ebb9@byu.net>
43779
43780         Avoid gcc warning.
43781         * tests/test-memcmp.c (main): Pass NULL indirectly.
43782
43783 2008-05-21  Bruno Haible  <bruno@clisp.org>
43784
43785         Add reference doc about ACLs.
43786         * doc/acl-resources.txt: New file.
43787         * doc/acl-cygwin.txt: New file.
43788
43789 2008-05-21  Bruno Haible  <bruno@clisp.org>
43790
43791         Avoid one more warning from gcc.
43792         * lib/vasnprintf.c (IF_LINT): Update comments.
43793         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43794
43795 2008-05-21  Jim Meyering  <meyering@redhat.com>
43796
43797         avoid a warning from gcc
43798         * lib/vasnprintf.c (IF_LINT): Define.
43799         (scale10_round_decimal_long_double):
43800         Use it to avoid a "may be used uninitialized" warning.
43801         (scale10_round_decimal_double): Likewise.
43802
43803 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43804
43805         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43806         declared.
43807
43808 2008-05-20  Bruno Haible  <bruno@clisp.org>
43809
43810         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43811         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43812
43813 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43814
43815         * modules/memcmp-tests: New file.
43816         * tests/test-memcmp.c: New file.
43817
43818 2008-05-19  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/propername (Notice, configure.ac): Put quoted "..." into
43821         --keyword option.
43822         * lib/propername.h: Update comments accordingly.
43823         Reported by Eric Blake.
43824
43825 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43826
43827         * modules/getpass-gnu (Depends-on): Add fseeko.
43828
43829 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43830
43831         * modules/base64-tests: New file.
43832
43833 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43834
43835         * lib/base64.c (base64_decode_ctx): If a decode context structure
43836         was passed in use it to ignore newlines.  If a context structure
43837         was _not_ passed in, continue to treat newlines as garbage (this
43838         is the historical behavior).  Formerly base64_decode.
43839         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43840         takes a decode context structure.
43841         * lib/base64.h (base64_decode): Macro for four-argument calls.
43842         (base64_decode_alloc): Likewise.
43843         * lib/base64.c (base64_decode_ctx): If a decode context structure
43844         was passed in use it to ignore newlines.  If a context structure
43845         was _not_ passed in, continue to treat newlines as garbage (this
43846         is the historical behavior).  Formerly base64_decode.
43847         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43848         takes a decode context structure.
43849         * lib/base64.h (base64_decode): Macro for four-argument calls.
43850         (base64_decode_alloc): Likewise.
43851
43852 2008-05-19  Jim Meyering  <meyering@redhat.com>
43853
43854         avoid a warning from gcc
43855         * lib/trim.c (IF_LINT): Define.
43856         (trim2): Use it to avoid a "may be used uninitialized" warning.
43857
43858         Fix doc typo.
43859         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43860
43861 2008-05-19  Bruno Haible  <bruno@clisp.org>
43862
43863         * doc/glibc-functions/getpass.texi: Document limits of other
43864         implementations.
43865
43866 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43867             Bruno Haible <bruno@clisp.org>
43868
43869         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43870
43871 2008-05-18  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/propername: New file, from GNU gettext.
43874         * lib/propername.h: New file, from GNU gettext.
43875         * lib/propername.c: New file, from GNU gettext.
43876         * MODULES.html.sh (Internationalization functions): Add propername.
43877
43878 2008-05-16  Jim Meyering  <meyering@redhat.com>
43879             Bruno Haible  <bruno@clisp.org>
43880
43881         Avoid some warnings from "gcc -Wshadow".
43882         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43883
43884 2008-05-15  Eric Blake  <ebb9@byu.net>
43885
43886         Extend previous patch to cygwin 1.7.0.
43887         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43888         fast implementation in cygwin >= 1.7.0.
43889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43891
43892 2008-05-15  Bruno Haible  <bruno@clisp.org>
43893
43894         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43895         implementation in glibc >= 2.9.
43896         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43898
43899 2008-05-15  Bruno Haible  <bruno@clisp.org>
43900
43901         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43902         (Unicode string functions): Add unilbrk/*.
43903         Reported by Karl Berry.
43904
43905 2008-05-15  Eric Blake  <ebb9@byu.net>
43906
43907         Fix violation of <stdbool.h> replacement in regex.
43908         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43909         * lib/regexec.c (re_search_internal): Likewise.
43910         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43911
43912 2008-05-15  Jim Meyering  <meyering@redhat.com>
43913
43914         avoid distracting test output when git or cvs is not found
43915         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43916         * tests/test-vc-list-files-git.sh: Likewise.
43917
43918 2008-05-15  Eric Blake  <ebb9@byu.net>
43919
43920         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43921         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43922         glibc version.
43923         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43924         * doc/posix-functions/strstr.texi (strstr): Likewise.
43925         * lib/str-two-way.h (MAX): Sychronize with glibc.
43926
43927 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43928
43929         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43930         opr.ctx_type.
43931         (calc_first): Initialize constraint field.
43932         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43933         Fix grammar.
43934         (duplicate_node): Merge constraint field for all node types.
43935         (calc_eclosure_iter): Look at constraint field for all node types.
43936         * lib/regex_internal.c (create_cd_newstate): Don't look at
43937         opr.ctx_type.
43938
43939 2008-05-14  Bruno Haible  <bruno@clisp.org>
43940
43941         Help GCC to do better code generation.
43942         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43943         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43944         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43945         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43946         Declare with attribute 'malloc' if supported.
43947
43948 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43949
43950         use "echo STR|wc -c" rather than unportable "expr length STR"
43951         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43952         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43953
43954 2008-05-14  Jim Meyering  <meyering@redhat.com>
43955
43956         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43957         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43958         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43959         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43960         via Collin Lasse.
43961
43962 2008-05-14  Eric Blake  <ebb9@byu.net>
43963
43964         Avoid quadratic growth in gl_LIBSOURCES.
43965         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43966         Suggested by Bruno Haible.
43967
43968         Test xmemdup0.
43969         * modules/xmemdup0-tests: New file.
43970         * tests/test-xmemdup0.c: Likewise.
43971
43972 2008-05-13  Eric Blake  <ebb9@byu.net>
43973
43974         Split xmemdup0 into its own module.
43975         * modules/xmemdup0: New file.
43976         * lib/xmemdup0.h: Likewise.
43977         * lib/xmemdup0.c: Likewise.
43978         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43979         * lib/xalloc.h (xmemdup0): Remove.
43980         * lib/xmalloc.c (xmemdup0): Likewise.
43981
43982 2008-05-13  Eric Blake  <ebb9@byu.net>
43983             Bruno Haible  <bruno@clisp.org>
43984
43985         Reduce number of forks required during autoconf.
43986         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43987         and gl_LIBSOURCES_DIR.
43988         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43989         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43990         m4_syscmd per file.
43991         <m4_foreach_w>: Move...
43992         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43993
43994 2008-05-13  Eric Blake  <ebb9@byu.net>
43995
43996         * gnulib-tool: Fix various comment typos.
43997
43998 2008-05-12  Bruno Haible  <bruno@clisp.org>
43999
44000         Tailor the linebreaking algorithm.
44001         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44002
44003 2008-05-12  Bruno Haible  <bruno@clisp.org>
44004
44005         Update to Unicode 5.0.0.
44006         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44007         LBP_JV, LBP_JT. Redistribute values.
44008         (unilbrk_table): Change size.
44009         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44010         Unicode TR#14 rev. 22.
44011         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44012         LBP_JV, LBP_JT. Redistribute values.
44013         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44014         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44015         Update.
44016         * lib/unilbrk/lbrkprop1.h: Regenerated.
44017         * lib/unilbrk/lbrkprop2.h: Regenerated.
44018         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44019         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44020         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44021         Likewise.
44022         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44023         Likewise.
44024         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44025         result.
44026         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44027         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44028         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44029         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44030         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44031         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44032
44033 2008-05-11  Bruno Haible  <bruno@clisp.org>
44034
44035         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44036
44037 2008-05-11  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44040         * modules/unilbrk/gen-lbrk: New file.
44041
44042 2008-05-11  Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44045         * m4/sha512.m4 (gl_SHA512): Likewise.
44046
44047 2008-05-11  Jim Meyering  <meyering@redhat.com>
44048
44049         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44050         * modules/crypto/sha256: New file.
44051         * modules/crypto/sha512: Likewise.
44052         * lib/sha256.c: Likewise.
44053         * lib/sha256.h: Likewise.
44054         * lib/sha512.c: Likewise.
44055         * lib/sha512.h: Likewise.
44056         * lib/u64.h: Likewise.
44057         * m4/sha256.m4: Likewise.
44058         * m4/sha512.m4: Likewise.
44059         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44060
44061 2008-05-10  Bruno Haible  <bruno@clisp.org>
44062
44063         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44064         (Input/Output <stdio.h>): Add xprintf.
44065         (Signal handling <signal.h>): Add strsignal.
44066         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44067         (Core language properties): Add func.
44068         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44069         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44070         strings.
44071         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44072         (Input/output): New section.
44073         (File system functions): Add openat-die, stat-macros.
44074         (Networking functions): Add sockets.
44075         (Unicode string functions): Add unictype/*.
44076         (Support for building libraries and executables): Add gperf.
44077         (Support for building documentation): Add agpl-3.0.
44078         (Misc): Add nocrash.
44079
44080 2008-05-10  Bruno Haible  <bruno@clisp.org>
44081
44082         * modules/unictype/gen-ctype: New file.
44083
44084 2008-05-10  Jim Meyering  <meyering@redhat.com>
44085
44086         Make chdir-safer.c more efficient on a system with no symlinks.
44087         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44088         also if ELOOP is zero.  Suggested by Bruno Haible.
44089
44090         Make chdir-safer.c slightly safer.
44091         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44092         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44093
44094         Avoid compile failure on systems without ELOOP (like mingw).
44095         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44096         Reported by Bruno Haible.
44097
44098 2008-05-10  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44101         (is_utf8_encoding): Use a case-insensitive comparison.
44102         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44103         streq.
44104
44105 2008-05-10  Bruno Haible  <bruno@clisp.org>
44106
44107         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44108         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44109         * lib/unilbrk/ulc-common.h (iconv_string_length,
44110         iconv_string_keeping_offsets): Remove declarations.
44111         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44112         Don't include <iconv.h>, streq.h, xsize.h.
44113         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44114         conversion.
44115         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44116         <iconv.h>, streq.h, xsize.h.
44117         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44118         conversion.
44119         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44120         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44121         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44122         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44123
44124 2008-05-10  Bruno Haible  <bruno@clisp.org>
44125
44126         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44127         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44128
44129         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44130         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44131
44132         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44133         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44134
44135         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44136         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44137
44138         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44139         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44140
44141         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44142         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44143
44144         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44145         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44146
44147         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44148         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44149
44150 2008-05-10  Bruno Haible  <bruno@clisp.org>
44151
44152         Split up 'linebreak' module.
44153         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44154         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44155         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44156         modifications.
44157         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44158         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44159         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44160         lib/linebreak.c.
44161         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44162         lib/linebreak.c.
44163         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44164         lib/linebreak.c.
44165         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44166         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44167         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44168         lib/linebreak.c.
44169         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44170         lib/linebreak.c.
44171         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44172         lib/linebreak.c.
44173         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44174         lib/linebreak.c.
44175         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44176         lib/linebreak.c.
44177         * modules/unilbrk/base: New file.
44178         * modules/unilbrk/tables: New file.
44179         * modules/unilbrk/u8-possible-linebreaks: New file.
44180         * modules/unilbrk/u16-possible-linebreaks: New file.
44181         * modules/unilbrk/u32-possible-linebreaks: New file.
44182         * modules/unilbrk/ulc-common: New file.
44183         * modules/unilbrk/ulc-possible-linebreaks: New file.
44184         * modules/unilbrk/u8-width-linebreaks: New file.
44185         * modules/unilbrk/u16-width-linebreaks: New file.
44186         * modules/unilbrk/u32-width-linebreaks: New file.
44187         * modules/unilbrk/ulc-width-linebreaks: New file.
44188         * lib/linebreak.h: Remove file.
44189         * lib/linebreak.c: Remove file.
44190         * m4/linebreak.m4: Remove file.
44191         * modules/linebreak: Remove file.
44192         * NEWS: Mention the changes.
44193
44194 2008-05-09  Eric Blake  <ebb9@byu.net>
44195
44196         Add xmemdup0.
44197         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44198         implementation.
44199         * lib/xmalloc.c (xmemdup0): New C implementation.
44200
44201 2008-05-08  Bruno Haible  <bruno@clisp.org>
44202
44203         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44204
44205 2008-05-07  Eric Blake  <ebb9@byu.net>
44206
44207         Support cross-compilation of <wctype.h>.
44208         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44209         AC_CACHE_CHECK.
44210
44211 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44212
44213         * build-aux/vc-list-files: Add support for bzr.
44214
44215 2008-05-03  Jim Meyering  <meyering@redhat.com>
44216
44217         avoid failed assertion with tight malloc
44218         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44219
44220 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44221
44222         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44223         are needed from arpa/inet.h.
44224         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44225         Reported by Bruno Haible.
44226
44227 2008-05-02  Jim Meyering  <meyering@redhat.com>
44228
44229         avoid compilation error on FreeBSD 6
44230         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44231
44232 2008-05-01  Jim Meyering  <meyering@redhat.com>
44233
44234         useless-if-before-free: correct --help's exit status description
44235         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44236         for one or more matches, etc.  Reported by Bruno Haible.
44237
44238         vc-list-files: make the stand-alone gnulib test work
44239         * modules/vc-list-files-tests (configure.ac):
44240         Define and AC_SUBST abs_aux_dir.
44241         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44242         $(abs_top_srcdir) to each script and having each of them
44243         duplicate the work of setting PATH, set PATH here, using
44244         the new variable, abs_aux_dir instead.
44245         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44246         * tests/test-vc-list-files-git.sh: Likewise.
44247         Reported by Bruno Haible.
44248
44249 2008-05-01  Bruno Haible  <bruno@clisp.org>
44250
44251         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44252         reallocation. Rename 'done' to 'found_delimiter'.
44253
44254 2008-05-01  Jim Meyering  <meyering@redhat.com>
44255
44256         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44257         * build-aux/vc-list-files: Use `...`, not $(...).
44258
44259 2008-04-30  Jim Meyering  <meyering@redhat.com>
44260
44261         add tests for vc-list-files
44262         * modules/vc-list-files-tests: New module.
44263         * tests/test-vc-list-files-cvs.sh: New file.
44264         * tests/test-vc-list-files-git.sh: New file.
44265
44266         avoid a warning from gcc
44267         * lib/getndelim2.c (IF_LINT): Define.
44268         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44269
44270         vc-list-files: work properly with build-aux/cvsu, too
44271         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44272         to all cvs-based clauses.
44273
44274         vc-list-files: work properly in the CVS+awk case, too
44275         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44276
44277         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44278         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44279         take more than one file argument, so .  Add quotes, just in case $dir
44280         ever contains a shell meta-character.  Prompted by Soren Hansen in
44281         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44282
44283 2008-04-29  Eric Blake  <ebb9@byu.net>
44284
44285         Optimize getndelim2 to use block operations when possible.
44286         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44287         freadseek, and memchr2.
44288         * lib/getndelim2.c (getndelim2): Use them for block reads.
44289
44290 2008-04-29  Bruno Haible  <bruno@clisp.org>
44291
44292         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44293         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44294         * modules/inet_ntop (Depends-on): Add extensions.
44295         * modules/inet_pton (Depends-on): Likewise.
44296         Reported by Simon Josefsson.
44297
44298 2008-04-29  Jim Meyering  <meyering@redhat.com>
44299
44300         When the is more than one match in a block, match all of them.
44301         * build-aux/useless-if-before-free: Iterate through each block
44302         until there are no more matches.
44303
44304         Fix broken useless-if-before-free script.
44305         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44306         the expression to match cast of argument to free-like function.
44307
44308 2008-04-29  Eric Blake  <ebb9@byu.net>
44309
44310         Use new header.
44311         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44312
44313 2008-04-29  Jim Meyering  <meyering@redhat.com>
44314
44315         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44316         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44317         by gnulib to exist and to declare e.g., inet_ntop.
44318         Don't include "inet_ntop.h", now removed.
44319
44320         * m4/arpa_inet_h.m4: Remove trailing blanks.
44321
44322 2008-04-29  Eric Blake  <ebb9@byu.net>
44323
44324         Silence valgrind on safe reads beyond potential array bounds.
44325         * lib/rawmemchr.valgrind: New file.
44326         * lib/strchrnul.valgrind: Likewise.
44327         * modules/rawmemchr (Files): Distribute new file.
44328         * modules/strchrnul (Files): Likewise.
44329         Suggested by Bruno Haible.
44330
44331 2008-04-29  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44334         (inet_ntop, inet_pton): Change portability warning's wording.
44335         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44336         Invoke gl_CHECK_NEXT_HEADERS.
44337         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44338         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44339         set ARPA_INET_H.
44340         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44341         * modules/arpa_inet (Description): No longer only for systems that
44342         lack it.
44343         (Depends-on): Add include_next.
44344         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44345         HAVE_ARPA_INET_H.
44346
44347 2008-04-29  Jim Meyering  <meyering@redhat.com>
44348
44349         * modules/mkdir (License): Re-license as LGPLv2+.
44350
44351 2008-04-29  Bruno Haible  <bruno@clisp.org>
44352
44353         * modules/rawmemchr (Maintainer): Set to Eric.
44354         * modules/strchrnul (Maintainer): Likewise.
44355
44356 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44357
44358         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44359         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44360
44361         * modules/arpa_inet (arpa/inet.h): Use them.
44362
44363 2008-04-28  Eric Blake  <ebb9@byu.net>
44364
44365         Test getndelim2.
44366         * modules/getndelim2-tests: New file.
44367         * tests/test-getndelim2.c: Likewise.
44368         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44369         stream.
44370         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44371
44372         * MODULES.html.sh: Document new module.
44373
44374 2008-04-20  Bruno Haible  <bruno@clisp.org>
44375
44376         * lib/c-stack.c (die): Use raise.
44377         * modules/c-stack (Depends-on): Add raise.
44378
44379 2008-04-28  Bruno Haible  <bruno@clisp.org>
44380
44381         Expect rpmatch to be declared.
44382         * lib/yesno.c (rpmatch): Remove declaration.
44383
44384         Declare rpmatch.
44385         * lib/stdlib.in.h (rpmatch): New declaration.
44386         * lib/rpmatch.c: Include <stdlib.h> first.
44387         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44388         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44390         HAVE_RPMATCH.
44391         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44393         (Include): Set to <stdlib.h>.
44394         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44395         HAVE_RPMATCH.
44396         * NEWS: Document the change.
44397
44398 2008-04-28  Bruno Haible  <bruno@clisp.org>
44399
44400         Change rpmatch to use nl_langinfo when appropriate.
44401         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44402         (N_): New macro.
44403         (localized_pattern): New function/macro.
44404         (try): Remove match, nomatch arguments. Copy the pattern into safe
44405         memory before caching it.
44406         (rpmatch): Use localized_pattern. Add translator comments.
44407         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44408         Suggested by Eric Blake.
44409         * modules/rpmatch (Depends-on): Add stdbool.
44410
44411 2008-04-28  Eric Blake  <ebb9@byu.net>
44412
44413         Add rawmemchr module, matching glibc.
44414         * modules/string (Makefile.am): New indicator.
44415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44416         * lib/string.in.h (rawmemchr): Declare when appropriate.
44417         * modules/rawmemchr: New file.
44418         * m4/rawmemchr.m4: Likewise.
44419         * lib/rawmemchr.c: Likewise.
44420         * modules/rawmemchr-tests: Likewise.
44421         * tests/test-rawmemchr.c: Likewise.
44422         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44423         module.
44424         * modules/strchrnul (Depends-on): Add rawmemchr.
44425         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44426
44427         Whitespace cleanup.
44428         * tests/test-strchrnul.c: Reindent.
44429         * lib/strchrnul.c: Likewise.
44430
44431         Optimize and test strchrnul.
44432         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44433         * modules/strchrnul-tests: New file.
44434         * tests/test-strchrnul.c: Likewise.
44435
44436         Remove intprops dependency.
44437         * modules/memchr (Depends-on): Remove intprops.
44438         * modules/memrchr (Depends-on): Likewise.
44439         * modules/memchr2 (Depends-on): Likewise.
44440         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44441         * lib/memrchr.c (__memrchr): Likewise.
44442         * lib/memrchr2.c (memchr2): Likewise.
44443         Reported by Simon Josefsson.
44444
44445 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44446
44447         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44448         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44449
44450 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44451
44452         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44453
44454         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44455
44456         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44457
44458         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44459         declarations.
44460         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44461
44462         * m4/inet_pton.m4: Don't check for header files.
44463
44464         * m4/inet_ntop.m4: Don't check for header files.
44465
44466 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44467
44468         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44469         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44470         trigger for cygwin).
44471         Reported by Bruno Haible  <bruno@clisp.org>.
44472
44473 2008-04-28  Bruno Haible  <bruno@clisp.org>
44474
44475         * doc/posix-functions/strdup.texi: Mention mingw problem.
44476
44477 2008-04-27  Bruno Haible  <bruno@clisp.org>
44478
44479         * modules/stat-time-tests (Depends-on): Add sleep.
44480         * tests/test-stat-time.c (force_unlink): New function.
44481         (cleanup): Use it.
44482         (test_mtime): Remove the ctime related tests.
44483         (test_ctime): New function, containing the ctime related tests.
44484         (main): Call test_ctime, except on native Windows platforms.
44485
44486 2008-04-27  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/rpmatch.c (rpmatch): Add some comments.
44489         Reported by James Youngman <jay@gnu.org>.
44490
44491 2008-04-27  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44494         quiet NaNs.
44495
44496 2008-04-27  Bruno Haible  <bruno@clisp.org>
44497
44498         Make test-yesno.sh work on mingw.
44499         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44500         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44501         (main): Set stdin to binary mode.
44502         * modules/yesno-tests (Depends-on): Add binary-io.
44503
44504 2008-04-27  Bruno Haible  <bruno@clisp.org>
44505
44506         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44507         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44508         argument that lie outside the IEEE 854 domain.
44509         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44510         (gl_ISFINITE): Use it.
44511         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44512
44513 2008-04-27  Bruno Haible  <bruno@clisp.org>
44514
44515         Allow local renaming in config.h.
44516         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44517
44518 2008-04-27  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/memchr.c (__memchr): Change type of 'i'.
44521         * lib/memchr2.c (memchr2): Likewise.
44522
44523 2008-04-26  Eric Blake  <ebb9@byu.net>
44524         and Bruno Haible  <bruno@clisp.org>
44525
44526         Optimize and test memrchr.
44527         * modules/memrchr (Depends-on): Add intprops.
44528         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44529         * modules/memrchr-tests: New file.
44530         * tests/test-memrchr.c: New file.
44531
44532 2008-04-26  Bruno Haible  <bruno@clisp.org>
44533
44534         Add tentative support for DragonFly BSD.
44535         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44536         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44537         fp.
44538         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44539         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44540         * lib/fpurge.c (fpurge): Likewise.
44541         * lib/freadable.c (freaadable): Likewise.
44542         * lib/freadahead.c (freadahead): Likewise.
44543         * lib/freading.c (freading): Likewise.
44544         * lib/freadptr.c (freadptr): Likewise.
44545         * lib/freadseek.c (freadptrinc): Likewise.
44546         * lib/fseeko.c (fseeko): Likewise.
44547         * lib/fseterr.c (fseterr): Likewise.
44548         * lib/fwritable.c (fwritable): Likewise.
44549         * lib/fwriting.c (fwriting): Likewise.
44550
44551 2008-04-26  Bruno Haible  <bruno@clisp.org>
44552
44553         * lib/stdio-impl.h: New file.
44554         * lib/fbufmode.c: Include stdio-impl.h.
44555         (fbufmode): Use fp_, remove redundant #defines.
44556         * lib/fflush.c: Include stdio-impl.h.
44557         (clear_ungetc_buffer): Remove redundant #defines.
44558         * lib/fpurge.c: Include stdio-impl.h.
44559         (fpurge): Remove redundant #defines.
44560         * lib/freadable.c: Include stdio-impl.h.
44561         (freadable): Remove redundant #defines.
44562         * lib/freadahead.c: Include stdio-impl.h.
44563         (freadahead): Remove redundant #defines.
44564         * lib/freading.c: Include stdio-impl.h.
44565         (freading): Remove redundant #defines.
44566         * lib/freadptr.c: Include stdio-impl.h.
44567         (freadptr): Remove redundant #defines.
44568         * lib/freadseek.c: Include stdio-impl.h.
44569         (freadptrinc): Remove redundant #defines.
44570         * lib/fseeko.c: Include stdio-impl.h.
44571         (rpl_fseeko): Remove redundant #defines.
44572         * lib/fseterr.c: Include stdio-impl.h.
44573         (fseterr): Remove redundant #defines.
44574         * lib/fwritable.c: Include stdio-impl.h.
44575         (fwritable: Remove redundant #defines.
44576         * lib/fwriting.c: Include stdio-impl.h.
44577         (fwriting): Remove redundant #defines.
44578         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44579         * modules/fflush (Files): Likewise.
44580         * modules/fpurge (Files): Likewise.
44581         * modules/freadable (Files): Likewise.
44582         * modules/freadahead (Files): Likewise.
44583         * modules/freading (Files): Likewise.
44584         * modules/freadptr (Files): Likewise.
44585         * modules/freadseek (Files): Likewise.
44586         * modules/fseeko (Files): Likewise.
44587         * modules/fseterr (Files): Likewise.
44588         * modules/fwritable (Files): Likewise.
44589         * modules/fwriting (Files): Likewise.
44590
44591 2008-04-26  Bruno Haible  <bruno@clisp.org>
44592
44593         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44594         restore_seek_optimization, update_fpos_cache): New functions, extracted
44595         from rpl_fflush.
44596         (rpl_fflush): Use them.
44597         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44598         (gl_REPLACE_FFLUSH): Use it.
44599
44600 2008-04-26  Bruno Haible  <bruno@clisp.org>
44601
44602         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44603         on Solaris.
44604         * tests/test-xstrtoimax.sh: Likewise.
44605         * tests/test-xstrtoumax.sh: Likewise.
44606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44607
44608 2008-04-26  Bruno Haible  <bruno@clisp.org>
44609
44610         * modules/memchr-tests: New file.
44611         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44612
44613 2008-04-26  Eric Blake  <ebb9@byu.net>
44614             Bruno Haible  <bruno@clisp.org>
44615
44616         * lib/memchr.c: Include intprops.h.
44617         (__memchr): Optimize parallel detection of matching bytes. Rename local
44618         variables. Add explanatory comments.
44619
44620 2008-04-26  Bruno Haible  <bruno@clisp.org>
44621
44622         Fix module 'memchr', broken since 2000-10-28.
44623         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44624
44625 2008-04-26  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44628         comments.
44629
44630 2008-04-25  Eric Blake  <ebb9@byu.net>
44631
44632         Use native fstatat on cygwin 1.7.0.
44633         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44634         first.
44635
44636 2008-04-23  Eric Blake  <ebb9@byu.net>
44637
44638         Improve memchr2 performance.
44639         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44640         NUL bytes.
44641         * modules/memchr2 (Depends-on): Use intprops.h.
44642
44643 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44644
44645         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44646         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44647         <blp@cs.stanford.edu>.
44648
44649 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44650
44651         * lib/arpa_inet.in.h: New file.
44652
44653         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44654         (Makefile.am): Sed in substitute header file.
44655
44656         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44657         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44658
44659         * modules/inet_ntop (configure.ac): Use
44660         gl_ARPA_INET_MODULE_INDICATOR.
44661
44662         * modules/inet_pton (configure.ac): Use
44663         gl_ARPA_INET_MODULE_INDICATOR.
44664
44665 2008-04-22  Jim Meyering  <meyering@redhat.com>
44666
44667         * modules/verify (License): Re-license as LGPLv2+.
44668
44669 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44670
44671         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44672         parameter to void* as per POSIX standard (MinGW uses char*).
44673
44674 2008-04-21  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44677         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44678         Define to replacements if REPLACE_ISWCNTRL is 1.
44679         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44680         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44681         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44682         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44683         what it fixes.
44684         * doc/posix-functions/iswalpha.texi: Likewise.
44685         * doc/posix-functions/iswblank.texi: Likewise.
44686         * doc/posix-functions/iswcntrl.texi: Likewise.
44687         * doc/posix-functions/iswdigit.texi: Likewise.
44688         * doc/posix-functions/iswgraph.texi: Likewise.
44689         * doc/posix-functions/iswlower.texi: Likewise.
44690         * doc/posix-functions/iswprint.texi: Likewise.
44691         * doc/posix-functions/iswpunct.texi: Likewise.
44692         * doc/posix-functions/iswspace.texi: Likewise.
44693         * doc/posix-functions/iswupper.texi: Likewise.
44694         * doc/posix-functions/iswxdigit.texi: Likewise.
44695         Reported by Alain Guibert.
44696
44697 2008-04-21  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44700         Patch by Alain Guibert.
44701
44702 2008-04-21  Bruno Haible  <bruno@clisp.org>
44703
44704         Fix test failures on mingw.
44705         * tests/test-xstrtol.c (print_no_progname): New function.
44706         (main): Install it in error_print_progname hook.
44707         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44708         * tests/test-xstrtoimax.sh: Likewise.
44709         * tests/test-xstrtoumax.sh: Likewise.
44710
44711 2008-04-21  Bruno Haible  <bruno@clisp.org>
44712
44713         Fix test failure on mingw.
44714         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44715
44716 2008-04-21  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44719         Actually assign a value.
44720
44721 2008-04-20  Bruno Haible  <bruno@clisp.org>
44722
44723         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44724         take 2.
44725         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44726         'canonicalize-lgpl' module is also used.
44727         * lib/canonicalize-lgpl.c: Undo last change.
44728         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44729
44730 2008-04-20  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44733         config.h. Provide _mkdir based fallback for mingw.
44734         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44735         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44736         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44737         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44738         rather than defining mkdir in config.h.
44739         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44740         (gl_SYS_STAT_H_DEFAULTS): New macro.
44741         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44742         HAVE_IO_H any more.
44743         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44744         HAVE_DECL_MKDIR and HAVE_IO_H.
44745
44746 2008-04-20  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/isapipe.c: Port to native Windows platforms.
44749
44750 2008-04-20  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44753
44754 2008-04-21  Eric Blake  <ebb9@byu.net>
44755
44756         Work around preprocessors that don't handle UINTMAX_MAX.
44757         * lib/memchr2.c (memchr2): Avoid embedded #if.
44758         Reported by Alain Guibert, fix suggested by Bruno Haible.
44759
44760 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44761
44762         * doc/posix-functions/strftime.texi (strftime): Explain better
44763         Windows incompatibility.  Suggested by Micah Cowan
44764         <micah@cowan.name>.
44765
44766 2008-04-20  Bruno Haible  <bruno@clisp.org>
44767
44768         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44769         unistr/u8-mblen.
44770
44771 2008-04-20  Bruno Haible  <bruno@clisp.org>
44772
44773         Fix test failure on platforms with non-GNU iconv.
44774         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44775         (U_TO_U8): Use it, rather than u16_to_u8.
44776         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44777         units at the end of the input string.
44778         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44779
44780 2008-04-20  Bruno Haible  <bruno@clisp.org>
44781
44782         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44783         when the resulting length is 0.
44784         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44785
44786 2008-04-20  Bruno Haible  <bruno@clisp.org>
44787
44788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44789         works.
44790         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44791
44792 2008-04-20  Bruno Haible  <bruno@clisp.org>
44793
44794         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44795         * modules/tsearch-tests (configure.ac): Test for initstate function.
44796
44797 2008-04-20  Bruno Haible  <bruno@clisp.org>
44798
44799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44800         for nlink_t if missing.
44801         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44802
44803 2008-04-19  Bruno Haible  <bruno@clisp.org>
44804
44805         Work around snprintf bug on Linux libc5.
44806         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44808         gl_SNPRINTF_SIZE1.
44809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44810         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44811         that test failed.
44812         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44813         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44814         * modules/snprintf (Files): Add m4/printf.m4.
44815         * modules/vsnprintf (Files): Likewise.
44816         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44817         * doc/posix-functions/vsnprintf.texi: Likewise.
44818
44819 2008-04-19  Bruno Haible  <bruno@clisp.org>
44820
44821         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44822         from 0.0058 to less than 10^-7.
44823
44824 2008-04-19  Bruno Haible  <bruno@clisp.org>
44825
44826         Fix rounding when a precision is given.
44827         * lib/vasnprintf.c (is_borderline): New function.
44828         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44829         9...9x.
44830         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44831         %e, %g.
44832         * tests/test-vasprintf-posix.c (test_function): Likewise.
44833         * tests/test-snprintf-posix.h (test_function): Likewise.
44834         * tests/test-sprintf-posix.h (test_function): Likewise.
44835         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44836         * tests/test-printf-posix.h (test_function): Likewise.
44837         * tests/test-printf-posix.output: Update.
44838         Reported by John Darrington <john@darrington.wattle.id.au> via
44839         Ben Pfaff <blp@cs.stanford.edu>.
44840
44841 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44842
44843         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44844         Suggested by Bruno Haible <bruno@clisp.org>.
44845
44846 2008-04-17  Bruno Haible  <bruno@clisp.org>
44847
44848         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44849         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44850         implementation.
44851         Patch by Bruce Merry <bmerry@gmail.com>.
44852
44853 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44854
44855         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44856         doesn't work under Windows.
44857
44858 2008-04-16  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44861         New macros.
44862         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44863         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44864         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44865         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44866         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44867         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44868         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44869         macros.
44870         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44871         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44872         Northern Sotho, Uighur.
44873
44874 2008-04-16  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44877         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44878         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44879         Reported by Daniel Bergström <daniel@octocode.com>.
44880
44881 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44882             Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44885         function.
44886         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44887         New functions, mostly extracted from gl_locale_name_default.
44888         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44889
44890 2008-04-16  Eric Blake  <ebb9@byu.net>
44891
44892         Adjust strtod detection to catch glibc 2.7 bug.
44893         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44894         Reported by John Gatewood Ham.
44895
44896 2008-04-16  Bruno Haible  <bruno@clisp.org>
44897
44898         Add tentative support for Linux libc5.
44899         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44900         * lib/fpurge.c (fpurge): Likewise.
44901         * lib/freadable.c (freadable): Likewise.
44902         * lib/freadahead.c (freadahead): Likewise.
44903         * lib/freading.c (freading): Likewise.
44904         * lib/freadptr.c (freadptr): Likewise.
44905         * lib/freadseek.c (freadptrinc): Likewise.
44906         * lib/fseeko.c (rpl_fseeko): Likewise.
44907         * lib/fseterr.c (fseterr): Likewise.
44908         * lib/fwritable.c (fwritable): Likewise.
44909         * lib/fwriting.c (fwriting): Likewise.
44910         Reported by Alain Guibert <alguibert+bts@free.fr>.
44911
44912 2008-04-15  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/mathl (configure.ac): Define module indicator.
44915
44916 2008-04-15  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/logl.c (logl): Remove unused variables.
44919
44920 2008-04-15  Bruno Haible  <bruno@clisp.org>
44921
44922         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44923         fails.
44924
44925 2008-04-15  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/trim.c (trim2): Fix argument of isspace() macro.
44928
44929 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44930
44931         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44932         to 0.
44933         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44934
44935 2008-04-14  Bruno Haible  <bruno@clisp.org>
44936
44937         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44938         AC_LANG_PROGRAM argument.
44939         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44940         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44942         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44943         * m4/math_h.m4 (gl_MATH_H): Likewise.
44944         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44946         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44947         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44948         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44949         * m4/regex.m4 (gl_REGEX): Likewise.
44950         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44951         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44953         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44955         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44958
44959 2008-04-14  Jim Meyering  <meyering@redhat.com>
44960
44961         test-strtod: fix typos: s/abs/fabs/
44962         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44963
44964 2008-04-13  Bruno Haible  <bruno@clisp.org>
44965
44966         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44967         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44968         module is also used and while not building the reloc-wrapper.
44969
44970 2008-04-13  Bruno Haible  <bruno@clisp.org>
44971
44972         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44973
44974 2008-04-13  Bruno Haible  <bruno@clisp.org>
44975
44976         Fix AIX compilation failure introduced on 2008-04-02.
44977         * tests/test-frexp.c (exp): Undefine before redefining.
44978         * tests/test-frexpl.c (exp): Likewise.
44979
44980 2008-04-13  Bruno Haible  <bruno@clisp.org>
44981
44982         Work around a HP-UX stdio bug.
44983         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44984         * tests/test-ftello.c (main): Likewise.
44985         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44986         * doc/posix-functions/ftello.texi: Likewise.
44987
44988 2008-04-13  Bruno Haible  <bruno@clisp.org>
44989
44990         Make test-signbit pass on HP-UX/hppa.
44991         * tests/test-signbit.c (minus_zerol): New variable.
44992         (test_signbitl): Use it.
44993
44994 2008-04-13  Bruno Haible  <bruno@clisp.org>
44995
44996         Make truncl work on OSF/1 4.0.
44997         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44998         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44999         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45001         HAVE_DECL_TRUNCL.
45002         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45003         HAVE_DECL_TRUNCL.
45004         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45005
45006 2008-04-13  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45009
45010 2008-04-13  Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45013         expression, so as to avoid HP-UX 11 cc compiler bug.
45014
45015 2008-04-13  Bruno Haible  <bruno@clisp.org>
45016
45017         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45018
45019 2008-04-13  Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/git-merge-changelog.c: Remove empty declaration outside of
45022         functions.
45023
45024 2008-04-13  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45027
45028 2008-04-13  Bruno Haible  <bruno@clisp.org>
45029
45030         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45031         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45032         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45033         also if it exists but lacks definitions of the SHUT_* macros.
45034         * modules/sys_socket (Description): Update.
45035         Reported by Elbert Pol <e.pol@chello.nl>.
45036
45037 2008-04-13  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/localcharset.c (OS2): Don't redefine if already defined.
45040         Reported by Elbert Pol <e.pol@chello.nl>.
45041
45042 2008-04-13  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/binary-io.h [__EMX__]: Include <io.h>.
45045         Reported by Elbert Pol <e.pol@chello.nl>.
45046
45047 2008-04-12  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/fpucw.h: Enable the definitions also for x86_64.
45050         Needed for NetBSD/x86_64.
45051         Reported by Thomas Klausner <tk@giga.or.at>.
45052
45053 2008-04-12  Bruno Haible  <bruno@clisp.org>
45054
45055         * tests/test-strtod.c: Include isnand.h.
45056         (main): Use isnand instead of isnan.
45057         Reported by Jim Meyering.
45058
45059 2008-04-12  Bruno Haible  <bruno@clisp.org>
45060
45061         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45062         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45063
45064 2008-04-12  Jim Meyering  <meyering@redhat.com>
45065
45066         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45067
45068 2008-04-12  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45071         Reported by Elbert Pol <e.pol@chello.nl>.
45072
45073 2008-04-12  Eric Blake  <ebb9@byu.net>
45074
45075         Work around Solaris 10 math.h bug.
45076         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45077         (gl_MATH_H_DEFAULTS): Set up default.
45078         * modules/math (Makefile.am): Replace new indicators.
45079         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45080         * tests/test-math.c (main): Test this.
45081         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45082         * doc/posix-headers/math.texi (math.h): Mention bug.
45083         Reported by Nelson H. F. Beebe and Jim Meyering.
45084
45085 2008-04-11  Bruno Haible  <bruno@clisp.org>
45086
45087         Adapt to future versions of Apple GCC.
45088         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45089         Reported by Peter O'Gorman <peter@pogma.com>.
45090
45091 2008-04-11  Bruno Haible  <bruno@clisp.org>
45092
45093         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45094
45095 2008-04-11  Bruno Haible  <bruno@clisp.org>
45096
45097         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45098
45099         * modules/getaddrinfo-tests (Makefile.am): Define
45100         test_getaddrinfo_LDADD.
45101
45102 2008-04-11  Bruno Haible  <bruno@clisp.org>
45103
45104         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45105         (init): Fix syntax error.
45106         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45107         is declared.
45108
45109 2008-04-11  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45112         * modules/glob (Depends-on): Add stdbool.
45113
45114 2008-04-11  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/trim.c: Include <string.h>.
45117
45118 2008-04-11  Eric Blake  <ebb9@byu.net>
45119
45120         Avoid compile failure on OS/2.
45121         * lib/regex_internal.h (internal_function): Disable optimization
45122         on OS/2 (__EMX__), where it caused compiler error.
45123         Reported by Elbert Pol.
45124
45125 2008-04-11  Bruno Haible  <bruno@clisp.org>
45126
45127         Flush the standard error stream before aborting. Needed on mingw.
45128         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45129         * tests/test-array_list.c (ASSERT): Likewise.
45130         * tests/test-array_oset.c (ASSERT): Likewise.
45131         * tests/test-avltree_list.c (ASSERT): Likewise.
45132         * tests/test-avltree_oset.c (ASSERT): Likewise.
45133         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45134         * tests/test-binary-io.c (ASSERT): Likewise.
45135         * tests/test-byteswap.c (ASSERT): Likewise.
45136         * tests/test-c-ctype.c (ASSERT): Likewise.
45137         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45138         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45139         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45140         * tests/test-c-strstr.c (ASSERT): Likewise.
45141         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45142         * tests/test-canonicalize.c (ASSERT): Likewise.
45143         * tests/test-carray_list.c (ASSERT): Likewise.
45144         * tests/test-ceilf1.c (ASSERT): Likewise.
45145         * tests/test-ceilf2.c (ASSERT): Likewise.
45146         * tests/test-ceill.c (ASSERT): Likewise.
45147         * tests/test-count-one-bits.c (ASSERT): Likewise.
45148         * tests/test-fbufmode.c (ASSERT): Likewise.
45149         * tests/test-fflush2.c (ASSERT): Likewise.
45150         * tests/test-floorf1.c (ASSERT): Likewise.
45151         * tests/test-floorf2.c (ASSERT): Likewise.
45152         * tests/test-floorl.c (ASSERT): Likewise.
45153         * tests/test-fopen.c (ASSERT): Likewise.
45154         * tests/test-fpending.c (ASSERT): Likewise.
45155         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45156         * tests/test-fpurge.c (ASSERT): Likewise.
45157         * tests/test-freadable.c (ASSERT): Likewise.
45158         * tests/test-freadahead.c (ASSERT): Likewise.
45159         * tests/test-freading.c (ASSERT): Likewise.
45160         * tests/test-freadptr.c (ASSERT): Likewise.
45161         * tests/test-freadptr2.c (ASSERT): Likewise.
45162         * tests/test-freadseek.c (ASSERT): Likewise.
45163         * tests/test-freopen.c (ASSERT): Likewise.
45164         * tests/test-frexp.c (ASSERT): Likewise.
45165         * tests/test-frexpl.c (ASSERT): Likewise.
45166         * tests/test-fseek.c (ASSERT): Likewise.
45167         * tests/test-fseeko.c (ASSERT): Likewise.
45168         * tests/test-fstrcmp.c (ASSERT): Likewise.
45169         * tests/test-ftell.c (ASSERT): Likewise.
45170         * tests/test-ftello.c (ASSERT): Likewise.
45171         * tests/test-func.c (ASSERT): Likewise.
45172         * tests/test-fwritable.c (ASSERT): Likewise.
45173         * tests/test-fwriting.c (ASSERT): Likewise.
45174         * tests/test-getdelim.c (ASSERT): Likewise.
45175         * tests/test-getline.c (ASSERT): Likewise.
45176         * tests/test-i-ring.c (ASSERT): Likewise.
45177         * tests/test-iconv-utf.c (ASSERT): Likewise.
45178         * tests/test-iconv.c (ASSERT): Likewise.
45179         * tests/test-isfinite.c (ASSERT): Likewise.
45180         * tests/test-isnand.c (ASSERT): Likewise.
45181         * tests/test-isnanf.c (ASSERT): Likewise.
45182         * tests/test-isnanl.h (ASSERT): Likewise.
45183         * tests/test-ldexpl.c (ASSERT): Likewise.
45184         * tests/test-linked_list.c (ASSERT): Likewise.
45185         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45186         * tests/test-localename.c (ASSERT): Likewise.
45187         * tests/test-lseek.c (ASSERT): Likewise.
45188         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45189         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45190         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45191         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45192         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45193         * tests/test-mbschr.c (ASSERT): Likewise.
45194         * tests/test-mbscspn.c (ASSERT): Likewise.
45195         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45196         * tests/test-mbspbrk.c (ASSERT): Likewise.
45197         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45198         * tests/test-mbsrchr.c (ASSERT): Likewise.
45199         * tests/test-mbsspn.c (ASSERT): Likewise.
45200         * tests/test-mbsstr1.c (ASSERT): Likewise.
45201         * tests/test-mbsstr2.c (ASSERT): Likewise.
45202         * tests/test-mbsstr3.c (ASSERT): Likewise.
45203         * tests/test-memchr2.c (ASSERT): Likewise.
45204         * tests/test-memmem.c (ASSERT): Likewise.
45205         * tests/test-open.c (ASSERT): Likewise.
45206         * tests/test-printf-frexp.c (ASSERT): Likewise.
45207         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45208         * tests/test-printf-posix.c (ASSERT): Likewise.
45209         * tests/test-quotearg.c (ASSERT): Likewise.
45210         * tests/test-rbtree_list.c (ASSERT): Likewise.
45211         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45212         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45213         * tests/test-round1.c (ASSERT): Likewise.
45214         * tests/test-roundf1.c (ASSERT): Likewise.
45215         * tests/test-roundl.c (ASSERT): Likewise.
45216         * tests/test-signbit.c (ASSERT): Likewise.
45217         * tests/test-sleep.c (ASSERT): Likewise.
45218         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45219         * tests/test-snprintf.c (ASSERT): Likewise.
45220         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45221         * tests/test-stat-time.c (ASSERT): Likewise.
45222         * tests/test-strcasestr.c (ASSERT): Likewise.
45223         * tests/test-strerror.c (ASSERT): Likewise.
45224         * tests/test-striconv.c (ASSERT): Likewise.
45225         * tests/test-striconveh.c (ASSERT): Likewise.
45226         * tests/test-striconveha.c (ASSERT): Likewise.
45227         * tests/test-strsignal.c (ASSERT): Likewise.
45228         * tests/test-strstr.c (ASSERT): Likewise.
45229         * tests/test-strtod.c (ASSERT): Likewise.
45230         * tests/test-trunc1.c (ASSERT): Likewise.
45231         * tests/test-trunc2.c (ASSERT): Likewise.
45232         * tests/test-truncf1.c (ASSERT): Likewise.
45233         * tests/test-truncf2.c (ASSERT): Likewise.
45234         * tests/test-truncl.c (ASSERT): Likewise.
45235         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45236         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45237         * tests/test-vasnprintf.c (ASSERT): Likewise.
45238         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45239         * tests/test-vasprintf.c (ASSERT): Likewise.
45240         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45241         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45242         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45243         * tests/test-vsnprintf.c (ASSERT): Likewise.
45244         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45245         * tests/test-wcwidth.c (ASSERT): Likewise.
45246         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45247         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45248         * tests/test-xvasprintf.c (ASSERT): Likewise.
45249         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45250         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45251         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45252         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45253         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45254         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45255         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45256         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45257         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45258         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45259         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45260         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45261         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45262         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45263         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45264         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45265         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45266         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45267         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45268         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45269         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45270         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45271         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45272         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45273         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45274         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45275         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45276         * tests/unictype/test-combining.c (ASSERT): Likewise.
45277         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45278         * tests/unictype/test-digit.c (ASSERT): Likewise.
45279         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45280         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45281         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45282         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45283         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45284         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45285         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45286         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45287         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45288         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45289         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45290         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45291         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45292         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45293         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45294         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45295         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45296         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45297         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45298         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45299         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45300         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45301         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45302         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45303         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45304         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45305         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45306         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45307         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45308         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45309         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45310         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45311         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45312         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45313         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45314         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45315         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45316         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45317         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45318         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45319         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45320         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45321         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45322         Reported by Eric Blake.
45323
45324 2008-04-11  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/wchar.in.h: Tweak comment.
45327
45328 2008-04-11  Bruno Haible  <bruno@clisp.org>
45329
45330         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45331         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45332         gl_COMMON.
45333         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45334
45335 2008-04-11  Bruno Haible  <bruno@clisp.org>
45336
45337         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45338
45339 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45340
45341         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45342         of attempting to use non-existing /dev/*random.  Based on patch
45343         from Adam Strzelecki <ono@java.pl> in
45344         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45345
45346 2008-04-08  Bruno Haible  <bruno@clisp.org>
45347
45348         Add tentative support for emx+gcc.
45349         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45350         * lib/fpurge.c (fpurge): Likewise.
45351         * lib/freadable.c (freadable): Likewise.
45352         * lib/freadahead.c (freadahead): Likewise.
45353         * lib/freading.c (freading): Likewise.
45354         * lib/freadptr.c (freadptr): Likewise.
45355         * lib/freadseek.c (freadptrinc): Likewise.
45356         * lib/fseeko.c (rpl_fseeko): Likewise.
45357         * lib/fseterr.c (fseterr): Likewise.
45358         * lib/fwritable.c (fwritable): Likewise.
45359         * lib/fwriting.c (fwriting): Likewise.
45360         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45361
45362 2008-04-09  Eric Blake  <ebb9@byu.net>
45363
45364         Avoid some autoconf warnings.
45365         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45366         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45367         * m4/afs.m4 (gl_AFS): Likewise.
45368         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45369         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45371         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45372         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45373         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45374         (AC_CHECK_DECLS_ONCE): Likewise.
45375         Rename file...
45376         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45377         gnulib-tool requires autoconf 2.59 or better.
45378         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45379
45380 2008-04-08  Eric Blake  <ebb9@byu.net>
45381
45382         Use 'git describe --match' if present (added in git 1.5.5).
45383         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45384         if possible.
45385
45386 2008-04-08  Bruno Haible  <bruno@clisp.org>
45387
45388         Add tentative support for OpenServer.
45389         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45390         _ptr, _cnt.
45391         * lib/fpurge.c (fpurge): Likewise.
45392         * lib/freadable.c (freadable): Likewise.
45393         * lib/freadahead.c (freadahead): Likewise.
45394         * lib/freading.c (freading): Likewise.
45395         * lib/freadptr.c (freadptr): Likewise.
45396         * lib/freadseek.c (freadptrinc): Likewise.
45397         * lib/fseeko.c (rpl_fseeko): Likewise.
45398         * lib/fseterr.c (fseterr): Likewise.
45399         * lib/fwritable.c (fwritable): Likewise.
45400         * lib/fwriting.c (fwriting): Likewise.
45401         Reported by Roger Cornelius <rac@tenzing.org> and
45402         Brian K. White <brian@aljex.com>.
45403
45404 2008-04-06  Jim Meyering  <meyering@redhat.com>
45405
45406         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45407
45408 2008-04-06  Bruno Haible  <bruno@clisp.org>
45409
45410         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45411         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45412         * tests/test-printf-posix.sh: Likewise.
45413         * tests/test-vfprintf-posix.sh: Likewise.
45414         * tests/test-vprintf-posix.sh: Likewise.
45415         * tests/test-xprintf-posix.sh: Likewise.
45416
45417 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45418
45419         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45420         hide error from 'ls', needed on OS/2.
45421         Report by Elbert Pol <elbert.pol@gmail.com>.
45422
45423 2008-04-04  Eric Blake  <ebb9@byu.net>
45424
45425         Make test-fseeko.c failures meaningful.
45426         * tests/test-fseeko.c: Print line number on failure.
45427         * tests/test-fseek.c: Likewise.
45428         Reported by Nelson H. F. Beebe.
45429
45430         Improve strtod bug detection check.
45431         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45432         required for Solaris 10.
45433         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45434
45435 2008-04-04  Bruno Haible  <bruno@clisp.org>
45436
45437         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45438         by m4/setenv.m4.
45439
45440 2008-04-03  Eric Blake  <ebb9@byu.net>
45441
45442         Ensure sane .version contents.
45443         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45444         version string.
45445         * build-aux/git-version-gen: Improve documentation.
45446
45447         Make GNU make output nicer.
45448         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45449         MAKECMDGOALS to enforce message for all command line targets.  Set
45450         srcdir for use in maint.mk.
45451
45452         Another maintainer tweak.
45453         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45454         a target that regenerates version.
45455
45456 2008-04-03  Jim Meyering  <meyering@redhat.com>
45457
45458         vc-list-files: don't cause coreutils "make po-check" failure
45459         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45460
45461 2008-04-03  Eric Blake  <ebb9@byu.net>
45462
45463         Allow VPATH usage of vc-list-files.
45464         * build-aux/vc-list-files (scriptversion): Add timestamp.
45465         (options): Add --help, --version, -C.
45466         (CVS): Support installed cvsu.
45467
45468 2008-04-02  Bruno Haible  <bruno@clisp.org>
45469
45470         Avoid some "statement with no effect" warnings from gcc.
45471         * tests/test-wctype.c (main): Explicitly ignore unused values.
45472         Reported by Jim Meyering.
45473
45474 2008-04-02  Jim Meyering  <meyering@redhat.com>
45475
45476         Avoid some warnings from "gcc -Wshadow".
45477         * tests/test-frexp.c (exp): Define to a different identifier.
45478         * tests/test-frexpl.c (exp): Likewise.
45479
45480 2008-04-03  Jim Meyering  <meyering@redhat.com>
45481
45482         bootstrap: remove dangling *.[ch] symlinks from lib
45483         * build-aux/bootstrap [dangling symlink removal]: Move find's
45484         -depth option to precede all others, to avoid a warning.
45485         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45486
45487 2008-04-02  Bruno Haible  <bruno@clisp.org>
45488
45489         Avoid some warnings from "gcc -Wshadow".
45490         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45491         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45492         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45493         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45494         Reported by Jim Meyering.
45495
45496 2008-04-01  Bruno Haible  <bruno@clisp.org>
45497
45498         Fix test to work on IRIX 6.5 with cc.
45499         * tests/test-math.c (numeric_equal): New function.
45500         (main): Use it.
45501
45502 2008-04-01  Bruno Haible  <bruno@clisp.org>
45503
45504         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45505
45506 2008-04-01  Bruno Haible  <bruno@clisp.org>
45507
45508         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45509         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45510         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45511         (Depends-on): Remove math.
45512
45513         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45514         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45515         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45516         (Depends-on): Remove math.
45517
45518         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45519         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45520         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45521         (Depends-on): Remove math.
45522         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45523         (Depends-on): Remove math.
45524
45525         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45526         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45527         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45528         (Depends-on): Remove math.
45529         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45530         (Depends-on): Remove math.
45531
45532         * tests/test-round1.c: Include nan.h.
45533         (main): Use NaNd instead of NAN.
45534         * modules/round-tests (Files): Add tests/nan.h.
45535
45536         * tests/test-trunc1.c: Include nan.h.
45537         (main): Use NaNd instead of NAN.
45538         * modules/trunc-tests (Files): Add tests/nan.h.
45539
45540         * tests/test-roundf1.c: Include nan.h.
45541         (main): Use NaNf instead of NAN.
45542         * modules/roundf-tests (Files): Add tests/nan.h.
45543
45544         * tests/test-truncf1.c: Include nan.h.
45545         (main): Use NaNf instead of NAN.
45546         * modules/truncf-tests (Files): Add tests/nan.h.
45547
45548         * tests/test-ceilf1.c: Include nan.h.
45549         (main): Use NaNf instead of NAN.
45550         * modules/ceilf-tests (Files): Add tests/nan.h.
45551
45552         * tests/test-floorf1.c: Include nan.h.
45553         (main): Use NaNf instead of NAN.
45554         * modules/floorf-tests (Files): Add tests/nan.h.
45555
45556         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45557         (main): Use NaNf instead of NAN.
45558         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45559
45560         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45561         (main): Use NaNd instead of NAN.
45562         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45563
45564         * tests/test-frexp.c: Include nan.h.
45565         (main): Use NaNd instead of NAN.
45566         * modules/frexp-tests (Files): Add tests/nan.h.
45567
45568         * lib/isnan.c: Don't include <math.h>.
45569         (FUNC): Don't use NAN macro.
45570         * modules/isnand-nolibm (Depends-on): Remove math.
45571         * modules/isnanf-nolibm (Depends-on): Remove math.
45572         * modules/isnanl (Depends-on): Remove math.
45573         * modules/isnanl-nolibm (Depends-on): Remove math.
45574
45575         * tests/nan.h: New file.
45576
45577 2008-04-01  Eric Blake  <ebb9@byu.net>
45578
45579         Fix typos.
45580         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45581         values to be the right type.
45582
45583         For now, cater to gnulib strtod inaccuracies.
45584         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45585         fractional results.  While not as nice from a QoI perspective, it
45586         is a quicker patch than correctly implementing decimal to binary
45587         rounding.
45588
45589 2008-03-31  Eric Blake  <ebb9@byu.net>
45590
45591         Guarantee a definition of NAN.
45592         * lib/math.in.h (NAN): Define if missing.
45593         * tests/test-math.c (main): Test it.
45594         * doc/posix-headers/math.texi (math.h): Document this.
45595         * lib/isnan.c (rpl_isnand): Use it.
45596         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45597         * tests/test-floorf1.c (NaN): Likewise.
45598         * tests/test-frexp.c (NaN): Likewise.
45599         * tests/test-isnand.c (NaN): Likewise.
45600         * tests/test-isnanf.c (NaN): Likewise.
45601         * tests/test-round1.c (NaN): Likewise.
45602         * tests/test-roundf1.c (NaN): Likewise.
45603         * tests/test-snprintf-posix.h (NaN): Likewise.
45604         * tests/test-sprintf-posix.h (NaN): Likewise.
45605         * tests/test-trunc1.c (NaN): Likewise.
45606         * tests/test-truncf1.c (NaN): Likewise.
45607         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45608         * tests/test-vasprintf-posix.c (NaN): Likewise.
45609         * modules/isnand-nolibm (Depends-on): Add math.
45610         * modules/isnanf-nolibm (Depends-on): Likewise.
45611         * modules/isnanl (Depends-on): Likewise.
45612         * modules/isnanl-nolibm (Depends-on): Likewise.
45613         * modules/snprintf-posix-tests (Depends-on): Likewise.
45614         * modules/sprintf-posix-tests (Depends-on): Likewise.
45615         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45616         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45617         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45618         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45619
45620 2008-03-31  Bruno Haible  <bruno@clisp.org>
45621
45622         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45623         * doc/posix-functions/strtod.texi: Likewise.
45624
45625 2008-03-31  Bruno Haible  <bruno@clisp.org>
45626
45627         * tests/test-strtod.c (main): Don't use C99 syntax.
45628
45629 2008-03-31  Bruno Haible  <bruno@clisp.org>
45630
45631         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45632         Reported by Eric Blake.
45633
45634 2008-03-31  Jim Meyering  <meyering@redhat.com>
45635
45636         Don't compare actual signbit return values.
45637         * tests/test-strtod.c (main): Rather, compare only their
45638         zero/non-zero nature.
45639
45640 2008-03-31  Eric Blake  <ebb9@byu.net>
45641
45642         More strtod documentation.
45643         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45644         failures as distinct bugs.
45645
45646 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45647
45648         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45649         Problem reported by Erik Benada in
45650         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45651
45652 2008-03-30  Bruno Haible  <bruno@clisp.org>
45653
45654         * tests/test-strtod.c: Add comments about which assertion fails on which
45655         platform.
45656         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45657
45658 2008-03-30  Eric Blake  <ebb9@byu.net>
45659
45660         Test signbit behavior on zeros.
45661         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45662         (test_signbitd, test_signbitl): Likewise.
45663
45664         More strtod touchups.
45665         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45666         sign of negative underflow, for now.  Use .5, not .1.
45667         * doc/posix-functions/strtod.texi (strtod): Mention these
45668         limitations.
45669         Reported by Jim Meyering.
45670
45671 2008-03-30  Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45674         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45675
45676 2008-03-30  Bruno Haible  <bruno@clisp.org>
45677
45678         Avoid failure when attempting to return empty iconv results on some
45679         platforms.
45680         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45681         allocation, don't report ENOMEM when the resulting string is empty.
45682
45683 2008-03-30  Bruno Haible  <bruno@clisp.org>
45684
45685         Fix buffer overrun.
45686         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45687         Don't consider the width for tmp_length. Check count against tmp_length
45688         before doing the padding. Ensure enough allocation during padding.
45689
45690 2008-03-30  Eric Blake  <ebb9@byu.net>
45691
45692         strtod touchups.
45693         * lib/strtod.c (strtod): Avoid compiler warnings.
45694         Reported by Jim Meyering.
45695
45696 2008-03-30  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45699         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45700         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45701         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45702         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45703         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45704         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45705         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45706
45707         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45708         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45709         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45710         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45711         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45712         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45713         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45714         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45715
45716         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45717         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45718         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45719         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45720         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45721         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45722         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45723         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45724
45725         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45726         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45727
45728         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45729         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45730
45731         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45732         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45733
45734         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45736         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45737
45738         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45740         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45741
45742         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45744         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45745
45746         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45748         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45749
45750         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45751         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45753         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45754         (Depends-on): Add EOVERFLOW.
45755         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45756         (Depends-on): Add EOVERFLOW.
45757         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45758         (Depends-on): Add EOVERFLOW.
45759         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45760         (Depends-on): Add EOVERFLOW.
45761         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45762         (Depends-on): Add EOVERFLOW.
45763         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45764         (Depends-on): Add EOVERFLOW.
45765         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45766         (Depends-on): Add EOVERFLOW.
45767         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45768         (Depends-on): Add EOVERFLOW.
45769
45770         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45772         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45773
45774         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45776         * modules/snprintf (Depends-on): Add EOVERFLOW.
45777
45778         * lib/poll.c (EOVERFLOW): Remove fallback.
45779         * modules/poll (Depends-on): Add EOVERFLOW.
45780
45781         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45782         * modules/getugroups (Depends-on): Add EOVERFLOW.
45783
45784         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45785         * modules/getdelim (Depends-on): Add EOVERFLOW.
45786
45787         * lib/ftell.c (EOVERFLOW): Remove fallback.
45788         * modules/ftell (Depends-on): Add EOVERFLOW.
45789
45790         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45792         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45793
45794         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45795
45796         * modules/EOVERFLOW-tests: New file.
45797         * tests/test-EOVERFLOW.c: New file.
45798
45799         * modules/EOVERFLOW: New file.
45800         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45801
45802 2008-03-30  Bruno Haible  <bruno@clisp.org>
45803
45804         Fix bug introduced on 2007-06-10.
45805         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45806         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45807
45808 2008-03-30  Bruno Haible  <bruno@clisp.org>
45809
45810         Improve freadseek's efficiency after ungetc.
45811         * lib/freadseek.c: Include freadahead.h.
45812         (freadptrinc): New function, extracted from freadseek.
45813         (freadseek): Use it in a loop. Use freadahead to determine the number
45814         of loop iterations.
45815         * modules/freadseek (Depends-on): Add freadahead.
45816         (configure.ac): Require AC_C_INLINE.
45817
45818 2008-03-30  Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/freadseek.c (freadseek): Don't ignore the return value of
45821         freadptr.
45822
45823 2008-03-29  Eric Blake  <ebb9@byu.net>
45824
45825         Add hex float support.
45826         * modules/strtod (Depends-on): Add c-ctype.
45827         (Link): Mention POW_LIB.
45828         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45829         whitespace between 'e' and exponent.
45830         * tests/test-strtod.c (main): Enable hex float tests.
45831         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45832         now provides.
45833
45834         Document various strtod bugs, with some fixes.
45835         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45836         "-0x", "inf", "nan", and hex constants.
45837         * doc/posix-functions/atof.texi (atof): Likewise.
45838         * modules/stdlib (Makefile.am): Support strtod.
45839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45840         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45841         detect additional strtod bugs.
45842         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45843         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45844         bool where appropriate.  Parse 'inf' and 'nan'.
45845         * tests/test-strtod.c: New file.
45846         * modules/strtod (Depends-on): Add stdbool, stdlib.
45847         (configure.ac): Turn on module indicator.
45848         * modules/strtod-tests: New module.
45849
45850 2008-03-29  Eric Blake  <ebb9@byu.net>
45851
45852         Fix ftell on mingw.
45853         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45854         * modules/ftell-tests (Depends-on): Add binary-io.
45855         * modules/ftello-tests (Depends-on): Likewise.
45856         * tests/test-ftell.c (main): Enhance test to cover behavior after
45857         ungetc.  Enforce binary mode.
45858         * tests/test-ftello.c (main): Likewise.
45859
45860         Pass test-freadseek on cygwin.
45861         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45862         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45863         ungetc buffer.
45864
45865         * tests/test-fflush2.c (main): Fix typo.
45866
45867 2008-03-29  Bruno Haible  <bruno@clisp.org>
45868
45869         * tests/test-fflush2.c (main): Temporarily disable the contents of
45870         this test.
45871         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45872         Reported by Eric Blake.
45873
45874 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45875
45876         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45877         (GC_SHA224_DIGEST_SIZE): Add.
45878
45879         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45880         (gc_hash_digest_length): Likewise.
45881         (gc_hash_buffer): Likewise.
45882
45883 2008-03-25  Bruno Haible  <bruno@clisp.org>
45884
45885         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45886         detail which gettext release to use.
45887         Reported by Simon Josefsson.
45888
45889 2008-03-26  Jim Meyering  <meyering@redhat.com>
45890
45891         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45892         * modules/gnumakefile (clean-GNUmakefile): Also, use
45893         test ... && ... || : syntax rather than if-then ... fi.
45894
45895         gnumakefile: Don't double-quote-expand $(VPATH) value.
45896         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45897
45898 2008-03-24  Eric Blake  <ebb9@byu.net>
45899
45900         Alter GNUmakefile to install into top directory.
45901         * modules/maintainer-makefile: Split, and add dependency...
45902         * modules/gnumakefile: to this new module.
45903         * build-aux/GNUmakefile: Move...
45904         * top/GNUmakefile: ...here.
45905         * build-aux/maint.mk: Move...
45906         * top/maint.mk: ...here.
45907         * MODULES.html.sh (Support for maintaining...): Document new
45908         module.
45909
45910 2008-03-23  Bruno Haible  <bruno@clisp.org>
45911
45912         * gnulib-tool: New options --vc-files, --no-vc-files.
45913         (func_usage): Document them.
45914         (vc_files): New variable.
45915         (func_import): Consider vc_files.
45916         (func_create_testdir): Set vc_files to empty.
45917         Suggested by Jim Meyering and Karl Berry.
45918
45919 2008-03-23  Bruno Haible  <bruno@clisp.org>
45920
45921         Fix regex compilation error on HP-UX 11.
45922         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45923         * modules/regex (Files): Add m4/mbstate_t.m4.
45924         Reported by Ton Voon <ton.voon@altinity.com>.
45925
45926 2008-03-23  Bruno Haible  <bruno@clisp.org>
45927
45928         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45929
45930 2008-03-23  Eric Blake  <ebb9@byu.net>
45931             Bruno Haible  <bruno@clisp.org>
45932
45933         Install files from top/ in the destination directory.
45934         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45935         augmentation also for the files from top/.
45936         (func_import, func_create_testdir): Rewrite file names:
45937         top/filename -> filename.
45938
45939 2008-03-23  Bruno Haible  <bruno@clisp.org>
45940
45941         Tweak "gnulib --version" output.
45942         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45943
45944 2008-03-23  Bruno Haible  <bruno@clisp.org>
45945
45946         Tweak "gnulib --version" output.
45947         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45948         rather than contents of ChangeLog, when possible.
45949
45950 2008-03-21  Eric Blake  <ebb9@byu.net>
45951
45952         More --version tweaks.
45953         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45954         date of last ChangeLog entry.
45955
45956 2008-03-21  Jim Meyering  <meyering@redhat.com>
45957
45958         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45959
45960 2008-03-20  Eric Blake  <ebb9@byu.net>
45961
45962         VPATH fix.
45963         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45964
45965 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45966
45967         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45968         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45969
45970 2008-03-20  Eric Blake  <ebb9@byu.net>
45971
45972         Sync GNUmakefile with coreutils.
45973         * build-aux/GNUmakefile (have-Makefile): Rename...
45974         (_have-Makefile): ...to this, for namespace consideration.
45975         (GNUmakefile.cfg): Include, if present.
45976         (_autoreconf): Define a default.
45977         (_is-dist-target): New rule for rebuilds to pick up intra-release
45978         version.
45979         (maint-cfg.mk): Rename...
45980         (cfg.mk): ...to this.
45981
45982 2008-03-18  Jim Meyering  <meyering@redhat.com>
45983
45984         New script and module: mktempd
45985         * MODULES.html.sh (maint+release support): Add mktempd.
45986         * build-aux/mktempd: New file.
45987         * modules/mktempd: New file.
45988
45989 2008-03-15  Jim Meyering  <meyering@redhat.com>
45990
45991         Undo last change.
45992         * lib/sha1.c, lib/md5.c: 63 != ~63.
45993         Reported by Andreas Schwab.
45994
45995         sha1.c, md5.c: Hoist a redundant expression.
45996         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45997         "ctx->buflen" only once, before calling *_process_block.
45998         * lib/md5.c (md5_process_bytes): Likewise.
45999
46000 2008-03-14  Eric Blake  <ebb9@byu.net>
46001
46002         Bump copyright year in files generated by gnulib-tool.
46003         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46004         gnulib-tool, rather than hard-coding it.
46005
46006         Fix 'gnulib-tool --version' output to work with git.
46007         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46008         (startup): ...here.
46009         (func_version): Use it to invoke git-version-gen, rather than
46010         relying on CVS keyword expansion.  Modernize wording.
46011         (cvsdatestamp, last_checkin_date, version): Kill unused
46012         variables.
46013
46014 2008-03-12  Jim Meyering  <meyering@redhat.com>
46015
46016         Recognize optional cast of the argument to free.
46017         * build-aux/useless-if-before-free: Update regexps.
46018
46019         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46020
46021 2008-03-11  Bruno Haible  <bruno@clisp.org>
46022
46023         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46024         by a single package.
46025         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46026         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46027         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46028         Reported by Sam Steingold <sds@gnu.org>.
46029
46030 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46031
46032         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46033         repositories.
46034
46035 2008-03-11  Bruno Haible  <bruno@clisp.org>
46036
46037         Avoid conflicts between local macro definitions.
46038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46039         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46040
46041 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         Make va_copy work with some version of xlc on AIX 5.1.
46045         * lib/stdarg.in.h: New file.
46046         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46047         On AIX, use a <stdarg.h> file substitute.
46048         * modules/stdarg (Files): Add lib/stdarg.in.h.
46049         (Depends-on): Add include_next.
46050         (Makefile.am): Build a stdarg.h substitute if requested.
46051         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46052
46053 2008-03-10  Bruno Haible  <bruno@clisp.org>
46054
46055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46057         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46058
46059 2008-03-10  Bruno Haible  <bruno@clisp.org>
46060
46061         * modules/stdlib (Depends-on): Add include_next, remove
46062         absolute-header.
46063
46064 2008-03-09  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/freadahead.h (freadahead): Document more precisely.
46067         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46068         the sum of both buffer sizes.
46069         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46070         * NEWS: Document the change.
46071
46072 2008-03-09  Bruno Haible  <bruno@clisp.org>
46073
46074         Extend freadptr to return also the buffer size.
46075         * lib/freadptr.h (freadptr): Add sizep argument.
46076         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46077         (freadptr): Add sizep argument. Determine buffer size like freadahead
46078         does.
46079         * tests/test-freadptr.c: Don't include freadahead.h.
46080         (main): Adapt for new calling convention of freadptr.
46081         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46082         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46083         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46084         tests/test-freadptr2.sh.
46085         (Depends): Remove freadahead.
46086         (TESTS): Add test-freadptr2.sh.
46087         (check_PROGRAMS): Add test-freadptr2.
46088
46089 2008-03-09  Bruno Haible  <bruno@clisp.org>
46090
46091         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46092         Report and solution by Simon Josefsson.
46093
46094 2008-03-06  Bruno Haible  <bruno@clisp.org>
46095
46096         Make fflush after ungetc work on BSD platforms.
46097         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46098         * tests/test-fflush2.c: New file.
46099         * tests/test-fflush2.sh: New file.
46100         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46101         tests/test-fflush2.c.
46102         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46103         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46104
46105 2008-03-06  Eric Blake  <ebb9@byu.net>
46106
46107         Likewise for ftello.
46108         * modules/ftello (Dependencies): Add extensions.
46109         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46110
46111 2008-03-06  Bruno Haible  <bruno@clisp.org>
46112
46113         * modules/fseeko (Dependencies): Add extensions.
46114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46115         Needed on glibc systems.
46116
46117 2008-03-06  Bruno Haible  <bruno@clisp.org>
46118
46119         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46120         email address.
46121         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46122
46123 2008-03-06  Bruno Haible  <bruno@clisp.org>
46124
46125         * users.txt: Add libgnupdf.
46126
46127 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46128
46129         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46130         (Header File Substitutes, Function Substitutes,
46131         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46132         (Build robot for gnulib): Fix typo.
46133
46134 2008-03-06  Bruno Haible  <bruno@clisp.org>
46135
46136         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46138
46139 2008-03-06  Bruno Haible  <bruno@clisp.org>
46140
46141         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46142         * doc/gnulib.texi: Include it.
46143
46144 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46145
46146         * modules/func (License): Change license to unlimited; there was
46147         no LGPL parts in the module anyway.
46148
46149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46150
46151         * modules/__func__: Renamed to modules/func.
46152         * modules/__func__-tests: Renamed to modules/func-tests.
46153         * tests/test-__func__.c: Renamed to tests/test-func.c.
46154         * m4/__func__.m4: Renamed to m4/func.m4.
46155         * doc/gnulib.texi (__func__): Section renamed to func.
46156         Suggested by Eric Blake <ebb9@byu.net>.
46157
46158 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46159
46160         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46161         about __func__.  Make example self-contained.  Suggested by Eric
46162         Blake <ebb9@byu.net>.
46163
46164         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46165         Suggested by Eric Blake <ebb9@byu.net>.
46166
46167 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46168
46169         * modules/__func__: New file.
46170         * modules/__func__-tests: New file.
46171         * tests/test-__func__.c: New file.
46172         * m4/__func__.m4: New file.
46173         * doc/gnulib.texi (__func__): Document __func__ module.
46174
46175 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46176
46177         * modules/byteswap (License): Re-license as LGPLv2+.
46178
46179 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46180
46181         * doc/Makefile: Add pdf target.
46182
46183 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46184
46185         * modules/inline (License): Use 'unlimited', since there are only
46186         *.m4 files in this module.
46187
46188 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46189             Bruno Haible  <bruno@clisp.org>
46190
46191         Add support for HP C 7.1 on OpenVMS 8.3.
46192         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46193
46194 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46195
46196         Update VMS specifics.
46197         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46198
46199 2008-03-02  Jim Meyering  <meyering@redhat.com>
46200
46201         Remove the last dependency on the "free" module.
46202         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46203         Reported by Bob Proulx.
46204
46205         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46206
46207         Remove useless "if" tests before free.  Deprecate "free" module.
46208         * doc/posix-functions/free.texi: Mention that this
46209         module is no longer useful.
46210         * modules/free (Notice): Say this module is obsolete.
46211         * modules/readutmp (Depends-on): Remove free.
46212         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46213         * lib/putenv.c (putenv): Likewise.
46214         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46215         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46216         * tests/test-c-strcasestr.c (main): Likewise.
46217         * tests/test-c-strstr.c (main): Likewise.
46218         * tests/test-mbscasestr1.c (main): Likewise.
46219         * tests/test-mbscasestr2.c (main): Likewise.
46220         * tests/test-mbsstr1.c (main): Likewise.
46221         * tests/test-mbsstr2.c (main): Likewise.
46222         * tests/test-memmem.c (main): Likewise.
46223         * tests/test-strcasestr.c (main): Likewise.
46224         * tests/test-striconv.c (main): Likewise.
46225         * tests/test-striconveh.c (main): Likewise.
46226         * tests/test-striconveha.c (main): Likewise.
46227         * tests/test-strstr.c (main): Likewise.
46228
46229         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46230
46231         bootstrap: sync from coreutils again
46232         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46233
46234 2008-03-01  Jim Meyering  <meyering@redhat.com>
46235
46236         bootstrap: sync from coreutils
46237         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46238         also when the target doesn't exist.
46239
46240 2008-03-01  Eric Blake  <ebb9@byu.net>
46241
46242         Fix bugs in last patch.
46243         * lib/memchr2.c (memchr2): Fix typo.
46244         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46245         extension.
46246         Reported by Bruce Korb.
46247
46248         New module 'memchr2'.
46249         * modules/memchr2: New file.
46250         * modules/memchr2-tests: Likewise.
46251         * lib/memchr2.h: Likewise.
46252         * lib/memchr2.c: Likewise, based on memchr.c.
46253         * tests/test-memchr2.c: New test.
46254         * MODULES.html.sh (String handling): Add memchr2.
46255
46256 2008-02-29  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/freadseek-tests: New file.
46259         * tests/test-freadseek.sh: New file.
46260         * tests/test-freadseek.c: New file.
46261
46262         New module 'freadseek'.
46263         * modules/freadseek: New file.
46264         * lib/freadseek.h: New file.
46265         * lib/freadseek.c: New file.
46266         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46267
46268 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46269
46270         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46271         wydawca.
46272
46273         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46274         program_invocation_name and program_invocation_short_name are
46275         present.
46276
46277 2008-02-28  Bruno Haible  <bruno@clisp.org>
46278
46279         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46280         * tests/test-freadptr.sh: Also test non-seekable stdin.
46281
46282 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46283
46284         * build-aux/bootstrap (source_base, m4_base)
46285         (doc_base, tests_base): New variables.
46286         (gnulib_tool_options): Do not hardcode base directories, use
46287         the above variables instead.
46288
46289 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46290
46291         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46292
46293 2008-02-28  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/freadptr-tests: New file.
46296         * tests/test-freadptr.sh: New file.
46297         * tests/test-freadptr.c: New file.
46298
46299         New module 'freadptr'.
46300         * modules/freadptr: New file.
46301         * lib/freadptr.h: New file.
46302         * lib/freadptr.c: New file.
46303         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46304
46305 2008-02-26  Karl Berry  <karl@freefriends.org>
46306
46307         Sync from Libtool:
46308         * libltdl/argz.c (argz_add, argz_count): New functions.
46309         * libltdl/argz.in.h: Declare them.
46310         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46311
46312 2008-02-22  Bruno Haible  <bruno@clisp.org>
46313
46314         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46315         is a pointer type.  Needed for HP-UX 10.
46316         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46317         * doc/posix-functions/gmtime_r.texi: Likewise.
46318         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46319
46320 2008-02-24  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/environ-tests: New file.
46323         * tests/test-environ.c: New file.
46324
46325         New module 'environ'.
46326         * modules/environ: New file.
46327         * lib/unistd.in.h (environ): New declaration.
46328         * m4/environ.m4: New file.
46329         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46330         after use.
46331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46332         HAVE_DECL_ENVIRON.
46333         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46334         HAVE_DECL_ENVIRON.
46335         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46336         wrong claim that 'environ' is missing on some systems.
46337         * modules/execute (Depends-on): Add environ.
46338         * lib/execute.c (environ): Remove fallback declaration.
46339         * modules/pipe (Depends-on): Add environ.
46340         * lib/pipe.c (environ): Remove fallback declaration.
46341         * modules/setenv (Depends-on): Add environ.
46342         * lib/setenv.c (environ): Remove fallback declaration.
46343         * modules/unsetenv (Depends-on): Add environ.
46344         * lib/unsetenv.c (environ): Remove fallback declaration.
46345         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46346         m4/environ.m4.
46347         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46348         (gl_PREREQ_UNSETENV): Likewise.
46349
46350 2008-02-24  Bruno Haible  <bruno@clisp.org>
46351
46352         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46353
46354 2008-02-20  Bob Proulx  <bob@proulx.com>
46355
46356         Enable use of older two part flavor 'git describe'.
46357         * build-aux/git-version-gen: If using the older two part flavor of
46358         git version then recreate the third part now present in the
46359         newer three part flavor of git describe.
46360
46361 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46362
46363         * lib/fts.c (fts_build): Typo correction to comment.
46364
46365 2008-02-17  Bruno Haible  <bruno@clisp.org>
46366
46367         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46368         generating no-op conflicts.
46369
46370 2008-02-17  Bruno Haible  <bruno@clisp.org>
46371
46372         Speed up by 10%.
46373         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46374         result_entries, rather than an index-based loop.
46375
46376 2008-02-17  Bruno Haible  <bruno@clisp.org>
46377
46378         Speed up by 25%.
46379         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46380         'hashcode_cached'.
46381         (entry_create): New function.
46382         (entry_hashcode): Use the cached hashcode if possible.
46383         (read_changelog_file, try_split_merged_entry): Use entry_create.
46384
46385 2008-02-17  Bruno Haible  <bruno@clisp.org>
46386
46387         Speed up from O(n^2) to O(n) for long ChangeLog files.
46388         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46389         (read_changelog_file): Change implementation of entries_reversed list
46390         to rbtreehash.
46391         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46392
46393 2008-02-17  Bruno Haible  <bruno@clisp.org>
46394
46395         New option --split-merged-entry.
46396         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46397         (find_paragraph_end, try_split_merged_entry): New functions.
46398         (long_options): Add option --split-merged-entry.
46399         (usage): Document option --split-merged-entry.
46400         (main): Implement option --split-merged-entry.
46401         Reported by Eric Blake.
46402
46403 2008-02-17  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/git-merge-changelog.c: Include c-strstr.h.
46406         (main): Support the "git pull --rebase" situation.
46407         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46408         Reported by Eric Blake.
46409
46410 2008-02-16  Eric Blake  <ebb9@byu.net>
46411
46412         Avoid doubling \ in common case of "c-maybe" quoting style.
46413         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46414         eliding outer quotes.
46415         * lib/quotearg.h: Document this.
46416         * tests/test-quotearg.c (result_strings, inputs, results_g)
46417         (flag_results, locale_results): Test it by adding a new string to
46418         each test group.
46419         (compare_strings): Test new string.
46420
46421 2008-02-13  Eric Blake  <ebb9@byu.net>
46422
46423         Avoid trigraph quoting in default output.
46424         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46425         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46426         unless explicitly requested.
46427         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46428
46429 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46430
46431         Don't rely on signed integer overflowing to negative value.
46432         * lib/getugroups.c (getugroups): Include <limits.h>.
46433         Instead, compare against INT_MAX, and increment only if the test passes.
46434
46435 2008-02-13  Jim Meyering  <meyering@redhat.com>
46436         and Eric Blake  <ebb9@byu.net>
46437
46438         Avoid shadowing warning and compile errors on Linux.
46439         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46440         forwarding macros on Linux.
46441         (dcgettext): Define a stub, for Linux.
46442         (results_g, main): Avoid warnings.
46443
46444 2008-02-12  Eric Blake  <ebb9@byu.net>
46445
46446         Silence warning in last patch.
46447         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46448
46449         Quotearg part 4: add tests, fix c-maybe colon quoting.
46450         * lib/quotearg.h: Improve documentation.
46451         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46452         escapes when adding outer quotes.  When quoting trigraphs, use
46453         valid C notation.  When quoting NUL, omit extra characters if next
46454         character is not digit.  Alter prototype.
46455         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46456         callers.
46457         * modules/quotearg-tests: New module.
46458         * tests/test-quotearg.c: New test.
46459
46460 2008-02-07  Eric Blake  <ebb9@byu.net>
46461
46462         Quotearg part 3: add flag to control outer quote elision.
46463         * lib/quotearg.h (c_maybe_quoting_style): New style.
46464         (enum quoting_flags): Better documentation of flags.
46465         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46466         c-maybe style.
46467         (quotearg_buffer_restyled): Handle new flag to elide outer
46468         quotes.
46469
46470         Quotearg part 2: add flag that can control NUL elision.
46471         * lib/quotearg.h (set_quoting_flags): New prototype.
46472         * lib/quotearg.c (struct quoting_options): Add flag field.
46473         (set_quoting_flags): New function.
46474         (quotearg_buffer_restyled): Add flags parameter.
46475         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46476         (quotearg_n_options): Set the flag, since length cannot be
46477         returned.
46478         (quoting_options_from_style): Default flags correctly.
46479
46480         Quotearg part 1: more wrappers, restore quotearg_char state.
46481         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46482         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46483         (quotearg_colon_mem): New wrappers.
46484         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46485         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46486         functions.
46487         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46488         (quotearg_colon_mem): New functions.
46489
46490 2008-02-11  Bruno Haible  <bruno@clisp.org>
46491
46492         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46493         library in the current directory: it does not work with parallel make.
46494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46495
46496 2008-02-11  Bruno Haible  <bruno@clisp.org>
46497
46498         * .gitattributes: New file.
46499
46500 2008-02-11  Jim Meyering  <meyering@redhat.com>
46501
46502         useless-if-before-free: Fix reversed exit values.
46503         * build-aux/useless-if-before-free: Use correct values
46504         for EXIT_MATCH and EXIT_NO_MATCH.
46505
46506         * build-aux/useless-if-before-free: Close stdout carefully.
46507
46508 2008-02-10  Bruno Haible  <bruno@clisp.org>
46509
46510         New module 'git-merge-changelog'.
46511         * modules/git-merge-changelog: New file.
46512         * lib/git-merge-changelog.c: New file.
46513
46514 2008-02-10  Jim Meyering  <meyering@redhat.com>
46515
46516         useless-if-before-free: New option: --list (-l).
46517
46518         useless-if-before-free: Don't exit immediately upon open failure.
46519         * build-aux/useless-if-before-free: Exit 2 for errors.
46520         Upon failure to open a file, don't exit immediately.
46521         Rather, just warn and continue with any remaining files.
46522
46523 2008-02-10  Bruno Haible  <bruno@clisp.org>
46524
46525         New abstract list operation 'node_set_value'.
46526         * lib/gl_list.h (gl_list_node_set_value): New function.
46527         (struct gl_list_implementation): New field node_set_value.
46528         * lib/gl_list.c (gl_list_node_set_value): New function.
46529         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46530         (gl_array_list_implementation): Update.
46531         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46532         (gl_carray_list_implementation): Update.
46533         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46534         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46535         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46536         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46537         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46538         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46540         Update.
46541         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46542         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46543         (gl_sublist_list_implementation): Update.
46544
46545 2008-02-10  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46548         Needed when ELEMENT is #defined to 'some_type *'.
46549
46550 2008-02-10  Jim Meyering  <meyering@redhat.com>
46551
46552         New script and module: useless-if-before-free
46553         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46554         * build-aux/useless-if-before-free: New file.
46555         * modules/useless-if-before-free: New file.
46556
46557         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46558
46559         xstrtol_error: Fix typo.
46560         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46561         s/exit_failure/exit_status/.
46562
46563 2008-02-09  Jim Meyering  <meyering@redhat.com>
46564
46565         New script and module: gitlog-to-changelog
46566         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46567         * modules/gitlog-to-changelog: New file.
46568         * build-aux/gitlog-to-changelog: New file.
46569
46570 2008-02-08  Jim Meyering  <meyering@redhat.com>
46571
46572         Avoid two "parameter unused" warnings.
46573         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46574         Mark "st" as used.
46575
46576         Use "git COMMAND", not "git-COMMAND".
46577         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46578         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46579         * build-aux/git-version-gen: Use "git status", not "git-status".
46580
46581 2008-02-07  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46584         Avoids a crash on Windows Vista.
46585         Reported by Adam Strzelecki <ono@java.pl> via
46586         Simon Josefsson <simon@josefsson.org>.
46587
46588 2008-02-06  Bruno Haible  <bruno@clisp.org>
46589
46590         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46591         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46592         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46596         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46597         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46605         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46606         left-adjust flag.
46607         * tests/test-snprintf-posix.h (test_function): Likewise.
46608         * tests/test-sprintf-posix.h (test_function): Likewise.
46609         * tests/test-vasprintf-posix.c (test_function): Likewise.
46610         * doc/posix-functions/fprintf.texi: Update.
46611         * doc/posix-functions/printf.texi: Update.
46612         * doc/posix-functions/snprintf.texi: Update.
46613         * doc/posix-functions/sprintf.texi: Update.
46614         * doc/posix-functions/vfprintf.texi: Update.
46615         * doc/posix-functions/vprintf.texi: Update.
46616         * doc/posix-functions/vsnprintf.texi: Update.
46617         * doc/posix-functions/vsprintf.texi: Update.
46618         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46619
46620 2008-02-06  Bruno Haible  <bruno@clisp.org>
46621
46622         Fix bug introduced on 2008-01-26.
46623         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46624
46625 2008-02-06  Bruno Haible  <bruno@clisp.org>
46626
46627         Fix bug introduced on 2007-06-10.
46628         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46629         !NEED_PRINTF_FLAG_ZERO.
46630
46631 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46632
46633         getloadavg: use libperfstat on AIX5
46634         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46635
46636 2008-02-03  Bruno Haible  <bruno@clisp.org>
46637
46638         * lib/diffseq.h: Add comments about required #includes.
46639         Reported by Michael Biggs <gnulib@doubleplum.net>.
46640
46641 2008-02-01  Bruno Haible  <bruno@clisp.org>
46642
46643         * users.txt: Add gnuit.
46644
46645 2008-01-31  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/md4.c (set_uint32): Mark as inline.
46648         * lib/md5.c (set_uint32): Likewise.
46649         * lib/sha1.c (set_uint32): Likewise.
46650         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46651         * m4/md5.m4 (gl_MD5): Likewise.
46652         * m4/sha1.m4 (gl_SHA1): Likewise.
46653
46654 2008-01-31  Jim Meyering  <meyering@redhat.com>
46655
46656         Use "sizeof VAR", rather than a literal "4".
46657         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46658         * lib/md4.c (md4_read_ctx): Likewise.
46659         * lib/sha1.c (sha1_read_ctx): Likewise.
46660
46661 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46662
46663         * tests/test-sha1.c: New file, based on test-md5.c.
46664
46665         * modules/crypto/sha1-tests: New file.
46666
46667 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46668
46669         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46670
46671 2008-01-31  Jim Meyering  <meyering@redhat.com>
46672
46673         Prefer "sizeof v" over the equivalent "4".
46674         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46675         * lib/md5.c (set_uint32): Likewise.
46676         * lib/sha1.c (set_uint32): Likewise.
46677
46678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46679
46680         * lib/sha1.c (set_uint32): Mark function as static.
46681
46682 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46683
46684         md2: clarify comments to say that alignment is not required.
46685         * lib/md2.h: Remove warning about alignment in comment.
46686         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46687         never been required.
46688
46689 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46690
46691         md4: adapt alignment constraint fix from sha1.
46692         * lib/md4.c (set_uint32): New function, from sha1.c
46693         (md4_read_ctx): Use it.
46694         (md4_finish_ctx): Doc fix.
46695         * lib/md4.h: Doc fix.
46696
46697 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46698
46699         md5: adapt alignment constraint fix from sha1.
46700         * lib/md5.c (set_uint32): New function, from sha1.c
46701         (md5_read_ctx): Use it.
46702         (md5_finish_ctx): Doc fix.
46703         * lib/md5.h: Doc fix.
46704
46705 2008-01-30  Peter Palfrader  <weasel@debian.org>
46706
46707         sha1: remove the result buffer alignment constraint
46708         * lib/sha1.c (set_uint32): New function.
46709         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46710         constraint.
46711         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46712         * lib/sha1.h: Likewise.
46713
46714 2008-01-30  Andreas Schwab  <schwab@suse.de>
46715             Bruno Haible  <bruno@clisp.org>
46716
46717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46718         correct definition of LDBL_MIN_EXP.
46719
46720 2008-01-30  Karl Berry  <karl@gnu.org>
46721
46722         * config/srclist-update: try to preserve x bit on updates.
46723         * config/srclistvars.sh: update for karl.
46724
46725 2008-01-29  Jim Meyering  <meyering@redhat.com>
46726
46727         vasnprintf.c: Avoid warning about unused label
46728         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46729         "overflow" label definition and associated code with the
46730         same cpp condition that guards the sole use of that label.
46731
46732 2008-01-26  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46735         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46736         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46737         * lib/isnanl-nolibm.h (isnanl): Likewise.
46738         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46739
46740 2008-01-26  Bruno Haible  <bruno@clisp.org>
46741
46742         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46743         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46744
46745 2008-01-26  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46748         GCC >= 4.0 built-in.
46749         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46750
46751 2008-01-26  Bruno Haible  <bruno@clisp.org>
46752
46753         Rename isnan, applicable to 'double' only, to isnand.
46754         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46755         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46756         (configure.ac): Update.
46757         (Include): Replace "isnan.h" with "isnand.h".
46758         * m4/isnand.m4: Renamed from m4/isnan.m4.
46759         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46760         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46761         instead of isnan.c.
46762         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46763         instead of HAVE_ISNAN_IN_LIBC.
46764         (isnand): Renamed from isnan.
46765         * lib/isnand.c: New file.
46766         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46767         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46768         (Makefile.am): Update.
46769         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46770         Include isnand.h instead of isnan.h.
46771         (main): Test isnand instead of isnan.
46772         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46773         isnan-nolibm.
46774         * modules/frexp (Depends-on): Likewise.
46775         * modules/frexp-tests (Depends-on): Likewise.
46776         * modules/frexp-nolibm (Depends-on): Likewise.
46777         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46778         * modules/isfinite (Depends-on): Likewise.
46779         * modules/round-tests (Depends-on): Likewise.
46780         * modules/signbit (Depends-on): Likewise.
46781         * modules/signbit-tests (Depends-on): Likewise.
46782         * modules/snprintf-posix (Depends-on): Likewise.
46783         * modules/sprintf-posix (Depends-on): Likewise.
46784         * modules/trunc-tests (Depends-on): Likewise.
46785         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46786         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46787         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46788         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46789         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46790         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46791         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46792         * modules/vasnprintf-posix (Depends-on): Likewise.
46793         * modules/vasprintf-posix (Depends-on): Likewise.
46794         * modules/vfprintf-posix (Depends-on): Likewise.
46795         * modules/vsnprintf-posix (Depends-on): Likewise.
46796         * modules/vsprintf-posix (Depends-on): Likewise.
46797         * lib/frexp.c: Include isnand.h instead of isnan.h.
46798         (ISNAN): Set to isnand instead of isnan.
46799         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46800         (gl_isfinited): Use isnand instead of isnan.
46801         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46802         (gl_signbitd): Use isnand instead of isnan.
46803         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46804         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46805         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46806         (main): Use isnand instead of isnan.
46807         * tests/test-round1.c: Include isnand.h.
46808         (main): Use isnand instead of isnan.
46809         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46810         (ISNAN): Set to isnand instead of isnan.
46811         * tests/test-trunc1.c: Include isnand.h.
46812         (main): Use isnand instead of isnan.
46813         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46814         (equal): Use isnand instead of isnan.
46815         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46816         isnand-nolibm.
46817         * NEWS: Mention the change.
46818
46819 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46820             Bruno Haible  <bruno@clisp.org>
46821
46822         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46823         the GCC builtins for signbits are present and set
46824         REPLACE_SIGNBIT_USING_GCC if so.
46825         * lib/math.in.h (signbit): Define using GCC builtins if
46826         REPLACE_SIGNBIT_USING_GCC is set.
46827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46828         REPLACE_SIGNBIT_USING_GCC.
46829         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46830
46831 2008-01-25  Jim Meyering  <meyering@redhat.com>
46832
46833         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46834         * lib/poll.c: Include <config.h>, not "config.h".
46835         * tests/test-getaddrinfo.c: Likewise.
46836
46837 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46838
46839         * modules/sockets-tests: New file.
46840
46841 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46842
46843         * modules/sockets: New module, can be used to call WSA_Startup and
46844         WSA_Cleanup when needed.
46845
46846         * lib/sockets.h, lib/sockets.c: New files.
46847
46848         * m4/sockets.m4: New file.
46849
46850         * tests/test-sockets.c: New file.
46851
46852 2008-01-19  Bruno Haible  <bruno@clisp.org>
46853
46854         * doc/posix-headers: Renamed from doc/headers.
46855         * doc/posix-functions: Renamed from doc/functions.
46856         * doc/gnulib.texi: Update.
46857
46858 2008-01-19  Bruno Haible  <bruno@clisp.org>
46859
46860         * doc/glibc-functions/strcasestr.texi: Include contents of
46861         doc/functions/strcasestr.texi, fixing the list of platforms.
46862         * doc/functions/strcasestr.texi: Remove file.
46863
46864 2008-01-19  Bruno Haible  <bruno@clisp.org>
46865
46866         * doc/glibc-functions/memmem.texi: Include contents of
46867         doc/functions/memmem.texi.
46868         * doc/functions/memmem.texi: Remove file.
46869
46870 2008-01-18  Bruno Haible  <bruno@clisp.org>
46871
46872         * doc/glibc-functions/*.texi: New files.
46873         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46874         to use the new files.
46875
46876 2008-01-17  Bruno Haible  <bruno@clisp.org>
46877
46878         * tests/test-gethostname.c (main): Fix printf statement.
46879
46880 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46881
46882         * modules/gethostname-tests: New file.
46883
46884         * tests/test-gethostname.c: New file.
46885
46886 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46887
46888         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46889         used by the UNAME case.  Reported by Bruno Haible
46890         <bruno@clisp.org>.
46891
46892 2008-01-17  Eric Blake  <ebb9@byu.net>
46893
46894         Convert c-strcasestr to be more efficient.
46895         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46896         (Depends-on): Add c-strcase, remove malloca, strnlen.
46897         * tests/test-c-strcasestr.c (main): Enhance test.
46898         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46899
46900 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46901
46902         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46903         Use it in creating po/Makevars.
46904
46905 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46906
46907         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46908         Applications that requires it should initialize libgcrypt
46909         manually.
46910
46911 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46912
46913         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46914
46915 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46916
46917         Fix problem with getdate on mingw32 reported by Simon Josefsson
46918         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46919         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46920         tzname", when deciding whether to declare tzname.
46921         * lib/strftime.c (tzname): Likewise.
46922
46923 2008-01-15  Bruno Haible  <bruno@clisp.org>
46924
46925         Work around a MacOS X 10.5 bug in frexpl().
46926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46927         * doc/functions/frexpl.texi: Document the bug.
46928         Reported by Elias Pipping <pipping@gentoo.org>.
46929
46930 2008-01-14  Eric Blake  <ebb9@byu.net>
46931
46932         Touch up previous patch.
46933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46934         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46935
46936         Convert strcasestr module to use Two-Way algorithm.
46937         * modules/strcasestr-simple: New module, based on the old
46938         strcasestr, but with Two-Way rather than KMP.
46939         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46940         * lib/string.in.h (rpl_strcasestr): Declare.
46941         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46942         performance.
46943         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46944         * modules/string (Makefile.am): Support strcasestr.
46945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46946         * modules/strcasestr-tests (Depends-on): Check for alarm.
46947         * tests/test-strcasestr.c: Augment test.
46948         * lib/str-two-way.h: Clean up stray macro.
46949         * NEWS: Document new module.
46950         * MODULES.html.sh (string handling): Likewise.
46951         * doc/functions/strcasestr.texi: New file.
46952         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46953         here, since it is not a POSIX function.
46954
46955 2008-01-14  Colin Watson  <cjwatson@debian.org>
46956             Bruno Haible  <bruno@clisp.org>
46957
46958         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46959         works fine; if not, set REPLACE_STRSIGNAL.
46960         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46962         REPLACE_STRSIGNAL.
46963         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46964         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46965         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46966
46967 2008-01-14  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/strsignal (Include): Change to <string.h>.
46970
46971 2008-01-14  Colin Watson  <cjwatson@debian.org>
46972
46973         * modules/argp (Notice): Add a notice recommending to change
46974         XGETTEXT_OPTIONS.
46975         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46976
46977 2008-01-13  Colin Watson  <cjwatson@debian.org>
46978
46979         * modules/strsignal-tests: New file.
46980         * tests/test-strsignal.c: New file.
46981
46982         * lib/strsignal.c: New file, from glibc with modifications.
46983         * lib/siglist.h: New file, from glibc with modifications.
46984         * lib/string.in.h (strsignal): New declaration.
46985         * m4/strsignal.m4: New file.
46986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46987         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46988         * modules/strsignal: New file.
46989         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46990         HAVE_DECL_STRSIGNAL.
46991
46992 2008-01-13  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46995         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46996         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46997         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46998
46999 2008-01-13  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47002         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47003         * lib/argp.h (__attribute__): Likewise.
47004         * lib/c-stack.c (__attribute__): Likewise.
47005         * lib/error.h (__attribute__): Likewise.
47006         * lib/fts.c (__attribute__): Likewise.
47007         * lib/openat.h (__attribute__): Likewise.
47008         * lib/stdio.in.h (__attribute__): Likewise.
47009         * lib/string.in.h (__attribute__): Likewise.
47010         * lib/utimens.c (__attribute__): Likewise.
47011         * lib/vasnprintf.h (__attribute__): Likewise.
47012         * lib/xalloc.h (__attribute__): Likewise.
47013         * lib/xprintf.h (__attribute__): Likewise.
47014         * lib/xstrtol.h (__attribute__): Likewise.
47015         * lib/xvasprintf.h (__attribute__): Likewise.
47016
47017 2008-01-12  Bruno Haible  <bruno@clisp.org>
47018
47019         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47020         * doc/glibc-headers/a.out.texi: New file.
47021         * doc/glibc-headers/aliases.texi: New file.
47022         * doc/glibc-headers/alloca.texi: New file.
47023         * doc/glibc-headers/ar.texi: New file.
47024         * doc/glibc-headers/argp.texi: New file.
47025         * doc/glibc-headers/argz.texi: New file.
47026         * doc/glibc-headers/byteswap.texi: New file.
47027         * doc/glibc-headers/crypt.texi: New file.
47028         * doc/glibc-headers/endian.texi: New file.
47029         * doc/glibc-headers/envz.texi: New file.
47030         * doc/glibc-headers/err.texi: New file.
47031         * doc/glibc-headers/error.texi: New file.
47032         * doc/glibc-headers/execinfo.texi: New file.
47033         * doc/glibc-headers/fpu_control.texi: New file.
47034         * doc/glibc-headers/fstab.texi: New file.
47035         * doc/glibc-headers/fts.texi: New file.
47036         * doc/glibc-headers/getopt.texi: New file.
47037         * doc/glibc-headers/ieee754.texi: New file.
47038         * doc/glibc-headers/ifaddrs.texi: New file.
47039         * doc/glibc-headers/libintl.texi: New file.
47040         * doc/glibc-headers/mcheck.texi: New file.
47041         * doc/glibc-headers/mntent.texi: New file.
47042         * doc/glibc-headers/obstack.texi: New file.
47043         * doc/glibc-headers/paths.texi: New file.
47044         * doc/glibc-headers/printf.texi: New file.
47045         * doc/glibc-headers/pty.texi: New file.
47046         * doc/glibc-headers/resolv.texi: New file.
47047         * doc/glibc-headers/shadow.texi: New file.
47048         * doc/glibc-headers/sysexits.texi: New file.
47049         * doc/glibc-headers/ttyent.texi: New file.
47050
47051 2008-01-12  Jim Meyering  <meyering@redhat.com>
47052
47053         announce-gen: emit Gnulib's git-based version string.
47054         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47055         New option --gnulib-version=V, where V is expected to be
47056         the output of running git describe in the gnulib directory.
47057         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47058         not useful, and plan to stop publishing an xdelta file with each
47059         coreutils release.
47060
47061         * build-aux/announce-gen: Also check for lzma-compressed files.
47062
47063 2008-01-11  Bruno Haible  <bruno@clisp.org>
47064
47065         * tests/test-memmem.c (main): Increase maximum allowed time.
47066         * tests/test-strstr.c (main): Likewise.
47067
47068 2008-01-11  Bruno Haible  <bruno@clisp.org>
47069
47070         * doc/functions/memmem.texi: Add more precisions about platforms.
47071         * doc/functions/strstr.texi: Likewise.
47072
47073 2008-01-10  Eric Blake  <ebb9@byu.net>
47074
47075         * m4/strstr.m4: Delete cruft from copy-n-paste.
47076         Reported by Bruno Haible.
47077
47078 2008-01-10  Bruno Haible  <bruno@clisp.org>
47079
47080         Make c-strstr rely on strstr.
47081         * lib/c-strstr.c: Don't include str-kmp.h.
47082         (c_strstr): Define in terms of strstr.
47083         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47084         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47085
47086 2008-01-10  Bruno Haible  <bruno@clisp.org>
47087
47088         * doc/gnulib.texi (String Functions in C Locale): New section.
47089         * doc/c-ctype.texi: New file.
47090         * doc/c-strcase.texi: New file.
47091         * doc/c-strcaseeq.texi: New file.
47092         * doc/c-strcasestr.texi: New file.
47093         * doc/c-strstr.texi: New file.
47094         * doc/c-strtod.texi: New file.
47095         * doc/c-strtold.texi: New file.
47096
47097 2008-01-10  Eric Blake  <ebb9@byu.net>
47098
47099         * lib/relocatable.h: Fix a comment.
47100
47101 2008-01-10  Eric Blake  <ebb9@byu.net>
47102
47103         Share two-way algorithm.
47104         * lib/str-two-way.h: New file, merged from...
47105         * lib/memmem.c: ...here...
47106         * lib/strstr.c: ...and here.
47107         * modules/memmem (Files): Use it.
47108         * modules/strstr (Files): Likewise.
47109
47110         Avoid quadratic strstr implementations.
47111         * lib/strstr.c: New file.
47112         * m4/strstr.m4: Likewise.
47113         * modules/strstr: Likewise.
47114         * modules/strstr-tests: Likewise.
47115         * tests/test-strstr.c: Likewise.
47116         * lib/string.in.h (rpl_strstr): Declare.
47117         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47119         * modules/string (Makefile.am): Likewise.
47120         * MODULES.html.sh (string handling): Mention new module.
47121         * doc/functions/strstr.texi (strstr): Document the bug.
47122
47123 2008-01-10  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/relocatable.h (relocate): State whether result is freshly
47126         allocated or not.
47127         * lib/relocatable.c (relocate): Return a freshly allocated string
47128         instead of a pointer to a privately held string.
47129         Reported by Sylvain Beucler <beuc@gnu.org>.
47130
47131 2008-01-10  Colin Watson  <cjwatson@debian.org>
47132
47133         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47134         s/S_ISNLK/S_ISLNK/.
47135
47136 2008-01-09  Bruno Haible  <bruno@clisp.org>
47137
47138         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47139         and other files.
47140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47141         if it's only a guess.
47142         * modules/memmem: Simplify by depending on memmem-simple.
47143
47144 2008-01-09  Bruno Haible  <bruno@clisp.org>
47145
47146         Work around OpenBSD 4.0 tdelete() bug.
47147         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47148         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47149         macros and don't redefine the enum values.
47150         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47151         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47152         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47153
47154 2008-01-09  Bruno Haible  <bruno@clisp.org>
47155
47156         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47157         (main): Don't perform the tests if setlocale did not install a UTF-8
47158         locale. Needed on OpenBSD 4.0.
47159         * modules/wcwidth-tests (Depends-on): Add localcharset.
47160
47161 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47162
47163         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47164         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47165         * NEWS: announce this.
47166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47167
47168 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47169         and Eric Blake  <ebb9@byu.net>
47170
47171         Add memmem-simple module.
47172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47173         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47174         * modules/memmem-simple: New file.
47175         * modules/memmem (Description): Tweak.
47176         * MODULES.html.sh (string handling): Mention new module.
47177         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47178         addressed by memmem-simple.
47179         * NEWS: Document the difference.
47180
47181 2008-01-09  Eric Blake  <ebb9@byu.net>
47182
47183         Give gcc some memmem optimization hints.
47184         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47185         (strcasestr): Declare as pure.
47186         * modules/memmem (Maintainer): Claim my implementation.
47187
47188 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47189
47190         Support AIX 6.1 and higher.
47191         * build-aux/config.libpath: Likewise.
47192         * build-aux/config.rpath: Likewise.
47193
47194 2008-01-08  Jim Meyering  <meyering@redhat.com>
47195             Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47198         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47199         Reported by Peter Fales in
47200         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47201
47202 2008-01-08  Bruno Haible  <bruno@clisp.org>
47203
47204         * modules/unictype/category-of (Depends-on): Add
47205         unictype/category-none.
47206         * modules/unictype/category-and-tests (Depends-on): Add
47207         unictype/category-{L,N,Lu,Nd}.
47208         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47209         * modules/unictype/category-or-tests (Depends-on): Add
47210         unictype/category-{L,N}.
47211         * modules/unictype/category-name-tests (Depends-on): Add
47212         unictype/category-{Z,Nl}.
47213         Reported by Simon Josefsson.
47214
47215 2008-01-08  Bruno Haible  <bruno@clisp.org>
47216
47217         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47218         convention better.
47219         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47220         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47221         Reported by Peter Miller <millerp@canb.auug.org.au>.
47222
47223 2008-01-08  Eric Blake  <ebb9@byu.net>
47224
47225         Rewrite memmem to guarantee linear complexity without malloc.
47226         * lib/memmem.c (memmem): Use Two-Way rather than
47227         Knuth-Morris-Pratt, to allow O(1) space usage.
47228         (critical_factorization, two_way_short_needle)
47229         (two_way_long_needle): New functions.
47230         (knuth_morris_pratt): Delete.
47231         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47232         Add stdint.
47233         * tests/test-memmem.c (main): Add tests for periodic needle and
47234         sublinear performance.
47235         * doc/functions/memmem.texi (memmem): Document other deficiencies
47236         in cygwin and older glibc.
47237
47238 2008-01-08  Bruno Haible  <bruno@clisp.org>
47239
47240         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47241         augmentation.
47242
47243 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47244
47245         Add a configure time option: --disable-acl.
47246         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47247         AC_ARG_ENABLE(acl).
47248
47249 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47250
47251         * tests/test-localename.c: Don't include obsolete "setenv.h".
47252
47253         * modules/localename-tests (Depends-on): Need unsetenv.
47254
47255 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47256
47257         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47258
47259 2008-01-06  Colin Watson  <cjwatson@debian.org>
47260
47261         * users.txt: Add man-db.
47262
47263 2008-01-07  Bruno Haible  <bruno@clisp.org>
47264
47265         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47266         previous section name.
47267
47268 2008-01-07  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/progname.c (set_program_name): Don't strip off a leading
47271         "lt-" prefix outside a .libs directory.
47272         Suggested by Paul Eggert.
47273
47274 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47275             Bruno Haible  <bruno@clisp.org>
47276
47277         Improve memory cleanup in 'relocatable' module.
47278         * lib/relocatable.h (compute_curr_prefix): Change return type to
47279         'char *'.
47280         * lib/relocatable.c (compute_curr_prefix): Change return type to
47281         'char *'. Free curr_installdir after use.
47282         (relocate): Free curr_prefix_better after use.
47283         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47284
47285 2008-01-01  Bruno Haible  <bruno@clisp.org>
47286
47287         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47288         failure on older glibc systems.
47289         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47290
47291 2008-01-05  Eric Blake  <ebb9@byu.net>
47292
47293         Avoid quadratic system memmem.
47294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47295         Reported by Ralf Wildenhues.
47296
47297         Fix memmem test for mingw.
47298         * modules/memmem-tests (configure.ac): Check for alarm.
47299         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47300         it.
47301         * doc/functions/memmem.texi: New file.
47302         * doc/gnulib.texi (Function Substitutes): Add memmem.
47303         Reported by Bruno Haible.
47304
47305 2008-01-04  Bruno Haible  <bruno@clisp.org>
47306
47307         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47308         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47309         gl_HEADER_STRING_H_DEFAULTS.
47310
47311 2008-01-04  Eric Blake  <ebb9@byu.net>
47312
47313         Shorten duration of memmem test.
47314         * tests/test-memmem.c (main): Use alarm to declare failure if test
47315         is taking too long.
47316         Reported by Ralf Wildenhues.
47317
47318 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47319
47320         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47321         string, needed by strerror.
47322
47323 2008-01-03  Colin Watson  <cjwatson@debian.org>
47324             Bruno Haible  <bruno@clisp.org>
47325
47326         * doc/gnulib-tool.texi (Localization): New section.
47327
47328 2008-01-02  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47331         variables to 'unsigned char *' type.
47332         Reported by Paul Eggert.
47333
47334 2008-01-02  Jim Meyering  <jim@meyering.net>
47335
47336         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47337
47338 2007-12-31  Jim Meyering  <jim@meyering.net>
47339
47340         Avoid use of private FTS type name.
47341         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47342
47343 2007-12-30  Karl Berry  <karl@gnu.org>
47344
47345         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47346         work around defect in Texinfo and/or the standalone Info browser.
47347
47348 2007-12-30  Bruno Haible  <bruno@clisp.org>
47349
47350         Unify 5 copies of the KMP code.
47351         * lib/str-kmp.h: New file.
47352         * lib/c-strcasestr.c: Include str-kmp.h.
47353         (knuth_morris_pratt): Remove function.
47354         (c_strcasestr): Update.
47355         * lib/c-strstr.c: Include str-kmp.h.
47356         (knuth_morris_pratt): Remove function.
47357         (c_strcasestr): Update.
47358         * lib/mbscasestr.c: Include str-kmp.h.
47359         (knuth_morris_pratt_unibyte): Remove function.
47360         * lib/mbsstr.c: Include str-kmp.h.
47361         (knuth_morris_pratt_unibyte): Remove function.
47362         * lib/strcasestr.c: Include str-kmp.h.
47363         (knuth_morris_pratt): Remove function.
47364         (strcasestr): Update.
47365         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47366         * modules/c-strstr (Files): Likewise.
47367         * modules/mbscasestr (Files): Likewise.
47368         * modules/mbsstr (Files): Likewise.
47369         * modules/strcasestr (Files): Likewise.
47370         Suggested by Paul Eggert.
47371
47372 2007-12-30  Bruno Haible  <bruno@clisp.org>
47373
47374         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47375         defined.
47376
47377 2007-12-30  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/xmalloca.h: Include xalloc.h.
47380         (xnmalloca): New macro.
47381
47382 2007-12-30  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/malloca.h (nmalloca): New macro.
47385         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47386         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47387         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47388         knuth_morris_pratt_multibyte): Likewise.
47389         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47390         knuth_morris_pratt_multibyte): Likewise.
47391         * lib/memmem.c (knuth_morris_pratt): Likewise.
47392         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47393
47394 2007-12-25  Bruno Haible  <bruno@clisp.org>
47395
47396         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47397         * lib/glob.c: Don't include openat.h.
47398         (link_exists2_p): Add back the code that deals with the
47399         !GLOB_ALTDIRFUNC case.
47400         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47401         let it do the filename concatenation.
47402         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47403         * modules/glob (Depends-on): Remove openat.
47404
47405 2007-12-31  Bruno Haible  <bruno@clisp.org>
47406
47407         * modules/dirfd (License): Change to LGPLv2+.
47408         Approved by Jim Meyering.
47409
47410 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47413         when multiplying M by sizeof (size_t).
47414
47415 2007-12-10  Martin Lambers  <marlam@marlam.de>
47416
47417         Override getpagesize on mingw.
47418         * lib/getpagesize.c: New file.
47419         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47420         * modules/getpagesize (Files): Add lib/getpagesize.c.
47421         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47423         REPLACE_GETPAGESIZE.
47424         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47425
47426 2007-12-25  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/localcharset (Notice): New field.
47429         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47430         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47431
47432 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47433             Bruno Haible  <bruno@clisp.org>
47434
47435         Avoid using the syntax symbol() in formatted documentation.
47436         * MODULES.html.sh (func_module): When replacing symbol() with a
47437         hyperlink, remove the parentheses. Show an error if some remain.
47438         Recognize and render the '...' syntax.
47439         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47440         Rework. Add paragraph about GCC's inlining.
47441         * doc/alloca.texi: Likewise.
47442         * doc/error.texi: Remove parentheses from symbol reference.
47443         * doc/gnulib-intro.texi: Likewise.
47444         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47445         * modules/fnmatch (Description): Reword to say "the ... function".
47446         * modules/full-read (Description): Likewise.
47447         * modules/full-write (Description): Likewise.
47448         * modules/safe-read (Description): Likewise.
47449         * modules/safe-write (Description): Likewise.
47450         * modules/strchrnul (Description): Likewise.
47451         * modules/trim (Description): Likewise.
47452         * modules/error (Description): Remove parentheses from symbol
47453         references.
47454         * modules/verror (Description): Likewise.
47455         Reported by Karl Berry.
47456
47457 2007-12-25  Bruno Haible  <bruno@clisp.org>
47458
47459         Fixup after 2007-10-16 commit.
47460         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47461
47462 2007-12-24  Bruno Haible  <bruno@clisp.org>
47463
47464         Make --enable-relocatable work with DESTDIR.
47465         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47466         to compute installdir from destprog.
47467         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47468         also set the RELOC_DESTDIR variable.
47469         Reported by Левашев Иван <octagram@bluebottle.com>.
47470
47471 2007-12-24  Bruno Haible  <bruno@clisp.org>
47472
47473         Fix link error due to xalloc_die().
47474         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47475         of xreadlink.
47476         * lib/relocwrapper.c: Update comments.
47477         * build-aux/install-reloc: Remove xreadlink.c from file list.
47478         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47479         xreadlink.c.
47480         Reported by Левашев Иван <octagram@bluebottle.com>.
47481
47482 2007-12-24  Bruno Haible  <bruno@clisp.org>
47483
47484         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47485         * lib/setenv.h: Remove file.
47486         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47487         lib/setenv.h.
47488         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47489         (Depends-on): Add stdlib.
47490         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47491         gl_FUNC_UNSETENV.
47492         (Include): Replace setenv.h with <stdlib.h>.
47493         * modules/unsetenv: New file.
47494         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47495         * lib/unsetenv.c: Include <stdlib.h> first.
47496         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47497         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47498         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47499         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47500         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47501         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47503         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47504         * doc/functions/unsetenv.texi: Update.
47505         * modules/xsetenv (Depends-on): Add unsetenv.
47506         * modules/getdate (Depends-on): Likewise.
47507         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47508         * lib/xsetenv.c: Don't include setenv.h.
47509         * lib/getdate.y: Likewise.
47510         * lib/relocwrapper.c: Likewise.
47511         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47512         (Depends-on): Add stdlib.
47513         * NEWS: Mention the changes.
47514         Reported by Левашев Иван <octagram@bluebottle.com>.
47515
47516 2007-12-23  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47519         indentation.
47520
47521 2007-12-23  Bruno Haible  <bruno@clisp.org>
47522
47523         * lib/c-strcasestr.c: Add more comments.
47524         * lib/c-strstr.c: Likewise.
47525         * lib/mbscasestr.c: Likewise.
47526         * lib/mbsstr.c: Likewise.
47527         * lib/strcasestr.c: Likewise.
47528         * lib/memmem.c: Likewise.
47529
47530 2007-12-23  Bruno Haible  <bruno@clisp.org>
47531
47532         * tests/test-memmem.c: Include <string.h> first.
47533
47534 2007-12-22  Bruno Haible  <bruno@clisp.org>
47535
47536         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47537         the contents of $testsbase.
47538         Reported by Ralf Wildenhues.
47539
47540 2007-12-22  Bruno Haible  <bruno@clisp.org>
47541
47542         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47543         two variables local_ldadd_before, local_ldadd_last.
47544
47545 2007-12-20  Eric Blake  <ebb9@byu.net>
47546
47547         Work around circular library issue when cross-compiling.
47548         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47549         that progname.o does not need to pull in rpl_memcmp.
47550
47551 2007-12-19  Eric Blake  <ebb9@byu.net>
47552
47553         Fix memmem to avoid O(n^2) worst-case complexity.
47554         * lib/memmem.c (knuth_morris_pratt): New function.
47555         (memmem): Use it if first few naive iterations fail.
47556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47557         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47558         * modules/memchr (License): Likewise.
47559         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47560         malloca.
47561         * tests/test-memmem.c: Rewrite, borrowing ideas from
47562         test-mbsstr1.c; the old version wouldn't even compile!
47563         * modules/memmem-tests: New file.
47564         * lib/string.in.h (rpl_memmem): Add declaration.
47565         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47567         REPLACE_MEMMEM.
47568
47569 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47570
47571         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47572         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47573         before any system include files, and undef after them all.  This
47574         should fix a problem on VMS reported by John E. Malmberg in
47575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47576
47577 2007-12-17  Eric Blake  <ebb9@byu.net>
47578
47579         Revert addition of verify, for BSD/OS.
47580         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47581         can't handle large files, for the sake of obsolete platforms.
47582         * modules/fseeko (Depends-on): Remove verify.
47583         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47584         * doc/functions/ftello.texi (ftello): Likewise.
47585         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47586         Reported by Larry Jones.
47587
47588 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47589
47590         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47591         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47592
47593 2007-12-17  Jim Meyering  <meyering@redhat.com>
47594
47595         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47596         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47597         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47598         * modules/getcwd (Depends-on): Add openat.
47599         Reported by Petr Salinger.
47600
47601 2007-12-17  Bruno Haible  <bruno@clisp.org>
47602
47603         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47604         avoid a segmentation fault of the configure test on x86_64 systems.
47605
47606 2007-12-15  Jim Meyering  <meyering@redhat.com>
47607
47608         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47609
47610 2007-12-13  Eric Blake  <ebb9@byu.net>
47611
47612         Another fseek test.
47613         * tests/test-fseek.c (main): Also test ungetc handling.
47614         * tests/test-fseeko.c (main): Likewise.
47615         * modules/fseeko (Depends-on): Add verify.
47616         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47617         large.
47618         Reported by Larry Jones.
47619
47620         Fix fseeko on mingw.
47621         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47622         seek.
47623
47624         Beef up fseek tests.
47625         * tests/test-fseek.c (main): Also test eof handling.
47626         * tests/test-fseeko.c (main): Likewise.
47627         Reported by Larry Jones.
47628
47629 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47630
47631         Fix fseeko on BSD-based platforms.
47632         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47633         successful seek.
47634
47635 2007-12-12  Eric Blake  <ebb9@byu.net>
47636
47637         Allow circular dependency of separate libtests.a
47638         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47639         when use_libtests.
47640
47641 2007-12-11  Eric Blake  <ebb9@byu.net>
47642
47643         Fix bug with -0.0L in previous patch.
47644         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47645         * tests/test-isnan.c (main): Also test on zeroes.
47646         * tests/test-isnanf.c (main): Likewise.
47647         * tests/test-isnanl.h (main): Likewise.
47648
47649         Detect pseudo-denormals on x86 even when cross-compiling.
47650         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47651         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47652         invalid bit patterns that happen to satisfy ==.
47653
47654         Avoid link failures with separate libtests.a.
47655         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47656         last, to satisfy circular dependencies.
47657
47658 2007-12-11  Eric Blake  <ebb9@byu.net>
47659         and Bruno Haible  <bruno@clisp.org>
47660
47661         Fix OpenBSD 4.0 <float.h> handling of long double.
47662         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47663         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47664         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47665
47666 2007-12-11  Jim Meyering  <meyering@redhat.com>
47667
47668         * users.txt: Add libvirt.
47669
47670         Support versions of autoconf prior to 2.59c.
47671         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47672         if it is not already defined.
47673
47674 2007-12-09  Bruno Haible  <bruno@clisp.org>
47675
47676         Let 'gnulib-tool --import' collect sources needed for the tests in
47677         tests/ rather than in lib/.
47678         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47679         argument. If true, add rules to generate libtests.a, and put libtests.a
47680         into $(LDADD). Consider source files in subdirectories and set
47681         uses_subdirs.
47682         (func_emit_initmacro_start, func_emit_initmacro_end,
47683         func_emit_initmacro_done): Pass all arguments explicitly.
47684         (func_import): Determine two module lists main_modules,
47685         testsrelated_modules. Determine use_libtests. Determine two variables
47686         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47687         instead of just sed_transform_lib_file. Determine two variables
47688         main_files and testsrelated_files. Compute 'files' as the union of
47689         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47690         func_add_or_update. In the generated gnulib-comp.m4, collect the
47691         object files for tests/ in different variables than those for lib/.
47692         Substitute LIBTESTS_LIBDEPS.
47693         (func_create_testdir): Combine the uses_subdirs results from
47694         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47695
47696 2007-12-09  Bruno Haible  <bruno@clisp.org>
47697
47698         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47699         the build-aux directory.
47700
47701 2007-12-09  Bruno Haible  <bruno@clisp.org>
47702
47703         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47704         introduced on 2006-09-09.
47705
47706 2007-12-07  Jim Meyering  <meyering@redhat.com>
47707
47708         Let these macros work also with autoconf-2.59.
47709         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47710         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47712
47713 2007-12-06  Jim Meyering  <meyering@redhat.com>
47714
47715         Avoid a configure-time syntax error in gl_FUNC_ACL.
47716         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47717         function in each branch, before testing the cache variable.
47718
47719 2007-12-04  Eric Blake  <ebb9@byu.net>
47720
47721         Make scripts executable.
47722         * build-aux/config.guess: Add execute permissions.
47723         * build-aux/config.sub: Likewise.
47724         * build-aux/gendocs.sh: Likewise.
47725
47726         Fix frexp on mingw.
47727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47728         cross-compiling.
47729         * doc/functions/frexp.texi (frexp): Document the bug.
47730
47731         Make cygwin fseeko check more reliable.
47732         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47733         version numbers, rather than unrelated feature check.
47734         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47735         * doc/functions/ftello.texi (ftello): Likewise.
47736         Reported by Bruno Haible.
47737
47738         * m4/strerror.m4: Bump version number.
47739
47740 2007-12-03  Bruno Haible  <bruno@clisp.org>
47741
47742         * doc/functions/mprotect.texi: Mention the mingw problem.
47743
47744 2007-12-03  Eric Blake  <ebb9@byu.net>
47745
47746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47747         REPLACE_STRERROR is initialized before this macro.
47748
47749 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47750
47751         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47752         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47753         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47754         put -lsec in even for programs other than 'ls'.  This fixes a problem
47755         for gettext reported by Bruno Haible in
47756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47757         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47758         Add support for Solaris 10.  This isn't efficient, but should get the
47759         job done for now.
47760
47761 2007-12-03  James Youngman  <jay@gnu.org>
47762
47763         * doc/regexprops-generic.texi: change "an close-group" to "a
47764         close-group" and "illegal" to "not allowed".
47765
47766 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47767
47768         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47769         pr_byname.h. Needed for the rare case when the maintainer has done
47770         "make maintainer-clean" in the source directory and then attempts a
47771         build outside the source directory.
47772         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47773         scripts_byname.h.
47774
47775 2007-12-02  Martin Lambers <marlam@marlam.de>
47776             Bruno Haible  <bruno@clisp.org>
47777
47778         * lib/getpagesize.h: Remove file.
47779         * lib/unistd.in.h: Include declaration of getpagesize here.
47780         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47781         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47782         HAVE_SYS_PARAM_H.
47783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47784         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47785         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47786         (Depends-on): Add unistd.
47787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47788         (Include): Use <unistd.h> instead of getpagesize.h.
47789         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47790         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47791         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47792         gl_GETPAGESIZE invocation, already handled by module dependency.
47793         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47794
47795 2007-12-02  Bruno Haible  <bruno@clisp.org>
47796
47797         * modules/strings-tests: New file.
47798         * tests/test-strings.c: New file.
47799
47800         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47801         * lib/strings.in.h: New file.
47802         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47803         * m4/strings_h.m4: New file.
47804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47805         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47806         * modules/strings: New file.
47807         * modules/string (Makefile.am): Update.
47808         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47809         Reported by Karl Berry.
47810
47811 2007-12-01  Eric Blake  <ebb9@byu.net>
47812
47813         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47814         accomodate fix in cygwin 1.5.25.
47815
47816 2007-12-01  Jim Meyering  <meyering@redhat.com>
47817
47818         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47819         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47820         that would inhibit utf8-optimization of a regexp containing line-
47821         or buffer-anchors, e.g., `^', `$'.
47822
47823 2007-11-30  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47826         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47827         glthread_recursive_lock_init.
47828         * lib/lock.c (glthread_recursive_lock_init)
47829         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47831
47832 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47833
47834         New function qset_acl, like set_acl but with syscall semantics.
47835         * lib/acl.h (qset_acl): New decl.
47836         * lib/acl.c (qset_acl): New function.
47837         (set_acl): Use new function.  Use more-consistent diagnostics.
47838
47839 2007-11-28  Jim Meyering  <meyering@redhat.com>
47840
47841         * modules/physmem (License): Change from GPL to LGPLv2+.
47842
47843 2007-11-26  Bruno Haible  <bruno@clisp.org>
47844
47845         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47846         'long double' type has excess precision.
47847         Reported by Jim Meyering in
47848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47849
47850 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47851
47852         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47853         Sync from <http://gnu.org/licenses>.
47854         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47855         with license text from same location.
47856         * doc/maintain.texi, doc/standards.texi:  Sync from
47857         <http://savannah.gnu.org/projects/gnustandards>.
47858
47859 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
47860         and Jim Meyering  <meyering@redhat.com>
47861
47862         Adjust getdate' grammar to accept a slightly more regular language.
47863         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47864         Before, the former was rejected.
47865         * lib/getdate.y (digits_to_date_time): New function, factored
47866         out of ...
47867         (number): ...here.  Just call digits_to_date_time.
47868         (hybrid): New non-terminal to handle an <unsigned number,
47869         signed relative offset> sequence consistently.
47870
47871 2007-11-18  Jim Meyering  <meyering@redhat.com>
47872
47873         Pull my changes from coreutils:
47874         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47875         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47876         use of $gnulib_tool_option_extras, so that it's separated from the
47877         preceding argument.
47878
47879         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47880         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47881         parent destination directories before copying a file into place.
47882
47883 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47884
47885         bootstrap: work also with 4-argument variant of AC_INIT
47886         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47887
47888 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         Port test-getaddrinfo to Solaris.
47891         Problem reported by Bruno Haible in
47892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47893         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47894         explanation of setting 'hints'.
47895         Don't reject an implementation merely because it returns EAI_SERVICE.
47896         (EAI_SERVICE): Define to 0 if not defined.
47897
47898 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         The license of gnu-make and posix-shell is now "GPLed build tool".
47901         * modules/gnu-make (License): Likewise.
47902         * modules/posix-shell (License): Likewise.
47903
47904         New module posix-shell, for determining a POSIX shell
47905         or perhaps something that is close enough to a POSIX shell.
47906         * m4/posix-shell.m4: New file.
47907         * modules/posix-shell: New file.
47908
47909         * MODULES.html.sh: Mention new module.
47910
47911         New module gnu-make, for determining whether we're using GNU Make.
47912         * m4/gnu-make.m4: New file.
47913         * modules/gnu-make: New file.
47914         * MODULES.html.sh: Mention new module.
47915
47916 2007-11-14  Jim Meyering  <meyering@redhat.com>
47917
47918         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47919         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47920         use this macro to create a function _definition_.
47921         Remove useless "#undef ARGMATCH_DIE".
47922
47923 2007-11-14  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/config.charset: Update for OpenBSD 4.1.
47926         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47927
47928 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47929
47930         Document 64-bit #if problems in stdint.texi.
47931         * doc/headers/stdint.texi (stdint.h): Mention problems with
47932         64-bit-#if, and how to work around them.
47933
47934         Don't insist on 'long long int' support in the preprocessor.  It
47935         breaks too many things.  For example, PRIdMAX still uses a 'long
47936         long int' format with the latest Sun compiler, even though
47937         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47938         preprocessor problem.  This causes the latest coreutils to dump
47939         core on Solaris 10 sparc with the Sun C compiler.
47940         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47941         the troublesome expressions at configure-time, not at #if-time.
47942         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47943         preprocessor.
47944         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47945         compile-time C checks, done at 'configure'-time.
47946         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47947         * modules/inttypes (Makefile): Substitute the new symbols that
47948         gl_INTTYPES_H now generates.
47949         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47950
47951 2007-11-12  Bruno Haible  <bruno@clisp.org>
47952
47953         Tests for Unicode character classification functions.
47954
47955         * modules/unictype/bidicategory-byname-tests: New file.
47956         * modules/unictype/bidicategory-name-tests: New file.
47957         * modules/unictype/bidicategory-of-tests: New file.
47958         * modules/unictype/bidicategory-test-tests: New file.
47959         * modules/unictype/block-list-tests: New file.
47960         * modules/unictype/block-of-tests: New file.
47961         * modules/unictype/block-test-tests: New file.
47962         * modules/unictype/category-C-tests: New file.
47963         * modules/unictype/category-Cc-tests: New file.
47964         * modules/unictype/category-Cf-tests: New file.
47965         * modules/unictype/category-Cn-tests: New file.
47966         * modules/unictype/category-Co-tests: New file.
47967         * modules/unictype/category-Cs-tests: New file.
47968         * modules/unictype/category-L-tests: New file.
47969         * modules/unictype/category-Ll-tests: New file.
47970         * modules/unictype/category-Lm-tests: New file.
47971         * modules/unictype/category-Lo-tests: New file.
47972         * modules/unictype/category-Lt-tests: New file.
47973         * modules/unictype/category-Lu-tests: New file.
47974         * modules/unictype/category-M-tests: New file.
47975         * modules/unictype/category-Mc-tests: New file.
47976         * modules/unictype/category-Me-tests: New file.
47977         * modules/unictype/category-Mn-tests: New file.
47978         * modules/unictype/category-N-tests: New file.
47979         * modules/unictype/category-Nd-tests: New file.
47980         * modules/unictype/category-Nl-tests: New file.
47981         * modules/unictype/category-No-tests: New file.
47982         * modules/unictype/category-P-tests: New file.
47983         * modules/unictype/category-Pc-tests: New file.
47984         * modules/unictype/category-Pd-tests: New file.
47985         * modules/unictype/category-Pe-tests: New file.
47986         * modules/unictype/category-Pf-tests: New file.
47987         * modules/unictype/category-Pi-tests: New file.
47988         * modules/unictype/category-Po-tests: New file.
47989         * modules/unictype/category-Ps-tests: New file.
47990         * modules/unictype/category-S-tests: New file.
47991         * modules/unictype/category-Sc-tests: New file.
47992         * modules/unictype/category-Sk-tests: New file.
47993         * modules/unictype/category-Sm-tests: New file.
47994         * modules/unictype/category-So-tests: New file.
47995         * modules/unictype/category-Z-tests: New file.
47996         * modules/unictype/category-Zl-tests: New file.
47997         * modules/unictype/category-Zp-tests: New file.
47998         * modules/unictype/category-Zs-tests: New file.
47999         * modules/unictype/category-and-not-tests: New file.
48000         * modules/unictype/category-and-tests: New file.
48001         * modules/unictype/category-byname-tests: New file.
48002         * modules/unictype/category-name-tests: New file.
48003         * modules/unictype/category-none-tests: New file.
48004         * modules/unictype/category-of-tests: New file.
48005         * modules/unictype/category-or-tests: New file.
48006         * modules/unictype/category-test-withtable-tests: New file.
48007         * modules/unictype/combining-class-tests: New file.
48008         * modules/unictype/ctype-alnum-tests: New file.
48009         * modules/unictype/ctype-alpha-tests: New file.
48010         * modules/unictype/ctype-blank-tests: New file.
48011         * modules/unictype/ctype-cntrl-tests: New file.
48012         * modules/unictype/ctype-digit-tests: New file.
48013         * modules/unictype/ctype-graph-tests: New file.
48014         * modules/unictype/ctype-lower-tests: New file.
48015         * modules/unictype/ctype-print-tests: New file.
48016         * modules/unictype/ctype-punct-tests: New file.
48017         * modules/unictype/ctype-space-tests: New file.
48018         * modules/unictype/ctype-upper-tests: New file.
48019         * modules/unictype/ctype-xdigit-tests: New file.
48020         * modules/unictype/decimal-digit-tests: New file.
48021         * modules/unictype/digit-tests: New file.
48022         * modules/unictype/mirror-tests: New file.
48023         * modules/unictype/numeric-tests: New file.
48024         * modules/unictype/property-alphabetic-tests: New file.
48025         * modules/unictype/property-ascii-hex-digit-tests: New file.
48026         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48027         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48028         * modules/unictype/property-bidi-block-separator-tests: New file.
48029         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48030         * modules/unictype/property-bidi-common-separator-tests: New file.
48031         * modules/unictype/property-bidi-control-tests: New file.
48032         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48033         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48034         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48035         * modules/unictype/property-bidi-european-digit-tests: New file.
48036         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48037         * modules/unictype/property-bidi-left-to-right-tests: New file.
48038         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48039         * modules/unictype/property-bidi-other-neutral-tests: New file.
48040         * modules/unictype/property-bidi-pdf-tests: New file.
48041         * modules/unictype/property-bidi-segment-separator-tests: New file.
48042         * modules/unictype/property-bidi-whitespace-tests: New file.
48043         * modules/unictype/property-byname-tests: New file.
48044         * modules/unictype/property-combining-tests: New file.
48045         * modules/unictype/property-composite-tests: New file.
48046         * modules/unictype/property-currency-symbol-tests: New file.
48047         * modules/unictype/property-dash-tests: New file.
48048         * modules/unictype/property-decimal-digit-tests: New file.
48049         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48050         * modules/unictype/property-deprecated-tests: New file.
48051         * modules/unictype/property-diacritic-tests: New file.
48052         * modules/unictype/property-extender-tests: New file.
48053         * modules/unictype/property-format-control-tests: New file.
48054         * modules/unictype/property-grapheme-base-tests: New file.
48055         * modules/unictype/property-grapheme-extend-tests: New file.
48056         * modules/unictype/property-grapheme-link-tests: New file.
48057         * modules/unictype/property-hex-digit-tests: New file.
48058         * modules/unictype/property-hyphen-tests: New file.
48059         * modules/unictype/property-id-continue-tests: New file.
48060         * modules/unictype/property-id-start-tests: New file.
48061         * modules/unictype/property-ideographic-tests: New file.
48062         * modules/unictype/property-ids-binary-operator-tests: New file.
48063         * modules/unictype/property-ids-trinary-operator-tests: New file.
48064         * modules/unictype/property-ignorable-control-tests: New file.
48065         * modules/unictype/property-iso-control-tests: New file.
48066         * modules/unictype/property-join-control-tests: New file.
48067         * modules/unictype/property-left-of-pair-tests: New file.
48068         * modules/unictype/property-line-separator-tests: New file.
48069         * modules/unictype/property-logical-order-exception-tests: New file.
48070         * modules/unictype/property-lowercase-tests: New file.
48071         * modules/unictype/property-math-tests: New file.
48072         * modules/unictype/property-non-break-tests: New file.
48073         * modules/unictype/property-not-a-character-tests: New file.
48074         * modules/unictype/property-numeric-tests: New file.
48075         * modules/unictype/property-other-alphabetic-tests: New file.
48076         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48077         * modules/unictype/property-other-grapheme-extend-tests: New file.
48078         * modules/unictype/property-other-id-continue-tests: New file.
48079         * modules/unictype/property-other-id-start-tests: New file.
48080         * modules/unictype/property-other-lowercase-tests: New file.
48081         * modules/unictype/property-other-math-tests: New file.
48082         * modules/unictype/property-other-uppercase-tests: New file.
48083         * modules/unictype/property-paired-punctuation-tests: New file.
48084         * modules/unictype/property-paragraph-separator-tests: New file.
48085         * modules/unictype/property-pattern-syntax-tests: New file.
48086         * modules/unictype/property-pattern-white-space-tests: New file.
48087         * modules/unictype/property-private-use-tests: New file.
48088         * modules/unictype/property-punctuation-tests: New file.
48089         * modules/unictype/property-quotation-mark-tests: New file.
48090         * modules/unictype/property-radical-tests: New file.
48091         * modules/unictype/property-sentence-terminal-tests: New file.
48092         * modules/unictype/property-soft-dotted-tests: New file.
48093         * modules/unictype/property-space-tests: New file.
48094         * modules/unictype/property-terminal-punctuation-tests: New file.
48095         * modules/unictype/property-test-tests: New file.
48096         * modules/unictype/property-titlecase-tests: New file.
48097         * modules/unictype/property-unassigned-code-value-tests: New file.
48098         * modules/unictype/property-unified-ideograph-tests: New file.
48099         * modules/unictype/property-uppercase-tests: New file.
48100         * modules/unictype/property-variation-selector-tests: New file.
48101         * modules/unictype/property-white-space-tests: New file.
48102         * modules/unictype/property-xid-continue-tests: New file.
48103         * modules/unictype/property-xid-start-tests: New file.
48104         * modules/unictype/property-zero-width-tests: New file.
48105         * modules/unictype/scripts-tests: New file.
48106         * modules/unictype/syntax-c-ident-tests: New file.
48107         * modules/unictype/syntax-c-whitespace-tests: New file.
48108         * modules/unictype/syntax-java-ident-tests: New file.
48109         * modules/unictype/syntax-java-whitespace-tests: New file.
48110         * tests/unictype/test-bidi_byname.c: New file.
48111         * tests/unictype/test-bidi_name.c: New file.
48112         * tests/unictype/test-bidi_of.c: New file.
48113         * tests/unictype/test-bidi_test.c: New file.
48114         * tests/unictype/test-block_list.c: New file.
48115         * tests/unictype/test-block_of.c: New file.
48116         * tests/unictype/test-block_test.c: New file.
48117         * tests/unictype/test-categ_and.c: New file.
48118         * tests/unictype/test-categ_and_not.c: New file.
48119         * tests/unictype/test-categ_byname.c: New file.
48120         * tests/unictype/test-categ_name.c: New file.
48121         * tests/unictype/test-categ_none.c: New file.
48122         * tests/unictype/test-categ_of.c: New file.
48123         * tests/unictype/test-categ_or.c: New file.
48124         * tests/unictype/test-categ_test_withtable.c: New file.
48125         * tests/unictype/test-combining.c: New file.
48126         * tests/unictype/test-decdigit.c: New file.
48127         * tests/unictype/test-digit.c: New file.
48128         * tests/unictype/test-mirror.c: New file.
48129         * tests/unictype/test-numeric.c: New file.
48130         * tests/unictype/test-pr_byname.c: New file.
48131         * tests/unictype/test-pr_test.c: New file.
48132         * tests/unictype/test-predicate-part1.h: New file.
48133         * tests/unictype/test-predicate-part2.h: New file.
48134         * tests/unictype/test-scripts.c: New file.
48135         * tests/unictype/test-sy_c_ident.c: New file.
48136         * tests/unictype/test-sy_java_ident.c: New file.
48137
48138         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48139         for Unicode 5.0.0.
48140         * tests/unictype/test-categ_Cc.c: Likewise.
48141         * tests/unictype/test-categ_Cf.c: Likewise.
48142         * tests/unictype/test-categ_Cn.c: Likewise.
48143         * tests/unictype/test-categ_Co.c: Likewise.
48144         * tests/unictype/test-categ_Cs.c: Likewise.
48145         * tests/unictype/test-categ_L.c: Likewise.
48146         * tests/unictype/test-categ_Ll.c: Likewise.
48147         * tests/unictype/test-categ_Lm.c: Likewise.
48148         * tests/unictype/test-categ_Lo.c: Likewise.
48149         * tests/unictype/test-categ_Lt.c: Likewise.
48150         * tests/unictype/test-categ_Lu.c: Likewise.
48151         * tests/unictype/test-categ_M.c: Likewise.
48152         * tests/unictype/test-categ_Mc.c: Likewise.
48153         * tests/unictype/test-categ_Me.c: Likewise.
48154         * tests/unictype/test-categ_Mn.c: Likewise.
48155         * tests/unictype/test-categ_N.c: Likewise.
48156         * tests/unictype/test-categ_Nd.c: Likewise.
48157         * tests/unictype/test-categ_Nl.c: Likewise.
48158         * tests/unictype/test-categ_No.c: Likewise.
48159         * tests/unictype/test-categ_P.c: Likewise.
48160         * tests/unictype/test-categ_Pc.c: Likewise.
48161         * tests/unictype/test-categ_Pd.c: Likewise.
48162         * tests/unictype/test-categ_Pe.c: Likewise.
48163         * tests/unictype/test-categ_Pf.c: Likewise.
48164         * tests/unictype/test-categ_Pi.c: Likewise.
48165         * tests/unictype/test-categ_Po.c: Likewise.
48166         * tests/unictype/test-categ_Ps.c: Likewise.
48167         * tests/unictype/test-categ_S.c: Likewise.
48168         * tests/unictype/test-categ_Sc.c: Likewise.
48169         * tests/unictype/test-categ_Sk.c: Likewise.
48170         * tests/unictype/test-categ_Sm.c: Likewise.
48171         * tests/unictype/test-categ_So.c: Likewise.
48172         * tests/unictype/test-categ_Z.c: Likewise.
48173         * tests/unictype/test-categ_Zl.c: Likewise.
48174         * tests/unictype/test-categ_Zp.c: Likewise.
48175         * tests/unictype/test-categ_Zs.c: Likewise.
48176         * tests/unictype/test-ctype_alnum.c: Likewise.
48177         * tests/unictype/test-ctype_alpha.c: Likewise.
48178         * tests/unictype/test-ctype_blank.c: Likewise.
48179         * tests/unictype/test-ctype_cntrl.c: Likewise.
48180         * tests/unictype/test-ctype_digit.c: Likewise.
48181         * tests/unictype/test-ctype_graph.c: Likewise.
48182         * tests/unictype/test-ctype_lower.c: Likewise.
48183         * tests/unictype/test-ctype_print.c: Likewise.
48184         * tests/unictype/test-ctype_punct.c: Likewise.
48185         * tests/unictype/test-ctype_space.c: Likewise.
48186         * tests/unictype/test-ctype_upper.c: Likewise.
48187         * tests/unictype/test-ctype_xdigit.c: Likewise.
48188         * tests/unictype/test-decdigit.h: Likewise.
48189         * tests/unictype/test-digit.h: Likewise.
48190         * tests/unictype/test-numeric.h: Likewise.
48191         * tests/unictype/test-pr_alphabetic.c: Likewise.
48192         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48193         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48194         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48195         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48196         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48197         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48198         * tests/unictype/test-pr_bidi_control.c: Likewise.
48199         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48200         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48201         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48202         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48203         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48204         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48205         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48206         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48207         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48208         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48209         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48210         * tests/unictype/test-pr_combining.c: Likewise.
48211         * tests/unictype/test-pr_composite.c: Likewise.
48212         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48213         * tests/unictype/test-pr_dash.c: Likewise.
48214         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48215         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48216         * tests/unictype/test-pr_deprecated.c: Likewise.
48217         * tests/unictype/test-pr_diacritic.c: Likewise.
48218         * tests/unictype/test-pr_extender.c: Likewise.
48219         * tests/unictype/test-pr_format_control.c: Likewise.
48220         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48221         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48222         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48223         * tests/unictype/test-pr_hex_digit.c: Likewise.
48224         * tests/unictype/test-pr_hyphen.c: Likewise.
48225         * tests/unictype/test-pr_id_continue.c: Likewise.
48226         * tests/unictype/test-pr_id_start.c: Likewise.
48227         * tests/unictype/test-pr_ideographic.c: Likewise.
48228         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48229         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48230         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48231         * tests/unictype/test-pr_iso_control.c: Likewise.
48232         * tests/unictype/test-pr_join_control.c: Likewise.
48233         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48234         * tests/unictype/test-pr_line_separator.c: Likewise.
48235         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48236         * tests/unictype/test-pr_lowercase.c: Likewise.
48237         * tests/unictype/test-pr_math.c: Likewise.
48238         * tests/unictype/test-pr_non_break.c: Likewise.
48239         * tests/unictype/test-pr_not_a_character.c: Likewise.
48240         * tests/unictype/test-pr_numeric.c: Likewise.
48241         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48242         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48243         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48244         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48245         * tests/unictype/test-pr_other_id_start.c: Likewise.
48246         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48247         * tests/unictype/test-pr_other_math.c: Likewise.
48248         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48249         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48250         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48251         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48252         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48253         * tests/unictype/test-pr_private_use.c: Likewise.
48254         * tests/unictype/test-pr_punctuation.c: Likewise.
48255         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48256         * tests/unictype/test-pr_radical.c: Likewise.
48257         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48258         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48259         * tests/unictype/test-pr_space.c: Likewise.
48260         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48261         * tests/unictype/test-pr_titlecase.c: Likewise.
48262         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48263         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48264         * tests/unictype/test-pr_uppercase.c: Likewise.
48265         * tests/unictype/test-pr_variation_selector.c: Likewise.
48266         * tests/unictype/test-pr_white_space.c: Likewise.
48267         * tests/unictype/test-pr_xid_continue.c: Likewise.
48268         * tests/unictype/test-pr_xid_start.c: Likewise.
48269         * tests/unictype/test-pr_zero_width.c: Likewise.
48270         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48271         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48272
48273 2007-11-12  Bruno Haible  <bruno@clisp.org>
48274
48275         Unicode character classification functions.
48276         * lib/unictype.h: New file.
48277         * modules/unictype/base: New file.
48278         * modules/unictype/category-L: New file.
48279         * modules/unictype/category-Lu: New file.
48280         * modules/unictype/category-Ll: New file.
48281         * modules/unictype/category-Lt: New file.
48282         * modules/unictype/category-Lm: New file.
48283         * modules/unictype/category-Lo: New file.
48284         * modules/unictype/category-M: New file.
48285         * modules/unictype/category-Mn: New file.
48286         * modules/unictype/category-Mc: New file.
48287         * modules/unictype/category-Me: New file.
48288         * modules/unictype/category-N: New file.
48289         * modules/unictype/category-Nd: New file.
48290         * modules/unictype/category-Nl: New file.
48291         * modules/unictype/category-No: New file.
48292         * modules/unictype/category-P: New file.
48293         * modules/unictype/category-Pc: New file.
48294         * modules/unictype/category-Pd: New file.
48295         * modules/unictype/category-Ps: New file.
48296         * modules/unictype/category-Pe: New file.
48297         * modules/unictype/category-Pi: New file.
48298         * modules/unictype/category-Pf: New file.
48299         * modules/unictype/category-Po: New file.
48300         * modules/unictype/category-S: New file.
48301         * modules/unictype/category-Sm: New file.
48302         * modules/unictype/category-Sc: New file.
48303         * modules/unictype/category-Sk: New file.
48304         * modules/unictype/category-So: New file.
48305         * modules/unictype/category-Z: New file.
48306         * modules/unictype/category-Zs: New file.
48307         * modules/unictype/category-Zl: New file.
48308         * modules/unictype/category-Zp: New file.
48309         * modules/unictype/category-C: New file.
48310         * modules/unictype/category-Cc: New file.
48311         * modules/unictype/category-Cf: New file.
48312         * modules/unictype/category-Cs: New file.
48313         * modules/unictype/category-Co: New file.
48314         * modules/unictype/category-Cn: New file.
48315         * modules/unictype/category-or: New file.
48316         * modules/unictype/category-of: New file.
48317         * modules/unictype/category-test: New file.
48318         * modules/unictype/category-test-withtable: New file.
48319         * modules/unictype/category-byname: New file.
48320         * modules/unictype/category-none: New file.
48321         * modules/unictype/category-and: New file.
48322         * modules/unictype/category-and-not: New file.
48323         * modules/unictype/category-name: New file.
48324         * modules/unictype/combining-class: New file.
48325         * modules/unictype/category-all: New file.
48326         * modules/unictype/bidicategory-all: New file.
48327         * modules/unictype/bidicategory-byname: New file.
48328         * modules/unictype/bidicategory-name: New file.
48329         * modules/unictype/bidicategory-of: New file.
48330         * modules/unictype/bidicategory-test: New file.
48331         * modules/unictype/decimal-digit: New file.
48332         * modules/unictype/digit: New file.
48333         * modules/unictype/numeric: New file.
48334         * modules/unictype/mirror: New file.
48335         * modules/unictype/property-white-space: New file.
48336         * modules/unictype/property-alphabetic: New file.
48337         * modules/unictype/property-other-alphabetic: New file.
48338         * modules/unictype/property-not-a-character: New file.
48339         * modules/unictype/property-default-ignorable-code-point: New file.
48340         * modules/unictype/property-other-default-ignorable-code-point: New
48341         file.
48342         * modules/unictype/property-deprecated: New file.
48343         * modules/unictype/property-logical-order-exception: New file.
48344         * modules/unictype/property-variation-selector: New file.
48345         * modules/unictype/property-private-use: New file.
48346         * modules/unictype/property-unassigned-code-value: New file.
48347         * modules/unictype/property-uppercase: New file.
48348         * modules/unictype/property-other-uppercase: New file.
48349         * modules/unictype/property-lowercase: New file.
48350         * modules/unictype/property-other-lowercase: New file.
48351         * modules/unictype/property-titlecase: New file.
48352         * modules/unictype/property-soft-dotted: New file.
48353         * modules/unictype/property-id-start: New file.
48354         * modules/unictype/property-other-id-start: New file.
48355         * modules/unictype/property-id-continue: New file.
48356         * modules/unictype/property-other-id-continue: New file.
48357         * modules/unictype/property-xid-start: New file.
48358         * modules/unictype/property-xid-continue: New file.
48359         * modules/unictype/property-pattern-white-space: New file.
48360         * modules/unictype/property-pattern-syntax: New file.
48361         * modules/unictype/property-join-control: New file.
48362         * modules/unictype/property-grapheme-base: New file.
48363         * modules/unictype/property-grapheme-extend: New file.
48364         * modules/unictype/property-other-grapheme-extend: New file.
48365         * modules/unictype/property-grapheme-link: New file.
48366         * modules/unictype/property-bidi-control: New file.
48367         * modules/unictype/property-bidi-left-to-right: New file.
48368         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48369         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48370         * modules/unictype/property-bidi-european-digit: New file.
48371         * modules/unictype/property-bidi-eur-num-separator: New file.
48372         * modules/unictype/property-bidi-eur-num-terminator: New file.
48373         * modules/unictype/property-bidi-arabic-digit: New file.
48374         * modules/unictype/property-bidi-common-separator: New file.
48375         * modules/unictype/property-bidi-block-separator: New file.
48376         * modules/unictype/property-bidi-segment-separator: New file.
48377         * modules/unictype/property-bidi-whitespace: New file.
48378         * modules/unictype/property-bidi-non-spacing-mark: New file.
48379         * modules/unictype/property-bidi-boundary-neutral: New file.
48380         * modules/unictype/property-bidi-pdf: New file.
48381         * modules/unictype/property-bidi-embedding-or-override: New file.
48382         * modules/unictype/property-bidi-other-neutral: New file.
48383         * modules/unictype/property-hex-digit: New file.
48384         * modules/unictype/property-ascii-hex-digit: New file.
48385         * modules/unictype/property-ideographic: New file.
48386         * modules/unictype/property-unified-ideograph: New file.
48387         * modules/unictype/property-radical: New file.
48388         * modules/unictype/property-ids-binary-operator: New file.
48389         * modules/unictype/property-ids-trinary-operator: New file.
48390         * modules/unictype/property-zero-width: New file.
48391         * modules/unictype/property-space: New file.
48392         * modules/unictype/property-non-break: New file.
48393         * modules/unictype/property-iso-control: New file.
48394         * modules/unictype/property-format-control: New file.
48395         * modules/unictype/property-dash: New file.
48396         * modules/unictype/property-hyphen: New file.
48397         * modules/unictype/property-punctuation: New file.
48398         * modules/unictype/property-line-separator: New file.
48399         * modules/unictype/property-paragraph-separator: New file.
48400         * modules/unictype/property-quotation-mark: New file.
48401         * modules/unictype/property-sentence-terminal: New file.
48402         * modules/unictype/property-terminal-punctuation: New file.
48403         * modules/unictype/property-currency-symbol: New file.
48404         * modules/unictype/property-math: New file.
48405         * modules/unictype/property-other-math: New file.
48406         * modules/unictype/property-paired-punctuation: New file.
48407         * modules/unictype/property-left-of-pair: New file.
48408         * modules/unictype/property-combining: New file.
48409         * modules/unictype/property-composite: New file.
48410         * modules/unictype/property-decimal-digit: New file.
48411         * modules/unictype/property-numeric: New file.
48412         * modules/unictype/property-diacritic: New file.
48413         * modules/unictype/property-extender: New file.
48414         * modules/unictype/property-ignorable-control: New file.
48415         * modules/unictype/property-test: New file.
48416         * modules/unictype/property-byname: New file.
48417         * modules/unictype/property-all: New file.
48418         * modules/unictype/scripts: New file.
48419         * modules/unictype/scripts-all: New file.
48420         * modules/unictype/block-of: New file.
48421         * modules/unictype/block-test: New file.
48422         * modules/unictype/block-list: New file.
48423         * modules/unictype/block-all: New file.
48424         * modules/unictype/syntax-c-whitespace: New file.
48425         * modules/unictype/syntax-java-whitespace: New file.
48426         * modules/unictype/syntax-c-ident: New file.
48427         * modules/unictype/syntax-java-ident: New file.
48428         * modules/unictype/ctype-alnum: New file.
48429         * modules/unictype/ctype-alpha: New file.
48430         * modules/unictype/ctype-cntrl: New file.
48431         * modules/unictype/ctype-digit: New file.
48432         * modules/unictype/ctype-graph: New file.
48433         * modules/unictype/ctype-lower: New file.
48434         * modules/unictype/ctype-print: New file.
48435         * modules/unictype/ctype-punct: New file.
48436         * modules/unictype/ctype-space: New file.
48437         * modules/unictype/ctype-upper: New file.
48438         * modules/unictype/ctype-xdigit: New file.
48439         * modules/unictype/ctype-blank: New file.
48440         * lib/unictype/bidi_byname.c: New file.
48441         * lib/unictype/bidi_name.c: New file.
48442         * lib/unictype/bidi_of.c: New file.
48443         * lib/unictype/bidi_test.c: New file.
48444         * lib/unictype/bitmap.h: New file.
48445         * lib/unictype/block_test.c: New file.
48446         * lib/unictype/blocks.c: New file.
48447         * lib/unictype/categ_C.c: New file.
48448         * lib/unictype/categ_Cc.c: New file.
48449         * lib/unictype/categ_Cf.c: New file.
48450         * lib/unictype/categ_Cn.c: New file.
48451         * lib/unictype/categ_Co.c: New file.
48452         * lib/unictype/categ_Cs.c: New file.
48453         * lib/unictype/categ_L.c: New file.
48454         * lib/unictype/categ_Ll.c: New file.
48455         * lib/unictype/categ_Lm.c: New file.
48456         * lib/unictype/categ_Lo.c: New file.
48457         * lib/unictype/categ_Lt.c: New file.
48458         * lib/unictype/categ_Lu.c: New file.
48459         * lib/unictype/categ_M.c: New file.
48460         * lib/unictype/categ_Mc.c: New file.
48461         * lib/unictype/categ_Me.c: New file.
48462         * lib/unictype/categ_Mn.c: New file.
48463         * lib/unictype/categ_N.c: New file.
48464         * lib/unictype/categ_Nd.c: New file.
48465         * lib/unictype/categ_Nl.c: New file.
48466         * lib/unictype/categ_No.c: New file.
48467         * lib/unictype/categ_P.c: New file.
48468         * lib/unictype/categ_Pc.c: New file.
48469         * lib/unictype/categ_Pd.c: New file.
48470         * lib/unictype/categ_Pe.c: New file.
48471         * lib/unictype/categ_Pf.c: New file.
48472         * lib/unictype/categ_Pi.c: New file.
48473         * lib/unictype/categ_Po.c: New file.
48474         * lib/unictype/categ_Ps.c: New file.
48475         * lib/unictype/categ_S.c: New file.
48476         * lib/unictype/categ_Sc.c: New file.
48477         * lib/unictype/categ_Sk.c: New file.
48478         * lib/unictype/categ_Sm.c: New file.
48479         * lib/unictype/categ_So.c: New file.
48480         * lib/unictype/categ_Z.c: New file.
48481         * lib/unictype/categ_Zl.c: New file.
48482         * lib/unictype/categ_Zp.c: New file.
48483         * lib/unictype/categ_Zs.c: New file.
48484         * lib/unictype/categ_and.c: New file.
48485         * lib/unictype/categ_and_not.c: New file.
48486         * lib/unictype/categ_byname.c: New file.
48487         * lib/unictype/categ_name.c: New file.
48488         * lib/unictype/categ_none.c: New file.
48489         * lib/unictype/categ_of.c: New file.
48490         * lib/unictype/categ_or.c: New file.
48491         * lib/unictype/categ_test.c: New file.
48492         * lib/unictype/combining.c: New file.
48493         * lib/unictype/ctype_alnum.c: New file.
48494         * lib/unictype/ctype_alpha.c: New file.
48495         * lib/unictype/ctype_blank.c: New file.
48496         * lib/unictype/ctype_cntrl.c: New file.
48497         * lib/unictype/ctype_digit.c: New file.
48498         * lib/unictype/ctype_graph.c: New file.
48499         * lib/unictype/ctype_lower.c: New file.
48500         * lib/unictype/ctype_print.c: New file.
48501         * lib/unictype/ctype_punct.c: New file.
48502         * lib/unictype/ctype_space.c: New file.
48503         * lib/unictype/ctype_upper.c: New file.
48504         * lib/unictype/ctype_xdigit.c: New file.
48505         * lib/unictype/decdigit.c: New file.
48506         * lib/unictype/digit.c: New file.
48507         * lib/unictype/identsyntaxmap.h: New file.
48508         * lib/unictype/mirror.c: New file.
48509         * lib/unictype/numeric.c: New file.
48510         * lib/unictype/pr_alphabetic.c: New file.
48511         * lib/unictype/pr_ascii_hex_digit.c: New file.
48512         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48513         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48514         * lib/unictype/pr_bidi_block_separator.c: New file.
48515         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48516         * lib/unictype/pr_bidi_common_separator.c: New file.
48517         * lib/unictype/pr_bidi_control.c: New file.
48518         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48519         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48520         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48521         * lib/unictype/pr_bidi_european_digit.c: New file.
48522         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48523         * lib/unictype/pr_bidi_left_to_right.c: New file.
48524         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48525         * lib/unictype/pr_bidi_other_neutral.c: New file.
48526         * lib/unictype/pr_bidi_pdf.c: New file.
48527         * lib/unictype/pr_bidi_segment_separator.c: New file.
48528         * lib/unictype/pr_bidi_whitespace.c: New file.
48529         * lib/unictype/pr_byname.c: New file.
48530         * lib/unictype/pr_byname.gperf: New file.
48531         * lib/unictype/pr_combining.c: New file.
48532         * lib/unictype/pr_composite.c: New file.
48533         * lib/unictype/pr_currency_symbol.c: New file.
48534         * lib/unictype/pr_dash.c: New file.
48535         * lib/unictype/pr_decimal_digit.c: New file.
48536         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48537         * lib/unictype/pr_deprecated.c: New file.
48538         * lib/unictype/pr_diacritic.c: New file.
48539         * lib/unictype/pr_extender.c: New file.
48540         * lib/unictype/pr_format_control.c: New file.
48541         * lib/unictype/pr_grapheme_base.c: New file.
48542         * lib/unictype/pr_grapheme_extend.c: New file.
48543         * lib/unictype/pr_grapheme_link.c: New file.
48544         * lib/unictype/pr_hex_digit.c: New file.
48545         * lib/unictype/pr_hyphen.c: New file.
48546         * lib/unictype/pr_id_continue.c: New file.
48547         * lib/unictype/pr_id_start.c: New file.
48548         * lib/unictype/pr_ideographic.c: New file.
48549         * lib/unictype/pr_ids_binary_operator.c: New file.
48550         * lib/unictype/pr_ids_trinary_operator.c: New file.
48551         * lib/unictype/pr_ignorable_control.c: New file.
48552         * lib/unictype/pr_iso_control.c: New file.
48553         * lib/unictype/pr_join_control.c: New file.
48554         * lib/unictype/pr_left_of_pair.c: New file.
48555         * lib/unictype/pr_line_separator.c: New file.
48556         * lib/unictype/pr_logical_order_exception.c: New file.
48557         * lib/unictype/pr_lowercase.c: New file.
48558         * lib/unictype/pr_math.c: New file.
48559         * lib/unictype/pr_non_break.c: New file.
48560         * lib/unictype/pr_not_a_character.c: New file.
48561         * lib/unictype/pr_numeric.c: New file.
48562         * lib/unictype/pr_other_alphabetic.c: New file.
48563         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48564         * lib/unictype/pr_other_grapheme_extend.c: New file.
48565         * lib/unictype/pr_other_id_continue.c: New file.
48566         * lib/unictype/pr_other_id_start.c: New file.
48567         * lib/unictype/pr_other_lowercase.c: New file.
48568         * lib/unictype/pr_other_math.c: New file.
48569         * lib/unictype/pr_other_uppercase.c: New file.
48570         * lib/unictype/pr_paired_punctuation.c: New file.
48571         * lib/unictype/pr_paragraph_separator.c: New file.
48572         * lib/unictype/pr_pattern_syntax.c: New file.
48573         * lib/unictype/pr_pattern_white_space.c: New file.
48574         * lib/unictype/pr_private_use.c: New file.
48575         * lib/unictype/pr_punctuation.c: New file.
48576         * lib/unictype/pr_quotation_mark.c: New file.
48577         * lib/unictype/pr_radical.c: New file.
48578         * lib/unictype/pr_sentence_terminal.c: New file.
48579         * lib/unictype/pr_soft_dotted.c: New file.
48580         * lib/unictype/pr_space.c: New file.
48581         * lib/unictype/pr_terminal_punctuation.c: New file.
48582         * lib/unictype/pr_test.c: New file.
48583         * lib/unictype/pr_titlecase.c: New file.
48584         * lib/unictype/pr_unassigned_code_value.c: New file.
48585         * lib/unictype/pr_unified_ideograph.c: New file.
48586         * lib/unictype/pr_uppercase.c: New file.
48587         * lib/unictype/pr_variation_selector.c: New file.
48588         * lib/unictype/pr_white_space.c: New file.
48589         * lib/unictype/pr_xid_continue.c: New file.
48590         * lib/unictype/pr_xid_start.c: New file.
48591         * lib/unictype/pr_zero_width.c: New file.
48592         * lib/unictype/scripts.c: New file.
48593         * lib/unictype/sy_c_ident.c: New file.
48594         * lib/unictype/sy_c_whitespace.c: New file.
48595         * lib/unictype/sy_java_ident.c: New file.
48596         * lib/unictype/sy_java_whitespace.c: New file.
48597
48598         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48599         Unicode 5.0.0.
48600         * lib/unictype/blocks.h: Likewise.
48601         * lib/unictype/categ_C.h: Likewise.
48602         * lib/unictype/categ_Cc.h: Likewise.
48603         * lib/unictype/categ_Cf.h: Likewise.
48604         * lib/unictype/categ_Cn.h: Likewise.
48605         * lib/unictype/categ_Co.h: Likewise.
48606         * lib/unictype/categ_Cs.h: Likewise.
48607         * lib/unictype/categ_L.h: Likewise.
48608         * lib/unictype/categ_Ll.h: Likewise.
48609         * lib/unictype/categ_Lm.h: Likewise.
48610         * lib/unictype/categ_Lo.h: Likewise.
48611         * lib/unictype/categ_Lt.h: Likewise.
48612         * lib/unictype/categ_Lu.h: Likewise.
48613         * lib/unictype/categ_M.h: Likewise.
48614         * lib/unictype/categ_Mc.h: Likewise.
48615         * lib/unictype/categ_Me.h: Likewise.
48616         * lib/unictype/categ_Mn.h: Likewise.
48617         * lib/unictype/categ_N.h: Likewise.
48618         * lib/unictype/categ_Nd.h: Likewise.
48619         * lib/unictype/categ_Nl.h: Likewise.
48620         * lib/unictype/categ_No.h: Likewise.
48621         * lib/unictype/categ_P.h: Likewise.
48622         * lib/unictype/categ_Pc.h: Likewise.
48623         * lib/unictype/categ_Pd.h: Likewise.
48624         * lib/unictype/categ_Pe.h: Likewise.
48625         * lib/unictype/categ_Pf.h: Likewise.
48626         * lib/unictype/categ_Pi.h: Likewise.
48627         * lib/unictype/categ_Po.h: Likewise.
48628         * lib/unictype/categ_Ps.h: Likewise.
48629         * lib/unictype/categ_S.h: Likewise.
48630         * lib/unictype/categ_Sc.h: Likewise.
48631         * lib/unictype/categ_Sk.h: Likewise.
48632         * lib/unictype/categ_Sm.h: Likewise.
48633         * lib/unictype/categ_So.h: Likewise.
48634         * lib/unictype/categ_Z.h: Likewise.
48635         * lib/unictype/categ_Zl.h: Likewise.
48636         * lib/unictype/categ_Zp.h: Likewise.
48637         * lib/unictype/categ_Zs.h: Likewise.
48638         * lib/unictype/categ_of.h: Likewise.
48639         * lib/unictype/combining.h: Likewise.
48640         * lib/unictype/ctype_alnum.h: Likewise.
48641         * lib/unictype/ctype_alpha.h: Likewise.
48642         * lib/unictype/ctype_blank.h: Likewise.
48643         * lib/unictype/ctype_cntrl.h: Likewise.
48644         * lib/unictype/ctype_digit.h: Likewise.
48645         * lib/unictype/ctype_graph.h: Likewise.
48646         * lib/unictype/ctype_lower.h: Likewise.
48647         * lib/unictype/ctype_print.h: Likewise.
48648         * lib/unictype/ctype_punct.h: Likewise.
48649         * lib/unictype/ctype_space.h: Likewise.
48650         * lib/unictype/ctype_upper.h: Likewise.
48651         * lib/unictype/ctype_xdigit.h: Likewise.
48652         * lib/unictype/decdigit.h: Likewise.
48653         * lib/unictype/digit.h: Likewise.
48654         * lib/unictype/mirror.h: Likewise.
48655         * lib/unictype/numeric.h: Likewise.
48656         * lib/unictype/pr_alphabetic.h: Likewise.
48657         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48658         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48659         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48660         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48661         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48662         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48663         * lib/unictype/pr_bidi_control.h: Likewise.
48664         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48665         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48666         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48667         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48668         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48669         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48670         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48671         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48672         * lib/unictype/pr_bidi_pdf.h: Likewise.
48673         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48674         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48675         * lib/unictype/pr_combining.h: Likewise.
48676         * lib/unictype/pr_composite.h: Likewise.
48677         * lib/unictype/pr_currency_symbol.h: Likewise.
48678         * lib/unictype/pr_dash.h: Likewise.
48679         * lib/unictype/pr_decimal_digit.h: Likewise.
48680         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48681         * lib/unictype/pr_deprecated.h: Likewise.
48682         * lib/unictype/pr_diacritic.h: Likewise.
48683         * lib/unictype/pr_extender.h: Likewise.
48684         * lib/unictype/pr_format_control.h: Likewise.
48685         * lib/unictype/pr_grapheme_base.h: Likewise.
48686         * lib/unictype/pr_grapheme_extend.h: Likewise.
48687         * lib/unictype/pr_grapheme_link.h: Likewise.
48688         * lib/unictype/pr_hex_digit.h: Likewise.
48689         * lib/unictype/pr_hyphen.h: Likewise.
48690         * lib/unictype/pr_id_continue.h: Likewise.
48691         * lib/unictype/pr_id_start.h: Likewise.
48692         * lib/unictype/pr_ideographic.h: Likewise.
48693         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48694         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48695         * lib/unictype/pr_ignorable_control.h: Likewise.
48696         * lib/unictype/pr_iso_control.h: Likewise.
48697         * lib/unictype/pr_join_control.h: Likewise.
48698         * lib/unictype/pr_left_of_pair.h: Likewise.
48699         * lib/unictype/pr_line_separator.h: Likewise.
48700         * lib/unictype/pr_logical_order_exception.h: Likewise.
48701         * lib/unictype/pr_lowercase.h: Likewise.
48702         * lib/unictype/pr_math.h: Likewise.
48703         * lib/unictype/pr_non_break.h: Likewise.
48704         * lib/unictype/pr_not_a_character.h: Likewise.
48705         * lib/unictype/pr_numeric.h: Likewise.
48706         * lib/unictype/pr_other_alphabetic.h: Likewise.
48707         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48708         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48709         * lib/unictype/pr_other_id_continue.h: Likewise.
48710         * lib/unictype/pr_other_id_start.h: Likewise.
48711         * lib/unictype/pr_other_lowercase.h: Likewise.
48712         * lib/unictype/pr_other_math.h: Likewise.
48713         * lib/unictype/pr_other_uppercase.h: Likewise.
48714         * lib/unictype/pr_paired_punctuation.h: Likewise.
48715         * lib/unictype/pr_paragraph_separator.h: Likewise.
48716         * lib/unictype/pr_pattern_syntax.h: Likewise.
48717         * lib/unictype/pr_pattern_white_space.h: Likewise.
48718         * lib/unictype/pr_private_use.h: Likewise.
48719         * lib/unictype/pr_punctuation.h: Likewise.
48720         * lib/unictype/pr_quotation_mark.h: Likewise.
48721         * lib/unictype/pr_radical.h: Likewise.
48722         * lib/unictype/pr_sentence_terminal.h: Likewise.
48723         * lib/unictype/pr_soft_dotted.h: Likewise.
48724         * lib/unictype/pr_space.h: Likewise.
48725         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48726         * lib/unictype/pr_titlecase.h: Likewise.
48727         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48728         * lib/unictype/pr_unified_ideograph.h: Likewise.
48729         * lib/unictype/pr_uppercase.h: Likewise.
48730         * lib/unictype/pr_variation_selector.h: Likewise.
48731         * lib/unictype/pr_white_space.h: Likewise.
48732         * lib/unictype/pr_xid_continue.h: Likewise.
48733         * lib/unictype/pr_xid_start.h: Likewise.
48734         * lib/unictype/pr_zero_width.h: Likewise.
48735         * lib/unictype/scripts.h: Likewise.
48736         * lib/unictype/scripts_byname.gperf: Likewise.
48737         * lib/unictype/sy_c_ident.h: Likewise.
48738         * lib/unictype/sy_c_whitespace.h: Likewise.
48739         * lib/unictype/sy_java_ident.h: Likewise.
48740         * lib/unictype/sy_java_whitespace.h: Likewise.
48741
48742         * lib/unictype/Makefile: New file.
48743         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48744         glibc.
48745         * lib/unictype/3level.h: New file, copied from glibc.
48746         * lib/unictype/3levelbit.h: New file.
48747
48748 2007-11-11  Bruno Haible  <bruno@clisp.org>
48749
48750         * modules/gperf: New file.
48751         * modules/iconv_open (Depends-on): Add it.
48752         (Makefile.am): Remove the GPERF definition.
48753
48754 2007-11-11  Bruno Haible  <bruno@clisp.org>
48755
48756         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48757         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48758
48759 2007-11-11  Bruno Haible  <bruno@clisp.org>
48760
48761         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48762         (usage): Remove function.
48763
48764 2007-11-11  Bruno Haible  <bruno@clisp.org>
48765
48766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48767         gl_FUNC_CEILF_LIBS.
48768         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48769         gl_FUNC_CEIL_LIBS.
48770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48771         gl_FUNC_CEILL_LIBS.
48772         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48773         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48774         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48775
48776 2007-11-11  Bruno Haible  <bruno@clisp.org>
48777
48778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48779         roundf were declared but do not exist on functions.
48780         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48781         roundl were declared but do not exist on functions.
48782         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48783         HAVE_FLOORL_AND_CEILL, respectively.
48784         Needed for Sun C on Solaris 10.
48785
48786 2007-11-11  Bruno Haible  <bruno@clisp.org>
48787
48788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48789         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48790         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48791         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48793         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48794         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48795         HAVE_DECL_ROUNDF.
48796         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48797         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48799         of HAVE_DECL_ROUND*.
48800         * modules/math (Makefile.am): Update.
48801
48802 2007-11-10  Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48805         ptrdiff_t as m4/intl.m4.
48806
48807 2007-11-10  Jim Meyering  <meyering@redhat.com>
48808
48809         Avoid link failure for the argmatch test.
48810         * tests/test-argmatch.c (usage): Define function to avoid a link
48811         failure: argmatch_die requires a usage function.
48812
48813 2007-11-09  Bruno Haible  <bruno@clisp.org>
48814
48815         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48816         * doc/functions/vsnprintf.texi: Likewise.
48817         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48818         with a size argument < 2.
48819
48820 2007-11-09  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48823         buffer. Fixes an inefficiency introduced on 2007-11-03.
48824
48825 2007-11-09  Bruno Haible  <bruno@clisp.org>
48826
48827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48828         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48829
48830 2007-11-08  Jim Meyering  <meyering@redhat.com>
48831
48832         Change cache variable name prefix "jm_" to "gl_" everywhere.
48833         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48834         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48835         * m4/uptime.m4: s/gl_/jm_/
48836
48837 2007-11-07  Bruno Haible  <bruno@clisp.org>
48838
48839         Update to GNU gettext 0.17.
48840         * m4/intl.m4: Update to GNU gettext 0.17.
48841         * m4/po.m4: Likewise.
48842         * modules/gettext (Files): Remove m4/ulonglong.m4.
48843         (configure.ac): Require gettext infrastructure from version 0.17.
48844
48845 2007-11-06  Bruno Haible  <bruno@clisp.org>
48846
48847         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48848         symbolic values are not defined in a public header.
48849         * lib/freadable.c (freadable) [QNX]: Likewise.
48850         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48851         * lib/freading.c (freading) [QNX]: Likewise.
48852         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48853         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48854         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48855         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48856         Reported by Alain Magloire.
48857
48858         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48859
48860 2007-11-05  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48863         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48864         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48865         Reported by Eric Blake.
48866
48867 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48868             Bruno Haible  <bruno@clisp.org>
48869
48870         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48871         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48872         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48873         (malloc): Undefine also before including <stdlib.h>.
48874         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48875         Needed on OSF/1 4.0.
48876
48877 2007-11-05  Jim Meyering  <meyering@redhat.com>
48878
48879         git-version-gen: sync from coreutils.
48880         * build-aux/git-version-gen: Add comments.
48881         Change the first '-' to '.' in the snapshot version string,
48882         e.g., 6.9-377-08144 -> 6.9.377-08144
48883         Remove first parameter.
48884         Don't declare a version "-dirty" merely because a time
48885         stamp has changed.
48886
48887 2007-11-04  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/lock.h: Protect all macro definitions containing an 'if'
48890         statement through a "do { ... } while (0)".
48891         * lib/tls.h: Likewise.
48892
48893 2007-11-04  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48896
48897 2007-11-04  Bruno Haible  <bruno@clisp.org>
48898
48899         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48900         * modules/fprintf-posix (Depends-on): Add nocrash.
48901         * modules/snprintf-posix (Depends-on): Likewise.
48902         * modules/sprintf-posix (Depends-on): Likewise.
48903         * modules/vasnprintf-posix (Depends-on): Likewise.
48904         * modules/vasprintf-posix (Depends-on): Likewise.
48905         * modules/vfprintf-posix (Depends-on): Likewise.
48906         * modules/vsnprintf-posix (Depends-on): Likewise.
48907         * modules/vsprintf-posix (Depends-on): Likewise.
48908         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48909         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48911         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48912         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48913         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48914         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48915
48916 2007-11-04  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/nocrash: New file.
48919         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48920         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48921
48922 2007-11-04  Bruno Haible  <bruno@clisp.org>
48923
48924         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48925         precision handling.
48926         * tests/test-vasprintf-posix.c (test_function): Likewise.
48927         * tests/test-snprintf-posix.h (test_function): Likewise.
48928         * tests/test-sprintf-posix.h (test_function): Likewise.
48929
48930         Fix *printf behaviour for large precisions on mingw and BeOS.
48931         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48932         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48934         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48936         gl_PRINTF_PRECISION and test its result. Invoke
48937         gl_PREREQ_VASNPRINTF_PRECISION.
48938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48945         * doc/functions/fprintf.texi: Update.
48946         * doc/functions/printf.texi: Update.
48947         * doc/functions/snprintf.texi: Update.
48948         * doc/functions/sprintf.texi: Update.
48949         * doc/functions/vfprintf.texi: Update.
48950         * doc/functions/vprintf.texi: Update.
48951         * doc/functions/vsnprintf.texi: Update.
48952         * doc/functions/vsprintf.texi: Update.
48953
48954 2007-11-04  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48957
48958 2007-11-04  Bruno Haible  <bruno@clisp.org>
48959
48960         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48961         Reported by Sylvain Beucler <beuc@gnu.org>.
48962
48963 2007-11-03  Bruno Haible  <bruno@clisp.org>
48964
48965         * tests/test-fprintf-posix2.sh: New file.
48966         * tests/test-fprintf-posix2.c: New file.
48967         * modules/fprintf-posix-tests (Files): Add them.
48968         (TESTS): Add test-fprintf-posix2.sh.
48969         (configure.ac): Check for getrlimit and setrlimit.
48970         (check_PROGRAMS): Add test-fprintf-posix2.
48971
48972         * tests/test-printf-posix2.sh: New file.
48973         * tests/test-printf-posix2.c: New file.
48974         * modules/printf-posix-tests (Files): Add them.
48975         (TESTS): Add test-printf-posix2.sh.
48976         (configure.ac): Check for getrlimit and setrlimit.
48977         (check_PROGRAMS): Add test-printf-posix2.
48978
48979         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48980         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48981         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48982         (decode_double): New function, copied from decode_long_double.
48983         (scale10_round_decimal_decoded): New function, extracted from
48984         scale10_round_decimal_long_double.
48985         (scale10_round_decimal_long_double): Use it.
48986         (scale10_round_decimal_double): New function.
48987         (floorlog10): New function.
48988         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48990         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48992         gl_PRINTF_ENOMEM and test its result. Invoke
48993         gl_PREREQ_VASNPRINTF_ENOMEM.
48994         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49001         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49002         * modules/snprintf-posix (Depends-on): Likewise.
49003         * modules/sprintf-posix (Depends-on): Likewise.
49004         * modules/vasnprintf-posix (Depends-on): Likewise.
49005         * modules/vasprintf-posix (Depends-on): Likewise.
49006         * modules/vfprintf-posix (Depends-on): Likewise.
49007         * modules/vsnprintf-posix (Depends-on): Likewise.
49008         * modules/vsprintf-posix (Depends-on): Likewise.
49009         * doc/functions/fprintf.texi: Update.
49010         * doc/functions/printf.texi: Update.
49011         * doc/functions/snprintf.texi: Update.
49012         * doc/functions/sprintf.texi: Update.
49013         * doc/functions/vfprintf.texi: Update.
49014         * doc/functions/vprintf.texi: Update.
49015         * doc/functions/vsnprintf.texi: Update.
49016         * doc/functions/vsprintf.texi: Update.
49017
49018 2007-11-03  Bruno Haible  <bruno@clisp.org>
49019
49020         * modules/frexp-nolibm-tests: New file.
49021
49022         * modules/frexp-nolibm: New file.
49023         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49024
49025 2007-11-03  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49028         value is C99 compliant.
49029         Needed for OSF/1 5.1.
49030
49031 2007-11-03  Bruno Haible  <bruno@clisp.org>
49032
49033         Fix out-of-memory handling of vasnprintf.
49034         * lib/printf-parse.c: Include <errno.h>.
49035         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49036         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49037         is already set.
49038
49039 2007-11-02  Eric Blake  <ebb9@byu.net>
49040
49041         Fix tests on cygwin.
49042         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49043
49044 2007-11-01  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49047         warning.
49048         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49049         needed for POSIX compatibility.
49050
49051 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49054         for compatibility with GNU.
49055
49056 2007-11-01  Bruno Haible  <bruno@clisp.org>
49057
49058         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49059         (putenv): Renamed from rpl_putenv. Change argument type from
49060         'const char *' to 'char *'.
49061         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49062         of defining putenv in config.h, just set REPLACE_PUTENV.
49063         * modules/putenv (Depends-on): Add stdlib.
49064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49065         (Include): Use <stdlib.h>.
49066         * lib/stdlib.in.h (putenv): New declaration.
49067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49068         REPLACE_PUTENV.
49069         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49070         REPLACE_PUTENV.
49071         Needed for MacOS X 10.5.0.
49072         Reported by Peter O'Gorman <peter@pogma.com>.
49073
49074 2007-11-01  Jim Meyering  <meyering@redhat.com>
49075
49076         Treat an empty date string exactly like "0".
49077         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49078         if the remaining date string (to be parsed) is empty, use "0".
49079         Reported by Mischa Molhoek and discussed in this thread:
49080         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49081
49082 2007-10-31  Bruno Haible  <bruno@clisp.org>
49083
49084         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49085         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49086         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49087         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49088         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49089         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49090
49091 2007-10-31  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49094         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49095         (AC_TYPE_LONG_LONG_INT): Use it.
49096         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49097         it as well.
49098         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49099         to m4/longlong.m4.
49100         * modules/stdint (Files): Remove m4/ulonglong.m4.
49101         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49102         m4/ulonglong.m4.
49103         * modules/strtoumax (Files): Likewise.
49104
49105 2007-10-30  Bruno Haible  <bruno@clisp.org>
49106
49107         * modules/xvasprintf-posix: New file.
49108         Suggested by Eric Blake.
49109
49110 2007-10-30  Bruno Haible  <bruno@clisp.org>
49111
49112         * modules/xprintf-posix-tests: New file.
49113         * tests/test-xprintf-posix.sh: New file.
49114         * tests/test-xprintf-posix.c: New file.
49115         * tests/test-xfprintf-posix.c: New file.
49116
49117         * modules/xprintf-posix: New file.
49118
49119 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49120
49121         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49122         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49123         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49124
49125 2007-10-29  Bruno Haible  <bruno@clisp.org>
49126
49127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49128         contain the special marker '_cv_'.
49129         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49130         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49131         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49132         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49133         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49134         Reported by Ralf Wildenhues.
49135
49136 2007-10-29  Bruno Haible  <bruno@clisp.org>
49137
49138         * gnulib-tool (func_import): When --lgpl is not specified, set
49139         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49140         GPLv3.
49141         Reported by Simon Josefsson.
49142
49143 2007-10-28  Bruno Haible  <bruno@clisp.org>
49144
49145         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49146         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49147         HAVE_DECL_ISFINITE.
49148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49149         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49150         HAVE_DECL_ISFINITE.
49151
49152 2007-10-28  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49155         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49156
49157 2007-10-28  Bruno Haible  <bruno@clisp.org>
49158
49159         Fix link errors with Sun C 5.0 on Solaris 10.
49160         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49161         function is declared but not present in the compiler's libm.
49162         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49163         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49164         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49165         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49166         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49167         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49168         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49170         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49171         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49172         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49173         HAVE_DECL_FLOORL.
49174
49175 2007-10-28  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49178         gl_FUNC_FLOORL. Cache the result.
49179         (gl_FUNC_FLOORL): Use it.
49180         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49181         gl_FUNC_CEILL. Cache the result.
49182         (gl_FUNC_CEILL): Use it.
49183
49184         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49185         gl_FUNC_FLOOR. Cache the result.
49186         (gl_FUNC_FLOOR): Use it.
49187         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49188         gl_FUNC_CEIL. Cache the result.
49189         (gl_FUNC_CEIL): Use it.
49190
49191         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49192         gl_FUNC_FLOORF. Cache the result.
49193         (gl_FUNC_FLOORF): Use it.
49194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49195         gl_FUNC_CEILF. Cache the result.
49196         (gl_FUNC_CEILF): Use it.
49197
49198 2007-10-28  Bruno Haible  <bruno@clisp.org>
49199
49200         * gnulib-tool: Allow specifying the LGPL version number through
49201         --lgpl=2 or --lgpl=3.
49202         (func_usage): Document --lgpl with argument.
49203         Handle --lgpl=... arguments.
49204         (func_import): Recognize also gl_LGPL calls with an argument. When
49205         --lgpl=2 is used and the module's license is just LGPL, report an
49206         error. Set sed_transform_lib_file according to the lgpl variable. In
49207         the generated files, use --lgpl or gl_LGPL invocations with argument,
49208         if necessary.
49209         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49210         an LGPv2+ license.
49211         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49212         gl_LGPL macro.
49213
49214 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49215             Bruno Haible  <bruno@clisp.org>
49216
49217         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49218         (u16_uctomb_aux): Likewise.
49219         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49220         !HAVE_INLINE.
49221         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49222
49223 2007-10-28  Bruno Haible  <bruno@clisp.org>
49224
49225         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49226         Invoke AM_GETTEXT_OPTION if it exists.
49227         * modules/vasprintf: Likewise.
49228         * modules/verror: Likewise.
49229         * modules/xprintf: Likewise.
49230         * modules/xvasprintf: Likewise.
49231
49232 2007-10-27  Ben Pfaff  <blp@gnu.org>
49233
49234         * lib/math.in.h: Define isfinite macro and prototypes for
49235         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49236         implementations.
49237         * m4/math_h.m4: New substitutions for isfinite module.
49238         * lib/isfinite.c: New file.
49239         * m4/isfinite.m4: New file.
49240         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49241         * modules/isfinite: New file.
49242         * modules/isfinite-tests: New file.
49243         * tests/tests-isfinite.c: New file.
49244         * doc/functions/isfinite.texi: Mention isfinite module.
49245         * MODULES.html.sh: Mention new module.
49246
49247 2007-10-27  Ben Pfaff  <blp@gnu.org>
49248
49249         Ralf Wildenhues reported that Tru64 4.0D declares the round
49250         functions but does not have definitions.
49251         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49252         cannot be found in any library, set the output variable to
49253         "missing" instead of "".
49254         * m4/round.m4: Also use our substitute if we cannot find round in
49255         any library, even if it is declared.
49256         * m4/roundf.m4: Likewise for roundf.
49257         * m4/roundl.m4: Likewise for roundl.
49258         * lib/math.in.h: Undefine roundf, round, roundl before defining
49259         their replacements, to allow for hypothetical systems where these
49260         may be defined as macros but not available in libraries.
49261
49262 2007-10-27  Bruno Haible  <bruno@clisp.org>
49263
49264         * doc/gnulib.texi: Invoke @firstparagraphindent.
49265         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49266         changes in gnulib.
49267         (Source changes): New section.
49268
49269 2007-10-26  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49272         borrowed from autoconf.
49273
49274 2007-10-26  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49277         strerror returned the empty string. Needed on HP-UX 11.00.
49278
49279 2007-10-24  Micah Cowan  <micah@cowan.name>
49280
49281         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49282         * build-aux/bootstrap: Remove support for now-unnecessary option,
49283         --cvs-user, and envvars CVS_USER, CVS_RSH.
49284
49285 2007-10-24  Jim Meyering  <meyering@redhat.com>
49286
49287         Avoid diagnostics from sha1sum when there is no cached checksum.
49288         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49289         if the po.s1 file hasn't been created yet.
49290
49291         * build-aux/bootstrap: Sync from coreutils:
49292         2007-10-24  Jim Meyering  <meyering@redhat.com>
49293         Get gnulib from the git repository, not from an obsolete cvs one.
49294         * build-aux/bootstrap: Suggestion from Micah Cowan.
49295         2007-10-04  Jim Meyering  <jim@meyering.net>
49296         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49297         (update_po_files): Work also when there are no .po files in po/.
49298
49299 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * README: Append ".git" to git and cg examples.
49302         Problem reported by Benoit Sigoure.
49303
49304 2007-10-23  Micah Cowan  <micah@cowan.name>
49305
49306         * users.txt: Add wget.
49307
49308 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49309
49310         Fix linking of some unistdio tests on FreeBSD.
49311         * modules/unistdio/u16-vsnprintf-tests
49312         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49313         * modules/unistdio/u16-vsprintf-tests
49314         (test_u16_vsnprintf1_LDADD): Likewise.
49315         * modules/unistdio/u32-vsnprintf-tests
49316         (test_u32_vsnprintf1_LDADD): Likewise.
49317         * modules/unistdio/u32-vsprintf-tests
49318         (test_u32_vsprintf1_LDADD): Likewise.
49319         * modules/unistdio/u8-vsnprintf-tests
49320         (test_u8_vsnprintf1_LDADD): Likewise.
49321         * modules/unistdio/u8-vsprintf-tests
49322         (test_u8_vsprintf1_LDADD): Likewise.
49323         * modules/unistdio/ulc-vsnprintf-tests
49324         (test_ulc_vsnprintf1_LDADD): Likewise.
49325         * modules/unistdio/ulc-vsprintf-tests
49326         (test_ulc_vsprintf1_LDADD): Likewise.
49327
49328         Fix linking of some uniconv tests on FreeBSD.
49329         * modules/uniconv/u16-conv-from-enc-tests
49330         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49331         * modules/uniconv/u16-conv-to-enc-tests
49332         (test_u16_conv_to_enc_LDADD): Likewise.
49333         * modules/uniconv/u16-strconv-from-enc-tests
49334         (test_u16_strconv_from_enc_LDADD): Likewise.
49335         * modules/uniconv/u16-strconv-to-enc-tests
49336         (test_u16_strconv_to_enc_LDADD): Likewise.
49337         * modules/uniconv/u32-conv-from-enc-tests
49338         (test_u32_conv_from_enc_LDADD): Likewise.
49339         * modules/uniconv/u32-conv-to-enc-tests
49340         (test_u32_conv_to_enc_LDADD): Likewise.
49341         * modules/uniconv/u32-strconv-from-enc-tests
49342         (test_u32_strconv_from_enc_LDADD): Likewise.
49343         * modules/uniconv/u32-strconv-to-enc-tests
49344         (test_u32_strconv_to_enc_LDADD): Likewise.
49345         * modules/uniconv/u8-conv-from-enc-tests
49346         (test_u8_conv_from_enc_LDADD): Likewise.
49347         * modules/uniconv/u8-conv-to-enc-tests
49348         (test_u8_conv_to_enc_LDADD): Likewise.
49349         * modules/uniconv/u8-strconv-from-enc-tests
49350         (test_u8_strconv_from_enc_LDADD): Likewise.
49351         * modules/uniconv/u8-strconv-to-enc-tests
49352         (test_u8_strconv_to_enc_LDADD): Likewise.
49353
49354 2007-10-22  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49357         size.
49358
49359 2007-10-22  Eric Blake  <ebb9@byu.net>
49360
49361         Tweak x*printf documentation.
49362         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49363         variable name and comments.
49364         Suggested by Bruno Haible.
49365
49366 2007-10-22  Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/acl.c (copy_acl): Fix file name in comment.
49369
49370 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         Fix Tru64 problem with stdbool.h.
49373         * lib/stdbool.in.h (false, true):
49374         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49375         Don't declare as an enum in this situation; it runs afoul of Tru64.
49376         Problem reported by Steven M. Schweda in
49377         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49378
49379 2007-10-22  Eric Blake  <ebb9@byu.net>
49380
49381         Also wrap vf?printf.
49382         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49383         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49384         (xvprintf, xvfprintf): New functions.
49385
49386 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49387
49388         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49389         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49390
49391         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49392         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49393
49394 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49395
49396         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49397         by Bruno Haible.
49398
49399 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49400
49401         * lib/getloadavg.c
49402         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49403         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49404
49405         * tests/test-i-ring.c: Work for C89.
49406
49407 2007-10-22  Bruno Haible  <bruno@clisp.org>
49408
49409         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49410         -1u, in preprocessor expression, so that we don't test for the bug
49411         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49413
49414 2007-10-22  Eric Blake  <ebb9@byu.net>
49415
49416         * tests/test-yesno.sh: Silence stderr during test.
49417
49418 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49419
49420         * modules/crypto/gc-camellia: New file.
49421
49422         * m4/gc-camellia.m4: New file.
49423
49424         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49425
49426         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49427
49428 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49429
49430         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49431         --help to stdout.  Reported by sms@antinode.org (Steven
49432         M. Schweda).
49433
49434 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49435
49436         * users.txt: Fix link to libksba.
49437
49438 2007-10-21  Ben Pfaff  <blp@gnu.org>
49439
49440         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49441         round.c roundf implementation that depends on floorf and ceilf to
49442         be tested unconditionally.
49443
49444 2007-10-21  Ben Pfaff  <blp@gnu.org>
49445
49446         * m4/check-libm-func.m4: Removed.
49447         * m4/check-math-lib.m4: New file.
49448         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49449         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49450         definition and lack of AC_LIBOBJ([roundf]).
49451         * m4/roundl.m4: Ditto, and similarly for roundl.
49452         * modules/round: Reference new m4 file.
49453         * modules/roundf: Ditto.
49454         * modules/roundl: Ditto.
49455         * tests/test-round2.c (main): Use ROUND instead of round.
49456         Bug report from Bruno Haible.
49457
49458 2007-10-21  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49461         context.
49462
49463 2007-10-21  Bruno Haible  <bruno@clisp.org>
49464
49465         * tests/test-wcwidth.c (main): Allow negative result for some control
49466         characters.
49467
49468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49469         Needed on OSF/1 5.1.
49470
49471 2007-10-21  Bruno Haible  <bruno@clisp.org>
49472
49473         * tests/test-floorf1.c: Include isnanf.h.
49474         (main): Use isnanf() instead of isnan().
49475         * tests/test-ceilf1.c: Include isnanf.h.
49476         (main): Use isnanf() instead of isnan().
49477         * tests/test-truncf1.c: Include isnanf.h.
49478         (main): Use isnanf() instead of isnan().
49479         * tests/test-roundf1.c: Include isnanf.h.
49480         (main): Use isnanf() instead of isnan().
49481
49482 2007-10-21  Eric Blake  <ebb9@byu.net>
49483
49484         * users.txt: Update URL for m4.
49485
49486 2007-10-21  Bruno Haible  <bruno@clisp.org>
49487
49488         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49489
49490 2007-10-21  Bruno Haible  <bruno@clisp.org>
49491
49492         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49493         Git's management files if the CVS files are not present.
49494
49495 2007-10-20  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49498         gcc-3.4.x.
49499
49500 2007-10-20  Ben Pfaff  <blp@gnu.org>
49501
49502         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49503         implementations.
49504         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49505         * lib/round.c: New file.
49506         * lib/roundf.c: New file.
49507         * lib/roundl.c: New file.
49508         * m4/round.m4: New file.
49509         * m4/roundf.m4: New file.
49510         * m4/roundl.m4: New file.
49511         * m4/check-libm-func-m4: New file.
49512         * modules/math: Replace round, roundf, roundl related @VARS@ in
49513         math.in.h.
49514         * modules/round: New file.
49515         * modules/round-tests: New file.
49516         * modules/roundf: New file.
49517         * modules/roundf-tests: New file.
49518         * modules/roundl: New file.
49519         * modules/roundl-tests: New file.
49520         * tests/test-round1.c: New file.
49521         * tests/test-round2.c: New file.
49522         * tests/test-roundf1.c: New file.
49523         * tests/test-roundf2.c: New file.
49524         * tests/test-roundl.c: New file.
49525         * doc/functions/round.texi: Mention round module.
49526         * doc/functions/roundf.texi: Mention roundf module.
49527         * doc/functions/roundl.texi: Mention roundl module.
49528         * MODULES.html.sh: Mention new modules.
49529         Thanks to Bruno Haible for suggestions.
49530
49531 2007-10-20  Jim Meyering  <meyering@redhat.com>
49532
49533         * lib/xprintf.c: Include <config.h> unconditionally.
49534
49535         Change xprintf's license to GPL.
49536         * modules/xprintf (License): s/LGPL/GPL/, since this module
49537         depends on modules (exit and exitfail) which are GPL.
49538         Suggestion from Bruno Haible.
49539
49540         xprintf fixes.
49541         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49542         Use a clearer diagnostic.
49543         Patch from Bruno Haible.
49544
49545 2007-10-20  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49548         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49550
49551 2007-10-20  Bruno Haible  <bruno@clisp.org>
49552
49553         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49554         precision in the comparison result > x - 1 or similar.
49555         * tests/test-ceilf2.c (correct_result_p): Likewise.
49556         * tests/test-truncf2.c (correct_result_p): Likewise.
49557         * tests/test-trunc2.c (correct_result_p): Likewise.
49558         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49559
49560 2007-10-20  Bruno Haible  <bruno@clisp.org>
49561
49562         * modules/ceil: New file.
49563         * m4/ceil.m4: New file.
49564         * doc/functions/ceil.texi: Mention the 'ceil' module.
49565
49566 2007-10-20  Bruno Haible  <bruno@clisp.org>
49567
49568         * modules/floor: New file.
49569         * m4/floor.m4: New file.
49570         * doc/functions/floor.texi: Mention the 'floor' module.
49571
49572 2007-10-20  Bruno Haible  <bruno@clisp.org>
49573
49574         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49575         of %a.
49576         * modules/floorf-tests (Depends-on): Likewise.
49577         * modules/truncf-tests (Depends-on): Likewise.
49578         * modules/trunc-tests (Depends-on): Likewise.
49579         Reported by Ben Pfaff.
49580
49581 2007-10-19  Jim Meyering  <meyering@redhat.com>
49582
49583         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49584         Don't bother testing specific errno values.  Just test ferror.
49585
49586         New module: xprintf
49587         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49588
49589 2007-10-19  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49592         syntax.
49593         * modules/javaexec (Makefile.am): Likewise.
49594         * modules/relocatable-prog (Makefile.am): Likewise.
49595         Suggested by Jim Meyering.
49596
49597 2007-10-18  Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49600         Reported by Jim Meyering.
49601
49602 2007-10-18  Eric Blake  <ebb9@byu.net>
49603
49604         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49605
49606 2007-10-18  Bruno Haible  <bruno@clisp.org>
49607
49608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49609         the format string into writable memory. Needed in Fortify conditions.
49610
49611 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49612             Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49615         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49616         * modules/trim (Depends-on): Add mbchar.
49617         (configure.ac): Add gl_FUNC_MBRTOWC.
49618         (Makefile.am): Augment lib_SOURCES.
49619
49620 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49621
49622         Modify glob.c to use fstatat and dirfd, to simplify it.
49623         Suggested by Eric Blake.
49624         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49625         Don't include <stdbool.h>; not used.
49626         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49627         (link_exists_p): Simplify implementation, since we can now assume
49628         dirfd and fstatat.
49629         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49630
49631 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49632
49633         * gnulib-tool (func_get_dependencies): Fix sed script to
49634         match only tests.
49635
49636 2007-10-17  Bruno Haible  <bruno@clisp.org>
49637
49638         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49639         allow locale names without encoding suffix.
49640         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49642
49643 2007-10-16  Bruno Haible  <bruno@clisp.org>
49644
49645         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49646         * lib/getgroups.c (getgroups): Likewise.
49647         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49648
49649 2007-10-16  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49652         * modules/malloc-posix (License): Likewise.
49653         * modules/realloc-posix (License): Likewise.
49654         * modules/calloc-posix (License): Likewise.
49655         * modules/intprops (License): Change from GPL to LGPL, with
49656         Paul Eggert's approval.
49657
49658 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         Merge glibc changes into lib/glob.c.
49661
49662         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49663         2007-10-15 04:59:03 UTC.  Here are the changes:
49664
49665         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49666
49667         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49668
49669         * lib/glob.c: Add some branch prediction throughout.
49670
49671         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49672
49673         [BZ #5103]
49674         * lib/glob.c (glob): Recognize patterns starting \/.
49675
49676         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49677
49678         [BZ #3996]
49679         * lib/glob.c (attribute_hidden): Define if not defined.
49680         (glob): Unescape dirname, filename or username when needed and not
49681         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49682         is NULL.  Handle unescaped [ in pattern without closing ].
49683         Don't pass GLOB_CHECK down to recursive glob for directories.
49684         (__glob_pattern_type): New function.
49685         (__glob_pattern_p): Implement using __glob_pattern_type.
49686         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49687         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49688         Remove unreachable code.
49689
49690         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49691
49692         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49693         explain why there are no leaks.
49694
49695         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49696
49697         [BZ #3253]
49698         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49699         time, rather allocate increasingly bigger arrays of pointers, if
49700         possible with alloca, if too large with malloc.
49701
49702 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49705         Problem reported by H.Merijn Brand in
49706         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49707         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49709
49710 2007-10-15  Bruno Haible  <bruno@clisp.org>
49711
49712         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49713         with explicit rpl_ prefix.
49714         * lib/fopen.c (fopen): Likewise.
49715         * lib/freopen.c (freopen): Likewise.
49716         * lib/iconv.c (iconv): Likewise.
49717         * lib/iconv_close.c (iconv_close): Likewise.
49718
49719 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49720
49721         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49722
49723 2007-10-15  Bruno Haible  <bruno@clisp.org>
49724
49725         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49726         <stddef.h> instead of <stdlib.h> since we only need NULL.
49727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49728
49729 2007-10-15  Bruno Haible  <bruno@clisp.org>
49730
49731         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49732         Replace paragraph talking about LIBOBJS.
49733         Reported by Colin Watson <cjwatson@debian.org>.
49734
49735 2007-10-15  Bruno Haible  <bruno@clisp.org>
49736
49737         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49738         <stdlib.h> before using NULL.
49739
49740 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49741
49742         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49743         Reported by Albert Chin <china@thewrittenword.com>.
49744
49745 2007-10-14  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/iconv_open-utf-tests: New file.
49748         * tests/test-iconv-utf.c: New file.
49749
49750         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49751         * modules/iconv_open-utf: New file.
49752         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49753         (iconv, iconv_close): New declarations.
49754         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49755         be defined.
49756         (iconv_open): Add special handling of conversion between UTF-8 and
49757         UTF-{16,32}{BE,LE}.
49758         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49759         * lib/iconv_close.c: New file.
49760         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49761         gl_FUNC_ICONV_OPEN.
49762         (gl_FUNC_ICONV_OPEN): Use it.
49763         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49764         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49765         and REPLACE_ICONV_UTF.
49766         * modules/iconv_open (Depends-on): Add c-strcase.
49767         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49768         ICONV_CONST.
49769         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49770
49771 2007-10-13  Albert Chin  <china@thewrittenword.com>
49772             Bruno Haible  <bruno@clisp.org>
49773
49774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49775         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49776
49777 2007-10-13  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49780         defined, use the ISO C99 inline semantics.
49781         * lib/argp.h (ARGP_EI): Likewise.
49782
49783 2007-10-13  Bruno Haible  <bruno@clisp.org>
49784
49785         Handle 'inline' change in gcc 4.3.0.
49786         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49787         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49788         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49789         argp_fmtstream_point): Disable 'extern' declaration if the function
49790         definition is going to be provided inline.
49791         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49792         semantics, not the ISO C99 inline semantics.
49793         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49794         'extern' declaration if the function definition is going to be provided
49795         inline.
49796         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49797         the GNU C inline semantics, not the ISO C99 inline semantics. With
49798         GCC 4.2, avoid a warning.
49799
49800 2007-10-13  Bruno Haible  <bruno@clisp.org>
49801
49802         * lib/freading.h (freading): Enable the use of __freading for
49803         glibc >= 2.7.
49804         * lib/freading.c (freading): Likewise.
49805
49806 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49807
49808         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49809         "warning: C99 inline functions are not supported; using GNU89".
49810
49811 2007-10-12  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49814         of 2.
49815         * tests/test-ceilf2.c: New file.
49816         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49817
49818         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49819         * modules/ceilf-tests: Update.
49820
49821 2007-10-12  Bruno Haible  <bruno@clisp.org>
49822
49823         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49824         of 2.
49825         * tests/test-floorf2.c: New file.
49826         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49827
49828         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49829         * modules/floorf-tests: Update.
49830
49831 2007-10-12  Bruno Haible  <bruno@clisp.org>
49832
49833         * tests/test-trunc2.c: New file.
49834         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49835
49836         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49837         * modules/trunc-tests: Update.
49838
49839 2007-10-12  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49842         of 2.
49843         * tests/test-truncf2.c: New file.
49844         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49845
49846         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49847         * modules/truncf-tests: Update.
49848
49849 2007-10-11  Eric Blake  <ebb9@byu.net>
49850
49851         Don't claim strerror is broken on Interix.
49852         * doc/functions/strerror.texi (strerror): Known broken systems are
49853         now Solaris 8, and not Interix.
49854         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49855         Interix on cross-compile.
49856         Reported by Martin Koeppe in
49857         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49858
49859 2007-10-11  Bruno Haible  <bruno@clisp.org>
49860
49861         * modules/i-ring-tests: New file.
49862         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49863         instead of assert.
49864
49865 2007-10-11  Bruno Haible  <bruno@clisp.org>
49866
49867         * modules/filenamecat-tests: New file.
49868         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49869         * lib/filenamecat.c: Remove test code.
49870
49871 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49872
49873         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49874
49875         * lib/strerror.c: Include <string.h> always, to test interface,
49876         and to remove the need for the dummy.
49877         Include intprops.h to compute width instead of doing it ourselves
49878         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49879         (strerror): Define it to return NULL if there's no system strerror.
49880         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49881         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49882         ancient pre-strerror Unix systems well any more.  Saying "unknown
49883         system error" is enough.
49884         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49885         simpler strerror.c implementation.
49886         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49887         Simplify the tests to reflect the simpler strerror implementation.
49888         * modules/strerror (Depends-on): Add intprops.
49889
49890 2007-10-09  Eric Blake  <ebb9@byu.net>
49891
49892         Silence test-fpending.
49893         * modules/fpending-tests (Files): Add wrapper script.
49894         * tests/test-fpending.sh: New file.
49895
49896 2007-10-09  Bruno Haible  <bruno@clisp.org>
49897
49898         * MODULES.html.sh (func_module): Don't create a hyperlink for
49899         function names like 'printf_frexp'.
49900         (Misc): Add crc, memxor.
49901         (Characteristics of floating types): New section.
49902         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49903         isnanf-nolibm, signbit, trunc, truncf, truncl.
49904         (Enhancements for ISO C 99 functions): New subsection Input/output.
49905         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49906         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49907         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49908         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49909         (Enhancements for POSIX:2001 functions): Add chdir-long.
49910         (File system functions): Add areadlink, chdir-safer, read-file.
49911         Remove cycle-check.
49912         (File system as inode set): New section.
49913         (Date and time): Add gethrxtime.
49914         (Multithreading): Add openmp.
49915         (Internationalization functions): Add localename.
49916         (Unicode string functions): Add unistr/u*-mbsnlen.
49917         (Support for maintaining and releasing projects): Add git-version-gen.
49918         (Lone files): Remove directories.
49919
49920 2007-10-08  Ben Pfaff  <blp@gnu.org>
49921
49922         * lib/xmalloca.h: Fix typo in comment.
49923
49924 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49927         when avoiding problems with integer overflow.  Use a portable test
49928         instead.
49929
49930 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49931
49932         * modules/dummy (License): Change to LGPLv2+.
49933         * modules/float (License): Likewise
49934         * modules/realloc (License): Likewise
49935         * modules/stdlib (License): Likewise
49936
49937 2007-10-07  Bruno Haible  <bruno@clisp.org>
49938
49939         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49940         * floor.c (TWO_MANT_DIG): Likewise.
49941         * ceil.c (TWO_MANT_DIG): Likewise.
49942         Reported by Ben Pfaff.
49943
49944 2007-10-07  Bruno Haible  <bruno@clisp.org>
49945
49946         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49947         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49948         * lib/frexp.c (FUNC): Likewise.
49949         * lib/printf-frexp.h (printf_frexp): Likewise.
49950         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49951         * lib/printf-frexp.c (FUNC): Likewise.
49952         Suggested by Jim Meyering.
49953
49954 2007-10-07  Jim Meyering  <meyering@redhat.com>
49955
49956         Make xnanosleep's integer overflow test more robust.
49957         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49958         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49959
49960 2007-10-07  Bruno Haible  <bruno@clisp.org>
49961
49962         * NEWS: Mention the license change.
49963
49964         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49965         abbreviations in the modules files.
49966
49967         Change copyright notice from GPLv2+ to GPLv3+.
49968         * README: Change copyright notice.
49969         * MODULES.html.sh: Likewise.
49970         * build-aux/bootstrap.conf: Likewise.
49971         * build-aux/config.libpath: Likewise.
49972         * build-aux/csharpcomp.sh.in: Likewise.
49973         * build-aux/csharpexec.sh.in: Likewise.
49974         * build-aux/install-reloc: Likewise.
49975         * build-aux/javacomp.sh.in: Likewise.
49976         * build-aux/javaexec.sh.in: Likewise.
49977         * build-aux/ldd.sh.in: Likewise.
49978         * build-aux/reloc-ldflags: Likewise.
49979         * build-aux/relocatable.sh.in: Likewise.
49980         * build-aux/x-to-1.in: Likewise.
49981         * check-module: Likewise.
49982         * config/srclistvars.sh: Likewise.
49983         * gnulib-tool: Likewise.
49984         * lib/acl-internal.h: Likewise.
49985         * lib/acl.c: Likewise.
49986         * lib/acl.h: Likewise.
49987         * lib/acl_entries.c: Likewise.
49988         * lib/areadlink-with-size.c: Likewise.
49989         * lib/areadlink.c: Likewise.
49990         * lib/areadlink.h: Likewise.
49991         * lib/argmatch.c: Likewise.
49992         * lib/argmatch.h: Likewise.
49993         * lib/argp-ba.c: Likewise.
49994         * lib/argp-eexst.c: Likewise.
49995         * lib/argp-fmtstream.c: Likewise.
49996         * lib/argp-fmtstream.h: Likewise.
49997         * lib/argp-fs-xinl.c: Likewise.
49998         * lib/argp-help.c: Likewise.
49999         * lib/argp-namefrob.h: Likewise.
50000         * lib/argp-parse.c: Likewise.
50001         * lib/argp-pin.c: Likewise.
50002         * lib/argp-pv.c: Likewise.
50003         * lib/argp-pvh.c: Likewise.
50004         * lib/argp-xinl.c: Likewise.
50005         * lib/argp.h: Likewise.
50006         * lib/at-func.c: Likewise.
50007         * lib/atanl.c: Likewise.
50008         * lib/backupfile.c: Likewise.
50009         * lib/backupfile.h: Likewise.
50010         * lib/basename.c: Likewise.
50011         * lib/binary-io.h: Likewise.
50012         * lib/byteswap.in.h: Likewise.
50013         * lib/c-stack.c: Likewise.
50014         * lib/c-stack.h: Likewise.
50015         * lib/c-strcasestr.c: Likewise.
50016         * lib/c-strcasestr.h: Likewise.
50017         * lib/c-strstr.c: Likewise.
50018         * lib/c-strstr.h: Likewise.
50019         * lib/c-strtod.c: Likewise.
50020         * lib/calloc.c: Likewise.
50021         * lib/canon-host.c: Likewise.
50022         * lib/canon-host.h: Likewise.
50023         * lib/canonicalize-lgpl.c: Likewise.
50024         * lib/canonicalize.c: Likewise.
50025         * lib/canonicalize.h: Likewise.
50026         * lib/ceil.c: Likewise.
50027         * lib/ceilf.c: Likewise.
50028         * lib/ceill.c: Likewise.
50029         * lib/chdir-long.c: Likewise.
50030         * lib/chdir-long.h: Likewise.
50031         * lib/chdir-safer.c: Likewise.
50032         * lib/chdir-safer.h: Likewise.
50033         * lib/chown.c: Likewise.
50034         * lib/classpath.c: Likewise.
50035         * lib/classpath.h: Likewise.
50036         * lib/clean-temp.c: Likewise.
50037         * lib/clean-temp.h: Likewise.
50038         * lib/cloexec.c: Likewise.
50039         * lib/close-stream.c: Likewise.
50040         * lib/closein.c: Likewise.
50041         * lib/closein.h: Likewise.
50042         * lib/closeout.c: Likewise.
50043         * lib/closeout.h: Likewise.
50044         * lib/concat-filename.c: Likewise.
50045         * lib/copy-file.c: Likewise.
50046         * lib/copy-file.h: Likewise.
50047         * lib/count-one-bits.h: Likewise.
50048         * lib/crc.c: Likewise.
50049         * lib/crc.h: Likewise.
50050         * lib/creat-safer.c: Likewise.
50051         * lib/csharpcomp.c: Likewise.
50052         * lib/csharpcomp.h: Likewise.
50053         * lib/csharpexec.c: Likewise.
50054         * lib/csharpexec.h: Likewise.
50055         * lib/cycle-check.c: Likewise.
50056         * lib/cycle-check.h: Likewise.
50057         * lib/diacrit.c: Likewise.
50058         * lib/diacrit.h: Likewise.
50059         * lib/diffseq.h: Likewise.
50060         * lib/dirchownmod.c: Likewise.
50061         * lib/dirent.in.h: Likewise.
50062         * lib/dirfd.c: Likewise.
50063         * lib/dirfd.h: Likewise.
50064         * lib/dirname.c: Likewise.
50065         * lib/dirname.h: Likewise.
50066         * lib/dummy.c: Likewise.
50067         * lib/dup-safer.c: Likewise.
50068         * lib/dup2.c: Likewise.
50069         * lib/eealloc.h: Likewise.
50070         * lib/error.c: Likewise.
50071         * lib/error.h: Likewise.
50072         * lib/euidaccess.c: Likewise.
50073         * lib/exclude.c: Likewise.
50074         * lib/exclude.h: Likewise.
50075         * lib/execute.c: Likewise.
50076         * lib/execute.h: Likewise.
50077         * lib/exitfail.c: Likewise.
50078         * lib/exitfail.h: Likewise.
50079         * lib/expl.c: Likewise.
50080         * lib/fatal-signal.c: Likewise.
50081         * lib/fatal-signal.h: Likewise.
50082         * lib/fbufmode.c: Likewise.
50083         * lib/fbufmode.h: Likewise.
50084         * lib/fchdir.c: Likewise.
50085         * lib/fchmodat.c: Likewise.
50086         * lib/fchownat.c: Likewise.
50087         * lib/fcntl--.h: Likewise.
50088         * lib/fcntl-safer.h: Likewise.
50089         * lib/fcntl.in.h: Likewise.
50090         * lib/fd-safer.c: Likewise.
50091         * lib/fflush.c: Likewise.
50092         * lib/file-has-acl.c: Likewise.
50093         * lib/file-set.c: Likewise.
50094         * lib/file-type.c: Likewise.
50095         * lib/file-type.h: Likewise.
50096         * lib/fileblocks.c: Likewise.
50097         * lib/filemode.c: Likewise.
50098         * lib/filemode.h: Likewise.
50099         * lib/filename.h: Likewise.
50100         * lib/filenamecat.c: Likewise.
50101         * lib/filenamecat.h: Likewise.
50102         * lib/findprog.c: Likewise.
50103         * lib/findprog.h: Likewise.
50104         * lib/float.in.h: Likewise.
50105         * lib/floor.c: Likewise.
50106         * lib/floorf.c: Likewise.
50107         * lib/floorl.c: Likewise.
50108         * lib/fopen-safer.c: Likewise.
50109         * lib/fopen.c: Likewise.
50110         * lib/fpending.c: Likewise.
50111         * lib/fpending.h: Likewise.
50112         * lib/fprintf.c: Likewise.
50113         * lib/fprintftime.h: Likewise.
50114         * lib/fpucw.h: Likewise.
50115         * lib/fpurge.c: Likewise.
50116         * lib/fpurge.h: Likewise.
50117         * lib/freadable.c: Likewise.
50118         * lib/freadable.h: Likewise.
50119         * lib/freadahead.c: Likewise.
50120         * lib/freadahead.h: Likewise.
50121         * lib/freading.c: Likewise.
50122         * lib/freading.h: Likewise.
50123         * lib/free.c: Likewise.
50124         * lib/freopen.c: Likewise.
50125         * lib/frexp.c: Likewise.
50126         * lib/frexpl.c: Likewise.
50127         * lib/fseek.c: Likewise.
50128         * lib/fseterr.c: Likewise.
50129         * lib/fseterr.h: Likewise.
50130         * lib/fstatat.c: Likewise.
50131         * lib/fstrcmp.c: Likewise.
50132         * lib/fstrcmp.h: Likewise.
50133         * lib/fsusage.c: Likewise.
50134         * lib/fsusage.h: Likewise.
50135         * lib/ftell.c: Likewise.
50136         * lib/ftello.c: Likewise.
50137         * lib/fts-cycle.c: Likewise.
50138         * lib/fts.c: Likewise.
50139         * lib/fts_.h: Likewise.
50140         * lib/full-read.c: Likewise.
50141         * lib/full-read.h: Likewise.
50142         * lib/full-write.c: Likewise.
50143         * lib/full-write.h: Likewise.
50144         * lib/fwritable.c: Likewise.
50145         * lib/fwritable.h: Likewise.
50146         * lib/fwriteerror.c: Likewise.
50147         * lib/fwriteerror.h: Likewise.
50148         * lib/fwriting.c: Likewise.
50149         * lib/fwriting.h: Likewise.
50150         * lib/gcd.c: Likewise.
50151         * lib/gcd.h: Likewise.
50152         * lib/getcwd.c: Likewise.
50153         * lib/getdate.h: Likewise.
50154         * lib/getdate.y: Likewise.
50155         * lib/getdomainname.c: Likewise.
50156         * lib/getdomainname.h: Likewise.
50157         * lib/getgroups.c: Likewise.
50158         * lib/gethostname.c: Likewise.
50159         * lib/gethrxtime.c: Likewise.
50160         * lib/gethrxtime.h: Likewise.
50161         * lib/getloadavg.c: Likewise.
50162         * lib/getndelim2.c: Likewise.
50163         * lib/getndelim2.h: Likewise.
50164         * lib/getnline.c: Likewise.
50165         * lib/getnline.h: Likewise.
50166         * lib/getopt.c: Likewise.
50167         * lib/getopt.in.h: Likewise.
50168         * lib/getopt1.c: Likewise.
50169         * lib/getopt_int.h: Likewise.
50170         * lib/getpagesize.h: Likewise.
50171         * lib/getsubopt.c: Likewise.
50172         * lib/gettime.c: Likewise.
50173         * lib/getugroups.c: Likewise.
50174         * lib/getugroups.h: Likewise.
50175         * lib/getusershell.c: Likewise.
50176         * lib/gl_anyavltree_list1.h: Likewise.
50177         * lib/gl_anyavltree_list2.h: Likewise.
50178         * lib/gl_anyhash_list1.h: Likewise.
50179         * lib/gl_anyhash_list2.h: Likewise.
50180         * lib/gl_anylinked_list1.h: Likewise.
50181         * lib/gl_anylinked_list2.h: Likewise.
50182         * lib/gl_anyrbtree_list1.h: Likewise.
50183         * lib/gl_anyrbtree_list2.h: Likewise.
50184         * lib/gl_anytree_list1.h: Likewise.
50185         * lib/gl_anytree_list2.h: Likewise.
50186         * lib/gl_anytree_oset.h: Likewise.
50187         * lib/gl_anytreehash_list1.h: Likewise.
50188         * lib/gl_anytreehash_list2.h: Likewise.
50189         * lib/gl_array_list.c: Likewise.
50190         * lib/gl_array_list.h: Likewise.
50191         * lib/gl_array_oset.c: Likewise.
50192         * lib/gl_array_oset.h: Likewise.
50193         * lib/gl_avltree_list.c: Likewise.
50194         * lib/gl_avltree_list.h: Likewise.
50195         * lib/gl_avltree_oset.c: Likewise.
50196         * lib/gl_avltree_oset.h: Likewise.
50197         * lib/gl_avltreehash_list.c: Likewise.
50198         * lib/gl_avltreehash_list.h: Likewise.
50199         * lib/gl_carray_list.c: Likewise.
50200         * lib/gl_carray_list.h: Likewise.
50201         * lib/gl_linked_list.c: Likewise.
50202         * lib/gl_linked_list.h: Likewise.
50203         * lib/gl_linkedhash_list.c: Likewise.
50204         * lib/gl_linkedhash_list.h: Likewise.
50205         * lib/gl_list.c: Likewise.
50206         * lib/gl_list.h: Likewise.
50207         * lib/gl_oset.c: Likewise.
50208         * lib/gl_oset.h: Likewise.
50209         * lib/gl_rbtree_list.c: Likewise.
50210         * lib/gl_rbtree_list.h: Likewise.
50211         * lib/gl_rbtree_oset.c: Likewise.
50212         * lib/gl_rbtree_oset.h: Likewise.
50213         * lib/gl_rbtreehash_list.c: Likewise.
50214         * lib/gl_rbtreehash_list.h: Likewise.
50215         * lib/gl_sublist.c: Likewise.
50216         * lib/gl_sublist.h: Likewise.
50217         * lib/group-member.c: Likewise.
50218         * lib/group-member.h: Likewise.
50219         * lib/hard-locale.c: Likewise.
50220         * lib/hard-locale.h: Likewise.
50221         * lib/hash-pjw.c: Likewise.
50222         * lib/hash-pjw.h: Likewise.
50223         * lib/hash-triple.c: Likewise.
50224         * lib/hash.c: Likewise.
50225         * lib/hash.h: Likewise.
50226         * lib/human.c: Likewise.
50227         * lib/human.h: Likewise.
50228         * lib/i-ring.c: Likewise.
50229         * lib/i-ring.h: Likewise.
50230         * lib/idcache.c: Likewise.
50231         * lib/imaxabs.c: Likewise.
50232         * lib/imaxdiv.c: Likewise.
50233         * lib/inet_pton.c: Likewise.
50234         * lib/inet_pton.h: Likewise.
50235         * lib/intprops.h: Likewise.
50236         * lib/inttostr.c: Likewise.
50237         * lib/inttostr.h: Likewise.
50238         * lib/inttypes.in.h: Likewise.
50239         * lib/isapipe.c: Likewise.
50240         * lib/isdir.c: Likewise.
50241         * lib/isnan.c: Likewise.
50242         * lib/isnan.h: Likewise.
50243         * lib/isnanf.c: Likewise.
50244         * lib/isnanf.h: Likewise.
50245         * lib/isnanl-nolibm.h: Likewise.
50246         * lib/isnanl.c: Likewise.
50247         * lib/isnanl.h: Likewise.
50248         * lib/javacomp.c: Likewise.
50249         * lib/javacomp.h: Likewise.
50250         * lib/javaexec.c: Likewise.
50251         * lib/javaexec.h: Likewise.
50252         * lib/javaversion.c: Likewise.
50253         * lib/javaversion.h: Likewise.
50254         * lib/javaversion.java: Likewise.
50255         * lib/lbrkprop.h: Likewise.
50256         * lib/lchmod.h: Likewise.
50257         * lib/lchown.c: Likewise.
50258         * lib/ldexpl.c: Likewise.
50259         * lib/linebreak.c: Likewise.
50260         * lib/linebreak.h: Likewise.
50261         * lib/linebuffer.c: Likewise.
50262         * lib/linebuffer.h: Likewise.
50263         * lib/locale.in.h: Likewise.
50264         * lib/logl.c: Likewise.
50265         * lib/long-options.c: Likewise.
50266         * lib/long-options.h: Likewise.
50267         * lib/lstat.c: Likewise.
50268         * lib/lstat.h: Likewise.
50269         * lib/math.in.h: Likewise.
50270         * lib/mbchar.c: Likewise.
50271         * lib/mbchar.h: Likewise.
50272         * lib/mbfile.h: Likewise.
50273         * lib/mbiter.h: Likewise.
50274         * lib/mbscasecmp.c: Likewise.
50275         * lib/mbscasestr.c: Likewise.
50276         * lib/mbschr.c: Likewise.
50277         * lib/mbscspn.c: Likewise.
50278         * lib/mbslen.c: Likewise.
50279         * lib/mbsncasecmp.c: Likewise.
50280         * lib/mbsnlen.c: Likewise.
50281         * lib/mbspbrk.c: Likewise.
50282         * lib/mbspcasecmp.c: Likewise.
50283         * lib/mbsrchr.c: Likewise.
50284         * lib/mbssep.c: Likewise.
50285         * lib/mbsspn.c: Likewise.
50286         * lib/mbsstr.c: Likewise.
50287         * lib/mbstok_r.c: Likewise.
50288         * lib/mbswidth.c: Likewise.
50289         * lib/mbswidth.h: Likewise.
50290         * lib/mbuiter.h: Likewise.
50291         * lib/memcasecmp.c: Likewise.
50292         * lib/memcasecmp.h: Likewise.
50293         * lib/memchr.c: Likewise.
50294         * lib/memcmp.c: Likewise.
50295         * lib/memcoll.c: Likewise.
50296         * lib/memcoll.h: Likewise.
50297         * lib/memcpy.c: Likewise.
50298         * lib/memrchr.c: Likewise.
50299         * lib/mkancesdirs.c: Likewise.
50300         * lib/mkdir-p.c: Likewise.
50301         * lib/mkdir-p.h: Likewise.
50302         * lib/mkdir.c: Likewise.
50303         * lib/mkdirat.c: Likewise.
50304         * lib/mkdtemp.c: Likewise.
50305         * lib/mkstemp-safer.c: Likewise.
50306         * lib/mkstemp.c: Likewise.
50307         * lib/modechange.c: Likewise.
50308         * lib/modechange.h: Likewise.
50309         * lib/mountlist.c: Likewise.
50310         * lib/mountlist.h: Likewise.
50311         * lib/mpsort.c: Likewise.
50312         * lib/nanosleep.c: Likewise.
50313         * lib/obstack.c: Likewise.
50314         * lib/obstack.h: Likewise.
50315         * lib/open-safer.c: Likewise.
50316         * lib/open.c: Likewise.
50317         * lib/openat-die.c: Likewise.
50318         * lib/openat-priv.h: Likewise.
50319         * lib/openat-proc.c: Likewise.
50320         * lib/openat.c: Likewise.
50321         * lib/openat.h: Likewise.
50322         * lib/pagealign_alloc.c: Likewise.
50323         * lib/pagealign_alloc.h: Likewise.
50324         * lib/physmem.c: Likewise.
50325         * lib/physmem.h: Likewise.
50326         * lib/pipe-safer.c: Likewise.
50327         * lib/pipe.c: Likewise.
50328         * lib/pipe.h: Likewise.
50329         * lib/posixtm.c: Likewise.
50330         * lib/posixtm.h: Likewise.
50331         * lib/posixver.c: Likewise.
50332         * lib/printf-frexp.c: Likewise.
50333         * lib/printf-frexp.h: Likewise.
50334         * lib/printf-frexpl.c: Likewise.
50335         * lib/printf-frexpl.h: Likewise.
50336         * lib/printf.c: Likewise.
50337         * lib/progname.c: Likewise.
50338         * lib/progname.h: Likewise.
50339         * lib/progreloc.c: Likewise.
50340         * lib/putenv.c: Likewise.
50341         * lib/quote.c: Likewise.
50342         * lib/quote.h: Likewise.
50343         * lib/quotearg.c: Likewise.
50344         * lib/quotearg.h: Likewise.
50345         * lib/raise.c: Likewise.
50346         * lib/readline.c: Likewise.
50347         * lib/readline.h: Likewise.
50348         * lib/readlink.c: Likewise.
50349         * lib/readtokens.c: Likewise.
50350         * lib/readtokens.h: Likewise.
50351         * lib/readtokens0.c: Likewise.
50352         * lib/readtokens0.h: Likewise.
50353         * lib/readutmp.c: Likewise.
50354         * lib/readutmp.h: Likewise.
50355         * lib/realloc.c: Likewise.
50356         * lib/relocwrapper.c: Likewise.
50357         * lib/rename-dest-slash.c: Likewise.
50358         * lib/rename.c: Likewise.
50359         * lib/rmdir.c: Likewise.
50360         * lib/rpmatch.c: Likewise.
50361         * lib/safe-read.c: Likewise.
50362         * lib/safe-read.h: Likewise.
50363         * lib/safe-write.c: Likewise.
50364         * lib/safe-write.h: Likewise.
50365         * lib/same-inode.h: Likewise.
50366         * lib/same.c: Likewise.
50367         * lib/same.h: Likewise.
50368         * lib/save-cwd.c: Likewise.
50369         * lib/save-cwd.h: Likewise.
50370         * lib/savedir.c: Likewise.
50371         * lib/savedir.h: Likewise.
50372         * lib/savewd.c: Likewise.
50373         * lib/savewd.h: Likewise.
50374         * lib/search.in.h: Likewise.
50375         * lib/setenv.c: Likewise.
50376         * lib/setenv.h: Likewise.
50377         * lib/settime.c: Likewise.
50378         * lib/sh-quote.c: Likewise.
50379         * lib/sh-quote.h: Likewise.
50380         * lib/sig2str.c: Likewise.
50381         * lib/sig2str.h: Likewise.
50382         * lib/signal.in.h: Likewise.
50383         * lib/signbitd.c: Likewise.
50384         * lib/signbitf.c: Likewise.
50385         * lib/signbitl.c: Likewise.
50386         * lib/sigprocmask.c: Likewise.
50387         * lib/sincosl.c: Likewise.
50388         * lib/sleep.c: Likewise.
50389         * lib/sprintf.c: Likewise.
50390         * lib/sqrtl.c: Likewise.
50391         * lib/stat-time.h: Likewise.
50392         * lib/stdio--.h: Likewise.
50393         * lib/stdio-safer.h: Likewise.
50394         * lib/stdlib--.h: Likewise.
50395         * lib/stdlib-safer.h: Likewise.
50396         * lib/stdlib.in.h: Likewise.
50397         * lib/stpcpy.c: Likewise.
50398         * lib/stpncpy.c: Likewise.
50399         * lib/strchrnul.c: Likewise.
50400         * lib/strcspn.c: Likewise.
50401         * lib/strerror.c: Likewise.
50402         * lib/strftime.c: Likewise.
50403         * lib/strftime.h: Likewise.
50404         * lib/striconveh.c: Likewise.
50405         * lib/striconveh.h: Likewise.
50406         * lib/striconveha.c: Likewise.
50407         * lib/striconveha.h: Likewise.
50408         * lib/stripslash.c: Likewise.
50409         * lib/strnlen1.c: Likewise.
50410         * lib/strnlen1.h: Likewise.
50411         * lib/strtod.c: Likewise.
50412         * lib/strtoimax.c: Likewise.
50413         * lib/strtok_r.c: Likewise.
50414         * lib/strtol.c: Likewise.
50415         * lib/strtoll.c: Likewise.
50416         * lib/strtoul.c: Likewise.
50417         * lib/strtoull.c: Likewise.
50418         * lib/sysexits.in.h: Likewise.
50419         * lib/tempname.c: Likewise.
50420         * lib/tempname.h: Likewise.
50421         * lib/timespec.h: Likewise.
50422         * lib/tls.c: Likewise.
50423         * lib/tls.h: Likewise.
50424         * lib/tmpdir.c: Likewise.
50425         * lib/tmpdir.h: Likewise.
50426         * lib/tmpfile-safer.c: Likewise.
50427         * lib/tmpfile.c: Likewise.
50428         * lib/trigl.c: Likewise.
50429         * lib/trigl.h: Likewise.
50430         * lib/trim.c: Likewise.
50431         * lib/trim.h: Likewise.
50432         * lib/trunc.c: Likewise.
50433         * lib/truncf.c: Likewise.
50434         * lib/truncl.c: Likewise.
50435         * lib/tsearch.c: Likewise.
50436         * lib/unicodeio.c: Likewise.
50437         * lib/unicodeio.h: Likewise.
50438         * lib/unistd--.h: Likewise.
50439         * lib/unistd-safer.h: Likewise.
50440         * lib/unistdio/ulc-fprintf.c: Likewise.
50441         * lib/unistdio/ulc-vfprintf.c: Likewise.
50442         * lib/unlinkdir.c: Likewise.
50443         * lib/unlinkdir.h: Likewise.
50444         * lib/unlocked-io.h: Likewise.
50445         * lib/unsetenv.c: Likewise.
50446         * lib/userspec.c: Likewise.
50447         * lib/utime.c: Likewise.
50448         * lib/utimecmp.c: Likewise.
50449         * lib/utimecmp.h: Likewise.
50450         * lib/utimens.c: Likewise.
50451         * lib/verify.h: Likewise.
50452         * lib/verror.c: Likewise.
50453         * lib/verror.h: Likewise.
50454         * lib/version-etc-fsf.c: Likewise.
50455         * lib/version-etc.c: Likewise.
50456         * lib/version-etc.h: Likewise.
50457         * lib/vfprintf.c: Likewise.
50458         * lib/vprintf.c: Likewise.
50459         * lib/vsprintf.c: Likewise.
50460         * lib/w32spawn.h: Likewise.
50461         * lib/wait-process.c: Likewise.
50462         * lib/wait-process.h: Likewise.
50463         * lib/wcwidth.c: Likewise.
50464         * lib/write-any-file.c: Likewise.
50465         * lib/xalloc-die.c: Likewise.
50466         * lib/xalloc.h: Likewise.
50467         * lib/xasprintf.c: Likewise.
50468         * lib/xgetcwd.c: Likewise.
50469         * lib/xgetcwd.h: Likewise.
50470         * lib/xgetdomainname.c: Likewise.
50471         * lib/xgetdomainname.h: Likewise.
50472         * lib/xgethostname.c: Likewise.
50473         * lib/xmalloc.c: Likewise.
50474         * lib/xmalloca.c: Likewise.
50475         * lib/xmalloca.h: Likewise.
50476         * lib/xmemcoll.c: Likewise.
50477         * lib/xnanosleep.c: Likewise.
50478         * lib/xreadlink.c: Likewise.
50479         * lib/xreadlink.h: Likewise.
50480         * lib/xsetenv.c: Likewise.
50481         * lib/xsetenv.h: Likewise.
50482         * lib/xstriconv.c: Likewise.
50483         * lib/xstriconv.h: Likewise.
50484         * lib/xstrndup.c: Likewise.
50485         * lib/xstrndup.h: Likewise.
50486         * lib/xstrtod.c: Likewise.
50487         * lib/xstrtod.h: Likewise.
50488         * lib/xstrtol-error.c: Likewise.
50489         * lib/xstrtol.c: Likewise.
50490         * lib/xstrtol.h: Likewise.
50491         * lib/xtime.h: Likewise.
50492         * lib/xvasprintf.c: Likewise.
50493         * lib/xvasprintf.h: Likewise.
50494         * lib/yesno.c: Likewise.
50495         * lib/yesno.h: Likewise.
50496         * posix-modules: Likewise.
50497         * tests/test-alloca-opt.c: Likewise.
50498         * tests/test-arcfour.c: Likewise.
50499         * tests/test-arctwo.c: Likewise.
50500         * tests/test-argmatch.c: Likewise.
50501         * tests/test-argp-2.sh: Likewise.
50502         * tests/test-argp.c: Likewise.
50503         * tests/test-arpa_inet.c: Likewise.
50504         * tests/test-array_list.c: Likewise.
50505         * tests/test-array_oset.c: Likewise.
50506         * tests/test-atexit.c: Likewise.
50507         * tests/test-avltree_list.c: Likewise.
50508         * tests/test-avltree_oset.c: Likewise.
50509         * tests/test-avltreehash_list.c: Likewise.
50510         * tests/test-base64.c: Likewise.
50511         * tests/test-binary-io.c: Likewise.
50512         * tests/test-byteswap.c: Likewise.
50513         * tests/test-c-ctype.c: Likewise.
50514         * tests/test-c-strcasecmp.c: Likewise.
50515         * tests/test-c-strcasestr.c: Likewise.
50516         * tests/test-c-strncasecmp.c: Likewise.
50517         * tests/test-c-strstr.c: Likewise.
50518         * tests/test-canonicalize-lgpl.c: Likewise.
50519         * tests/test-canonicalize.c: Likewise.
50520         * tests/test-carray_list.c: Likewise.
50521         * tests/test-ceilf.c: Likewise.
50522         * tests/test-ceill.c: Likewise.
50523         * tests/test-count-one-bits.c: Likewise.
50524         * tests/test-crc.c: Likewise.
50525         * tests/test-dirname.c: Likewise.
50526         * tests/test-fbufmode.c: Likewise.
50527         * tests/test-fcntl.c: Likewise.
50528         * tests/test-fflush.c: Likewise.
50529         * tests/test-floorf.c: Likewise.
50530         * tests/test-floorl.c: Likewise.
50531         * tests/test-fopen.c: Likewise.
50532         * tests/test-fprintf-posix.c: Likewise.
50533         * tests/test-fprintf-posix.h: Likewise.
50534         * tests/test-fpurge.c: Likewise.
50535         * tests/test-freadable.c: Likewise.
50536         * tests/test-freadahead.c: Likewise.
50537         * tests/test-freading.c: Likewise.
50538         * tests/test-freopen.c: Likewise.
50539         * tests/test-frexp.c: Likewise.
50540         * tests/test-frexpl.c: Likewise.
50541         * tests/test-fseek.c: Likewise.
50542         * tests/test-fseeko.c: Likewise.
50543         * tests/test-fseterr.c: Likewise.
50544         * tests/test-fstrcmp.c: Likewise.
50545         * tests/test-ftell.c: Likewise.
50546         * tests/test-ftello.c: Likewise.
50547         * tests/test-fwritable.c: Likewise.
50548         * tests/test-fwriting.c: Likewise.
50549         * tests/test-getaddrinfo.c: Likewise.
50550         * tests/test-getpass.c: Likewise.
50551         * tests/test-gettimeofday.c: Likewise.
50552         * tests/test-hmac-md5.c: Likewise.
50553         * tests/test-hmac-sha1.c: Likewise.
50554         * tests/test-iconv.c: Likewise.
50555         * tests/test-iconvme.c: Likewise.
50556         * tests/test-inttypes.c: Likewise.
50557         * tests/test-isnan.c: Likewise.
50558         * tests/test-isnanf.c: Likewise.
50559         * tests/test-isnanl-nolibm.c: Likewise.
50560         * tests/test-isnanl.c: Likewise.
50561         * tests/test-isnanl.h: Likewise.
50562         * tests/test-ldexpl.c: Likewise.
50563         * tests/test-linked_list.c: Likewise.
50564         * tests/test-linkedhash_list.c: Likewise.
50565         * tests/test-locale.c: Likewise.
50566         * tests/test-localename.c: Likewise.
50567         * tests/test-lock.c: Likewise.
50568         * tests/test-lseek.c: Likewise.
50569         * tests/test-malloca.c: Likewise.
50570         * tests/test-math.c: Likewise.
50571         * tests/test-mbscasecmp.c: Likewise.
50572         * tests/test-mbscasestr1.c: Likewise.
50573         * tests/test-mbscasestr2.c: Likewise.
50574         * tests/test-mbscasestr3.c: Likewise.
50575         * tests/test-mbscasestr4.c: Likewise.
50576         * tests/test-mbschr.c: Likewise.
50577         * tests/test-mbscspn.c: Likewise.
50578         * tests/test-mbsncasecmp.c: Likewise.
50579         * tests/test-mbspbrk.c: Likewise.
50580         * tests/test-mbspcasecmp.c: Likewise.
50581         * tests/test-mbsrchr.c: Likewise.
50582         * tests/test-mbsspn.c: Likewise.
50583         * tests/test-mbsstr1.c: Likewise.
50584         * tests/test-mbsstr2.c: Likewise.
50585         * tests/test-mbsstr3.c: Likewise.
50586         * tests/test-md5.c: Likewise.
50587         * tests/test-memmem.c: Likewise.
50588         * tests/test-netinet_in.c: Likewise.
50589         * tests/test-open.c: Likewise.
50590         * tests/test-printf-frexp.c: Likewise.
50591         * tests/test-printf-frexpl.c: Likewise.
50592         * tests/test-printf-posix.c: Likewise.
50593         * tests/test-printf-posix.h: Likewise.
50594         * tests/test-rbtree_list.c: Likewise.
50595         * tests/test-rbtree_oset.c: Likewise.
50596         * tests/test-rbtreehash_list.c: Likewise.
50597         * tests/test-read-file.c: Likewise.
50598         * tests/test-rijndael.c: Likewise.
50599         * tests/test-search.c: Likewise.
50600         * tests/test-signbit.c: Likewise.
50601         * tests/test-sleep.c: Likewise.
50602         * tests/test-snprintf-posix.c: Likewise.
50603         * tests/test-snprintf-posix.h: Likewise.
50604         * tests/test-snprintf.c: Likewise.
50605         * tests/test-sprintf-posix.c: Likewise.
50606         * tests/test-sprintf-posix.h: Likewise.
50607         * tests/test-stat-time.c: Likewise.
50608         * tests/test-stdbool.c: Likewise.
50609         * tests/test-stdint.c: Likewise.
50610         * tests/test-stdio.c: Likewise.
50611         * tests/test-stdlib.c: Likewise.
50612         * tests/test-stpncpy.c: Likewise.
50613         * tests/test-strcasestr.c: Likewise.
50614         * tests/test-striconv.c: Likewise.
50615         * tests/test-striconveh.c: Likewise.
50616         * tests/test-striconveha.c: Likewise.
50617         * tests/test-string.c: Likewise.
50618         * tests/test-sys_select.c: Likewise.
50619         * tests/test-sys_socket.c: Likewise.
50620         * tests/test-sys_stat.c: Likewise.
50621         * tests/test-sys_time.c: Likewise.
50622         * tests/test-sysexits.c: Likewise.
50623         * tests/test-time.c: Likewise.
50624         * tests/test-tls.c: Likewise.
50625         * tests/test-trunc.c: Likewise.
50626         * tests/test-truncf.c: Likewise.
50627         * tests/test-truncl.c: Likewise.
50628         * tests/test-unistd.c: Likewise.
50629         * tests/test-vasnprintf-posix.c: Likewise.
50630         * tests/test-vasnprintf-posix2.c: Likewise.
50631         * tests/test-vasnprintf.c: Likewise.
50632         * tests/test-vasprintf-posix.c: Likewise.
50633         * tests/test-vasprintf.c: Likewise.
50634         * tests/test-verify.c: Likewise.
50635         * tests/test-vfprintf-posix.c: Likewise.
50636         * tests/test-vprintf-posix.c: Likewise.
50637         * tests/test-vsnprintf-posix.c: Likewise.
50638         * tests/test-vsnprintf.c: Likewise.
50639         * tests/test-vsprintf-posix.c: Likewise.
50640         * tests/test-wchar.c: Likewise.
50641         * tests/test-wctype.c: Likewise.
50642         * tests/test-wcwidth.c: Likewise.
50643         * tests/test-xstrtol.c: Likewise.
50644         * tests/test-xvasprintf.c: Likewise.
50645         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50646         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50650         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50653         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50654         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50655         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50656         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50657         * tests/uniname/test-uninames.c: Likewise.
50658         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50659         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50660         * tests/unistdio/test-u16-printf1.h: Likewise.
50661         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50662         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50663         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50664         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50665         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50666         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50667         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50668         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50669         * tests/unistdio/test-u32-printf1.h: Likewise.
50670         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50671         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50672         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50673         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50674         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50675         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50676         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50677         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50678         * tests/unistdio/test-u8-printf1.h: Likewise.
50679         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50680         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50681         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50682         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50683         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50684         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50685         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50686         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50687         * tests/unistdio/test-ulc-printf1.h: Likewise.
50688         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50689         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50690         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50691         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50692         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50693         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50694         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50695         * tests/uniwidth/test-u16-width.c: Likewise.
50696         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50697         * tests/uniwidth/test-u32-width.c: Likewise.
50698         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50699         * tests/uniwidth/test-u8-width.c: Likewise.
50700         * tests/uniwidth/test-uc_width.c: Likewise.
50701         * config/srclist-update: Likewise.
50702         (fixlicense): Update to GPLv3+.
50703
50704         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50705         * tests/test-tsearch.c: Change copyright notice.
50706
50707         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50708         * lib/c-strcaseeq.h: Change copyright notice.
50709         * lib/streq.h: Likewise.
50710         * lib/uniconv.h: Likewise.
50711         * lib/uniconv/u-conv-from-enc.h: Likewise.
50712         * lib/uniconv/u-conv-to-enc.h: Likewise.
50713         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50714         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50715         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50716         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50717         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50718         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50719         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50720         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50721         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50722         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50723         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50724         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50725         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50726         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50727         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50728         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50729         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50730         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50731         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50732         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50733         * lib/uniname.h: Likewise.
50734         * lib/uniname/uniname.c: Likewise.
50735         * lib/unistdio.h: Likewise.
50736         * lib/unistdio/u-asnprintf.h: Likewise.
50737         * lib/unistdio/u-asprintf.h: Likewise.
50738         * lib/unistdio/u-printf-args.c: Likewise.
50739         * lib/unistdio/u-printf-args.h: Likewise.
50740         * lib/unistdio/u-printf-parse.h: Likewise.
50741         * lib/unistdio/u-snprintf.h: Likewise.
50742         * lib/unistdio/u-sprintf.h: Likewise.
50743         * lib/unistdio/u-vasprintf.h: Likewise.
50744         * lib/unistdio/u-vsnprintf.h: Likewise.
50745         * lib/unistdio/u-vsprintf.h: Likewise.
50746         * lib/unistdio/u16-asnprintf.c: Likewise.
50747         * lib/unistdio/u16-asprintf.c: Likewise.
50748         * lib/unistdio/u16-printf-parse.c: Likewise.
50749         * lib/unistdio/u16-snprintf.c: Likewise.
50750         * lib/unistdio/u16-sprintf.c: Likewise.
50751         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50752         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50753         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50754         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50755         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50756         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50757         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50758         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50759         * lib/unistdio/u16-vasnprintf.c: Likewise.
50760         * lib/unistdio/u16-vasprintf.c: Likewise.
50761         * lib/unistdio/u16-vsnprintf.c: Likewise.
50762         * lib/unistdio/u16-vsprintf.c: Likewise.
50763         * lib/unistdio/u32-asnprintf.c: Likewise.
50764         * lib/unistdio/u32-asprintf.c: Likewise.
50765         * lib/unistdio/u32-printf-parse.c: Likewise.
50766         * lib/unistdio/u32-snprintf.c: Likewise.
50767         * lib/unistdio/u32-sprintf.c: Likewise.
50768         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50769         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50770         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50771         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50772         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50773         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50774         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50775         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50776         * lib/unistdio/u32-vasnprintf.c: Likewise.
50777         * lib/unistdio/u32-vasprintf.c: Likewise.
50778         * lib/unistdio/u32-vsnprintf.c: Likewise.
50779         * lib/unistdio/u32-vsprintf.c: Likewise.
50780         * lib/unistdio/u8-asnprintf.c: Likewise.
50781         * lib/unistdio/u8-asprintf.c: Likewise.
50782         * lib/unistdio/u8-printf-parse.c: Likewise.
50783         * lib/unistdio/u8-snprintf.c: Likewise.
50784         * lib/unistdio/u8-sprintf.c: Likewise.
50785         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50786         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50787         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50788         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50789         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50790         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50791         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50792         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50793         * lib/unistdio/u8-vasnprintf.c: Likewise.
50794         * lib/unistdio/u8-vasprintf.c: Likewise.
50795         * lib/unistdio/u8-vsnprintf.c: Likewise.
50796         * lib/unistdio/u8-vsprintf.c: Likewise.
50797         * lib/unistdio/ulc-asnprintf.c: Likewise.
50798         * lib/unistdio/ulc-asprintf.c: Likewise.
50799         * lib/unistdio/ulc-printf-parse.c: Likewise.
50800         * lib/unistdio/ulc-snprintf.c: Likewise.
50801         * lib/unistdio/ulc-sprintf.c: Likewise.
50802         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50803         * lib/unistdio/ulc-vasprintf.c: Likewise.
50804         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50805         * lib/unistdio/ulc-vsprintf.c: Likewise.
50806         * lib/unistr.h: Likewise.
50807         * lib/unistr/u-cpy-alloc.h: Likewise.
50808         * lib/unistr/u-cpy.h: Likewise.
50809         * lib/unistr/u-endswith.h: Likewise.
50810         * lib/unistr/u-move.h: Likewise.
50811         * lib/unistr/u-set.h: Likewise.
50812         * lib/unistr/u-startswith.h: Likewise.
50813         * lib/unistr/u-stpcpy.h: Likewise.
50814         * lib/unistr/u-stpncpy.h: Likewise.
50815         * lib/unistr/u-strcat.h: Likewise.
50816         * lib/unistr/u-strcpy.h: Likewise.
50817         * lib/unistr/u-strcspn.h: Likewise.
50818         * lib/unistr/u-strdup.h: Likewise.
50819         * lib/unistr/u-strlen.h: Likewise.
50820         * lib/unistr/u-strncat.h: Likewise.
50821         * lib/unistr/u-strncpy.h: Likewise.
50822         * lib/unistr/u-strnlen.h: Likewise.
50823         * lib/unistr/u-strpbrk.h: Likewise.
50824         * lib/unistr/u-strspn.h: Likewise.
50825         * lib/unistr/u-strstr.h: Likewise.
50826         * lib/unistr/u-strtok.h: Likewise.
50827         * lib/unistr/u16-check.c: Likewise.
50828         * lib/unistr/u16-chr.c: Likewise.
50829         * lib/unistr/u16-cmp.c: Likewise.
50830         * lib/unistr/u16-cpy-alloc.c: Likewise.
50831         * lib/unistr/u16-cpy.c: Likewise.
50832         * lib/unistr/u16-endswith.c: Likewise.
50833         * lib/unistr/u16-mblen.c: Likewise.
50834         * lib/unistr/u16-mbsnlen.c: Likewise.
50835         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50836         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50837         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50838         * lib/unistr/u16-mbtouc.c: Likewise.
50839         * lib/unistr/u16-mbtoucr.c: Likewise.
50840         * lib/unistr/u16-move.c: Likewise.
50841         * lib/unistr/u16-next.c: Likewise.
50842         * lib/unistr/u16-prev.c: Likewise.
50843         * lib/unistr/u16-set.c: Likewise.
50844         * lib/unistr/u16-startswith.c: Likewise.
50845         * lib/unistr/u16-stpcpy.c: Likewise.
50846         * lib/unistr/u16-stpncpy.c: Likewise.
50847         * lib/unistr/u16-strcat.c: Likewise.
50848         * lib/unistr/u16-strchr.c: Likewise.
50849         * lib/unistr/u16-strcmp.c: Likewise.
50850         * lib/unistr/u16-strcpy.c: Likewise.
50851         * lib/unistr/u16-strcspn.c: Likewise.
50852         * lib/unistr/u16-strdup.c: Likewise.
50853         * lib/unistr/u16-strlen.c: Likewise.
50854         * lib/unistr/u16-strmblen.c: Likewise.
50855         * lib/unistr/u16-strmbtouc.c: Likewise.
50856         * lib/unistr/u16-strncat.c: Likewise.
50857         * lib/unistr/u16-strncmp.c: Likewise.
50858         * lib/unistr/u16-strncpy.c: Likewise.
50859         * lib/unistr/u16-strnlen.c: Likewise.
50860         * lib/unistr/u16-strpbrk.c: Likewise.
50861         * lib/unistr/u16-strrchr.c: Likewise.
50862         * lib/unistr/u16-strspn.c: Likewise.
50863         * lib/unistr/u16-strstr.c: Likewise.
50864         * lib/unistr/u16-strtok.c: Likewise.
50865         * lib/unistr/u16-to-u32.c: Likewise.
50866         * lib/unistr/u16-to-u8.c: Likewise.
50867         * lib/unistr/u16-uctomb-aux.c: Likewise.
50868         * lib/unistr/u16-uctomb.c: Likewise.
50869         * lib/unistr/u32-check.c: Likewise.
50870         * lib/unistr/u32-chr.c: Likewise.
50871         * lib/unistr/u32-cmp.c: Likewise.
50872         * lib/unistr/u32-cpy-alloc.c: Likewise.
50873         * lib/unistr/u32-cpy.c: Likewise.
50874         * lib/unistr/u32-endswith.c: Likewise.
50875         * lib/unistr/u32-mblen.c: Likewise.
50876         * lib/unistr/u32-mbsnlen.c: Likewise.
50877         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50878         * lib/unistr/u32-mbtouc.c: Likewise.
50879         * lib/unistr/u32-mbtoucr.c: Likewise.
50880         * lib/unistr/u32-move.c: Likewise.
50881         * lib/unistr/u32-next.c: Likewise.
50882         * lib/unistr/u32-prev.c: Likewise.
50883         * lib/unistr/u32-set.c: Likewise.
50884         * lib/unistr/u32-startswith.c: Likewise.
50885         * lib/unistr/u32-stpcpy.c: Likewise.
50886         * lib/unistr/u32-stpncpy.c: Likewise.
50887         * lib/unistr/u32-strcat.c: Likewise.
50888         * lib/unistr/u32-strchr.c: Likewise.
50889         * lib/unistr/u32-strcmp.c: Likewise.
50890         * lib/unistr/u32-strcpy.c: Likewise.
50891         * lib/unistr/u32-strcspn.c: Likewise.
50892         * lib/unistr/u32-strdup.c: Likewise.
50893         * lib/unistr/u32-strlen.c: Likewise.
50894         * lib/unistr/u32-strmblen.c: Likewise.
50895         * lib/unistr/u32-strmbtouc.c: Likewise.
50896         * lib/unistr/u32-strncat.c: Likewise.
50897         * lib/unistr/u32-strncmp.c: Likewise.
50898         * lib/unistr/u32-strncpy.c: Likewise.
50899         * lib/unistr/u32-strnlen.c: Likewise.
50900         * lib/unistr/u32-strpbrk.c: Likewise.
50901         * lib/unistr/u32-strrchr.c: Likewise.
50902         * lib/unistr/u32-strspn.c: Likewise.
50903         * lib/unistr/u32-strstr.c: Likewise.
50904         * lib/unistr/u32-strtok.c: Likewise.
50905         * lib/unistr/u32-to-u16.c: Likewise.
50906         * lib/unistr/u32-to-u8.c: Likewise.
50907         * lib/unistr/u32-uctomb.c: Likewise.
50908         * lib/unistr/u8-check.c: Likewise.
50909         * lib/unistr/u8-chr.c: Likewise.
50910         * lib/unistr/u8-cmp.c: Likewise.
50911         * lib/unistr/u8-cpy-alloc.c: Likewise.
50912         * lib/unistr/u8-cpy.c: Likewise.
50913         * lib/unistr/u8-endswith.c: Likewise.
50914         * lib/unistr/u8-mblen.c: Likewise.
50915         * lib/unistr/u8-mbsnlen.c: Likewise.
50916         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50917         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50918         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50919         * lib/unistr/u8-mbtouc.c: Likewise.
50920         * lib/unistr/u8-mbtoucr.c: Likewise.
50921         * lib/unistr/u8-move.c: Likewise.
50922         * lib/unistr/u8-next.c: Likewise.
50923         * lib/unistr/u8-prev.c: Likewise.
50924         * lib/unistr/u8-set.c: Likewise.
50925         * lib/unistr/u8-startswith.c: Likewise.
50926         * lib/unistr/u8-stpcpy.c: Likewise.
50927         * lib/unistr/u8-stpncpy.c: Likewise.
50928         * lib/unistr/u8-strcat.c: Likewise.
50929         * lib/unistr/u8-strchr.c: Likewise.
50930         * lib/unistr/u8-strcmp.c: Likewise.
50931         * lib/unistr/u8-strcpy.c: Likewise.
50932         * lib/unistr/u8-strcspn.c: Likewise.
50933         * lib/unistr/u8-strdup.c: Likewise.
50934         * lib/unistr/u8-strlen.c: Likewise.
50935         * lib/unistr/u8-strmblen.c: Likewise.
50936         * lib/unistr/u8-strmbtouc.c: Likewise.
50937         * lib/unistr/u8-strncat.c: Likewise.
50938         * lib/unistr/u8-strncmp.c: Likewise.
50939         * lib/unistr/u8-strncpy.c: Likewise.
50940         * lib/unistr/u8-strnlen.c: Likewise.
50941         * lib/unistr/u8-strpbrk.c: Likewise.
50942         * lib/unistr/u8-strrchr.c: Likewise.
50943         * lib/unistr/u8-strspn.c: Likewise.
50944         * lib/unistr/u8-strstr.c: Likewise.
50945         * lib/unistr/u8-strtok.c: Likewise.
50946         * lib/unistr/u8-to-u16.c: Likewise.
50947         * lib/unistr/u8-to-u32.c: Likewise.
50948         * lib/unistr/u8-uctomb-aux.c: Likewise.
50949         * lib/unistr/u8-uctomb.c: Likewise.
50950         * lib/unitypes.h: Likewise.
50951         * lib/uniwidth.h: Likewise.
50952         * lib/uniwidth/cjk.h: Likewise.
50953         * lib/uniwidth/u16-strwidth.c: Likewise.
50954         * lib/uniwidth/u16-width.c: Likewise.
50955         * lib/uniwidth/u32-strwidth.c: Likewise.
50956         * lib/uniwidth/u32-width.c: Likewise.
50957         * lib/uniwidth/u8-strwidth.c: Likewise.
50958         * lib/uniwidth/u8-width.c: Likewise.
50959         * lib/uniwidth/width.c: Likewise.
50960
50961 2007-10-07  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50964         The file is still under LGPL (see modules/inttypes).
50965
50966 2007-10-06  Bruno Haible  <bruno@clisp.org>
50967
50968         * modules/trunc (Dependencies): Add 'extensions'.
50969         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50970         Reported by Ben Pfaff <blp@gnu.org>.
50971
50972 2007-10-06  Bruno Haible  <bruno@clisp.org>
50973
50974         * modules/freopen-tests: New file.
50975         * tests/test-freopen.c: New file.
50976
50977         * modules/fopen-tests: New file.
50978         * tests/test-fopen.c: New file.
50979
50980         * modules/fopen: New file.
50981         * lib/fopen.c: New file.
50982         * m4/fopen.m4: New file.
50983         * modules/freopen: New file.
50984         * lib/freopen.c: New file.
50985         * m4/freopen.m4: New file.
50986         * lib/stdio.in.h (fopen, freopen): New declarations.
50987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50988         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50989         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50990         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50991         * doc/functions/fopen.texi: Mention the 'fopen' module.
50992         * doc/functions/freopen.texi: Mention the 'freopen' module.
50993
50994 2007-10-06  Bruno Haible  <bruno@clisp.org>
50995
50996         * modules/open-tests: New file.
50997         * tests/test-open.c: New file.
50998
50999         * modules/open: New file.
51000         * lib/open.c: New file.
51001         * m4/open.m4: New file.
51002         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51003         lib/open.c does.
51004         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51005         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51006         macros.
51007         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51008         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51009         REPLACE_OPEN.
51010         * doc/functions/open.texi: Mention the 'open' module.
51011
51012 2007-10-04  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/ceill-tests: New file.
51015         * tests/test-ceill.c: New file.
51016
51017         * modules/ceill: New file.
51018         * lib/ceill.c: Replace entire file.
51019         * m4/ceill.m4: New file.
51020         * lib/math.in.h (ceill): Replace declaration.
51021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51022         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51023         * doc/functions/ceill.texi: Mention the 'ceill' module.
51024         * modules/mathl (Files): Remove lib/ceill.c.
51025         (Depends-on): Add ceill.
51026
51027 2007-10-04  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/ceilf-tests: New file.
51030         * tests/test-ceilf.c: New file.
51031
51032         * modules/ceilf: New file.
51033         * lib/ceil.c: New file.
51034         * lib/ceilf.c: New file.
51035         * m4/ceilf.m4: New file.
51036         * lib/math.in.h (ceilf): New declaration.
51037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51038         HAVE_DECL_CEILF.
51039         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51040         HAVE_DECL_CEILF.
51041         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51042
51043 2007-10-04  Bruno Haible  <bruno@clisp.org>
51044
51045         * modules/floorl-tests: New file.
51046         * tests/test-floorl.c: New file.
51047
51048         * modules/floorl: New file.
51049         * lib/floorl.c: Replace entire file.
51050         * m4/floorl.m4: New file.
51051         * lib/math.in.h (floorl): Replace declaration.
51052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51053         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51054         * doc/functions/floorl.texi: Mention the 'floorl' module.
51055         * modules/mathl (Files): Remove lib/floorl.c.
51056         (Depends-on): Add floorl.
51057
51058 2007-10-04  Bruno Haible  <bruno@clisp.org>
51059
51060         * modules/floorf-tests: New file.
51061         * tests/test-floorf.c: New file.
51062
51063         * modules/floorf: New file.
51064         * lib/floor.c: New file.
51065         * lib/floorf.c: New file.
51066         * m4/floorf.m4: New file.
51067         * lib/math.in.h (floorf): New declaration.
51068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51069         HAVE_DECL_FLOORF.
51070         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51071         HAVE_DECL_FLOORF.
51072         * doc/functions/floorf.texi: Mention the 'floorf' module.
51073
51074 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51075             Bruno Haible  <bruno@clisp.org>
51076
51077         Advertise for the Git server instead of the CVS server.
51078         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51079         repository instead of the CVS one.
51080         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51081         about all VCS systems generically.
51082         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51083
51084 2007-10-04  Bruno Haible  <bruno@clisp.org>
51085
51086         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51087         means.
51088         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51089
51090 2007-10-04  Bruno Haible  <bruno@clisp.org>
51091
51092         * modules/truncl-tests: New file.
51093         * tests/test-truncl.c: New file.
51094
51095         * modules/truncl: New file.
51096         * lib/truncl.c: New file.
51097         * m4/truncl.m4: New file.
51098         * lib/math.in.h (truncl): New declaration.
51099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51100         HAVE_DECL_TRUNCL.
51101         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51102         HAVE_DECL_TRUNCL.
51103         * doc/functions/truncl.texi: Mention the 'truncl' module.
51104
51105 2007-10-04  Bruno Haible  <bruno@clisp.org>
51106
51107         * modules/truncf-tests: New file.
51108         * tests/test-truncf.c: New file.
51109
51110         * modules/truncf: New file.
51111         * lib/trunc.c: Make paramerizable through USE_* macros.
51112         * lib/truncf.c: New file.
51113         * m4/truncf.m4: New file.
51114         * lib/math.in.h (truncf): New declaration.
51115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51116         HAVE_DECL_TRUNCF.
51117         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51118         HAVE_DECL_TRUNCF.
51119         * doc/functions/truncf.texi: Mention the 'truncf' module.
51120
51121 2007-10-03  Bruno Haible  <bruno@clisp.org>
51122
51123         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51124         augmentation also for tests modules.
51125         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51126         * modules/atexit-tests (Makefile.am): Likewise.
51127         * modules/binary-io-tests (Makefile.am): Likewise.
51128         * modules/c-strcase-tests (Makefile.am): Likewise.
51129         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51130         * modules/canonicalize-tests (Makefile.am): Likewise.
51131         * modules/closein-tests (Makefile.am): Likewise.
51132         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51133         * modules/freadahead-tests (Makefile.am): Likewise.
51134         * modules/fseek-tests (Makefile.am): Likewise.
51135         * modules/fseeko-tests (Makefile.am): Likewise.
51136         * modules/ftell-tests (Makefile.am): Likewise.
51137         * modules/ftello-tests (Makefile.am): Likewise.
51138         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51139         * modules/isnanl-tests (Makefile.am): Likewise.
51140         * modules/lseek-tests (Makefile.am): Likewise.
51141         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51142         * modules/mbscasestr-tests (Makefile.am): Likewise.
51143         * modules/mbschr-tests (Makefile.am): Likewise.
51144         * modules/mbscspn-tests (Makefile.am): Likewise.
51145         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51146         * modules/mbspbrk-tests (Makefile.am): Likewise.
51147         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51148         * modules/mbsrchr-tests (Makefile.am): Likewise.
51149         * modules/mbsspn-tests (Makefile.am): Likewise.
51150         * modules/mbsstr-tests (Makefile.am): Likewise.
51151         * modules/printf-posix-tests (Makefile.am): Likewise.
51152         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51153         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51154         * modules/tsearch-tests (Makefile.am): Likewise.
51155         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51156         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51157         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51158         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51159         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51160         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51161         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51162         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51163         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51164         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51165         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51166         * modules/xstrtol-tests (Makefile.am): Likewise.
51167         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51168         * modules/yesno-tests (Makefile.am): Likewise.
51169
51170 2007-10-03  Bruno Haible  <bruno@clisp.org>
51171
51172         * modules/trunc-tests: New file.
51173         * tests/test-trunc.c: New file.
51174
51175         * modules/trunc: New file.
51176         * lib/trunc.c: New file.
51177         * m4/trunc.m4: New file.
51178         * lib/math.in.h (trunc): New declaration.
51179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51180         HAVE_DECL_TRUNC.
51181         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51182         HAVE_DECL_TRUNC.
51183         * doc/functions/trunc.texi: Mention the 'trunc' module.
51184
51185 2007-10-03  Bruno Haible  <bruno@clisp.org>
51186
51187         * tests/test-fpending.c: New file, mostly copied
51188         from coreutils/lib/t-fpending.c.
51189         * modules/fpending-tests: New file.
51190
51191 2007-10-03  Bruno Haible  <bruno@clisp.org>
51192
51193         Port the stdio extensions to QNX (untested).
51194         * lib/fseterr.c (fseterr): Add support for QNX.
51195         * lib/fbufmode.c (fbufmode): Likewise.
51196         * lib/freadable.c (freadable): Likewise.
51197         * lib/fwritable.c (fwritable): Likewise.
51198         * lib/freading.c (freading): Likewise.
51199         * lib/fwriting.c (fwriting): Likewise.
51200         * lib/freadahead.c (freadahed): Likewise.
51201         * lib/fpurge.c (fpurge): Likewise.
51202         * lib/fseeko.c (rpl_fseeko): Likewise.
51203
51204 2007-10-03  Bruno Haible  <bruno@clisp.org>
51205             Jim Meyering  <jim@meyering.net>
51206             Eric Blake  <ebb9@byu.net>
51207
51208         * doc/relocatable.texi: Use @command instead of @program.
51209
51210 2007-10-02  Jim Meyering  <jim@meyering.net>
51211
51212         Perform one more "_.h" -> ".in.h" substitution.
51213         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51214         instead of unistd_.h here, too.
51215
51216 2007-10-01  Bruno Haible  <bruno@clisp.org>
51217
51218         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51219         Needed for the alloca-opt module.
51220
51221 2007-09-30  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51224         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51225         alloca_.h.
51226         * lib/argz.in.h: Renamed from lib/argz_.h.
51227         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51228         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51229         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51230         byteswap_.h.
51231         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51232         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51233         dirent_.h.
51234         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51235         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51236         fcntl_.h.
51237         * lib/float.in.h: Renamed from lib/float_.h.
51238         * modules/float (Files, Makefile.am): Use float.in.h instead of
51239         float_.h.
51240         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51241         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51242         fnmatch_.h.
51243         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51244         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51245         getopt_.h.
51246         * lib/glob.in.h: Renamed from lib/glob_.h.
51247         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51248         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51249         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51250         iconv_.h.
51251         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51252         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51253         inttypes_.h.
51254         * lib/locale.in.h: Renamed from lib/locale_.h.
51255         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51256         locale_.h.
51257         * lib/math.in.h: Renamed from lib/math_.h.
51258         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51259         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51260         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51261         of netinet_in_.h. Add dependency.
51262         * lib/poll.in.h: Renamed from lib/poll_.h.
51263         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51264         * lib/search.in.h: Renamed from lib/search_.h.
51265         * modules/search (Files, Makefile.am): Use search.in.h instead of
51266         search_.h.
51267         * lib/signal.in.h: Renamed from lib/signal_.h.
51268         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51269         _signal.h.
51270         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51271         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51272         stdbool_.h.
51273         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51274         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51275         stdint_.h.
51276         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51277         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51278         stdio_.h.
51279         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51280         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51281         stdlib_.h.
51282         * lib/string.in.h: Renamed from lib/string_.h.
51283         * modules/string (Files, Makefile.am): Use string.in.h instead of
51284         string_.h.
51285         * doc/gnulib-tool.texi (Initial import): Update.
51286         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51287         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51288         of sys_select_.h. Add dependency.
51289         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51290         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51291         of sys_socket_.h.
51292         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51293         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51294         sys_stat_.h.
51295         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51296         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51297         sys_time_.h.
51298         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51299         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51300         sysexits_.h.
51301         * lib/time.in.h: Renamed from lib/time_.h.
51302         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51303         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51304         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51305         unistd_.h.
51306         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51307         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51308         wchar_.h.
51309         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51310         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51311         wctype_.h.
51312         * build-aux/bootstrap (slurp): Update.
51313         * lib/.cppi-disable: Update.
51314
51315 2007-09-30  Bruno Haible  <bruno@clisp.org>
51316
51317         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51318         Needed on BeOS.
51319
51320 2007-09-30  Bruno Haible  <bruno@clisp.org>
51321
51322         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51323
51324 2007-09-29  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51327
51328 2007-09-29  Bruno Haible  <bruno@clisp.org>
51329
51330         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51331         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51332         * build-aux/install-reloc: Compile also areadlink.c.
51333         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51334
51335 2007-09-29  Bruno Haible  <bruno@clisp.org>
51336
51337         * gnulib-tool (func_emit_initmacro_done): Indentation.
51338
51339 2007-09-29  Bruno Haible  <bruno@clisp.org>
51340
51341         * README: Add CVS checkout update instructions.
51342         Info from Bob Proulx <bob@proulx.com>.
51343
51344 2007-09-28  Eric Blake  <ebb9@byu.net>
51345
51346         Provide move-if-change.
51347         * build-aux/move-if-change: New file, based on best practice
51348         rather than any canonical upstream location.
51349
51350 2007-09-28  Jim Meyering  <jim@meyering.net>
51351
51352         Fix canonicalize loop-detection corner case.
51353         Do not attempt to stat the symlink values stored via seen_triple.
51354         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51355         on linux-2.6.18, (but not 2.6.22).
51356         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51357         triple_compare.  The former compares dev,ino,filename, while the latter
51358         would actually stat dirname(filename) when dev and ino were equal.
51359         * lib/hash-triple.c: Install <string.h>.
51360         (STREQ): Define.
51361         (triple_compare_ino_str): New function.
51362         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51363
51364 2007-09-28  Eric Blake  <ebb9@byu.net>
51365
51366         Enforce that AC_REPLACE_FUNCS files exist.
51367         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51368         override check for typos.
51369
51370         Fix test-closein on Solaris 10.
51371         * tests/test-closein.c (main): Don't assume stdin can be inherited
51372         closed on all systems.
51373         * tests/test-closein.sh: Likewise.
51374         Reported by Piotr Tarnowski.
51375
51376 2007-09-28  Jim Meyering  <jim@meyering.net>
51377
51378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51379
51380 2007-09-27  Jim Meyering  <jim@meyering.net>
51381
51382         canonicalize: Avoid a false-positive cycle failure.
51383         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51384         Sort.  Remove cycle-check.
51385         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51386         not cycle-check.h.
51387         (seen_triple): New function.
51388         (canonicalize_filename_mode): Use it instead of cycle-check.
51389         * tests/test-canonicalize.c: Add a test for this bug.
51390         * tests/test-canonicalize.sh: Set up and run the test.
51391
51392         New module, file-set, from coreutils.
51393         * modules/file-set: Define it.
51394         * lib/file-set.c, lib/file-set.h: Implement.
51395
51396         New module, hash-triple, from coreutils.
51397         * modules/hash-triple: Define it.
51398         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51399
51400 2007-09-25  Eric Blake  <ebb9@byu.net>
51401
51402         Fix strerror on Interix.
51403         * lib/string_.h (strerror): Declare replacement.
51404         * doc/functions/strerror.texi (strerror): Document the Interix
51405         shortcoming.
51406         * modules/string (Makefile.am): Support new hooks.
51407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51408         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51409         gl_FUNC_STRERROR_SEPARATE.
51410         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51411         * lib/strerror.c (rpl_strerror): Provide replacement.
51412         * modules/strerror (Depends-on): Add string.
51413         (configure.ac): Detect use of module.
51414         * tests/test-strerror.c: New file.
51415         * modules/strerror-tests: New test module.
51416         * modules/argp (Depends-on): Add strerror.
51417         * modules/error (Depends-on): Likewise.
51418         Reported by Martin Koeppe.
51419
51420 2007-09-24  Bruno Haible  <bruno@clisp.org>
51421
51422         * README: Update git instructions.
51423
51424 2007-09-24  Eric Blake  <ebb9@byu.net>
51425
51426         Revert fpending breakage from 2007-09-08.
51427         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51428         __fpending.c.
51429
51430 2007-09-24  Jim Meyering  <jim@meyering.net>
51431
51432         filenamecat.c: Add a test.
51433         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51434         showing how the function works when DIR is the empty string.
51435
51436 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51437
51438         * tests/test-canonicalize.sh: Turn on executable bit.
51439
51440 2007-09-19  Eric Blake  <ebb9@byu.net>
51441
51442         * README: Update CVS instructions.
51443
51444 2007-09-18  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/areadlink: New file.
51447         * lib/areadlink.h (areadlink): New declaration.
51448         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51449
51450 2007-09-17  Jim Meyering  <jim@meyering.net>
51451
51452         * lib/savewd.c (ESTALE) [!defined]: Define.
51453         Reported to be required on Interix by Martin Koeppe.
51454
51455 2007-09-17  Bruno Haible  <bruno@clisp.org>
51456
51457         * gnulib-tool (func_version): Use $version.
51458
51459 2007-09-16  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51462         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51463         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51464         Reported by Greg Schafer <gschafer@zip.com.au>.
51465
51466 2007-09-15  Bruno Haible  <bruno@clisp.org>
51467
51468         * gnulib-tool (sed): Try a little harder to make bash understand the
51469         alias.
51470         Reported by Bruce Korb <bruce.korb@gmail.com>.
51471
51472 2007-09-13  Eric Blake  <ebb9@byu.net>
51473
51474         * ChangeLog: Remove conflict markers.
51475
51476 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51477
51478         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51479         Reported by Bruno Haible <bruno@clisp.org>.
51480
51481 2007-09-12  Bruno Haible  <bruno@clisp.org>
51482
51483         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51484         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51485         is not defined.
51486
51487 2007-09-12  Eric Blake  <ebb9@byu.net>
51488
51489         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51491         Autoconf definition.
51492         * modules/euidaccess (Depends-on): Add extensions, for
51493         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51494         * modules/fnmatch (Depends-on): Likewise.
51495         * modules/getaddrinfo (Depends-on): Likewise.
51496         * modules/getdelim (Depends-on): Likewise.
51497         * modules/getline (Depends-on): Likewise.
51498         * modules/getsubopt (Depends-on): Likewise.
51499         * modules/gettext (Depends-on): Likewise.
51500         * modules/group-member (Depends-on): Likewise.
51501         * modules/mbchar (Depends-on): Likewise.
51502         * modules/memmem (Depends-on): Likewise.
51503         * modules/mempcpy (Depends-on): Likewise.
51504         * modules/memrchr (Depends-on): Likewise.
51505         * modules/pagealign_alloc (Depends-on): Likewise.
51506         * modules/readutmp (Depends-on): Likewise.
51507         * modules/stpcpy (Depends-on): Likewise.
51508         * modules/stpncpy (Depends-on): Likewise.
51509         * modules/strchrnul (Depends-on): Likewise.
51510         * modules/strndup (Depends-on): Likewise.
51511         * modules/strsep (Depends-on): Likewise.
51512         * modules/strverscmp (Depends-on): Likewise.
51513         * modules/vasprintf (Depends-on): Likewise.
51514         * modules/wcwidth (Depends-on): Likewise.
51515         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51516         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51517         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51520         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51521         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51522         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51523         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51524         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51526         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51527         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51528         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51529         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51530         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51532         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51534         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51536         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51537         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51538         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51539         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51541         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51542         so that lock.m4 can be used in gettext without extensions module.
51543
51544 2007-09-11  Bruno Haible  <bruno@clisp.org>
51545
51546         * m4/isc-posix.m4: Remove file.
51547         Suggested by Eric Blake.
51548
51549 2007-09-11  Eric Blake  <ebb9@byu.net>
51550
51551         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51552
51553 2007-09-10  Bruno Haible  <bruno@clisp.org>
51554
51555         * posix-modules: Fix typo in error message.
51556         Reported by Matt <mkraai@beckman.com>.
51557
51558 2007-09-09  Bruno Haible  <bruno@clisp.org>
51559
51560         * doc/functions/getdelim.texi: Update list of platforms lacking the
51561         function.
51562         * doc/functions/getline.texi: Likewise.
51563
51564 2007-09-09  Jim Meyering  <jim@meyering.net>
51565
51566         * lib/hash.c (hash_initialize): Detect calloc failure.
51567         Reported by Bruno Haible.
51568
51569 2007-09-09  Bruno Haible  <bruno@clisp.org>
51570
51571         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51572         malloc or realloc fails.
51573
51574 2007-09-09  Bruno Haible  <bruno@clisp.org>
51575
51576         * modules/getcwd (Depends-on): Add malloc-posix.
51577         * modules/glob (Depends-on): Likewise.
51578         * modules/putenv (Depends-on): Likewise.
51579         * modules/strdup (Depends-on): Likewise.
51580         * modules/getdelim (Depends-on): Add realloc-posix.
51581         * modules/read-file (Depends-on): Likewise.
51582
51583 2007-09-09  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51586         (gl_FUNC_MALLOC_POSIX): Require it.
51587         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51588         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51589         * modules/realloc (Files): Add m4/malloc.m4.
51590         * modules/calloc (Files): Likewise.
51591
51592 2007-09-09  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/malloc-posix: New file.
51595         * modules/malloc (Depends-on): Add malloc-posix.
51596         * lib/malloc.c: Include errno.h.
51597         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51598         and a POSIX-compatible malloc into a single function. Set ENOMEM
51599         when returning NULL.
51600         * m4/malloc.m4: New file.
51601         * doc/functions/malloc.texi: Mention the malloc-posix module.
51602         * lib/stdlib_.h (malloc): New declaration.
51603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51604         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51605         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51606         and HAVE_MALLOC_POSIX.
51607
51608 2007-09-09  Bruno Haible  <bruno@clisp.org>
51609
51610         * modules/realloc-posix: New file.
51611         * modules/realloc (Depends-on): Add realloc-posix.
51612         * lib/realloc.c: Include errno.h.
51613         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51614         and a POSIX-compatible realloc into a single function. Set ENOMEM
51615         when returning NULL.
51616         * m4/realloc.m4: New file.
51617         * doc/functions/realloc.texi: Mention the realloc-posix module.
51618         * lib/stdlib_.h (realloc): New declaration.
51619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51620         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51621         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51622         and HAVE_REALLOC_POSIX.
51623
51624 2007-09-09  Bruno Haible  <bruno@clisp.org>
51625
51626         * modules/calloc-posix: New file.
51627         * modules/calloc (Depends-on): Add calloc-posix.
51628         * lib/calloc.c: Include errno.h.
51629         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51630         and a POSIX-compatible calloc into a single function. Set ENOMEM
51631         when returning NULL.
51632         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51633         * doc/functions/calloc.texi: Mention the calloc-posix module.
51634         * lib/stdlib_.h (calloc): New declaration.
51635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51636         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51637         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51638         and HAVE_CALLOC_POSIX.
51639
51640 2007-09-09  Bruno Haible  <bruno@clisp.org>
51641
51642         Allow for modules to show an arbitrary notice.
51643         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51644         * gnulib-tool: New option --extract-notice.
51645         (func_usage): Document it.
51646         (sed_extract_prog): Update.
51647         (func_get_notice): New function.
51648         (func_modules_notice): New function.
51649         (func_import, func_create_testdir): Invoke it.
51650         Suggested by Jim Meyering.
51651
51652 2007-09-09  Bruno Haible  <bruno@clisp.org>
51653
51654         * gnulib-tool: New options --verbose, --quiet.
51655         (func_usage): Document them.
51656         (verbose): New variable.
51657         (func_execute_command): New function.
51658         (func_import): Don't show the module list and the file list if
51659         $verbose < 0.
51660         (func_create_testdir): Likewise. Use func_execute_command.
51661         (func_create_megatestdir): Use func_execute_command.
51662
51663 2007-09-08  Bruno Haible  <bruno@clisp.org>
51664
51665         * gnulib-tool (func_import): Prefer rsync over wget when available,
51666         for fetching the PO files.
51667
51668 2007-09-08  Bruno Haible  <bruno@clisp.org>
51669
51670         * posix-modules: New file. Portions copied from gnulib-tool.
51671         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51672
51673 2007-09-08  Jim Meyering  <jim@meyering.net>
51674
51675         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51676         * lib/fpending.h: Rename from __fpending.h.
51677         * lib/fpending.c: Rename from __fpending.c.
51678         Include "fpending.h", not "__fpending.h".
51679         * lib/__fpending.h, lib/__fpending.c: Remove files.
51680         * modules/fpending (Files): Reflect new file names.
51681         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51682
51683 2007-09-08  Bruno Haible  <bruno@clisp.org>
51684
51685         * m4/inttypes-h.m4: Remove stub file.
51686
51687 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51688
51689         * doc/headers/stdint.texi: Discuss #include_next issue.
51690
51691 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51692
51693         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51694
51695 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51696
51697         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51698         in variable name.
51699
51700 2007-09-03  Jim Meyering  <jim@meyering.net>
51701
51702         New module: git-version-gen.
51703         * modules/git-version-gen: New file.
51704
51705         Import changes from coreutils for bootstrap script.
51706
51707         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51708
51709         bootstrap: uses rsync to download the .po files
51710         * build-aux/bootstrap (po_download_command_format): New global.
51711         (download_po_files): Use rsync.
51712         (update_po_files): Don't remove .po files after download,
51713         so future rsync runs can take advantage of the copies.
51714
51715         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51716
51717         Solve the unnecessary-.po-file-regeneration problem once and for all.
51718         * build-aux/bootstrap (download_po_files): New function, renamed from
51719         get_translations.  Now, downloads, but doesn't update LINGUAS.
51720         (update_po_files): New function.
51721
51722         bootstrap: Ignore more.
51723         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51724         uniwidth to e.g., lib/.gitignore.
51725         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51726
51727         * build-aux/bootstrap: New setting: vc_ignore.
51728         (insert_sorted_if_absent): Create $file if absent.
51729         Adapt to new, possibly empty, list: $vc_ignore.
51730
51731         bootstrap: generate more ignorable names
51732         * build-aux/bootstrap (slurp): When generating ignorable names,
51733         also map .sin to .sed, .gperf to .c, and .y to .c.
51734
51735 2007-09-03  Jim Meyering  <jim@meyering.net>
51736
51737         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51738         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51739
51740 2007-09-02  Bruno Haible  <bruno@clisp.org>
51741
51742         Fix mis-recognition of 'mcs' on QNX 6.
51743         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51744         output contains the string "Mono".
51745         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51746         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51747
51748 2007-09-01  Bruno Haible  <bruno@clisp.org>
51749
51750         Fix collision between uniwidth/* and linebreak modules.
51751         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51752         u32_width): Remove declarations.
51753         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51754         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51755         streq3, streq2, streq1, streq0): Remove functions.
51756         (STREQ): Remove macro.
51757         (is_cjk_encoding): Remove function.
51758         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51759         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51760         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51761         * NEWS: Document the change.
51762
51763 2007-09-01  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/streq.h: Add double-inclusion guard.
51766
51767 2007-09-01  Karl Berry  <karl@gnu.org>
51768
51769         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51770
51771 2007-08-28  Jim Meyering  <jim@meyering.net>
51772
51773         Rename mreadlink_with_size to areadlink_with_size.
51774         * NEWS: Document the change.
51775         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51776         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51777         * lib/mreadlink.h: Rename this to...
51778         * lib/areadlink.h: ...this.
51779         * modules/mreadlink-with-size: Rename this to...
51780         * modules/areadlink-with-size: ...this.
51781         * lib/canonicalize.c: Reflect the renaming.
51782         * modules/canonicalize: Likewise.
51783
51784 2007-08-26  Bruno Haible  <bruno@clisp.org>
51785
51786         * gnulib-tool (func_import): When deciding which files to remove,
51787         consider also dangling symbolic links.
51788         Reported by Eric Blake.
51789
51790 2007-08-26  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51793
51794 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51795
51796         * lib/readline.c: Don't include getline.h, the prototype is now
51797         found in stdio.h.
51798
51799 2007-08-23  Jim Meyering  <jim@meyering.net>
51800
51801         Getdelim touchup.
51802         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51803         around the funlockfile call, since funlockfile never sets errno.
51804         Don't set errno upon failed realloc.
51805
51806 2007-08-22  Eric Blake  <ebb9@byu.net>
51807
51808         Getline touchups.
51809         * lib/getdelim.c (getdelim): Revert regression that required *n to
51810         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51811         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51812         getdelim, rather than whether implementation is missing.
51813         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51814         * lib/stdio_.h (getline): Also declare if replacement is
51815         required.
51816         * doc/functions/getdelim.texi: New file.
51817         * doc/functions/getline.texi: Likewise.
51818         * doc/gnulib.texi (Function Substitutes): Add new files.
51819         Reported by Bruno Haible.
51820
51821 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51822
51823         * users.txt: Add Guile.
51824
51825 2007-08-22  Eric Blake  <ebb9@byu.net>
51826
51827         * tests/test-getdelim.c (main): Use remove, not unlink.
51828         * tests/test-getline.c (main): Likewise.
51829
51830         Move getline and getdelim into stdio.h, per POSIX 200x.
51831         * modules/getline (Files): Remove getline.h.
51832         (Depends-on): Add stdio.
51833         (configure.ac): Add module indicator.
51834         * modules/getdelim (Files): Remove getdelim.h.
51835         (Depends-on): Add stdio.
51836         (configure.ac): Add module indicator.
51837         * modules/stdio (Makefile.am): Work with new indicators.
51838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51841         * lib/getdelim.h: Delete.
51842         * lib/getline.h: Delete.
51843         * lib/stdio_.h (getdelim, getline): Declare.
51844         * modules/getdelim-tests: New module.
51845         * modules/getline-tests: Likewise.
51846         * tests/test-getdelim.c: New file.
51847         * tests/test-getline.c: Likewise.
51848         * NEWS: Document the change.
51849         * lib/getline.c: Update choice of header.
51850         * lib/csharpcomp.c: Likewise.
51851         * lib/getpass.c: Likewise.
51852         * lib/javacomp.c: Likewise.
51853         * lib/javaversion.c: Likewise.
51854         * lib/yesno.c: Likewise.
51855         * lib/getdelim.c: Likewise.
51856         (getdelim): Set errno on failure, and avoid memory leak.
51857
51858 2007-08-19  Bruno Haible  <bruno@clisp.org>
51859
51860         * modules/closein (Depends-on): Add freadahead.
51861         * lib/closein.c: Include freadahead.h.
51862         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51863         is zero.
51864
51865 2007-08-19  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/freadahead-tests: New file.
51868         * tests/test-freadahead.sh: New file.
51869         * tests/test-freadahead.c: New file.
51870
51871         * modules/freadahead: New file.
51872         * lib/freadahead.h: New file.
51873         * lib/freadahead.c: New file.
51874         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51875         fbufmode, fpurge, freadable, fwritable.
51876
51877 2007-08-19  Eric Blake  <ebb9@byu.net>
51878
51879         Test yesno in combination with closein.
51880         * lib/yesno.c (yesno): Document use of stdin.
51881         * modules/yesno-tests (Files): New module.
51882         * tests/test-yesno.c (main): New file.
51883         * tests/test-yesno.sh: Likewise.
51884
51885 2007-08-19  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51888         * lib/fseeko.c (rpl_fseeko): Likewise.
51889         * lib/fseterr.c (fseterr): Likewise.
51890
51891 2007-08-19  Bruno Haible  <bruno@clisp.org>
51892
51893         * tests/test-lseek.c (main): Disable a test for BeOS.
51894         * doc/functions/lseek.texi: Document the BeOS bug.
51895
51896 2007-08-19  Bruno Haible  <bruno@clisp.org>
51897             Eric Blake  <ebb9@byu.net>
51898
51899         * lib/lseek.c: Include <sys/stat.h>.
51900         (rpl_lseek): Add workaround code also for Unix platforms.
51901         Needed for BeOS.
51902         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51903         * doc/functions/lseek.texi: Document BeOS definiency.
51904
51905 2007-08-18  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/fstrcmp-tests: New file.
51908         * tests/test-fstrcmp.c: New file.
51909
51910 2007-08-18  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/fstrcmp: New file, from GNU gettext with modifications.
51913         * lib/fstrcmp.h: New file, from GNU gettext.
51914         * lib/fstrcmp.c: New file, from GNU gettext.
51915         * MODULES.html.sh (String handling): Add fstrcmp.
51916
51917 2007-08-18  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51920         'bool'.
51921         (diag, compareseq): Remove const from the ctxt argument.
51922         (USE_HEURISTIC): Undefine at the end.
51923
51924 2007-08-18  Jim Meyering  <jim@meyering.net>
51925
51926         New file: lib/idcache.h
51927         * NEWS: Mention the addition.
51928         * modules/idcache (Files): Add lib/idcache.h
51929         * lib/idcache.c: Include "idcache.h".
51930         Don't include <sys/types.h>.
51931         Add a FIXME comment.
51932         Move file-scoped "static" declarations to the top.
51933         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51934
51935 2007-08-17  Bruno Haible  <bruno@clisp.org>
51936         and Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * MODULES.html.sh: Add diffseq.
51939         * modules/diffseq: New file.
51940         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51941         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51942
51943 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51944
51945         Import changes from coreutils for bootstrap script.
51946
51947         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * build-aux/bootstrap (slurp): Work even in environments where
51950         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51951         current code does not slurp files whose names start with ".", and
51952         this looks like it might be a troublesome area.
51953
51954         2007-07-11  Jim Meyering  <jim@meyering.net>
51955
51956         If there's a GPL vN copyright comment, require that N == 3.
51957
51958         2007-07-08  Jim Meyering  <jim@meyering.net>
51959
51960         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51961         * build-aux/bootstrap (mam_template): Move definition out of loop.
51962
51963         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51964
51965         * build-aux/bootstrap (symlink_to_dir): Rename function from
51966         symlink_to_gnulib.  Add a directory parameter.  Update all
51967         callers.
51968         (cp_mark_as_generated): Also check for -- and link to -- files in
51969         gl/.
51970
51971         2007-07-08  Jim Meyering  <jim@meyering.net>
51972
51973         Adapt to deeper hierarchy in gnulib.
51974         * build-aux/bootstrap (symlink_to_dir): If the destination
51975         directory doesn't exist, create it. This is required at least for
51976         "lib/uniwidth/cjk.h".
51977
51978         2007-05-15  Jim Meyering  <jim@meyering.net>
51979
51980         * build-aux/bootstrap: Now that generated Makefile.am files
51981         are no longer under version control, they must be created at
51982         bootstrap time.
51983
51984 2007-08-14  Ben Pfaff  <blp@gnu.org>
51985
51986         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51987
51988 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51991         given the changes below.
51992         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51993         even on hosts that have padding bits beyond the supported 64.
51994
51995 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51996
51997         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51998         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51999         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52000         depends on it.
52001         (xstrtol_error): Remove.
52002         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52003         but with a different signature.
52004         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52005         * lib/xstrtol-error.c: Include exitfail.h.
52006         (xstrtol_fatal): New function, with a different signature from the
52007         old xstrtol_error, so that the caller need not worry about passing
52008         in an exit status, or about storage management of the option argument.
52009         (xstrtol_error): Now a static function.  Redo signature to
52010         implement xstrtol_fatal.  Output the correct number of hyphens in
52011         front of the option so that the caller need not worry about
52012         storage management.
52013         (N_): New macro.
52014         (_): Remove; not used now.
52015         * modules/xstrtol: Depend on getopt.
52016         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52017         of old STRTOL_FATAL_ERROR macro.
52018         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52019         of test program.
52020         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52021         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52022
52023 2007-08-08  Eric Blake  <ebb9@byu.net>
52024
52025         * lib/xstrtol-error.c: Add missing include.
52026
52027         Move xstrtol messages into gnulib domain, when --pobase is used.
52028         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52029         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52030         * modules/xstrtol (Files): Distribute new file.
52031         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52032         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52033         * tests/test-xstrtol.c: ...into new file.
52034         * tests/test-xstrtoul.c: Also test xstrtoul.
52035         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52036         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52037         * tests/test-xstrtol.sh: Drive the tests.
52038         * tests/test-xstrtoimax.sh: Likewise.
52039         * tests/test-xstrtoumax.sh: Likewise.
52040         * modules/xstrtol-tests: New module.
52041         * modules/xstrtoimax-tests: Likewise.
52042         * modules/xstrtoumax-tests: Likewise.
52043
52044 2007-08-08  Jim Meyering  <jim@meyering.net>
52045
52046         New function: mfile_name_concat.
52047         * lib/filenamecat.c (mfile_name_concat): New function, just like
52048         file_name_concat, but return NULL upon failure rather than exiting
52049         with a diagnostic.
52050         * lib/filenamecat.h: Declare it.
52051
52052 2007-08-07  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52055         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52056         warning from gcc.
52057         Reported by Eric Blake.
52058
52059 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52060
52061         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52062         * modules/crypto/arcfour (License): Likewise.
52063         * modules/crypto/des-tests (License): Likewise.
52064         * modules/crypto/gc-arctwo-tests (License): Likewise.
52065         * modules/crypto/gc-des-tests (License): Likewise.
52066         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52067         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52068         * modules/crypto/gc-md2-tests (License): Likewise.
52069         * modules/crypto/gc-md4-tests (License): Likewise.
52070         * modules/crypto/gc-md5-tests (License): Likewise.
52071         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52072         * modules/crypto/gc-rijndael-tests (License): Likewise.
52073         * modules/crypto/gc-sha1-tests (License): Likewise.
52074         * modules/crypto/gc-tests (License): Likewise.
52075         * modules/crypto/hmac-md5 (License): Likewise.
52076         * modules/crypto/hmac-sha1 (License): Likewise.
52077         * modules/crypto/md2-tests (License): Likewise.
52078         * modules/crypto/md4-tests (License): Likewise.
52079         * modules/crypto/md5 (License): Likewise.
52080         * modules/crypto/rijndael (License): Likewise.
52081         * modules/crypto/sha1 (License): Likewise.
52082         * modules/memxor (License): Likewise.
52083
52084 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52085         and Bruno Haible  <bruno@clisp.org>
52086
52087         * NEWS: Describe interface changes to human, xstrtol.
52088         * lib/human.h: Include <xstrtol.h>.
52089         (human_options): Return enum strtol_error, not int.  Remove
52090         bool arg; take int * instead.
52091         * lib/human.c: Don't include "gettext.h".
52092         (_): Remove; no longer used.
52093         Don't include <xstrtol.h>, since human.h does it.
52094         (human_options): Adjust to abovementioned interface changes.
52095         Do not report error to stderr; that's now the caller's
52096         responsibility.
52097         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52098         interface change.
52099         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52100         Str, Argument_type_string.  All uses changed.  Put " argument"
52101         in diagnostics to make them clearer.  Change wording of suffix
52102         message for clarity.
52103         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52104         Argument_type_string.
52105         (STRTOL_FATAL_WARN): Remove; no longer used.
52106         * modules/human (Depends-on): Remove gettext-h.
52107
52108 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52109
52110         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52111
52112 2007-07-31  Bruno Haible  <bruno@clisp.org>
52113
52114         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52115         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52116         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52117
52118 2007-07-31  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52121         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52122
52123 2007-07-30  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52126         * modules/c-ctype (License): Likewise.
52127         * modules/c-strcase (License): Likewise.
52128         * modules/check-version (License): Likewise.
52129         * modules/iconv (License): Likewise.
52130         * modules/iconv_open (License): Likewise.
52131         * modules/read-file (License): Likewise.
52132         * modules/striconv (License): Likewise.
52133         * modules/strverscmp (License): Likewise.
52134         * modules/vasprintf (License): Likewise.
52135         * modules/crypto/des (License): Likewise.
52136         * modules/crypto/gc (License): Likewise.
52137         * modules/crypto/gc-arcfour (License): Likewise.
52138         * modules/crypto/gc-arctwo (License): Likewise.
52139         * modules/crypto/gc-des (License): Likewise.
52140         * modules/crypto/gc-hmac-md5 (License): Likewise.
52141         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52142         * modules/crypto/gc-md2 (License): Likewise.
52143         * modules/crypto/gc-md4 (License): Likewise.
52144         * modules/crypto/gc-md5 (License): Likewise.
52145         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52146         * modules/crypto/gc-random (License): Likewise.
52147         * modules/crypto/gc-rijndael (License): Likewise.
52148         * modules/crypto/gc-sha1 (License): Likewise.
52149         * modules/crypto/md2 (License): Likewise.
52150         * modules/crypto/md4 (License): Likewise.
52151
52152 2007-07-30  Jim Meyering  <jim@meyering.net>
52153
52154         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52155         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52156         it has valid stat data.  This bug would cause du not to count the
52157         sizes of inaccessible directories.
52158         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52159         in <http://bugzilla.redhat.com/250077>.
52160
52161 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52162             Bruno Haible  <bruno@clisp.org>
52163
52164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52165         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52166         #include_next, gives a diagnostic about it, but reports no error in
52167         the exit code.
52168         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52169
52170 2007-07-24  Ben Pfaff  <blp@gnu.org>
52171
52172         Improve name: "count-one-bits" is better than "popcount".
52173         * MODULES.html.sh: Update name.
52174         * lib/popcount.h: Renamed lib/count-one-bits.h.
52175         (popcount): Renamed count_one_bits.
52176         (popcountl): Renamed count_one_bits_l.
52177         (popcountll): Renamed count_one_bits_ll.
52178         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52179         * modules/popcount: Renamed module/count-one-bits.
52180         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52181         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52182
52183 2007-07-23  Ben Pfaff  <blp@gnu.org>
52184
52185         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52186         better code generation, and add U to large constants to avoid
52187         warnings, in non-GCC case.
52188         Suggested by Bruno Haible.
52189
52190 2007-07-23  Ben Pfaff  <blp@gnu.org>
52191
52192         * lib/popcount.h: Use verify_true instead of if...abort.
52193         * modules/popcount: Depend on verify module.
52194         Suggested by Jim Meyering.
52195
52196 2007-07-23  Bruno Haible  <bruno@clisp.org>
52197
52198         * gnulib-tool (func_import): Create a .cvsignore file also when the
52199         directory is not yet in CVS but the toplevel directory is. When
52200         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52201         Reported by Karl Berry.
52202
52203 2007-07-22  Ben Pfaff  <blp@gnu.org>
52204
52205         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52206         case.
52207         Suggested by Eric Blake.
52208
52209 2007-07-22  Ben Pfaff  <blp@gnu.org>
52210
52211         New module: popcount.
52212         * MODULES.html.sh: Add popcount.
52213         * modules/popcount: New file.
52214         * modules/popcount-tests: New file.
52215         * tests/test-popcount.c: New file.
52216         * lib/popcount.h: New file.
52217         * m4/popcount.m4: New file.
52218
52219 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52220
52221         * build-aux/announce-gen: Update to GPLv3.
52222
52223         * build-aux/config.guess: Update from config.
52224
52225 2007-07-21  Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52228         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52229
52230 2007-07-20  Jim Meyering  <jim@meyering.net>
52231
52232         * check-module: Diagnose a self-dependency.
52233
52234 2007-07-19  Bruno Haible  <bruno@clisp.org>
52235
52236         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52237         empty.
52238         Reported by Eric Blake.
52239
52240 2007-07-18  Bruno Haible  <bruno@clisp.org>
52241
52242         * gnulib-tool: New options --po-base, --po-domain.
52243         (func_usage): Document them.
52244         (pobase, po_domain): New variables.
52245         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52246         DEFAULT_TEXT_DOMAIN.
52247         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52248         (func_import): Consider pobase and po_domain. Create a po/ directory.
52249         (func_create_testdir): Set pobase and po_domain to empty.
52250         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52251         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52252
52253 2007-07-18  Bruno Haible  <bruno@clisp.org>
52254
52255         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52256         EXTRA_DIST augmentation for files in build-aux/.
52257
52258 2007-07-16  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52261         * modules/getdelim (License): Likewise.
52262
52263 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52264
52265         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52266         * modules/d-type (License): Likewise.
52267         * modules/extensions (License): Likewise.
52268         * modules/fnmatch (License): Likewise.
52269         * modules/fseeko (License): Likewise.
52270         * modules/getaddrinfo (License): Likewise.
52271         * modules/getline (License): Likewise.
52272         * modules/getlogin_r (License): Likewise.
52273         * modules/getpass (License): Likewise.
52274         * modules/gettimeofday (License): Likewise.
52275         * modules/glob (License): Likewise.
52276         * modules/inet_ntop (License): Likewise.
52277         * modules/malloc (License): Likewise.
52278         * modules/malloca (License): Likewise.
52279         * modules/memmem (License): Likewise.
52280         * modules/mempcpy (License): Likewise.
52281         * modules/memset (License): Likewise.
52282         * modules/minmax (License): Likewise.
52283         * modules/mktime (License): Likewise.
52284         * modules/netinet_in (License): Likewise.
52285         * modules/pathmax (License): Likewise.
52286         * modules/poll (License): Likewise.
52287         * modules/regex (License): Likewise.
52288         * modules/snprintf (License): Likewise.
52289         * modules/stdbool (License): Likewise.
52290         * modules/stdint (License): Likewise.
52291         * modules/stdio (License): Likewise.
52292         * modules/strcase (License): Likewise.
52293         * modules/strcasestr (License): Likewise.
52294         * modules/strdup (License): Likewise.
52295         * modules/string (License): Likewise.
52296         * modules/strndup (License): Likewise.
52297         * modules/strnlen (License): Likewise.
52298         * modules/strpbrk (License): Likewise.
52299         * modules/strptime (License): Likewise.
52300         * modules/strsep (License): Likewise.
52301         * modules/sys_select (License): Likewise.
52302         * modules/sys_socket (License): Likewise.
52303         * modules/sys_stat (License): Likewise.
52304         * modules/sys_time (License): Likewise.
52305         * modules/time (License): Likewise.
52306         * modules/time_r (License): Likewise.
52307         * modules/timegm (License): Likewise.
52308         * modules/unistd (License): Likewise.
52309         * modules/vsnprintf (License): Likewise.
52310         * modules/wctype (License): Likewise.
52311
52312 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52313
52314         * modules/argz (License): LGPLv2+.
52315
52316 2007-07-15  Karl Berry  <karl@gnu.org>
52317
52318         * doc/gnulib.texi: revise node structure per new fdl.texi.
52319
52320 2007-07-14  Bruno Haible  <bruno@clisp.org>
52321
52322         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52323         the output file.
52324         * lib/uniname/uninames.h: Regenerated.
52325
52326 2007-07-14  Karl Berry  <karl@gnu.org>
52327
52328         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52329         omitting sectioning and index commands.
52330
52331 2007-07-13  Bruno Haible  <bruno@clisp.org>
52332
52333         New gnulib-tool option --more-symlinks.
52334         * gnulib-tool (func_usage): Document --more-symlinks.
52335         (do_copyrights): New variable.
52336         Recognize option --more-symlinks.
52337         (func_import): Don't add a copyright notice transform to
52338         sed_transform_lib_file if do_copyrights is empty.
52339
52340 2007-07-13  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/vasnprintf.c (decimal_point_char): Define also if
52343         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52344         && !NEED_PRINTF_DIRECTIVE_A.
52345         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52346         Gary V. Vaughan <gary@gnu.org>.
52347
52348 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/inttypes_.h: Undo previous change, since it was fixed
52351         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52352
52353 2007-07-13  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52356         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52357
52358 2007-07-13  Jim Meyering  <jim@meyering.net>
52359
52360         df: Don't fail for Tru64's "file-on-file mount".
52361         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52362         so we fall through and use statfs instead.  Details here:
52363         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52364         Reported by Albert Chin.
52365
52366 2007-07-13  Bruno Haible  <bruno@clisp.org>
52367
52368         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52369         * modules/configmake (License): Likewise.
52370         * modules/gettext (License): Likewise.
52371         * modules/gettext-h (License): Likewise.
52372         * modules/include_next (License): Likewise.
52373         * modules/link-warning (License): Likewise.
52374         * modules/localcharset (License): Likewise.
52375         * modules/localename (License): Likewise.
52376         * modules/lock (License): Likewise.
52377         * modules/relocatable-lib-lgpl (License): Likewise.
52378         * modules/size_max (License): Likewise.
52379         * modules/vasnprintf (License): Likewise.
52380         * modules/wchar (License): Likewise.
52381         * modules/xsize (License): Likewise.
52382
52383 2007-07-13  Bruno Haible  <bruno@clisp.org>
52384
52385         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52386         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52387
52388 2007-07-12  Bruno Haible  <bruno@clisp.org>
52389
52390         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52391         in the modules files.
52392
52393 2007-07-11  Karl Berry  <karl@gnu.org>
52394
52395         * MODULES.html.sh (func_module): use
52396          sed -e '\|^'"${includefile}"'$|d'
52397          instead of /.../d, to avoid errors on $includefile's containing /.
52398
52399 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52400
52401         * gnulib-tool (func_import): Avoid duplication of --avoid
52402         statements
52403         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52404         names to `_' in variable names.
52405
52406 2007-07-10  Eric Blake  <ebb9@byu.net>
52407
52408         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52409         * NEWS: Document this change.
52410
52411 2007-07-08  Bruno Haible  <bruno@clisp.org>
52412
52413         Update to Unicode 5.0.
52414         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52415         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52416         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52417         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52418         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52419         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52420         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52421         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52422         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52423         U+10A3F, U+1D242..U+1D244.
52424         (nonspacing_table_ind): Update.
52425         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52426         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52427
52428 2007-07-08  Bruno Haible  <bruno@clisp.org>
52429
52430         Update to Unicode 5.0.
52431         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52432         code transform. Extend the name index field of unicode_name_to_code and
52433         unicode_code_to_name from 16 to 24 bits.
52434         * lib/uniname/uniname.c (unicode_character_name,
52435         unicode_name_character): Add the range 0x12xxx to the code transform.
52436         * lib/uniname/uninames.h: Regenerated.
52437         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52438
52439 2007-07-07  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/wcwidth-tests: New file.
52442         * tests/test-wcwidth.c: New file.
52443
52444         Work around MacOS X wcwidth() bug.
52445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52446         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52447         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52448         original wcwidth in non-UTF-8 locales.
52449         * modules/wcwidth (Depends-on): Add localcharset, streq,
52450         uniwidth/width.
52451         * doc/functions/wcwidth.texi: Update.
52452
52453 2007-07-07  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52456         (wcwidth): New declaration.
52457         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52458         macros.
52459         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52460         here. Prepare for creating <wchar.h> unconditionally.
52461         * modules/wchar (Depends-on): Add link-warning.
52462         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52463         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52464         * lib/wcwidth.h: Remove file.
52465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52466         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52467         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52468         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52469         (Include): Replace wcwidth.h with <wchar.h>.
52470         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52471         * lib/mbchar.h: Don't include wcwidth.h.
52472         * lib/mbswidth.c: Likewise.
52473         * NEWS: Mention the change.
52474
52475 2007-07-07  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52478         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52479         definition with an external declaration.
52480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52481         defined as a function. Remove AC_C_INLINE requirement.
52482         * modules/wcwidth (Files): Add lib/wcwidth.c.
52483         (Makefile.am): Remove redundant statement.
52484
52485 2007-07-07  Bruno Haible  <bruno@clisp.org>
52486
52487         * MODULES.html.sh (Unicode string functions): Add the new modules.
52488
52489         * tests/uniwidth/test-u32-strwidth.c: New file.
52490         * modules/uniwidth/u32-strwidth-tests: New file.
52491
52492         * lib/uniwidth/u32-strwidth.c: New file.
52493         * modules/uniwidth/u32-strwidth: New file.
52494
52495         * tests/uniwidth/test-u16-strwidth.c: New file.
52496         * modules/uniwidth/u16-strwidth-tests: New file.
52497
52498         * lib/uniwidth/u16-strwidth.c: New file.
52499         * modules/uniwidth/u16-strwidth: New file.
52500
52501         * tests/uniwidth/test-u8-strwidth.c: New file.
52502         * modules/uniwidth/u8-strwidth-tests: New file.
52503
52504         * lib/uniwidth/u8-strwidth.c: New file.
52505         * modules/uniwidth/u8-strwidth: New file.
52506
52507         * tests/uniwidth/test-u32-width.c: New file.
52508         * modules/uniwidth/u32-width-tests: New file.
52509
52510         * lib/uniwidth/u32-width.c: New file.
52511         * modules/uniwidth/u32-width: New file.
52512
52513         * tests/uniwidth/test-u16-width.c: New file.
52514         * modules/uniwidth/u16-width-tests: New file.
52515
52516         * lib/uniwidth/u16-width.c: New file.
52517         * modules/uniwidth/u16-width: New file.
52518
52519         * tests/uniwidth/test-u8-width.c: New file.
52520         * modules/uniwidth/u8-width-tests: New file.
52521
52522         * lib/uniwidth/u8-width.c: New file.
52523         * modules/uniwidth/u8-width: New file.
52524
52525         * tests/uniwidth/test-uc_width.c: New file.
52526         * modules/uniwidth/width-tests: New file.
52527
52528         * lib/uniwidth/width.c: New file, from GNU libiconv.
52529         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52530         * modules/uniwidth/width: New file.
52531
52532         * lib/uniwidth.h: New file, from GNU libiconv.
52533         * modules/uniwidth/base: New file.
52534
52535 2007-07-07  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/uniname.h: New file, from GNU gettext.
52538         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52539         * lib/uniname/uninames.h: New file, from GNU gettext.
52540         * lib/uniname/uniname.c: New file, from GNU gettext.
52541         * tests/uniname/test-uninames.sh: New file.
52542         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52543         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52544         * modules/uniname/base: New file.
52545         * modules/uniname/uniname: New file.
52546         * modules/uniname/uniname-tests: New file.
52547         * MODULES.html.sh (Unicode string functions): Add the new modules.
52548
52549 2007-07-06  Bruno Haible  <bruno@clisp.org>
52550
52551         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52552
52553 2007-07-06  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52556         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52557         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52558         include <sys/time.h>.
52559         Reported by Eric Blake.
52560
52561 2007-07-06  Eric Blake  <ebb9@byu.net>
52562
52563         Fix testing canonicalize on cygwin.
52564         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52565         Revert patch from 2007-06-19.
52566         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52567         canonicalize module is also in use.
52568         * tests/test-canonicalize.c: New file.
52569         * tests/test-canonicalize.sh: Likewise.
52570         * modules/canonicalize-tests: Likewise.
52571
52572 2007-07-06  Jim Meyering  <jim@meyering.net>
52573
52574         * lib/getugroups.c (getugroups): Detect getgrent failure.
52575         Adjust comment to reflect reality: this function may return -1.
52576
52577 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52578
52579         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52580         the new TP address.
52581         (usage): Fix typo
52582         (gnulib_mk): New variable.
52583
52584 2007-07-05  Jim Meyering  <jim@meyering.net>
52585
52586         Don't let endgrent clobber errno, no matter how improbable.
52587         * lib/getugroups.c (getugroups): Save and restore errno around
52588         endgrent call.
52589
52590         Close the group DB even when failing with 2^31 or more members.
52591         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52592
52593 2007-07-04  Jim Meyering  <jim@meyering.net>
52594
52595         * lib/getugroups.h: New file.
52596         * lib/getugroups.c: Include "getugroups.h".
52597         Remove uses of "register" keyword.
52598         Move local variable, "cp", down into scope where used.
52599         Give "username" parameter the "const" attribute.
52600         * modules/getugroups (Files): Add lib/getugroups.h
52601
52602 2007-07-04  Karl Berry  <karl@gnu.org>
52603
52604         * MODULES.html.sh (func_all_modules): Complete rename of
52605         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52606
52607 2007-07-02  Bruno Haible  <bruno@clisp.org>
52608
52609         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52610         mode, when inttypes.h comes from gnulib.
52611         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52612
52613 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52614
52615         * NEWS: Mention lgpl module name change.
52616
52617         * modules/lgpl-2.1: Renamed from lgpl.
52618
52619         * NEWS: Mention gpl module name change.
52620
52621         * modules/gpl-3.0: New file, based on gpl-2.0.
52622
52623         * modules/gpl-2.0: Renamed from gpl.
52624
52625         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52626         doc/gpl-2.0.texi.
52627
52628 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52631         #define __STDC_LIMIT_MACROS temporarily while including
52632         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52633         Problem reported by Joel E. Denny in
52634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52635
52636 2007-07-01  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/unistdio.h: New file.
52639         * lib/unistdio/u-asnprintf.h: New file.
52640         * lib/unistdio/u-asprintf.h: New file.
52641         * lib/unistdio/u-printf-args.c: New file.
52642         * lib/unistdio/u-printf-args.h: New file.
52643         * lib/unistdio/u-printf-parse.h: New file.
52644         * lib/unistdio/u-snprintf.h: New file.
52645         * lib/unistdio/u-sprintf.h: New file.
52646         * lib/unistdio/u-vasprintf.h: New file.
52647         * lib/unistdio/u-vsnprintf.h: New file.
52648         * lib/unistdio/u-vsprintf.h: New file.
52649         * lib/unistdio/ulc-asnprintf.c: New file.
52650         * lib/unistdio/ulc-asprintf.c: New file.
52651         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52652         * lib/unistdio/ulc-printf-parse.c: New file.
52653         * lib/unistdio/ulc-snprintf.c: New file.
52654         * lib/unistdio/ulc-sprintf.c: New file.
52655         * lib/unistdio/ulc-vasnprintf.c: New file.
52656         * lib/unistdio/ulc-vasprintf.c: New file.
52657         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52658         * lib/unistdio/ulc-vsnprintf.c: New file.
52659         * lib/unistdio/ulc-vsprintf.c: New file.
52660         * lib/unistdio/u8-asnprintf.c: New file.
52661         * lib/unistdio/u8-asprintf.c: New file.
52662         * lib/unistdio/u8-printf-parse.c: New file.
52663         * lib/unistdio/u8-snprintf.c: New file.
52664         * lib/unistdio/u8-sprintf.c: New file.
52665         * lib/unistdio/u8-vasnprintf.c: New file.
52666         * lib/unistdio/u8-vasprintf.c: New file.
52667         * lib/unistdio/u8-vsnprintf.c: New file.
52668         * lib/unistdio/u8-vsprintf.c: New file.
52669         * lib/unistdio/u8-u8-asnprintf.c: New file.
52670         * lib/unistdio/u8-u8-asprintf.c: New file.
52671         * lib/unistdio/u8-u8-snprintf.c: New file.
52672         * lib/unistdio/u8-u8-sprintf.c: New file.
52673         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52674         * lib/unistdio/u8-u8-vasprintf.c: New file.
52675         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52676         * lib/unistdio/u8-u8-vsprintf.c: New file.
52677         * lib/unistdio/u16-asnprintf.c: New file.
52678         * lib/unistdio/u16-asprintf.c: New file.
52679         * lib/unistdio/u16-printf-parse.c: New file.
52680         * lib/unistdio/u16-snprintf.c: New file.
52681         * lib/unistdio/u16-sprintf.c: New file.
52682         * lib/unistdio/u16-vasnprintf.c: New file.
52683         * lib/unistdio/u16-vasprintf.c: New file.
52684         * lib/unistdio/u16-vsnprintf.c: New file.
52685         * lib/unistdio/u16-vsprintf.c: New file.
52686         * lib/unistdio/u16-u16-asnprintf.c: New file.
52687         * lib/unistdio/u16-u16-asprintf.c: New file.
52688         * lib/unistdio/u16-u16-snprintf.c: New file.
52689         * lib/unistdio/u16-u16-sprintf.c: New file.
52690         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52691         * lib/unistdio/u16-u16-vasprintf.c: New file.
52692         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52693         * lib/unistdio/u16-u16-vsprintf.c: New file.
52694         * lib/unistdio/u32-asnprintf.c: New file.
52695         * lib/unistdio/u32-asprintf.c: New file.
52696         * lib/unistdio/u32-printf-parse.c: New file.
52697         * lib/unistdio/u32-snprintf.c: New file.
52698         * lib/unistdio/u32-sprintf.c: New file.
52699         * lib/unistdio/u32-vasnprintf.c: New file.
52700         * lib/unistdio/u32-vasprintf.c: New file.
52701         * lib/unistdio/u32-vsnprintf.c: New file.
52702         * lib/unistdio/u32-vsprintf.c: New file.
52703         * lib/unistdio/u32-u32-asnprintf.c: New file.
52704         * lib/unistdio/u32-u32-asprintf.c: New file.
52705         * lib/unistdio/u32-u32-snprintf.c: New file.
52706         * lib/unistdio/u32-u32-sprintf.c: New file.
52707         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52708         * lib/unistdio/u32-u32-vasprintf.c: New file.
52709         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52710         * lib/unistdio/u32-u32-vsprintf.c: New file.
52711         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52712         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52713         * tests/unistdio/test-ulc-printf1.h: New file.
52714         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52715         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52716         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52717         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52718         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52719         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52720         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52721         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52722         * tests/unistdio/test-u8-asnprintf1.c: New file.
52723         * tests/unistdio/test-u8-asnprintf1.h: New file.
52724         * tests/unistdio/test-u8-printf1.h: New file.
52725         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52726         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52727         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52728         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52729         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52730         * tests/unistdio/test-u8-vasprintf1.c: New file.
52731         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52732         * tests/unistdio/test-u8-vsprintf1.c: New file.
52733         * tests/unistdio/test-u16-asnprintf1.c: New file.
52734         * tests/unistdio/test-u16-asnprintf1.h: New file.
52735         * tests/unistdio/test-u16-printf1.h: New file.
52736         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52737         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52738         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52739         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52740         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52741         * tests/unistdio/test-u16-vasprintf1.c: New file.
52742         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52743         * tests/unistdio/test-u16-vsprintf1.c: New file.
52744         * tests/unistdio/test-u32-asnprintf1.c: New file.
52745         * tests/unistdio/test-u32-asnprintf1.h: New file.
52746         * tests/unistdio/test-u32-printf1.h: New file.
52747         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52748         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52749         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52750         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52751         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52752         * tests/unistdio/test-u32-vasprintf1.c: New file.
52753         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52754         * tests/unistdio/test-u32-vsprintf1.c: New file.
52755         * modules/unistdio/base: New file.
52756         * modules/unistdio/u-printf-args: New file.
52757         * modules/unistdio/ulc-asnprintf: New file.
52758         * modules/unistdio/ulc-asprintf: New file.
52759         * modules/unistdio/ulc-fprintf: New file.
52760         * modules/unistdio/ulc-printf-parse: New file.
52761         * modules/unistdio/ulc-snprintf: New file.
52762         * modules/unistdio/ulc-sprintf: New file.
52763         * modules/unistdio/ulc-vasnprintf: New file.
52764         * modules/unistdio/ulc-vasprintf: New file.
52765         * modules/unistdio/ulc-vfprintf: New file.
52766         * modules/unistdio/ulc-vsnprintf: New file.
52767         * modules/unistdio/ulc-vsprintf: New file.
52768         * modules/unistdio/u8-asnprintf: New file.
52769         * modules/unistdio/u8-asprintf: New file.
52770         * modules/unistdio/u8-printf-parse: New file.
52771         * modules/unistdio/u8-snprintf: New file.
52772         * modules/unistdio/u8-sprintf: New file.
52773         * modules/unistdio/u8-vasnprintf: New file.
52774         * modules/unistdio/u8-vasprintf: New file.
52775         * modules/unistdio/u8-vsnprintf: New file.
52776         * modules/unistdio/u8-vsprintf: New file.
52777         * modules/unistdio/u8-u8-asnprintf: New file.
52778         * modules/unistdio/u8-u8-asprintf: New file.
52779         * modules/unistdio/u8-u8-snprintf: New file.
52780         * modules/unistdio/u8-u8-sprintf: New file.
52781         * modules/unistdio/u8-u8-vasnprintf: New file.
52782         * modules/unistdio/u8-u8-vasprintf: New file.
52783         * modules/unistdio/u8-u8-vsnprintf: New file.
52784         * modules/unistdio/u8-u8-vsprintf: New file.
52785         * modules/unistdio/u16-asnprintf: New file.
52786         * modules/unistdio/u16-asprintf: New file.
52787         * modules/unistdio/u16-printf-parse: New file.
52788         * modules/unistdio/u16-snprintf: New file.
52789         * modules/unistdio/u16-sprintf: New file.
52790         * modules/unistdio/u16-vasnprintf: New file.
52791         * modules/unistdio/u16-vasprintf: New file.
52792         * modules/unistdio/u16-vsnprintf: New file.
52793         * modules/unistdio/u16-vsprintf: New file.
52794         * modules/unistdio/u16-u16-asnprintf: New file.
52795         * modules/unistdio/u16-u16-asprintf: New file.
52796         * modules/unistdio/u16-u16-snprintf: New file.
52797         * modules/unistdio/u16-u16-sprintf: New file.
52798         * modules/unistdio/u16-u16-vasnprintf: New file.
52799         * modules/unistdio/u16-u16-vasprintf: New file.
52800         * modules/unistdio/u16-u16-vsnprintf: New file.
52801         * modules/unistdio/u16-u16-vsprintf: New file.
52802         * modules/unistdio/u32-asnprintf: New file.
52803         * modules/unistdio/u32-asprintf: New file.
52804         * modules/unistdio/u32-printf-parse: New file.
52805         * modules/unistdio/u32-snprintf: New file.
52806         * modules/unistdio/u32-sprintf: New file.
52807         * modules/unistdio/u32-vasnprintf: New file.
52808         * modules/unistdio/u32-vasprintf: New file.
52809         * modules/unistdio/u32-vsnprintf: New file.
52810         * modules/unistdio/u32-vsprintf: New file.
52811         * modules/unistdio/u32-u32-asnprintf: New file.
52812         * modules/unistdio/u32-u32-asprintf: New file.
52813         * modules/unistdio/u32-u32-snprintf: New file.
52814         * modules/unistdio/u32-u32-sprintf: New file.
52815         * modules/unistdio/u32-u32-vasnprintf: New file.
52816         * modules/unistdio/u32-u32-vasprintf: New file.
52817         * modules/unistdio/u32-u32-vsnprintf: New file.
52818         * modules/unistdio/u32-u32-vsprintf: New file.
52819         * modules/unistdio/ulc-asnprintf-tests: New file.
52820         * modules/unistdio/ulc-vasnprintf-tests: New file.
52821         * modules/unistdio/ulc-vasprintf-tests: New file.
52822         * modules/unistdio/ulc-vsnprintf-tests: New file.
52823         * modules/unistdio/ulc-vsprintf-tests: New file.
52824         * modules/unistdio/u8-asnprintf-tests: New file.
52825         * modules/unistdio/u8-vasnprintf-tests: New file.
52826         * modules/unistdio/u8-vasprintf-tests: New file.
52827         * modules/unistdio/u8-vsnprintf-tests: New file.
52828         * modules/unistdio/u8-vsprintf-tests: New file.
52829         * modules/unistdio/u16-asnprintf-tests: New file.
52830         * modules/unistdio/u16-vasnprintf-tests: New file.
52831         * modules/unistdio/u16-vasprintf-tests: New file.
52832         * modules/unistdio/u16-vsnprintf-tests: New file.
52833         * modules/unistdio/u16-vsprintf-tests: New file.
52834         * modules/unistdio/u32-asnprintf-tests: New file.
52835         * modules/unistdio/u32-vasnprintf-tests: New file.
52836         * modules/unistdio/u32-vasprintf-tests: New file.
52837         * modules/unistdio/u32-vsnprintf-tests: New file.
52838         * modules/unistdio/u32-vsprintf-tests: New file.
52839         * MODULES.html.sh (Unicode string functions): Add the new modules.
52840
52841 2007-07-01  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/sprintf.c (sprintf): Limit the available length estimation,
52844         to avoid address wraparound.
52845         * lib/vsprintf.c (vsprintf): Likewise.
52846         * modules/sprintf-posix (Dependencies): Add stdint.
52847         * modules/vsprintf-posix (Dependencies): Likewise.
52848
52849 2007-07-01  Bruno Haible  <bruno@clisp.org>
52850
52851         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52852         Windows PATH as well. Conservative double-quoting. Comments.
52853
52854 2007-07-01  Bruno Haible  <bruno@clisp.org>
52855             Eric Blake  <ebb9@byu.net>
52856             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52857
52858         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52859         empty components in $PATH, denoting '.'.
52860
52861 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52862
52863         * gnulib-tool: Fix indentation.
52864         (func_create_megatestdir): Likewise.
52865         Report by Bruno Haible.
52866
52867 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52868
52869         Sync from Automake.
52870         * build-aux/gnupload: Fix shell portability issues with for loops.
52871         Report by Karl Berry.
52872
52873 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52874
52875         * build-aux/maint.mk (POURL): Use translationproject.org.
52876
52877 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52878             Bruno Haible  <bruno@clisp.org>
52879
52880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52881         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52882         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52883         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52884         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52885
52886 2007-06-27  Bruno Haible  <bruno@clisp.org>
52887
52888         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52889         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52890
52891 2007-06-26  Karl Berry  <karl@gnu.org>
52892
52893         * MODULES.html.sh: remove xreadlink-with-size.
52894
52895 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52898         method that I hope also handles the double-include problem noted
52899         by Bruno Haible in
52900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52901
52902 2007-06-23  Bruno Haible  <bruno@clisp.org>
52903
52904         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52905         Don't let the 'mostlyclean' target fail if the last subdirectory could
52906         not be removed.
52907         Reported by Karl Berry.
52908
52909 2007-06-23  Bruno Haible  <bruno@clisp.org>
52910
52911         * gnulib-tool (echo): Add a speedier workaround for ksh.
52912         * tests/test-echo.sh: Likewise.
52913
52914 2007-06-23  Bruno Haible  <bruno@clisp.org>
52915
52916         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52917         * tests/test-echo.sh: Likewise.
52918
52919 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52920
52921         * gnulib-tool (IFS): Initialize early, so we don't set it to
52922         empty later.
52923         (self_abspathname): Rewrite algorithm to set it, reindent.
52924         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52925         (func_create_megatestdir): Merge some sed scripts.
52926
52927 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52930         exposed by Sun Studio 11 cc on Solaris 8.
52931
52932 2007-06-22  Bruno Haible  <bruno@clisp.org>
52933
52934         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52935         backslashes.
52936         * tests/test-echo.sh: New file.
52937
52938 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52939
52940         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52941         simplify `sed_replace_build_aux' scripts, they are portable but
52942         echoing them with `echo' is not.
52943         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52944
52945 2007-06-21  Karl Berry  <karl@gnu.org>
52946
52947         * config/srclist.txt: guess we can't handle the licenses via
52948         srclist at the moment.
52949
52950 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * MODULES.html.sh: Add include_next.
52953         * modules/include_next: New file.
52954
52955 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52956
52957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52958         INCLUDE_NEXT.
52959         (gl_CHECK_NEXT_HEADERS): New macro.
52960         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52961         the obsolescent gl_ABSOLUTE_HEADER.
52962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52963         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52964         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52965         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52966         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52967         * m4/math_h.m4 (gl_MATH_H): Likewise.
52968         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52969         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52970         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52971         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52972         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52973         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52974         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52978         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52979         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52980         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52981         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52982         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52983         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52984         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52985         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52986         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52987         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52988         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52989         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52990         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52991         * lib/float_.h: Likewise.
52992         * lib/inttypes_.h: Likewise.
52993         * lib/math_.h: Likewise.
52994         * lib/search_.h: Likewise.
52995         * lib/signal_.h: Likewise.
52996         * lib/stdint_.h: Likewise.
52997         * lib/stdio_.h: Likewise.
52998         * lib/stdlib_.h: Likewise.
52999         * lib/string_.h: Likewise.
53000         * lib/sys_stat_.h: Likewise.
53001         * lib/sys_time_.h: Likewise.
53002         * lib/time_.h: Likewise.
53003         * lib/unistd_.h: Likewise.
53004         * lib/wchar_.h: Likewise.
53005         * lib/wctype_.h: Likewise.
53006         * lib/dirent_.h: Likewise.
53007         * lib/iconv_.h: Likewise.
53008         * lib/locale_.h: Likewise.
53009         * lib/netinet_in_.h: Likewise.
53010         * lib/sys_select_.h: Likewise.
53011         * lib/sys_socket_.h: Likewise.
53012         * lib/sysexits_.h: Likewise.
53013         * modules/fcntl (Depends-on): Depend on include_next, not
53014         absolute_header.
53015         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53016         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53017         * modules/fchdir: Likewise.
53018         * modules/float: Likewise.
53019         * modules/iconv_open: Likewise.
53020         * modules/inttypes: Likewise.
53021         * modules/locale: Likewise.
53022         * modules/math: Likewise.
53023         * modules/netinet_in: Likewise.
53024         * modules/search: Likewise.
53025         * modules/signal: Likewise.
53026         * modules/stdint: Likewise.
53027         * modules/stdio: Likewise.
53028         * modules/stdlib: Likewise.
53029         * modules/string: Likewise.
53030         * modules/sys_select: Likewise.
53031         * modules/sys_socket: Likewise.
53032         * modules/sys_stat: Likewise.
53033         * modules/sys_time: Likewise.
53034         * modules/sysexits: Likewise.
53035         * modules/time: Likewise.
53036         * modules/unistd: Likewise.
53037         * modules/wchar: Likewise.
53038         * modules/wctype: Likewise.
53039         * modules/sys_stat: Change maintainer to "all".
53040         * modules/unistd: Likewise.
53041
53042 2007-06-20  Karl Berry  <karl@gnu.org>
53043
53044         * config/srclist.txt: track www changes in license files.
53045
53046 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53047
53048         * build-aux/bootstrap: Remove stray dot.
53049         Make sure build_aux settings are honored when linking
53050         gnulib_extra_files.
53051
53052 2007-06-19  Eric Blake  <ebb9@byu.net>
53053
53054         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53055         Allow compilation on cygwin.
53056
53057 2007-06-19  Jim Meyering  <jim@meyering.net>
53058
53059         xreadlink-with-size: Remove module.  No longer used.
53060         Ex-callers now use xreadlink or mreadlink-with-size.
53061         * modules/xreadlink-with-size: Remove module.
53062         * lib/xreadlink-with-size.c: Remove file.
53063         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53064         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53065         just before the function definition *is* accurate.
53066
53067         Eliminate one way canonicalize_filename_mode could exit.
53068         * lib/canonicalize.c (canonicalize_filename_mode):
53069         Use mreadlink_with_size, not xreadlink_with_size.
53070
53071 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         Detect porting problems to FreeBSD/arm, which has time_t wider than
53074         long int.  Original problem reported for GNU diff by Xin Li in
53075         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53076         * modules/getdate (Depends-on): Add intprops, verify.
53077         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53078         is an integer type no wider than long int.
53079
53080 2007-06-18  Jim Meyering  <jim@meyering.net>
53081
53082         New module: mreadlink-with-size.
53083         * MODULES.html.sh: Add mreadlink-with-size.
53084         * modules/mreadlink-with-size: New module
53085         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53086         not xreadlink-with-size.
53087         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53088
53089 2007-06-16  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53092         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53093         Reported by Gary V. Vaughan <gary@gnu.org>.
53094
53095 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         Revamp lchown so that it lives in unistd.h where it belongs.
53098         * lib/lchown.h: Remove.
53099         * lib/dirchownmod.c: Don't include lib/lchown.h.
53100         * lib/fchownat.c: Likewise.
53101         * lib/openat.c: Likewise.
53102         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53103         does not follow symlinks.
53104         (EOPNOTSUPP): Define if not defined.
53105         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53106         is defined to 0.
53107         (lchown): New decl.
53108         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53109         Do not check for lchown decl.
53110         Set REPLACE_LCHOWN.
53111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53112         REPLACE_LCHOWN.
53113         * modules/chown: Make it clear it follows symlinks.
53114         * modules/lchown: Make it clear it doesn't follow symlinks.
53115         (Files): Remove lib/lchown.h
53116         (Depends-on): Add unistd.
53117         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53118         (Include): Include <unistd.h>, not "lchown.h".
53119         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53120         REPLACE_LCHOWN.
53121
53122 2007-06-15  Jim Meyering  <jim@meyering.net>
53123
53124         Change license (GPL to LGPL) of fsusage and dependents.
53125         * modules/fsusage (License): Change to LGPL.
53126         * modules/full-read (License): Likewise.
53127         * modules/full-write (License): Likewise.
53128         * modules/safe-read (License): Likewise.
53129         * modules/safe-write (License): Likewise.
53130
53131 2007-06-14  Ben Pfaff  <blp@gnu.org>
53132
53133         Missing part of allocsa -> malloca transition.
53134         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53135         gl_MALLOCA.
53136
53137 2007-06-12  Bruno Haible  <bruno@clisp.org>
53138
53139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53140         to ia64, x86_64, i386.
53141         Reported by Eric Blake.
53142
53143 2007-06-12  Bruno Haible  <bruno@clisp.org>
53144
53145         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53146         cross-compiling to x86_64.
53147
53148 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53151         glitch reported by Ralf Wildenhues in
53152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53153
53154         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53155         Vin Shelton.
53156
53157 2007-06-11  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53160         replacement string.
53161         Reported by Eric Blake.
53162
53163 2007-06-10  Bruno Haible  <bruno@clisp.org>
53164
53165         Prepare vasnprintf code for use with Unicode strings.
53166         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53167         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53168         TYPE_U32_STRING.
53169         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53170         a_u32_string variants.
53171         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53172         * lib/printf-args.c: Don't include config.h and the specification
53173         header if PRINTF_FETCHARGS is already defined.
53174         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53175         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53176         TYPE_U16_STRING, TYPE_U32_STRING.
53177         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53178         u16_directive, u16_directives, u32_directive, u32_directives): New
53179         types.
53180         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53181         New declarations.
53182         * lib/printf-parse.c: Don't include config.h and the specification
53183         header if PRINTF_PARSE is already defined. Eliminate the set of
53184         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53185         them now. Include c-ctype.h.
53186         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53187         directive and CHAR_T_ONLY_ASCII.
53188         * lib/vasnprintf.c: Don't include config.h and the specification header
53189         if VASNPRINTF is already defined.
53190         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53191         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53192         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53193         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53194         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53195         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53196         code accordingly.
53197         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53198         pad_ourselves also in this case, with the 'c' and 's' directives, and
53199         with a different notion of "width".
53200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53201
53202 2007-06-10  Bruno Haible  <bruno@clisp.org>
53203
53204         * modules/unistr/u32-mbsnlen: New file.
53205         * lib/unistr/u32-mbsnlen.c: New file.
53206
53207         * modules/unistr/u16-mbsnlen: New file.
53208         * lib/unistr/u16-mbsnlen.c: New file.
53209
53210         * modules/unistr/u8-mbsnlen: New file.
53211         * lib/unistr/u8-mbsnlen.c: New file.
53212
53213         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53214         declarations.
53215
53216 2007-06-10  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/string_.h (mbsnlen): New declaration.
53219         * lib/mbsnlen.c: New file.
53220         * m4/mbsnlen.m4: New file.
53221         * modules/mbsnlen: New file.
53222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53223         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53224         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53225
53226 2007-06-10  Bruno Haible  <bruno@clisp.org>
53227
53228         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53229
53230 2007-06-10  Bruno Haible  <bruno@clisp.org>
53231
53232         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53233         * lib/mbuiter.h: Likewise.
53234
53235 2007-06-10  Bruno Haible  <bruno@clisp.org>
53236
53237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53238         declaration.
53239
53240 2007-06-10  Karl Berry  <karl@gnu.org>
53241
53242         * config/srclist.txt: remove gettext entries, Bruno prefers
53243         to update individually.
53244
53245 2007-06-10  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53248         'maxlen'. Ensure only length + width bytes are allocated, not
53249         length + 1 + width.
53250
53251 2007-06-09  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53254         (CHAR_T): Remove macro.
53255         (VASNPRINTF): Update.
53256
53257 2007-06-09  Bruno Haible  <bruno@clisp.org>
53258
53259         * MODULES.html.sh (Unicode string functions): Add the new modules.
53260
53261         * modules/uniconv/u32-conv-to-enc: New file.
53262         * lib/uniconv/u32-conv-to-enc.c: New file.
53263         * modules/uniconv/u32-conv-to-enc-tests: New file.
53264         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53265
53266         * modules/uniconv/u16-conv-to-enc: New file.
53267         * lib/uniconv/u16-conv-to-enc.c: New file.
53268         * lib/uniconv/u-conv-to-enc.h: New file.
53269         * modules/uniconv/u16-conv-to-enc-tests: New file.
53270         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53271
53272         * modules/uniconv/u8-conv-to-enc: New file.
53273         * lib/uniconv/u8-conv-to-enc.c: New file.
53274         * modules/uniconv/u8-conv-to-enc-tests: New file.
53275         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53276
53277         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53278         u32_conv_to_encoding): New declarations.
53279
53280 2007-06-09  Bruno Haible  <bruno@clisp.org>
53281
53282         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53283
53284 2007-06-09  Bruno Haible  <bruno@clisp.org>
53285
53286         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53287         * modules/malloca: Renamed from modules/allocsa, updated.
53288         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53289         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53290         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53291         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53292         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53293         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53294         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53295         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53296         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53297         * modules/c-strcasestr (Depends-on): Update.
53298         * lib/c-strcasestr.c: Update.
53299         * modules/c-strstr (Depends-on): Update.
53300         * lib/c-strstr.c: Update.
53301         * modules/canonicalize-lgpl (Depends-on): Update.
53302         * lib/canonicalize-lgpl.c: Update.
53303         * modules/clean-temp (Depends-on): Update.
53304         * lib/clean-temp.c: Update.
53305         * modules/csharpcomp (Depends-on): Update.
53306         * lib/csharpcomp.c: Update.
53307         * modules/csharpexec (Depends-on): Update.
53308         * lib/csharpexec.c: Update.
53309         * modules/javacomp (Depends-on): Update.
53310         * lib/javacomp.c: Update.
53311         * modules/javaexec (Depends-on): Update.
53312         * lib/javaexec.c: Update.
53313         * modules/mbscasestr (Depends-on): Update.
53314         * lib/mbscasestr.c: Update.
53315         * modules/mbsstr (Depends-on): Update.
53316         * lib/mbsstr.c: Update.
53317         * modules/setenv (Depends-on): Update.
53318         * lib/setenv.c: Update.
53319         * modules/strcasestr (Depends-on): Update.
53320         * lib/strcasestr.c: Update.
53321         * modules/striconveha (Depends-on): Update.
53322         * lib/striconveha.c: Update.
53323         * modules/relocatable-prog-wrapper (Files): Update.
53324         * lib/relocwrapper.c: Update.
53325         * build-aux/install-reloc: Update.
53326         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53327
53328 2007-06-08  Bruno Haible  <bruno@clisp.org>
53329
53330         Port to uClibc.
53331         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53332         * lib/fpurge.c (fpurge): Likewise.
53333         * lib/freading.c (freading): Likewise.
53334         * lib/fseeko.c (rpl_fseeko): Likewise.
53335         * lib/fseterr.c (fseterr): Likewise.
53336         * lib/fwriting.c (fwriting): Likewise.
53337         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53338
53339 2007-06-08  Bruno Haible  <bruno@clisp.org>
53340
53341         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53342         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53343         * modules/gettext (Files): Add m4/intlmacosx.m4.
53344
53345 2007-06-07  Bruno Haible  <bruno@clisp.org>
53346
53347         * modules/localename-tests: New file.
53348         * tests/test-localename.c: New file.
53349
53350         New module 'localename'.
53351         * lib/localename.h: New file.
53352         * lib/localename.c: New file, from GNU gettext.
53353         * m4/localename.m4: New file.
53354         * modules/localename: New file.
53355
53356 2007-06-07  Bruno Haible  <bruno@clisp.org>
53357
53358         Work around the lack of <wchar.h> on some builds of uClibc.
53359         * doc/headers/wchar.texi: Update.
53360         * lib/wchar_.h: Include <wchar.h> only if it exists.
53361         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53362         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53363         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53364         doesn't exist.
53365         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53366         * modules/mbfile (Depends-on): Add wchar.
53367         * modules/mbiter (Depends-on): Likewise.
53368         * modules/mbuiter (Depends-on): Likewise.
53369         Reported by Simon Josefsson.
53370
53371 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         Work around problem reported by Steven M. Schweda in
53374         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53375         Tru64 5.1B with the Compaq compiler environment installed declares
53376         an 'isblank' function but does not define it in the C library.
53377         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53378         * lib/regex_internal.h (isblank): Likewise.
53379         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53380         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53381
53382 2007-06-05  Bruno Haible  <bruno@clisp.org>
53383
53384         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53385         ia64.
53386         * modules/printf-safe: New file.
53387         * modules/fprintf-posix (Depends-on): Add printf-safe.
53388         * modules/printf-posix (Depends-on): Likewise.
53389         * modules/snprintf-posix (Depends-on): Likewise.
53390         * modules/sprintf-posix (Depends-on): Likewise.
53391         * modules/vasnprintf-posix (Depends-on): Likewise.
53392         * modules/vasprintf-posix (Depends-on): Likewise.
53393         * modules/vfprintf-posix (Depends-on): Likewise.
53394         * modules/vprintf-posix (Depends-on): Likewise.
53395         * modules/vsnprintf-posix (Depends-on): Likewise.
53396         * modules/vsprintf-posix (Depends-on): Likewise.
53397         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53398         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53399         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53400         "no" on i386, x86_64, ia64.
53401         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53402         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53403         on i386, x86_64, ia64.
53404         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53405         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53406         on i386, x86_64, ia64.
53407         * tests/test-vasnprintf-posix.c: Include float.h.
53408         (LDBL80_WORDS): New macro.
53409         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53410         on i386, x86_64, ia64.
53411         * tests/test-vasprintf-posix.c: Include float.h.
53412         (LDBL80_WORDS): New macro.
53413         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53414         on i386, x86_64, ia64.
53415         * tests/test-snprintf-posix.c: Include float.h.
53416         * tests/test-sprintf-posix.c: Likewise.
53417         * tests/test-vsnprintf-posix.c: Likewise.
53418         * tests/test-vsprintf-posix.c: Likewise.
53419
53420 2007-06-05  Bruno Haible  <bruno@clisp.org>
53421
53422         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53423         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53424         non-IEEE numbers on i386, x86_64, ia64.
53425         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53426         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53427         * tests/test-isnanl.h: Include float.h.
53428         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53429
53430 2007-06-05  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53433         also the %a / %A. Handle the %a / %A code before this extra handling.
53434
53435 2007-06-05  Bruno Haible  <bruno@clisp.org>
53436
53437         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53438         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53439
53440 2007-06-05  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53443         typo in variable name.
53444
53445 2007-06-05  Eric Blake  <ebb9@byu.net>
53446
53447         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53448         Reported by Simon Josefsson.
53449
53450 2007-06-04  Bruno Haible  <bruno@clisp.org>
53451
53452         Avoid test failures on some PowerPC platforms.
53453         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53454         Define differently for PowerPC.
53455         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53456         Reported by Gary V. Vaughan <gary@gnu.org>.
53457
53458 2007-06-02  Bruno Haible  <bruno@clisp.org>
53459
53460         Fix test-stdint failure on FreeBSD/ia64.
53461         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53462         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53463         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53464         * doc/headers/stdint.texi: Update.
53465
53466 2007-06-01  Bruno Haible  <bruno@clisp.org>
53467
53468         * tests/test-binary-io.c (main): Pass a third argument to open().
53469         Reported by Gary V. Vaughan <gary@gnu.org>.
53470
53471 2007-06-01  Bruno Haible  <bruno@clisp.org>
53472
53473         * doc/functions/frexpl.texi: Update for mingw.
53474
53475 2007-06-01  Bruno Haible  <bruno@clisp.org>
53476
53477         * tests/test-lseek.c (main): Disable test of errno for invalid third
53478         argument.
53479         * doc/functions/lseek.texi: Update.
53480         Reported by Gary V. Vaughan <gary@gnu.org>.
53481
53482 2007-05-28  Bruno Haible  <bruno@clisp.org>
53483
53484         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53485
53486 2007-05-31  Eric Blake  <ebb9@byu.net>
53487
53488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53489         cross compiling.
53490
53491 2007-05-30  Eric Blake  <ebb9@byu.net>
53492         and Bruno Haible  <bruno@clisp.org>
53493
53494         Work around mingw test failures exposed by m4-1.4.9b.
53495         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53496         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53497         moment.
53498
53499 2007-05-30  Bruno Haible  <bruno@clisp.org>
53500
53501         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53502         assuming that they are closed. Needed on HP-UX 11.
53503
53504 2007-05-29  Bruno Haible  <bruno@clisp.org>
53505
53506         Fix a problem with #include_next.
53507         * lib/dirent_.h: Split the double-inclusion guard.
53508         * lib/fcntl_.h: Likewise.
53509         * lib/float_.h: Likewise.
53510         * lib/iconv_.h: Likewise.
53511         * lib/inttypes_.h: Likewise.
53512         * lib/locale_.h: Likewise.
53513         * lib/math_.h: Likewise.
53514         * lib/netinet_in_.h: Likewise.
53515         * lib/search_.h: Likewise.
53516         * lib/signal_.h: Likewise.
53517         * lib/stdint_.h: Likewise.
53518         * lib/stdio_.h: Likewise.
53519         * lib/stdlib_.h: Likewise.
53520         * lib/string_.h: Likewise.
53521         * lib/sys_select_.h: Likewise.
53522         * lib/sys_socket_.h: Likewise.
53523         * lib/sys_stat_.h: Likewise.
53524         * lib/sys_time_.h: Likewise.
53525         * lib/sysexits_.h: Likewise.
53526         * lib/time_.h: Likewise.
53527         * lib/unistd_.h: Likewise.
53528         * lib/wchar_.h: Likewise.
53529         * lib/wctype_.h: Likewise.
53530
53531 2007-05-29  Bruno Haible  <bruno@clisp.org>
53532
53533         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53534         for the moment.
53535
53536 2007-05-29  Bruno Haible  <bruno@clisp.org>
53537
53538         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53539         invocation.
53540         Reported by Eric Blake.
53541
53542 2007-05-29  Bruno Haible  <bruno@clisp.org>
53543
53544         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53545         compiling case.
53546
53547 2007-05-29  Eric Blake  <ebb9@byu.net>
53548             Bruno Haible  <bruno@clisp.org>
53549
53550         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53551         cross compiles.
53552
53553 2007-05-28  Eric Blake  <ebb9@byu.net>
53554
53555         * modules/closein-tests (test_closein_LDADD): Support test on
53556         cygwin with libtool.
53557
53558 2007-05-28  Bruno Haible  <bruno@clisp.org>
53559
53560         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53561         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53562         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53563         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53564         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53565         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53566         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53567         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53568         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53569
53570 2007-05-28  Eric Blake  <ebb9@byu.net>
53571
53572         Unconditionally include <config.h> in unit tests.
53573         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53574         * tests/test-allocsa.c, tests/test-arcfour.c,
53575         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53576         tests/test-array_list.c, tests/test-array_oset.c,
53577         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53578         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53579         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53580         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53581         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53582         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53583         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53584         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53585         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53586         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53587         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53588         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53589         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53590         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53591         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53592         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53593         test-md5.c, test-memmem.c, test-printf-posix.c,
53594         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53595         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53596         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53597         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53598         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53599         test-vasnprintf-posix2.c, test-vasnprintf.c,
53600         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53601         test-vfprintf-posix.c, test-vprintf-posix.c,
53602         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53603         test-xvasprintf.c: Likewise.
53604
53605 2007-05-28  Bruno Haible  <bruno@clisp.org>
53606
53607         * gnulib-tool (func_import): Remember the --with-tests command-line
53608         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53609         Reported by Eric Blake.
53610
53611 2007-05-28  Bruno Haible  <bruno@clisp.org>
53612
53613         * modules/ftell-tests: New file.
53614         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53615         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53616
53617         * lib/ftell.c: New file.
53618         * modules/ftell: New file.
53619         * m4/ftell.m4: New file.
53620         * doc/functions/ftell.texi: Update.
53621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53622         REPLACE_FTELL.
53623         * lib/stdio_.h (rpl_ftell): New declaration.
53624         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53625         REPLACE_FTELL.
53626
53627 2007-05-28  Eric Blake  <ebb9@byu.net>
53628
53629         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53630
53631 2007-05-28  Bruno Haible  <bruno@clisp.org>
53632
53633         * modules/fseek-tests: New file.
53634         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53635         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53636
53637         * lib/fseek.c: New file.
53638         * modules/fseek: New file.
53639         * m4/fseek.m4: New file.
53640         * doc/functions/fseek.texi: Update.
53641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53642         REPLACE_FSEEK.
53643         * lib/stdio_.h (rpl_fseek): New declaration.
53644         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53645         REPLACE_FSEEK.
53646
53647 2007-05-28  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/stdio_.h (fflush): More comments.
53650
53651 2007-05-28  Bruno Haible  <bruno@clisp.org>
53652
53653         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53654         runtime test.
53655
53656 2007-05-28  Eric Blake  <ebb9@byu.net>
53657
53658         Improve lseek module.
53659         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53660         * lib/unistd_.h (lseek): Scale back link warning message.
53661         * tests/test-lseek.c: Beef up test.
53662         * tests/test-lseek.sh: Exercise more facets of lseek.
53663         Reported by Bruno Haible.
53664
53665 2007-05-28  Bruno Haible  <bruno@clisp.org>
53666
53667         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53668         to define.
53669
53670 2007-05-27  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53673
53674 2007-05-27  Bruno Haible  <bruno@clisp.org>
53675
53676         * modules/openmp: New file.
53677         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53678         Noah Misch.
53679
53680 2007-05-26  Bruno Haible  <bruno@clisp.org>
53681
53682         * modules/chdir-long (Depends-on): Add fchdir.
53683         * modules/chdir-safer (Depends-on): Likewise.
53684         * modules/fts (Depends-on): Likewise.
53685         * modules/fts-lgpl (Depends-on): Likewise.
53686         * modules/openat (Depends-on): Likewise.
53687         * modules/savewd (Depends-on): Likewise.
53688
53689 2007-05-24  Eric Blake  <ebb9@byu.net>
53690
53691         Fix lseek on mingw.
53692         * modules/lseek: New module.
53693         * m4/lseek.m4: New file.
53694         * lib/lseek.c: New file.
53695         * modules/lseek-tests: New file.
53696         * tests/test-lseek.c: New file.
53697         * tests/test-lseek.sh: New file.
53698         * MODULES.html.sh: Document lseek module.
53699         * modules/fflush (Depends-on): Add lseek, fseeko.
53700         * modules/fseeko (Depends-on): Likewise.
53701         * modules/ftello (Depends-on): Likewise.
53702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53703         broken.
53704         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53705         broken.
53706         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53707         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53708         * lib/ftello.c (rpl_ftello): Likewise.
53709         * tests/test-fseeko.c (main): Test this.
53710         * tests/test-fseeko.sh: Likewise.
53711         * tests/test-ftello.c (main): Likewise.
53712         * tests/test-ftello.sh: Likewise.
53713         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53714         implies replacing fseek.
53715         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53716         HAVE_FTELLO.
53717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53718         * modules/unistd (Makefile.am): Likewise.
53719         * lib/unistd_.h (lseek): Declare a replacement.
53720         * doc/functions/lseek.texi (lseek): Document this fix.
53721         * doc/functions/fseek.texi (fseek): Likewise.
53722         * doc/functions/ftell.texi (ftell): Likewise.
53723
53724 2007-05-24  Bruno Haible  <bruno@clisp.org>
53725
53726         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53727         in the printed representation of a NaN.
53728         * tests/test-vasprintf-posix.c (test_function): Likewise.
53729         * tests/test-snprintf-posix.h (test_function): Likewise.
53730         * tests/test-sprintf-posix.h (test_function): Likewise.
53731         Reported by Eric Blake.
53732
53733 2007-05-23  Eric Blake  <ebb9@byu.net>
53734
53735         Fix fseeko/ftello on cygwin 1.5.24.
53736         * doc/functions/fseeko.texi (fseeko): Document the fix.
53737         * doc/functions/ftello.texi (ftello): Document the fix.
53738         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53739         * doc/functions/stdout.text (stdout): New file.
53740         * doc/functions/stderr.text (stderr): New file.
53741         * doc/gnulib.texi (Function Substitutes): Use new files.
53742         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53743         prior to 1.7.0.
53744         * tests/test-ftello.c (main): Likewise for ftello.
53745         * tests/test-fseeko.sh: New file.
53746         * tests/test-ftello.sh: New file.
53747         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53748         with seekable stdin.
53749         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53751         (gl_REPLACE_FSEEKO): New macro.
53752         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53753         * modules/fseeko (Files): Distribute fseeko.c.
53754         * modules/ftello (Files): Distribute ftello.c.
53755         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53756         mode.
53757         * lib/ftello.c (rpl_ftello): New file.
53758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53759         fseeko, ftello.
53760         (gl_STDIN_LARGE_OFFSET): New macro.
53761         * modules/stdio (Makefile.am): Perform the replacement.
53762         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53763
53764 2007-05-23  Bruno Haible  <bruno@clisp.org>
53765
53766         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53767         GNULIB_POSIXCHECK is defined.
53768
53769 2007-05-21  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53772         Check also the output for NaN arguments. When cross-compiling, guess
53773         no on IRIX.
53774         * lib/vasnprintf.c: Update comments.
53775         * tests/test-vasnprintf-posix.c (strisnan): New function.
53776         (test_function): Use it.
53777         * tests/test-vasprintf-posix.c (strisnan): New function.
53778         (test_function): Use it.
53779         * tests/test-snprintf-posix.h (strisnan): New function.
53780         (test_function): Use it.
53781         * tests/test-sprintf-posix.h (strisnan): New function.
53782         (test_function): Use it.
53783         Reported by Eric Blake.
53784
53785 2007-05-20  Bruno Haible  <bruno@clisp.org>
53786
53787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53788         numbers that fails on BeOS.
53789         * doc/functions/frexpl.texi: Update.
53790
53791 2007-05-20  Jim Meyering  <jim@meyering.net>
53792
53793         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53794         forced upon us by glibc-2.6.
53795
53796 2007-05-20  Bruno Haible  <bruno@clisp.org>
53797
53798         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53799         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53800         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53801         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53802         NEED_PRINTF_INFINITE.
53803         (is_infinitel): New function.
53804         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53806         gl_PREREQ_VASNPRINTF_INFINITE.
53807         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53809         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53810         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53811         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53812         gl_PREREQ_VASNPRINTF_INFINITE.
53813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53820         * doc/functions/fprintf.texi: Update.
53821         * doc/functions/printf.texi: Update.
53822         * doc/functions/snprintf.texi: Update.
53823         * doc/functions/sprintf.texi: Update.
53824         * doc/functions/vfprintf.texi: Update.
53825         * doc/functions/vprintf.texi: Update.
53826         * doc/functions/vsnprintf.texi: Update.
53827         * doc/functions/vsprintf.texi: Update.
53828
53829 2007-05-20  Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53832         was not found in libc.
53833         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53834
53835 2007-05-20  Bruno Haible  <bruno@clisp.org>
53836
53837         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53838         printed as "-nan" instead of "nan".
53839         * tests/test-vasprintf-posix.c (test_function): Likewise.
53840         * tests/test-snprintf-posix.h (test_function): Likewise.
53841         * tests/test-sprintf-posix.h (test_function): Likewise.
53842         Needed for HP-UX 11.
53843
53844 2007-05-20  Jim Meyering  <jim@meyering.net>
53845
53846         Fix buggy test for the fchownat-deref bug.
53847         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53848         symlink required for the run-test.  Without it, this test would
53849         always declare that fchownat doesn't work, and client code would
53850         unnecessarily use the replacement function with fixed libc.
53851         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53852         Reported by Greg Schafer.
53853
53854 2007-05-19  Bruno Haible  <bruno@clisp.org>
53855
53856         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53857         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53858         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53859         Needed for IRIX 6.5 and Solaris 2.5.1.
53860
53861 2007-05-19  Bruno Haible  <bruno@clisp.org>
53862
53863         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53864         (test_function): Skip tests involving -0.0 on platforms where
53865         -0.0 = 0.0.
53866         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53867         (test_function): Skip tests involving -0.0 on platforms where
53868         -0.0 = 0.0.
53869         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53870         (test_function): Skip tests involving -0.0 on platforms where
53871         -0.0 = 0.0.
53872         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53873         (test_function): Skip tests involving -0.0 on platforms where
53874         -0.0 = 0.0.
53875         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53876         tests.
53877         * tests/test-printf-posix.h (test_function): Likewise.
53878         * tests/test-printf-posix.output: Remove all -0.0 related results.
53879         Needed for IRIX 6.5.
53880
53881 2007-05-19  Bruno Haible  <bruno@clisp.org>
53882
53883         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53884         printed as "nan0x7fffffff" instead of "nan".
53885         * tests/test-vasprintf-posix.c (test_function): Likewise.
53886         * tests/test-snprintf-posix.h (test_function): Likewise.
53887         * tests/test-sprintf-posix.h (test_function): Likewise.
53888         * tests/test-fprintf-posix.h (NaN): Remove macro.
53889         (test_function): Remove all NaN related tests.
53890         * tests/test-printf-posix.h (NaN): Remove macro.
53891         (test_function): Remove all NaN related tests.
53892         * tests/test-printf-posix.output: Remove all NaN related results.
53893         Needed for IRIX 6.5.
53894
53895 2007-05-19  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53899
53900 2007-05-19  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/float_.h: New file.
53903         * m4/float_h.m4: New file.
53904         * modules/float: New file.
53905         * modules/isnanl (Dependencies): Add float.
53906         * modules/isnanl-nolibm (Dependencies): Likewise.
53907         * modules/mathl (Dependencies): Likewise.
53908         * modules/printf-frexpl (Dependencies): Likewise.
53909         * modules/signbit (Dependencies): Likewise.
53910         * modules/vasnprintf (Dependencies): Likewise.
53911         * doc/headers/float.texi: Update.
53912
53913 2007-05-19  Jim Meyering  <jim@meyering.net>
53914
53915         * lib/utimens.c (gl_futimens): Rename from futimens,
53916         now that glibc-2.6 declares futimens.
53917         * lib/utimens.h: Likewise.
53918
53919 2007-05-19  Bruno Haible  <bruno@clisp.org>
53920
53921         Avoid test failures on mingw.
53922         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53923         * tests/test-printf-posix.sh: Likewise.
53924         * tests/test-vfprintf-posix.sh: Likewise.
53925         * tests/test-vprintf-posix.sh: Likewise.
53926
53927 2007-05-19  Bruno Haible  <bruno@clisp.org>
53928
53929         Fix *printf result for NaN, Inf, -0.0 on mingw.
53930         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53931         * lib/vasnprintf.c: Include math.h and isnan.h.
53932         (is_infinite_or_zero): New function.
53933         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53934         values in the %f, %F, %e, %E, %g, %G directives.
53935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53937         gl_PRINTF_INFINITE and test its result. Invoke
53938         gl_PREREQ_VASNPRINTF_INFINITE.
53939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53946         * doc/functions/fprintf.texi: Update.
53947         * doc/functions/printf.texi: Update.
53948         * doc/functions/snprintf.texi: Update.
53949         * doc/functions/sprintf.texi: Update.
53950         * doc/functions/vfprintf.texi: Update.
53951         * doc/functions/vprintf.texi: Update.
53952         * doc/functions/vsnprintf.texi: Update.
53953         * doc/functions/vsprintf.texi: Update.
53954
53955 2007-05-19  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53958         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53959         Instead of multiplying with 10^k, set extra_zeroes to k.
53960         (scale10_round_long_double): Remove function.
53961
53962 2007-05-18  Bruno Haible  <bruno@clisp.org>
53963
53964         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53965         introduced on 2007-05-06.
53966
53967 2007-05-18  Bruno Haible  <bruno@clisp.org>
53968
53969         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53970         %g directives.
53971         * tests/test-vasprintf-posix.c (test_function): Likewise.
53972         * tests/test-snprintf-posix.h (test_function): Likewise.
53973         * tests/test-sprintf-posix.h (test_function): Likewise.
53974
53975 2007-05-18  Bruno Haible  <bruno@clisp.org>
53976
53977         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53978         (strmatch): New function.
53979         (test_function): Test the %f directive on numbers of various exponents.
53980         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53981         (strmatch): New function.
53982         (test_function): Test the %f directive on numbers of various exponents.
53983         * tests/test-snprintf-posix.h (strmatch): New function.
53984         (test_function): Test the %f directive on numbers of various exponents.
53985         * tests/test-sprintf-posix.h (strmatch): New function.
53986         (test_function): Test the %f directive on numbers of various exponents.
53987         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53988         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53989         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53990         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53991
53992 2007-05-18  Bruno Haible  <bruno@clisp.org>
53993
53994         Add support for 'long double' number output.
53995         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53996         * lib/vasnprintf.c: Include math.h and float+.h.
53997         (mp_limb_t): New type.
53998         (GMP_LIMB_BITS): New macro.
53999         (mp_twolimb_t): New type.
54000         (GMP_TWOLIMB_BITS): New macro.
54001         (mpn_t): New type.
54002         (multiply, divide, convert_to_decimal, decode_long_double,
54003         scale10_round_long_double, scale10_round_decimal_long_double,
54004         floorlog10l): New functions.
54005         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54006         for the %f, %F, %e, %E, %g, %G directives.
54007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54009         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54010         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54018         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54019         * modules/snprintf-posix (Depends-on): Likewise.
54020         * modules/sprintf-posix (Depends-on): Likewise.
54021         * modules/vasnprintf-posix (Depends-on): Likewise.
54022         * modules/vasprintf-posix (Depends-on): Likewise.
54023         * modules/vfprintf-posix (Depends-on): Likewise.
54024         * modules/vsnprintf-posix (Depends-on): Likewise.
54025         * modules/vsprintf-posix (Depends-on): Likewise.
54026         * modules/vasnprintf (Files): Add lib/float+.h.
54027         * doc/functions/fprintf.texi: Update.
54028         * doc/functions/printf.texi: Update.
54029         * doc/functions/snprintf.texi: Update.
54030         * doc/functions/sprintf.texi: Update.
54031         * doc/functions/vfprintf.texi: Update.
54032         * doc/functions/vprintf.texi: Update.
54033         * doc/functions/vsnprintf.texi: Update.
54034         * doc/functions/vsprintf.texi: Update.
54035
54036 2007-05-18  Bruno Haible  <bruno@clisp.org>
54037
54038         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54039
54040 2007-05-18  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54043         for printing 64-bit integers. Needed for mingw.
54044
54045 2007-05-18  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54048         gl_FUNC_FREXPL_WORKS.
54049         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54050
54051 2007-05-18  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/frexpl-nolibm-tests: New file.
54054
54055         * modules/frexpl-nolibm: New file.
54056         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54057
54058 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54059
54060         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54061         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54062         GCC 4.2, which otherwise issues a lot of warnings.
54063         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54064         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54065         Likewise.
54066         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54067         * modules/iconv_open (iconv.h): Likewise.
54068         * modules/locale (locale.h): Likewise.
54069         * modules/netinet_in (netinet/in.h): Likewise.
54070         * modules/sys_select (sys_select.h): Likewise.
54071         * modules/sys_socket (sys/socket.h): Likewise.
54072         * modules/sys_stat (sys/stat.h): Likewise.
54073         * modules/sysexits (sysexits.h): Likewise.
54074         * modules/unistd (unistd.h): Likewise.
54075
54076 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54077
54078         * modules/closein-tests (Makefile.am): Distribute
54079         `test-closein.sh'.
54080
54081 2007-05-17  Bruno Haible  <bruno@clisp.org>
54082
54083         * tests/test-printf-posix.output: Renamed from
54084         tests/test-fprintf-posix.out.
54085         * modules/fprintf-posix-tests: Update.
54086         * modules/printf-posix-tests: Update.
54087         * modules/vfprintf-posix-tests: Update.
54088         * modules/vprintf-posix-tests: Update.
54089         * tests/test-fprintf-posix.sh: Update.
54090         * tests/test-printf-posix.sh: Update.
54091         * tests/test-vfprintf-posix.sh: Update.
54092         * tests/test-vprintf-posix.sh: Update.
54093         Reported by Ralf Wildenhues.
54094
54095 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54098         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54099         GCC 4.2, which otherwise issues a lot of warnings.
54100         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54101         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54102         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54103         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54104         it should no longer be needed.
54105         * lib/string_.h: Likewise.
54106         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54107         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54108         * modules/inttypes (inttypes.h): Likewise.
54109         * modules/math (math.h): Likewise.
54110         * modules/search (search.h): Likewise.
54111         * modules/signal (signal.h): Likewise.
54112         * modules/stdint (stdint.h): Likewise.
54113         * modules/stdio (stdio.h): Likewise.
54114         * modules/stdlib (stdlib.h): Likewise.
54115         * modules/string (string.h): Likewise.
54116         * modules/sys_time (sys/time.h): Likewise.
54117         * modules/time (time.h): Likewise.
54118         * modules/wchar (wchar.h): Likewise.
54119         * modules/wctype (wtype.h): Likewise.
54120
54121 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54122
54123         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54124
54125 2007-05-13  Bruno Haible  <bruno@clisp.org>
54126
54127         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54128         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54129         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54130         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54131         (gl_PREREQ_STRTOK_R): Don't require it here.
54132
54133 2007-05-13  Bruno Haible  <bruno@clisp.org>
54134
54135         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54136         when used in C++ mode.
54137
54138 2007-05-12  Bruno Haible  <bruno@clisp.org>
54139
54140         * lib/linebuffer.h: Tweak doc.
54141         * lib/linebuffer.c: Likewise.
54142
54143 2007-05-12  James Youngman  <jay@gnu.org>
54144
54145         * lib/linebuffer.c (readlinebuffer_delim): New function,
54146         like readlinebuffer, but use a caller-specified delimiter.
54147         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54148         as the delimiter.
54149         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54150
54151 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54152
54153         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54154         * modules/openat (Files): Remove openat-die.c.
54155         (Depends-on): Add openat-die.
54156         * modules/openat-die: New module.
54157
54158 2007-05-06  Bruno Haible  <bruno@clisp.org>
54159
54160         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54161         Update with info about Cygwin.
54162         * doc/functions/fprintf.texi: Update.
54163         * doc/functions/printf.texi: Update.
54164         * doc/functions/snprintf.texi: Update.
54165         * doc/functions/sprintf.texi: Update.
54166         * doc/functions/vfprintf.texi: Update.
54167         * doc/functions/vprintf.texi: Update.
54168         * doc/functions/vsnprintf.texi: Update.
54169         * doc/functions/vsprintf.texi: Update.
54170         Reported by Eric Blake.
54171
54172 2007-05-06  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54175         padding ourselves for the floating-point directives.
54176         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54179         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54180         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54188         * tests/test-snprintf-posix.h (test_function): Also check the width
54189         and some flags in the %f directive.
54190         * tests/test-sprintf-posix.h (test_function): Likewise.
54191         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54192         * tests/test-vasprintf-posix.c (test_function): Likewise.
54193         * doc/functions/fprintf.texi: Update.
54194         * doc/functions/printf.texi: Update.
54195         * doc/functions/snprintf.texi: Update.
54196         * doc/functions/sprintf.texi: Update.
54197         * doc/functions/vfprintf.texi: Update.
54198         * doc/functions/vprintf.texi: Update.
54199         * doc/functions/vsnprintf.texi: Update.
54200         * doc/functions/vsprintf.texi: Update.
54201
54202 2007-05-06  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54205         pass the ' flag character to sprintf or snprintf.
54206         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54209         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54210         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54218         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54219         flag.
54220         * tests/test-sprintf-posix.h (test_function): Likewise.
54221         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54222         * tests/test-vasprintf-posix.c (test_function): Likewise.
54223         * doc/functions/fprintf.texi: Update.
54224         * doc/functions/printf.texi: Update.
54225         * doc/functions/snprintf.texi: Update.
54226         * doc/functions/sprintf.texi: Update.
54227         * doc/functions/vfprintf.texi: Update.
54228         * doc/functions/vprintf.texi: Update.
54229         * doc/functions/vsnprintf.texi: Update.
54230         * doc/functions/vsprintf.texi: Update.
54231
54232 2007-05-01  Bruno Haible  <bruno@clisp.org>
54233
54234         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54235
54236 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54237
54238         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54239         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54240
54241 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54242
54243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54244         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54246
54247 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54248
54249         * lib/argp-help.c (struct hol_entry): New member `ord'.
54250         (HOL_ENTRY_PTRCMP): Use ord for comparison
54251         (hol_sort): Initialize ord.
54252
54253 2007-05-01  Bruno Haible  <bruno@clisp.org>
54254
54255         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54256         Reported by Eric Blake.
54257         * doc/gnulib.texi (Function Substitutes): Update.
54258
54259 2007-05-01  Bruno Haible  <bruno@clisp.org>
54260
54261         * doc/functions.texi: Remove file, now redundant through
54262         doc/functions/*.texi.
54263
54264 2007-05-01  Bruno Haible  <bruno@clisp.org>
54265
54266         * modules/argp (Depends-on): Add sleep.
54267
54268 2007-05-01  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/sleep-tests: New file.
54271         * tests/test-sleep.c: New file.
54272
54273         * modules/sleep: New file.
54274         * lib/sleep.c: New file.
54275         * m4/sleep.m4: New file.
54276         * lib/unistd_.h (sleep): New declaration.
54277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54278         HAVE_SLEEP.
54279         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54280         * doc/functions/sleep.texi: Document the sleep module.
54281
54282 2007-05-01  Bruno Haible  <bruno@clisp.org>
54283
54284         * lib/sigprocmask.h: Remove file.
54285         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54286         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54287         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54288         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54289         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54290         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54291         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54292         HAVE_SIGSET_T as a shell variable.
54293         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54294         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54295         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54296         (Depends-on): Add signal. Remove verify.
54297         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54298         (Include): Mention <signal.h> instead of sigprocmask.h.
54299         * NEWS: Mention the change.
54300         * lib/fatal-signal.c: Don't include sigprocmask.h.
54301
54302 2007-05-01  Bruno Haible  <bruno@clisp.org>
54303
54304         * modules/signal: New file.
54305         * lib/signal_.h: New file.
54306         * m4/signal_h.m4: New file.
54307
54308 2007-05-01  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54311         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54312         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54313         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54314
54315 2007-05-01  Bruno Haible  <bruno@clisp.org>
54316
54317         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54318         configure time.
54319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54320         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54321         * modules/sys_stat (Makefile.am): Substitute their values into
54322         sys/stat.h.
54323
54324 2007-05-01  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54327         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54328         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54329
54330 2007-05-01  Bruno Haible  <bruno@clisp.org>
54331
54332         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54333         'assert' module here.
54334
54335 2007-05-01  Bruno Haible  <bruno@clisp.org>
54336
54337         * doc/functions/*.texi: New files.
54338         * doc/functions/google-ranking.txt: New file.
54339         * doc/gnulib.texi (Function Substitutes): New chapter.
54340         (ctime, inet_ntoa): Remove sections.
54341         * doc/ctime.texi: Remove file.
54342         * doc/inet_ntoa.texi: Remove file.
54343         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54344         dependencies.
54345         (%.info): New rule, specifying a --reference-limit.
54346
54347 2007-05-01  Bruno Haible  <bruno@clisp.org>
54348
54349         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54350
54351 2007-05-01  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54354         the portability of 'mkdir' to mingw systems.
54355
54356 2007-05-01  Bruno Haible  <bruno@clisp.org>
54357
54358         * doc/headers/google-ranking.txt: New file.
54359
54360 2007-04-30  Eric Blake  <ebb9@byu.net>
54361
54362         Prefer fseeko to fseek.
54363         * modules/getpass (Depends-on): Add fseeko.
54364         * lib/getpass.c (getpass): Use fseeko, not fseek.
54365
54366 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54367
54368         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54369         assumes the sorting is stable, while most qsort implementations
54370         are not.  Use argument addresses to ensure they never compare as
54371         equal.
54372
54373         * tests/test-argp-2.sh (usage-indent test): Fix output
54374         (func_compare): Restore diff options
54375         * tests/test-argp.c: Restore #include "progname.h"
54376
54377 2007-04-29  Bruno Haible  <bruno@clisp.org>
54378
54379         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54381         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54383         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54384         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54385         (TESTS, check_PROGRAMS): Add test-snprintf.
54386         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54387         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54388         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54389         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54390         assertions that fail on HP-UX, OSF/1, or IRIX.
54391         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54392
54393 2007-04-29  Bruno Haible  <bruno@clisp.org>
54394
54395         * MODULES.html.sh (posix_functions): Remove 'contents'.
54396
54397 2007-04-29  Karl Berry  <karl@gnu.org>
54398
54399         * config/srclist.txt (gendocs_template_min): new entry.
54400
54401 2007-04-29  Bruno Haible  <bruno@clisp.org>
54402
54403         Work around fpurge bug on BSD systems.
54404         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54405         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54406         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54407         fpurge to rpl_fpurge if the system already has this function.
54408         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54409         the case where the system already has this function. Correct invariants
54410         on BSD systems.
54411         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54412         BSD systems.
54413
54414 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54415
54416         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54417         proposed by Sven Verdoolaege.
54418
54419         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54420         options.
54421         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54422         (usage and help tests): Update
54423
54424 2007-04-29  Bruno Haible  <bruno@clisp.org>
54425
54426         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54427         Print more information in case of failure. Disable a test on BeOS.
54428
54429 2007-04-29  Bruno Haible  <bruno@clisp.org>
54430
54431         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54432         This helps debugging on systems on which no gdb is available.
54433
54434 2007-04-29  Bruno Haible  <bruno@clisp.org>
54435
54436         * lib/freading.h: Improve comments.
54437         * lib/fwriting.h: Likewise.
54438         * tests/test-freading.c (main): Don't check freading immediately after
54439         repositioning. Needed for glibc.
54440
54441 2007-04-29  Bruno Haible  <bruno@clisp.org>
54442
54443         * lib/freading.c (freading): Trivial simplification.
54444
54445 2007-04-28  Bruno Haible  <bruno@clisp.org>
54446
54447         * tests/test-fwriting.c (main): Also test the interaction between
54448         fflush and fwriting.
54449         * modules/fwriting-tests (Depends-on): Add fflush.
54450
54451         * tests/test-freading.c (main): Also test the interaction between
54452         fflush and freading.
54453         * modules/freading-tests (Depends-on): Add fflush.
54454
54455 2007-04-28  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54458         fseeko and ftello.
54459         Suggested by Eric Blake.
54460
54461 2007-04-28  Jim Meyering  <jim@meyering.net>
54462
54463         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54464         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54465         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54466
54467 2007-04-27  Eric Blake  <ebb9@byu.net>
54468
54469         * doc/headers/assert.texi (assert.h): Document assert module use.
54470
54471 2007-04-27  Bruno Haible  <bruno@clisp.org>
54472
54473         * doc/headers/*.texi: New files.
54474         * doc/gnulib.texi (Header File Substitutes): New chapter.
54475         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54476         dependencies.
54477         (standards.info ,standards.html, standards.dvi): Update dependencies.
54478         (mostlyclean, clean): New targets.
54479
54480 2007-04-27  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54483         * modules/sysexits (Files, Makefile.am): Update.
54484
54485         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54486         * modules/sys_socket (Files, Makefile.am): Update.
54487
54488         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54489         * modules/sys_stat (Files, Makefile.am): Update.
54490
54491 2007-04-27  Eric Blake  <ebb9@byu.net>
54492
54493         * lib/freading.h: Improve comments.
54494         * lib/fwriting.h: Likewise.
54495         * lib/fflush.c: Likewise.
54496
54497         Fix closein for mingw.
54498         * modules/closein-tests: Add tests for closein.
54499         * tests/test-closein.c: New file.
54500         * tests/test-closein.sh: Likewise.
54501         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54502         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54503
54504 2007-04-27  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54507         version is < 6.
54508         * lib/math_.h [__DECC]: Likewise.
54509         * lib/stdio_.h [__DECC]: Likewise.
54510         * lib/stdlib_.h [__DECC]: Likewise.
54511         * lib/string_.h [__DECC]: Likewise.
54512         * lib/time_.h [__DECC]: Likewise.
54513         * lib/wchar_.h [__DECC]: Likewise.
54514         * lib/wctype_.h [__DECC]: Likewise.
54515
54516 2007-04-27  Bruno Haible  <bruno@clisp.org>
54517
54518         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54519
54520 2007-04-27  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/fflush.c: Add comments.
54523         * modules/fpurge-tests (Depends-on): Add fflush.
54524         * modules/freadable-tests (Depends-on): Likewise.
54525         * modules/fwritable-tests (Depends-on): Likewise.
54526
54527 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54528
54529         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54530         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54531         Report by Bruno Haible <bruno@clisp.org>.
54532
54533 2007-04-26  Eric Blake  <ebb9@byu.net>
54534
54535         Fix fflush on mingw.
54536         * modules/fflush (Depends-on): Add freading.
54537         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54538         but unread data.
54539
54540 2007-04-26  Eric Blake  <ebb9@byu.net>
54541         and Bruno Haible  <bruno@clisp.org>
54542
54543         Implement freading and fwriting.
54544         * lib/freading.c: New file.
54545         * lib/freading.h: Likewise.
54546         * m4/freading.m4: Likewise.
54547         * modules/freading: Likewise.
54548         * modules/freading-tests: Likewise.
54549         * tests/test-freading.c: Likewise.
54550         * lib/fwriting.c: New file.
54551         * lib/fwriting.h: Likewise.
54552         * m4/fwriting.m4: Likewise.
54553         * modules/fwriting: Likewise.
54554         * modules/fwriting-tests: Likewise.
54555         * tests/test-fwriting.c: Likewise.
54556         * MODULES.html.sh (File stream based Input/Output): Mention them.
54557
54558 2007-04-26  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54561         'long' when we assume it.
54562         Suggested by Eric Blake.
54563
54564 2007-04-26  Bruno Haible  <bruno@clisp.org>
54565
54566         Ensure fseeko, ftello are declared on glibc systems.
54567         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54568         * modules/fseeko (configure.ac-early): Likewise.
54569         * modules/ftello (configure.ac-early): Likewise.
54570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54571         AC_FUNC_FSEEKO for this.
54572         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54573         (gl_CHECK_FSEEKO): Remove macro.
54574
54575 2007-04-26  Bruno Haible  <bruno@clisp.org>
54576
54577         * tests/test-fflush.c (main): Also check the ftell result after
54578         fflush and fseek/fseeko.
54579         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54580         file descriptor position cache in the stream.
54581         * lib/fseeko.c (rpl_fseeko): Likewise.
54582
54583 2007-04-26  Bruno Haible  <bruno@clisp.org>
54584
54585         * modules/fflush-tests (Depends-on): Add fseeko.
54586
54587 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54588             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54589
54590         * lib/argz_.h: ensure error_t definition is obtained in same
54591         mechanism system argz.h would have.
54592         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54593         argz facilities are known bad.  Err on the side of caution if
54594         cross-compiling.
54595
54596 2007-04-25  Eric Blake  <ebb9@byu.net>
54597
54598         * lib/fpurge.c (includes): Use stdlib.h for free.
54599         * tests/test-fflush.c (main): Also test fflush-fseeko.
54600
54601 2007-04-25  Bruno Haible  <bruno@clisp.org>
54602
54603         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54604         * lib/fseeko.c: New file.
54605         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54606         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54607         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54608         gl_FUNC_FSEEKO.
54609         (gl_FUNC_FSEEKO): Invoke it.
54610         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54611         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54612         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54613
54614 2007-04-25  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/fflush (Depends-on): Add ftello.
54617
54618 2007-04-25  Bruno Haible  <bruno@clisp.org>
54619
54620         * modules/ftello-tests: New file.
54621         * tests/test-ftello.c: New file.
54622
54623         * modules/ftello: New file.
54624         * m4/ftello.m4: New file.
54625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54626         HAVE_FTELLO.
54627         * lib/stdio_.h (ftello): New declaration.
54628         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54629         HAVE_FTELLO.
54630
54631 2007-04-25  Bruno Haible  <bruno@clisp.org>
54632
54633         * modules/fseeko-tests: New file.
54634         * tests/test-fseeko.c: New file.
54635
54636         * modules/fseeko: New file.
54637         * m4/fseeko.m4: New file.
54638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54639         HAVE_FSEEKO.
54640         * lib/stdio_.h (fseeko): New declaration.
54641         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54642         HAVE_FSEEKO.
54643
54644 2007-04-25  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54647
54648 2007-04-25  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54651         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54652         * tests/test-unistd.c: Likewise.
54653         * tests/test-fcntl.c: Likewise.
54654
54655 2007-04-23  Eric Blake  <ebb9@byu.net>
54656
54657         * lib/fflush.c: Fix missing include.
54658         Reported by Bruno Haible.
54659
54660 2007-04-23  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54663         Reported by Eric Blake.
54664
54665 2007-04-23  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54668
54669 2007-04-23  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54672
54673 2007-04-23  Bruno Haible  <bruno@clisp.org>
54674
54675         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54676         Needed on HP-UX 11.
54677
54678 2007-04-16  Eric Blake  <ebb9@byu.net>
54679
54680         Make fflush rely on fpurge.
54681         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54682         open coding all variants.
54683         * modules/fflush (Depends-on): Add fpurge and unistd.
54684         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54685         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54686
54687         Fix --with-tests compilation on cygwin.
54688         * modules/argmatch-tests (Makefile.am): List gnulib library first
54689         in LDADD.
54690         * modules/argp-tests (Makefile.am): Likewise.
54691         * modules/array-list-tests (Makefile.am): Likewise.
54692         * modules/array-oset-tests (Makefile.am): Likewise.
54693         * modules/avltree-list-tests (Makefile.am): Likewise.
54694         * modules/avltree-oset-tests (Makefile.am): Likewise.
54695         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54696         * modules/carray-list-tests (Makefile.am): Likewise.
54697         * modules/dirname-tests (Makefile.am): Likewise.
54698         * modules/frexp-tests (Makefile.am): Likewise.
54699         * modules/isnanl-tests (Makefile.am): Likewise.
54700         * modules/linked-list-tests (Makefile.am): Likewise.
54701         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54702         * modules/lock-tests (Makefile.am): Likewise.
54703         * modules/rbtree-list-tests (Makefile.am): Likewise.
54704         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54705         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54706         * modules/tls-tests (Makefile.am): Likewise.
54707         * modules/tsearch-tests (Makefile.am): Likewise.
54708         * modules/xvasprintf-tests (Makefile.am): Likewise.
54709
54710         Fix fpurge for cygwin.
54711         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54712         value.
54713         * modules/fpurge-tests (Depends-on): Clean up trash.
54714
54715 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54716
54717         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54718
54719         * m4/autobuild.m4: Re-indent.
54720
54721 2007-04-13  Bruno Haible  <bruno@clisp.org>
54722
54723         * modules/fpurge-tests: New file.
54724         * tests/test-fpurge.c: New file.
54725
54726         * modules/fpurge: New file.
54727         * lib/fpurge.h: New file.
54728         * lib/fpurge.c: New file.
54729         * m4/fpurge.m4: New file.
54730
54731 2007-04-13  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/fbufmode-tests: New file.
54734         * tests/test-fbufmode.c: New file.
54735
54736         * modules/fbufmode: New file.
54737         * lib/fbufmode.h: New file.
54738         * lib/fbufmode.c: New file.
54739         * m4/fbufmode.m4: New file.
54740
54741 2007-04-13  Bruno Haible  <bruno@clisp.org>
54742
54743         * modules/fwritable-tests: New file.
54744         * tests/test-fwritable.c: New file.
54745
54746         * modules/fwritable: New file.
54747         * lib/fwritable.h: New file.
54748         * lib/fwritable.c: New file.
54749         * m4/fwritable.m4: New file.
54750
54751 2007-04-13  Bruno Haible  <bruno@clisp.org>
54752
54753         * modules/freadable-tests: New file.
54754         * tests/test-freadable.c: New file.
54755
54756         * modules/freadable: New file.
54757         * lib/freadable.h: New file.
54758         * lib/freadable.c: New file.
54759         * m4/freadable.m4: New file.
54760
54761 2007-04-13  Bruno Haible  <bruno@clisp.org>
54762
54763         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54764         MOSTLYCLEANFILES.
54765
54766 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54769         gzip bootstrap.conf to avoid dragging in i18n machinery.
54770         (gnulib_tool_option): Use it.
54771
54772 2007-04-13  Bruno Haible  <bruno@clisp.org>
54773
54774         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54775         %F directives.
54776         * tests/test-vasprintf-posix.c (test_function): Likewise.
54777         * tests/test-snprintf-posix.h (test_function): Likewise.
54778         * tests/test-sprintf-posix.h (test_function): Likewise.
54779         * tests/test-fprintf-posix.h (test_function): Likewise.
54780         * tests/test-printf-posix.h (test_function): Likewise.
54781         * tests/test-fprintf-posix.out: Likewise.
54782
54783 2007-04-13  Bruno Haible  <bruno@clisp.org>
54784
54785         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54786         * modules/tls-tests (configure.ac): Likewise.
54787         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54788
54789 2007-04-13  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/tls.c (glthread_tls_get): Fix return type.
54792         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54793
54794 2007-04-12  Eric Blake  <ebb9@byu.net>
54795
54796         * modules/gettime (Depends-on): Remove gettime.
54797         Reported by Dmitry V. Levin.
54798
54799 2007-04-12  Bruno Haible  <bruno@clisp.org>
54800
54801         * modules/fflush (Include): Mention <stdio.h>.
54802         * modules/strtoimax (Include): Mention <inttypes.h>.
54803         * modules/strtoumax (Include): Likewise.
54804
54805 2007-04-12  Eric Blake  <ebb9@byu.net>
54806
54807         * .cvsignore: New file.
54808         * .gitignore: Likewise.
54809
54810 2007-04-12  Bruno Haible  <bruno@clisp.org>
54811
54812         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54813         not before, since $(LDADD) often contains libgnu.a.
54814         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54815         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54816         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54817         Needed on Cygwin.
54818
54819 2007-04-12  Eric Blake  <ebb9@byu.net>
54820
54821         Work around glibc's failure to flush stdin on fclose.
54822         * lib/closein.c (close_stdin): Flush stdin before closing.
54823
54824         Work around glibc's failure to reset seekable stdin on exit.
54825         * modules/closein: New module.
54826         * lib/closein.c: New file.
54827         * lib/closein.h: Likewise.
54828         * m4/closein.m4: Likewise.
54829         * MODULES.html.sh (File stream based Input/Output): Document it.
54830
54831 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54832
54833         * gnulib-tool: Rename generated 'autobuild' script to
54834         'do-autobuild' in --create-megatestdir output.
54835
54836         * doc/gnulib.texi (Build robot for gnulib): Fix.
54837
54838 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54839
54840         * modules/sysexits (Depends-on): Add absolute-header.
54841
54842 2007-04-12  Eric Blake  <ebb9@byu.net>
54843
54844         No need to preserve errno on success.
54845         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54846         Reported by Bruno Haible.
54847
54848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54849
54850         * MODULES.html.sh (Support for maintaining and releasing
54851         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54852
54853 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54854
54855         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54856
54857 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54858
54859         * modules/autobuild: New module.
54860
54861         * m4/autobuild.m4: New file.
54862
54863 2007-04-11  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54866         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54885         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54886         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54888         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54889         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54891         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54892         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54893         Reported by Eric Blake.
54894
54895 2007-04-11  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54898
54899 2007-04-10  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54902         for NaN and Infinity. Needed on FreeBSD 6.1.
54903         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54904         regarding results for "%010a" of Infinity and NaN.
54905         * tests/test-vasprintf-posix.c (test_function): Likewise.
54906         * tests/test-snprintf-posix.h (test_function): Likewise.
54907         * tests/test-sprintf-posix.h (test_function): Likewise.
54908         * tests/test-fprintf-posix.h (test_function): Likewise.
54909         * tests/test-printf-posix.h (test_function): Likewise.
54910         * tests/test-fprintf-posix.out: Likewise.
54911
54912 2007-04-10  Bruno Haible  <bruno@clisp.org>
54913
54914         * modules/locale-tests: New file.
54915         * tests/test-locale.c: New file.
54916
54917         * modules/locale: New file.
54918         * lib/locale_.h: New file.
54919         * m4/locale_h.m4: New file.
54920
54921 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54922             Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54925         be determined, test for availability of the copysignf, copysign,
54926         copysignl functions.
54927         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54928         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54929         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54930
54931 2007-04-09  Eric Blake  <ebb9@byu.net>
54932
54933         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54934         * modules/stdio (Makefile.am): Support fflush.
54935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54936         * modules/fflush: New file.
54937         * lib/fflush.c: Likewise.
54938         * m4/fflush.m4: Likewise.
54939         * modules/fflush-tests: New test.
54940         * tests/test-fflush.c: Likewise.
54941         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54942
54943 2007-04-06  Bruno Haible  <bruno@clisp.org>
54944
54945         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54946         (VASNPRINTF): Use signbit for faster determination whether to print a
54947         minus sign.
54948         * modules/vasnprintf (Files): Remove lib/float+.h.
54949         * modules/fprintf-posix (Depends-on): Add signbit.
54950         * modules/snprintf-posix (Depends-on): Likewise.
54951         * modules/sprintf-posix (Depends-on): Likewise.
54952         * modules/vasnprintf-posix (Depends-on): Likewise.
54953         * modules/vasprintf-posix (Depends-on): Likewise.
54954         * modules/vfprintf-posix (Depends-on): Likewise.
54955         * modules/vsnprintf-posix (Depends-on): Likewise.
54956         * modules/vsprintf-posix (Depends-on): Likewise.
54957
54958 2007-04-06  Bruno Haible  <bruno@clisp.org>
54959
54960         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54961         * tests/test-frexpl.c (main): Likewise.
54962         * tests/test-ldexpl.c (main): Likewise.
54963         * modules/frexp-tests (Depends-on): Add signbit.
54964         * modules/frexpl-tests (Depdends-on): Likewise.
54965         * modules/ldexpl-tests (Depdends-on): Likewise.
54966
54967 2007-04-06  Bruno Haible  <bruno@clisp.org>
54968
54969         * modules/signbit-tests: New file.
54970         * tests/test-signbit.c: New file.
54971
54972         * modules/signbit: New file.
54973         * lib/signbitf.c: New file.
54974         * lib/signbitd.c: New file.
54975         * lib/signbitl.c: New file.
54976         * m4/signbit.m4: New file.
54977         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54978         (signbit): New macro.
54979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54980         REPLACE_SIGNBIT.
54981         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54982         REPLACE_FREXPL into math.h.
54983
54984 2007-04-06  Bruno Haible  <bruno@clisp.org>
54985
54986         * modules/isnanf-nolibm-tests: New file.
54987         * tests/test-isnanf.c: New file.
54988
54989         * modules/isnanf-nolibm: New file.
54990         * lib/isnanf.h: New file.
54991         * lib/isnanf.c: New file.
54992         * lib/isnan.c: Consider the USE_FLOAT macro.
54993         * m4/isnanf.m4: New file.
54994
54995 2007-04-06  Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54998         (Link): New section.
54999
55000         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55001
55002 2007-04-06  Bruno Haible  <bruno@clisp.org>
55003
55004         Assume the 'long double' type.
55005         * m4/longdouble.m4: Remove file.
55006         * config/srclist.txt: Don't mention longdouble.m4.
55007         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55008         * lib/float+.h: Likewise.
55009         * lib/frexp.c: Likewise.
55010         * lib/printf-args.h: Likewise.
55011         * lib/printf-args.c: Likewise.
55012         * lib/printf-frexp.c: Likewise.
55013         * lib/printf-parse.c: Likewise.
55014         * lib/vasnprintf.c: Likewise.
55015         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55016         * m4/intl.m4: Likewise.
55017         * m4/isnanl.m4: Likewise.
55018         * m4/printf.m4: Likewise.
55019         * m4/printf-frexpl.m4: Likewise.
55020         * m4/vasnprintf.m4: Likewise.
55021         * modules/allocsa (Files): Remove m4/longdouble.m4.
55022         * modules/gettext (Files): Likewise.
55023         * modules/relocatable-prog-wrapper (Files): Likewise.
55024         * modules/vasnprintf (Files): Likewise.
55025         * modules/isnanl (Files): Likewise.
55026         (Include): Simplify.
55027         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55028         (Include): Simplify.
55029         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55030         (Include): Simplify.
55031         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55032         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55033         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55034         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55035         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55036         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55037         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55038         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55039         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55040         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55041         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55043         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55044         * tests/test-isnanl.c: Likewise.
55045         * tests/test-snprintf-posix.h: Likewise.
55046         * tests/test-sprintf-posix.h: Likewise.
55047         * tests/test-vasnprintf-posix.c: Likewise.
55048         * tests/test-vasnprintf-posix2.c: Likewise.
55049         * tests/test-vasprintf-posix.c: Likewise.
55050
55051 2007-04-06  Bruno Haible  <bruno@clisp.org>
55052
55053         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55054         * lib/math_.h [__DECC]: Include the overridden include file through
55055         #include_next, outside the double-inclusion guard.
55056         * lib/stdio_.h [__DECC]: Likewise.
55057         * lib/stdlib_.h [__DECC]: Likewise.
55058         * lib/string_.h [__DECC]: Likewise.
55059         * lib/time_.h [__DECC]: Likewise.
55060         * lib/wchar_.h [__DECC]: Likewise.
55061         * lib/wctype_.h [__DECC]: Likewise.
55062         * lib/inttypes_.h [__DECC]: Likewise.
55063         Reported by Albert Chin <china@thewrittenword.com> in
55064         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55065
55066 2007-04-04  Eric Blake  <ebb9@byu.net>
55067
55068         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55069         1.5.x.
55070
55071 2007-04-04  Bruno Haible  <bruno@clisp.org>
55072
55073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55074         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55075
55076 2007-04-04  Bruno Haible  <bruno@clisp.org>
55077
55078         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55079         results for "%010a" of Infinity and NaN.
55080         * tests/test-vasprintf-posix.c (test_function): Likewise.
55081         * tests/test-snprintf-posix.h (test_function): Likewise.
55082         * tests/test-sprintf-posix.h (test_function): Likewise.
55083         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55084         * tests/test-printf-posix.h (test_function): Likewise.
55085         * tests/test-fprintf-posix.out: Update.
55086         Needed for FreeBSD 6.1.
55087
55088 2007-04-04  Bruno Haible  <bruno@clisp.org>
55089
55090         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55091         directly used by the gnulib modules nor by gnulib-tool.
55092
55093 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * DEPENDENCIES: Give overall description of version dependency
55096         desirability.  Use more-typical names for apps.
55097         Add shell, coreutils, diffutils, grep, tar, gzip.
55098
55099 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55100
55101         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55102
55103 2007-04-04  Karl Berry  <karl@gnu.org>
55104
55105         * MODULES.html.sh (func_module): missing '.
55106
55107 2007-04-03  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/argmatch-tests (Makefile.am): New variable
55110         test_argmatch_LDADD.
55111         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55112         * modules/array-list-tests (Makefile.am): New variable
55113         test_array_list_LDADD.
55114         * modules/array-oset-tests (Makefile.am): New variable
55115         test_array_oset_LDADD.
55116         * modules/avltree-list-tests (Makefile.am): New variable
55117         test_avltree_list_LDADD.
55118         * modules/avltree-oset-tests (Makefile.am): New variable
55119         test_avltree_oset_LDADD.
55120         * modules/avltreehash-list-tests (Makefile.am): New variable
55121         test_avltreehash_list_LDADD.
55122         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55123         test_canonicalize_lgpl_LDADD.
55124         * modules/carray-list-tests (Makefile.am): New variable
55125         test_carray_list_LDADD.
55126         * modules/dirname-tests (Makefile.am): New variable
55127         test_dirname_LDADD.
55128         * modules/linked-list-tests (Makefile.am): New variable
55129         test_linked_list_LDADD.
55130         * modules/linkedhash-list-tests (Makefile.am): New variable
55131         test_linkedhash_list_LDADD.
55132         * modules/rbtree-list-tests (Makefile.am): New variable
55133         test_rbtree_list_LDADD.
55134         * modules/rbtree-oset-tests (Makefile.am): New variable
55135         test_rbtree_oset_LDADD.
55136         * modules/rbtreehash-list-tests (Makefile.am): New variable
55137         test_rbtreehash_list_LDADD.
55138         * modules/xvasprintf-tests (Makefile.am): New variable
55139         test_xvasprintf_LDADD.
55140         Reported by Eric Blake.
55141
55142 2007-04-03  Eric Blake  <ebb9@byu.net>
55143
55144         * DEPENDENCIES: Weaken m4 requirements.
55145
55146 2007-04-03  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55149         * modules/isnanl-tests (configure.ac): Likewise.
55150
55151 2007-04-03  Ben Pfaff  <blp@gnu.org>
55152
55153         * modules/iconv_open: Add $(srcdir)/ to source directory
55154         references in Makefile fragments that call gperf, to fix VPATH
55155         builds.
55156
55157 2007-04-03  Bruno Haible  <bruno@clisp.org>
55158
55159         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55160         * lib/ldexpl.c: Undo last change.
55161
55162 2007-04-03  Bruno Haible  <bruno@clisp.org>
55163
55164         * modules/printf-frexpl (Depends-on): Undo last change.
55165         (Files): Add m4/ldexpl.m4.
55166
55167 2007-04-03  Bruno Haible  <bruno@clisp.org>
55168
55169         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55170         * modules/isnanl (Link): New section.
55171
55172         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55173         * modules/frexp (Link): New section.
55174
55175         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55176         * modules/frexpl (Link): New section.
55177
55178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55179         * modules/ldexpl (Link): New section.
55180
55181 2007-04-03  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/TEMPLATE-EXTENDED: New file.
55184         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55185
55186 2007-04-03  Bruno Haible  <bruno@clisp.org>
55187
55188         * DEPENDENCIES: New file.
55189         Suggested by Simon Josefsson.
55190
55191 2007-04-03  Bruno Haible  <bruno@clisp.org>
55192
55193         * doc/gnulib.texi: Escape @.
55194
55195 2007-04-03  James Youngman  <jay@gnu.org>
55196         and Paul Eggert  <eggert@cs.ucla.edu>
55197
55198         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55199         birthtime on all systems that have birthtime, not just those which
55200         use st_birthtimensec rather than st_birthtim.  Putting zero in
55201         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55202         that the birth time is not available for files on an NFS mount.
55203
55204 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55205
55206         * modules/memxor: Move back from crypto/, suggested by Bruno.
55207         * modules/crypto/hmac-sha1: Fix memxor dependency.
55208
55209         * modules/crypto/gc: Moved from ../.
55210
55211 2007-04-02  Eric Blake  <ebb9@byu.net>
55212
55213         * lib/ldexpl.c (includes): Avoid libm.
55214
55215         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55216
55217 2007-04-02  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55220         on IRIX.
55221
55222 2007-04-02  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55225         x86 or x86_64 platforms running MacOS X.
55226         Reported by Ryan Schmidt <@ryandesign.com>.
55227
55228 2007-04-02  Bruno Haible  <bruno@clisp.org>
55229
55230         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55231         i386.
55232
55233 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55234
55235         * modules/crypto/arcfour: Moved from ../.
55236         * modules/crypto/arcfour-tests: Moved from ../.
55237         * modules/crypto/arctwo: Moved from ../.
55238         * modules/crypto/arctwo-tests: Moved from ../.
55239         * modules/crypto/des: Moved from ../.
55240         * modules/crypto/des-tests: Moved from ../.
55241         * modules/crypto/gc-arcfour: Moved from ../.
55242         * modules/crypto/gc-arcfour-tests: Moved from ../.
55243         * modules/crypto/gc-arctwo: Moved from ../.
55244         * modules/crypto/gc-arctwo-tests: Moved from ../.
55245         * modules/crypto/gc-des: Moved from ../.
55246         * modules/crypto/gc-des-tests: Moved from ../.
55247         * modules/crypto/gc-hmac-md5: Moved from ../.
55248         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55249         * modules/crypto/gc-hmac-sha1: Moved from ../.
55250         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55251         * modules/crypto/gc-md2: Moved from ../.
55252         * modules/crypto/gc-md2-tests: Moved from ../.
55253         * modules/crypto/gc-md4: Moved from ../.
55254         * modules/crypto/gc-md4-tests: Moved from ../.
55255         * modules/crypto/gc-md5: Moved from ../.
55256         * modules/crypto/gc-md5-tests: Moved from ../.
55257         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55258         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55259         * modules/crypto/gc-random: Moved from ../.
55260         * modules/crypto/gc-rijndael: Moved from ../.
55261         * modules/crypto/gc-rijndael-tests: Moved from ../.
55262         * modules/crypto/gc-sha1: Moved from ../.
55263         * modules/crypto/gc-sha1-tests: Moved from ../.
55264         * modules/crypto/gc-tests: Moved from ../.
55265         * modules/crypto/hmac-md5: Moved from ../.
55266         * modules/crypto/hmac-md5-tests: Moved from ../.
55267         * modules/crypto/hmac-sha1: Moved from ../.
55268         * modules/crypto/hmac-sha1-tests: Moved from ../.
55269         * modules/crypto/md2: Moved from ../.
55270         * modules/crypto/md2-tests: Moved from ../.
55271         * modules/crypto/md4: Moved from ../.
55272         * modules/crypto/md4-tests: Moved from ../.
55273         * modules/crypto/md5: Moved from ../.
55274         * modules/crypto/md5-tests: Moved from ../.
55275         * modules/crypto/memxor: Moved from ../.
55276         * modules/crypto/rijndael: Moved from ../.
55277         * modules/crypto/rijndael-tests: Moved from ../.
55278         * modules/crypto/sha1: Moved from ../.
55279
55280 2007-03-30  James Youngman  <jay@gnu.org>
55281
55282         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55283         rename() to change the ctime of a file (because ctime is unaffected
55284         by rename on jfs2 on AIX 5.1).
55285         (main): Start by doing cleanup, in case a previous run failed leaving
55286         test files behind.
55287
55288 2007-03-31  Bruno Haible  <bruno@clisp.org>
55289
55290         Support old proprietary implementations of iconv.
55291         * modules/iconv_open: New file.
55292         * lib/iconv_.h: New file.
55293         * m4/iconv_h.m4: New file.
55294         * lib/iconv_open.c: New file.
55295         * lib/iconv_open-aix.gperf: New file.
55296         * lib/iconv_open-hpux.gperf: New file.
55297         * lib/iconv_open-irix.gperf: New file.
55298         * lib/iconv_open-osf.gperf: New file.
55299         * m4/iconv_open.m4: New file.
55300         * modules/linebreak (Depends-on): Add iconv_open.
55301         * modules/striconv (Depends-on): Likewise.
55302         * modules/striconveh (Depends-on): Likewise.
55303         * modules/unicodeio (Depends-on): Likewise.
55304         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55305         (iconv_t)(-1).
55306         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55307         conversion if cd is (iconv_t)(-1).
55308         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55309         is not possible.
55310
55311 2007-03-31  Bruno Haible  <bruno@clisp.org>
55312
55313         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55314         work on Solaris either. Protect also second use of "autodetect_jp".
55315
55316 2007-03-31  Bruno Haible  <bruno@clisp.org>
55317
55318         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55319         the function is not present.
55320
55321 2007-03-31  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55324         the function is not present.
55325
55326 2007-03-31  Bruno Haible  <bruno@clisp.org>
55327
55328         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55329         a bug in HP-UX iconv_open().
55330
55331 2007-03-31  Bruno Haible  <bruno@clisp.org>
55332
55333         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55334         (Mathematics <math.h>): New section, add fpieee.
55335         (Input/output <stdio.h>): Add fseterr.
55336         (Mathematics <math.h>): New section, add printf-frexp.
55337         (Container data structures): Add sublist.
55338         (Core language properties): Add fpucw, inline.
55339         (Functions for greatest-width integer types <inttypes.h>): Add
55340         imaxabs, imaxdiv, inttypes.
55341         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55342         isnanl-nolibm, ldexp.
55343         (Mathematics <math.h>): New section, add printf-frexpl.
55344         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55345         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55346         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55347         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55348         (Unicode string functions): Add unistr/u*-mbtoucr.
55349         (Java): Add javacomp-script, javaexec-script.
55350         (C#): Add csharpcomp-script, csharpexec-script.
55351         (Support for building libraries and executables): Add havelib,
55352         relocatable-*.
55353         (Support for maintaining and releasing projects): Renamed from
55354         'Support for maintaining and release projects'. Add announce-gen.
55355
55356 2007-03-31  Bruno Haible  <bruno@clisp.org>
55357
55358         * README: Talk primarily about git.
55359         (git and CVS): Renamed from CVS.
55360         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55361         gnulib is available through git.
55362         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55363
55364 2007-03-30  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55367         * lib/poll_.h: Likewise.
55368         * lib/stat_.h: Likewise.
55369         * lib/sys_time_.h: Likewise.
55370         * lib/sysexit_.h: Likewise.
55371         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55372         * lib/stdbool_.h: Likewise.
55373         * lib/byteswap_.h: Add double-inclusion guard.
55374
55375 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55376
55377         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55378
55379 2007-03-30  Karl Berry  <karl@gnu.org>
55380
55381         * config/srclist-update: double space after USA in the license
55382         substitution, since that's how it's usually (?) written.
55383
55384 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55387         reported by Bruno Haible.
55388
55389 2007-03-29  Bruno Haible  <bruno@clisp.org>
55390
55391         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55392         a bug in AIX iconv().
55393
55394 2007-03-29  Bruno Haible  <bruno@clisp.org>
55395
55396         * modules/ldexpl-tests: New file.
55397         * tests/test-ldexpl.c: New file.
55398
55399 2007-03-29  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/ldexpl.c: Include fpucw.h.
55402         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55403         multiplication.
55404         * modules/ldexpl (Depends-on): Add fpucw.
55405
55406 2007-03-29  Bruno Haible  <bruno@clisp.org>
55407
55408         * modules/ldexpl: New file.
55409         * m4/ldexpl.m4: New file.
55410         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55411         set.
55412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55413         REPLACE_LDEXPL.
55414         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55415         REPLACE_LDEXPL.
55416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55417         gl_FUNC_LDEXPL_WORKS.
55418         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55419         * modules/mathl (Files): Remove lib/ldexpl.c.
55420         (Depends-on): Add ldexpl.
55421
55422 2007-03-29  Bruno Haible  <bruno@clisp.org>
55423
55424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55425
55426 2007-03-29  Bruno Haible  <bruno@clisp.org>
55427
55428         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55429         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55430         and possibly also HP-UX.
55431         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55432         work on AIX, IRIX, HP-UX, OSF/1.
55433         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55434         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55435         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55436         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55437         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55438         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55439
55440 2007-03-29  Bruno Haible  <bruno@clisp.org>
55441
55442         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55443
55444 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55447         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55448
55449 2007-03-29  Eric Blake  <ebb9@byu.net>
55450
55451         * lib/acl-internal.h: Remove redundant include.
55452         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55453         Cygwin when a file is locked.
55454
55455 2007-03-29  Bruno Haible  <bruno@clisp.org>
55456
55457         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55458         file.
55459         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55460
55461 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55464         try to remove a parent directory if the child couldn't be removed
55465         (except for the first rmdir, which could fail because the child
55466         doesn't exist).  Problem reported by Jeff Blaine in
55467         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55468
55469 2007-03-28  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/striconveh.c (utf8conv_carefully): New function.
55472         (mem_cd_iconveh_internal): Invoke it.
55473
55474 2007-03-28  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55477         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55478         input.
55479         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55480         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55481         unistr/u8-uctomb.
55482
55483 2007-03-28  Bruno Haible  <bruno@clisp.org>
55484
55485         * modules/unistr/u8-mbtoucr: New file.
55486         * lib/unistr/u8-mbtoucr.c: New file.
55487         * modules/unistr/u16-mbtoucr: New file.
55488         * lib/unistr/u16-mbtoucr.c: New file.
55489         * modules/unistr/u16-mbtoucr: New file.
55490         * lib/unistr/u16-mbtoucr.c: New file.
55491         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55492
55493 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55494             Bruno Haible  <bruno@clisp.org>
55495
55496         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55497         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55498         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55499
55500         * m4/stdio_h.m4: Add stubs for vasprintf too.
55501
55502         * modules/stdio: Support vasprintf in sed command.
55503
55504         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55505         vasprintf.h.  Add stdio module indicator.
55506
55507         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55508         vasprintf.h.
55509
55510         * lib/vasprintf.h: File removed.
55511
55512         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55513         * lib/vasprintf.c: Ditto.
55514         * lib/xvasprintf.c: Ditto.
55515         * tests/test-vasprintf-posix.c: Ditto.
55516         * tests/test-vasprintf.c: Ditto.
55517
55518 2007-03-27  Bruno Haible  <bruno@clisp.org>
55519
55520         Make vasnprintf multithread-safe.
55521         * lib/vasnprintf.c (decimal_point_char): New function.
55522         (VASNPRINTF): Use it.
55523         Suggested by Simon Josefsson.
55524
55525 2007-03-27  Eric Blake  <ebb9@byu.net>
55526
55527         Support sub-second birthtime on cygwin.
55528         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55529         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55530         (get_stat_birthtime): Also work with st_birthtim.
55531
55532 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55535         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55536         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55537         (get_stat_birthtime_ns): Simplify compile-time tests.
55538         (get_stat_birthtime): Change the API to look like
55539         get_stat_mtime etc., except return a negative tv_nsec on error.
55540         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55541         Don't check for "spare" fields.
55542         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55543         or for struct stat.st_birthtime, as these tests aren't used.
55544         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55545
55546 2007-03-27  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/stat-time.h: Include <sys/stat.h>.
55549
55550 2007-03-27  James Youngman  <jay@gnu.org>
55551
55552         * lib/stat-time.h (get_stat_birthtime): New function for
55553           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55554         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55555           and its variants.
55556         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55557         * modules/stat-time-test: New file.
55558         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55559
55560 2007-03-26  Bruno Haible  <bruno@clisp.org>
55561
55562         Better support of signalling NaNs.
55563         * lib/atanl.c: Include isnanl.h.
55564         (atanl): Perform test for NaN at the beginning of the function and
55565         through a call to isnanl.
55566         * lib/cosl.c: Include isnanl.h.
55567         (cosl): Perform test for NaN at the beginning of the function and
55568         through a call to isnanl.
55569         * lib/ldexpl.c: Include isnanl.h.
55570         (ldexpl): Perform test for NaN through a call to isnanl.
55571         * lib/logl.c: Include isnanl.h.
55572         (logl): Perform test for NaN at the beginning of the function and
55573         through a call to isnanl.
55574         * lib/sinl.c: Include isnanl.h.
55575         (sinl): Perform test for NaN at the beginning of the function and
55576         through a call to isnanl.
55577         * lib/sqrtl.c: Include isnanl.h.
55578         (sqrtl): Perform test for NaN at the beginning of the function and
55579         through a call to isnanl.
55580         * lib/tanl.c: Include isnanl.h.
55581         (tanl): Perform test for NaN at the beginning of the function and
55582         through a call to isnanl.
55583         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55584         * modules/mathl (Depends-on): Add isnanl.
55585
55586 2007-03-26  Eric Blake  <ebb9@byu.net>
55587
55588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55589         regression in logic sense of previous patch.
55590
55591 2007-03-26  Bruno Haible  <bruno@clisp.org>
55592
55593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55594         unportable shell command "if ! ...".
55595         Reported by Ralf Wildenhues.
55596
55597 2007-03-25  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55600         <sysexits.h> file, and only add EX_CONFIG.
55601         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55602         absolute file name and whether it is sufficient. Substitute also
55603         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55604         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55605         ABSOLUTE_SYSEXITS_H into sysexits.h.
55606
55607 2007-03-25  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55610         hints is NULL.
55611
55612 2007-03-25  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55615         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55616
55617 2007-03-25  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/vasnprintf.c: Include langinfo.h.
55620         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55621         multithread-safe.
55622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55631         Reported by Simon Josefsson.
55632
55633 2007-03-25  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55636         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55637         * modules/vasnprintf (Depends-on): Add stdint.
55638
55639 2007-03-25  Bruno Haible  <bruno@clisp.org>
55640
55641         * modules/fpieee: New file.
55642         * m4/fpieee.m4: New file.
55643         * modules/isnan-nolibm (Depends-on): Add fpieee.
55644         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55645         * modules/isnanl (Depends-on): Add fpieee.
55646
55647 2007-03-25  Bruno Haible  <bruno@clisp.org>
55648
55649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55650
55651 2007-03-25  Bruno Haible  <bruno@clisp.org>
55652
55653         Avoid test failures on IRIX 6.5.
55654         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55655         (main): Use it.
55656         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55657         macros.
55658         (main): Use them.
55659
55660 2007-03-25  Bruno Haible  <bruno@clisp.org>
55661
55662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55663         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55664         exists but doesn't work.
55665         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55666         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55668         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55669         math.h.
55670
55671 2007-03-25  Bruno Haible  <bruno@clisp.org>
55672
55673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55674         returns inf. Needed on IRIX 6.5.
55675
55676 2007-03-25  Bruno Haible  <bruno@clisp.org>
55677
55678         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55679         (main): Use isnanl instead of x != x idiom.
55680         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55681
55682         * tests/test-frexp.c: Include isnan.h.
55683         (main): Use isnan instead of x != x idiom.
55684         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55685
55686 2007-03-25  Bruno Haible  <bruno@clisp.org>
55687
55688         * tests/test-frexp.c (NaN): New function/macro.
55689         (main): Use it instead of 0.0 / 0.0.
55690         * tests/test-isnan.c (NaN): New function/macro.
55691         (main): Use it instead of 0.0 / 0.0.
55692         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55693         (test_function): Use it instead of 0.0 / 0.0.
55694         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55695         (test_function): Use it instead of 0.0 / 0.0.
55696         * tests/test-snprintf-posix.h (NaN): New function/macro.
55697         (test_function): Use it instead of 0.0 / 0.0.
55698         * tests/test-sprintf-posix.h (NaN): New function/macro.
55699         (test_function): Use it instead of 0.0 / 0.0.
55700         * tests/test-fprintf-posix.h (NaN): New function/macro.
55701         (test_function): Use it instead of 0.0 / 0.0.
55702         * tests/test-printf-posix.h (NaN): New function/macro.
55703         (test_function): Use it instead of 0.0 / 0.0.
55704
55705         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55706
55707 2007-03-25  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55710
55711 2007-03-25  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/regexec.c (merge_state_with_log): Make static.
55714
55715 2007-03-25  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/trigl.c (kernel_rem_pio2): Make static.
55718
55719 2007-03-25  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/sincosl.c (sincosl_table): Make static.
55722
55723 2007-03-25  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55726         if the compiler does not support C99.
55727
55728 2007-03-25  Bruno Haible  <bruno@clisp.org>
55729
55730         * modules/time (Makefile.am): Ensure all rule action lines start with a
55731         tab.
55732
55733 2007-03-24  Bruno Haible  <bruno@clisp.org>
55734
55735         * modules/tsearch-tests: New file.
55736         * tests/test-tsearch.sh: New file.
55737         * tests/test-tsearch.c: New file, mostly copied from glibc.
55738
55739         * modules/search-tests: New file.
55740         * tests/test-search.c: New file.
55741
55742         * modules/search: New file.
55743         * lib/search_.h: New file, incorporating lib/tsearch.h.
55744         * m4/search_h.m4: New file.
55745         * lib/tsearch.h: Remove file.
55746         * lib/tsearch.c: Include search.h instead of tsearch.h.
55747         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55748         HAVE_TSEARCH.
55749         * modules/tsearch (Files): Remove lib/tsearch.h.
55750         (Depends-on): Add search.
55751         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55752         (Include): Change tsearch.h into search.h.
55753
55754 2007-03-24  Bruno Haible  <bruno@clisp.org>
55755
55756         * modules/fpucw: New file.
55757         * lib/fpucw.h: New file.
55758         * lib/frexp.c: Include fpucw.h.
55759         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55760         (FUNC): Use them.
55761         * lib/printf-frexp.c: Include fpucw.h.
55762         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55763         (FUNC): Use them.
55764         * lib/vasnprintf.c: Include fpucw.h.
55765         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55766         'long double' calculations.
55767         * tests/test-frexpl.c: Include fpucw.h.
55768         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55769         * tests/test-printf-frexpl.c: Include fpucw.h.
55770         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55771         * modules/frexpl (Depends-on): Add fpucw.
55772         * modules/printf-frexpl (Depends-on): Likewise.
55773         * modules/fprintf-posix (Depends-on): Likewise.
55774         * modules/snprintf-posix (Depends-on): Likewise.
55775         * modules/sprintf-posix (Depends-on): Likewise.
55776         * modules/vasnprintf-posix (Depends-on): Likewise.
55777         * modules/vasprintf-posix (Depends-on): Likewise.
55778         * modules/vfprintf-posix (Depends-on): Likewise.
55779         * modules/vsnprintf-posix (Depends-on): Likewise.
55780         * modules/vsprintf-posix (Depends-on): Likewise.
55781         * modules/frexpl-tests (Depends-on): Likewise.
55782         * modules/printf-frexpl-tests (Depends-on): Likewise.
55783
55784 2007-03-24  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/float+.h: New file.
55787         * lib/isnan.c: Include float+.h.
55788         (SIZE): New macro.
55789         (FUNC): Compare only SIZE bytes of the value.
55790         * lib/vasnprintf.c: Include float+.h.
55791         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55792         SIZEOF_LDBL or SIZEOF_DBL bytes.
55793         * modules/isnan-nolibm (Files): Add lib/float+.h.
55794         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55795         * modules/isnanl (Files): Add lib/float+.h.
55796         * modules/vasnprintf (Files): Add lib/float+.h.
55797
55798 2007-03-24  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55801         include isnanl-nolibm.h.
55802
55803 2007-03-24  Bruno Haible  <bruno@clisp.org>
55804
55805         * tests/test-read-file.c (main): Don't produce spurious output for
55806         expected situations. Make the test fail if it encountered unexpected
55807         results.
55808
55809 2007-03-24  Bruno Haible  <bruno@clisp.org>
55810
55811         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55812         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55813
55814 2007-03-24  Bruno Haible  <bruno@clisp.org>
55815
55816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55817
55818 2007-03-24  Bruno Haible  <bruno@clisp.org>
55819
55820         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55821         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55822
55823         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55824         * modules/utf8-ucs4: Turn into a symbolic link to module
55825         unistr/u8-mbtouc.
55826
55827         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55828         utf8-ucs4-unsafe.
55829         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55830         unistr/u8-mbtouc-unsafe.
55831
55832         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55833         * modules/utf16-ucs4: Turn into a symbolic link to module
55834         unistr/u16-mbtouc.
55835
55836         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55837         utf16-ucs4-unsafe.
55838         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55839         unistr/u16-mbtouc-unsafe.
55840
55841         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55842         * modules/ucs4-utf8: Turn into a symbolic link to module
55843         unistr/u8-ubtomb.
55844
55845         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55846         * modules/ucs4-utf16: Turn into a symbolic link to module
55847         unistr/u16-ubtomb.
55848
55849 2007-03-24  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55852         Enable the function only if HAVE_INLINE.
55853         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55854         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55855         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55856         Enable the function only if HAVE_INLINE.
55857         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55858         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55859         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55860         Enable the function only if HAVE_INLINE.
55861         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55862         Enable the function only if HAVE_INLINE.
55863         * modules/utf8-ucs4: Update.
55864         * modules/utf8-ucs4-unsafe: Update.
55865         * modules/utf16-ucs4: Update.
55866         * modules/utf16-ucs4-unsafe: Update.
55867         * modules/ucs4-utf8: Update.
55868         * modules/ucs4-utf16: Update.
55869
55870 2007-03-24  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/utf8-ucs4.h: Remove file.
55873         * lib/utf8-ucs4-unsafe.h: Remove file.
55874         * lib/utf16-ucs4.h: Remove file.
55875         * lib/utf16-ucs4-unsafe.h: Remove file.
55876         * lib/ucs4-utf8.h: Remove file.
55877         * lib/ucs4-utf16.h: Remove file.
55878         * lib/unistr.h: Include their previous contents.
55879         * m4/utf-ucs4.m4: Remove file.
55880         * m4/ucs4-utf.m4: Remove file.
55881         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55882         (Depends-on): Add unistr/base.
55883         (configure.ac): Remove gl_UTF_UCS4.
55884         (Makefile.am): Update.
55885         (Include): Change to unistr.h.
55886         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55887         (Depends-on): Add unistr/base.
55888         (configure.ac): Remove gl_UTF_UCS4.
55889         (Makefile.am): Update.
55890         (Include): Change to unistr.h.
55891         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55892         (Depends-on): Add unistr/base.
55893         (configure.ac): Remove gl_UTF_UCS4.
55894         (Makefile.am): Update.
55895         (Include): Change to unistr.h.
55896         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55897         (Depends-on): Add unistr/base.
55898         (configure.ac): Remove gl_UTF_UCS4.
55899         (Makefile.am): Update.
55900         (Include): Change to unistr.h.
55901         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55902         (Depends-on): Add unistr/base.
55903         (configure.ac): Remove gl_UCS4_UTF.
55904         (Makefile.am): Update.
55905         (Include): Change to unistr.h.
55906         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55907         (Depends-on): Add unistr/base.
55908         (configure.ac): Remove gl_UCS4_UTF.
55909         (Makefile.am): Update.
55910         (Include): Change to unistr.h.
55911         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55912         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55913         utf8-ucs4-unsafe.h.
55914         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55915         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55916         utf16-ucs4-unsafe.h.
55917         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55918         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55919         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55920         * lib/unistr/u8-strchr.c: Likewise.
55921         * lib/unistr/u8-strrchr.c: Likewise.
55922         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55923         * lib/unistr/u16-strchr.c: Likewise.
55924         * lib/unistr/u16-strrchr.c: Likewise.
55925         * lib/striconveh.c: Update.
55926         * lib/linebreak.c: Update.
55927
55928 2007-03-24  Bruno Haible  <bruno@clisp.org>
55929
55930         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55931         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55932
55933 2007-03-22  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55936
55937 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * MODULES.html.sh (File system functions): New module write-any-file.
55940         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55941         * m4/write-any-file.m4: New files.
55942
55943 2007-03-23  Eric Blake  <ebb9@byu.net>
55944
55945         * gnulib-tool: Rearrange space-tab sequences, since some editors
55946         like to eat them.
55947
55948 2007-03-23  Eric Blake  <ebb9@byu.net>
55949
55950         * lib/version-etc.c (version_etc_va): Update license wording to
55951         be more concise.  Recommended by Richard Stallman.
55952
55953 2007-03-22  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/poll.c (MSG_PEEK): New fallback definition.
55956
55957 2007-03-22  Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55960         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55961         (main): Update.
55962         Fixes a compilation error on BeOS.
55963
55964 2007-03-22  Bruno Haible  <bruno@clisp.org>
55965
55966         * modules/frexpl-tests: New file.
55967         * tests/test-frexpl.c: New file.
55968
55969         * modules/frexpl: New file.
55970         * m4/frexpl.m4: New file.
55971         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55972         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55974         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55975         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55976         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55977
55978 2007-03-22  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/frexpl.c: Share code with lib/frexp.c.
55981         * modules/mathl (Files): Add lib/frexp.c.
55982         (Depends-on): Add isnanl-nolibm.
55983
55984 2007-03-22  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/printf-frexp (Files): Add m4/frexp.m4.
55987         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55988         only if the found frexp function actually works.
55989
55990 2007-03-22  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/frexp.c: Remove older implementation that uses divisions.
55993
55994 2007-03-21  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/frexp-tests: New file.
55997         * tests/test-frexp.c: New file.
55998
55999         * modules/frexp: New file.
56000         * lib/frexp.c: New file.
56001         * m4/frexp.m4: New file.
56002         * lib/math_.h (frexp): New declaration.
56003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56004         REPLACE_FREXP.
56005         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56006
56007 2007-03-21  Bruno Haible  <bruno@clisp.org>
56008
56009         * modules/isnanl-tests: New file.
56010         * tests/test-isnanl.c: New file.
56011
56012         * modules/isnanl: New file.
56013         * lib/isnanl.h: New file.
56014         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56015         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56016         gl_FUNC_ISNANL_WORKS.
56017         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56018         New macros.
56019
56020 2007-03-21  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56023         lib/isnanl.h.
56024         (Include): Update.
56025         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56026         * lib/vasnprintf.c: Update.
56027         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56028         tests/test-isnanl.h, remove tests/test-isnanl.c.
56029         (Makefile.am): Update.
56030         * tests/test-isnanl-nolibm.c: New file.
56031         * tests/test-isnanl.h: New file.
56032         * tests/test-isnanl.c: Remove file.
56033
56034 2007-03-21  Jim Meyering  <jim@meyering.net>
56035
56036         When trying to open ".", treat ESTALE like EACCES.
56037         * lib/savewd.c (savewd_save): Resort to forking not just upon
56038         failure with EACCES, but also when errno is ESTALE.
56039
56040 2007-03-20  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56043         Needed on AIX 5.1. Reported by Matthew Woehlke.
56044
56045 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56046
56047         Suggestions by Bruno Haible:
56048         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56049         our own.
56050         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56051         * modules/acl (Depends-on): Add gettext.
56052
56053 2007-03-19  Bruno Haible  <bruno@clisp.org>
56054
56055         * modules/iconvme: Remove file.
56056         * lib/iconvme.h: Remove file.
56057         * lib/iconvme.c: Remove file.
56058         * m4/iconvme.m4: Remove file.
56059
56060 2007-03-19  Bruno Haible  <bruno@clisp.org>
56061
56062         * doc/relocatable-maint.texi: Break long shell script line.
56063         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56064
56065 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56066
56067         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56068         handle file_has_acl.
56069         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56070         * lib/acl.c: Move header inclusions and related macro defns into
56071         lib/acl-internal.h.
56072         (S_ISLNK): Remove defn, since that's now done for us.
56073         (file_has_acl): Move to lib/file-has-acl.c.
56074         Call acl_trivial if available.  This is the crucial part of the fix.
56075         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56076         shared within the library.  Rewrite a bit, partly to make it compatible
56077         with the GNU coding style.
56078         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56079         Remove unnecessary double-quotes.
56080         Don't test for acl_to_text; the build will catch that.
56081         Replace acl_entries if it doesn't exist and it is needed.
56082         Check for -lsec and acl_trivial (as used on Solaris 10).
56083         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56084         lib/file-has-acl.c.
56085         (Depends-on): Add sys_stat, for S_ISLNK.
56086
56087 2007-03-19  Ben Pfaff  <blp@gnu.org>
56088
56089         * doc/gnulib.texi: Fix typos.
56090         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56091
56092 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56093
56094         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56095         If size is zero here, buf must be zero.
56096
56097 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56098
56099         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56100         <bruno@clisp.org>.
56101
56102 2007-03-18  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56105         Suggested by Eric Blake.
56106
56107 2007-03-18  Ben Pfaff  <blp@gnu.org>
56108
56109         * doc/relocatable.texi: Recommend using as prefix a directory
56110         that does not exist and will never be created.  Based on
56111         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56112         and others.
56113
56114 2007-03-17  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/fchownat.c: Include lchown.h.
56117
56118 2007-03-17  Bruno Haible  <bruno@clisp.org>
56119
56120         Fix endless loop when the given allocated size was > INT_MAX.
56121         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56122         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56123         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56124         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56125         * lib/sprintf.c (sprintf): Likewise.
56126
56127 2007-03-17  Bruno Haible  <bruno@clisp.org>
56128
56129         * tests/test-argp-2.sh (func_compare): Output a context diff.
56130
56131 2007-03-17  Bruno Haible  <bruno@clisp.org>
56132
56133         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56134         locale's decimal-point character.
56135
56136 2007-03-17  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56139         before comparing it. Needed because on some platforms (e.g. x86) a
56140         'long double' occupies less bytes than sizeof (long double).
56141
56142 2007-03-17  Bruno Haible  <bruno@clisp.org>
56143
56144         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56145         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56146         * tests/test-getaddrinfo.c (simple): Likewise.
56147         * tests/test-read-file.c (main): Likewise.
56148
56149 2007-03-17  Bruno Haible  <bruno@clisp.org>
56150
56151         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56152
56153 2007-03-17  Bruno Haible  <bruno@clisp.org>
56154
56155         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56156         unused variable.
56157
56158 2007-03-17  Bruno Haible  <bruno@clisp.org>
56159
56160         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56161         * tests/test-c-strncasecmp.c: Likewise.
56162
56163 2007-03-17  Bruno Haible  <bruno@clisp.org>
56164
56165         * modules/stdlib (Depends-on): Add unistd.
56166         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56167         Needed for MacOS X 10.3.
56168
56169 2007-03-17  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56172
56173 2007-03-17  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56176
56177 2007-03-17  Bruno Haible  <bruno@clisp.org>
56178
56179         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56180         to reflect files copied from gnulib (with or without modifications).
56181         Suggested by Jim Meyering.
56182
56183 2007-03-17  Eric Blake  <ebb9@byu.net>
56184
56185         * NEWS: Document stdlib change from 2007-02-18.
56186
56187 2007-03-17  Jim Meyering  <jim@meyering.net>
56188
56189         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56190         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56191         someone uses a name containing shell meta-characters.
56192         Reported by Alfred M. Szmidt.
56193
56194         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56195
56196 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56197
56198         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56199         and copy gettext configuration files only if configure.ac contains
56200         a use of AM_GNU_GETTEXT_VERSION.
56201
56202 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56203
56204         * build-aux/bootstrap (gnulib_name): New variable.
56205         (gnulib_tool_options): Use it.
56206
56207 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56208
56209         * tests/test-des.c: Use new namespace.
56210
56211 2007-03-15  Bruno Haible  <bruno@clisp.org>
56212
56213         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56214         Reported by James Youngman <jay@gnu.org>.
56215
56216 2007-03-15  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56219         declared prototype. Needed with cc on OSF/1 5.1.
56220
56221 2007-03-15  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56224         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56225         (struct gl_list_implementation): Add dispose_fn argument to the
56226         'create_empty', 'create' methods.
56227         (struct gl_list_impl_base): Add field 'dispose_fn'.
56228         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56229         argument.
56230         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56231         dispose_fn argument.
56232         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56233         dispose_fn on the dropped values.
56234         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56235         dispose_fn argument.
56236         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56237         dropped values.
56238         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56239         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56240         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56241         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56242         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56243         argument.
56244         (gl_tree_list_free): Call dispose_fn on the dropped values.
56245         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56246         the dropped values.
56247         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56248         Add dispose_fn argument.
56249         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56250         Call dispose_fn on the dropped values.
56251         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56252         Add dispose_fn argument.
56253         (gl_sublist_create): Initialize the 'dispose_fn' field.
56254         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56255         * tests/test-array_list.c (main): Update.
56256         * tests/test-carray_list.c (main): Update.
56257         * tests/test-avltree_list.c (main): Update.
56258         * tests/test-rbtree_list.c (main): Update.
56259         * tests/test-avltreehash_list.c (main): Update.
56260         * tests/test-rbtreehash_list.c (main): Update.
56261         * tests/test-linked_list.c (main): Update.
56262         * tests/test-linkedhash_list.c (main): Update.
56263         * tests/test-array_oset.c (main): Update.
56264
56265 2007-03-15  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56268         (gl_oset_create_empty): Add dispose_fn argument.
56269         (struct gl_oset_implementation): Add dispose_fn argument to
56270         'create_empty' method.
56271         (struct gl_oset_impl_base): Add dispose_fn field.
56272         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56273         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56274         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56275         values.
56276         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56277         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56278         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56279         dropped value.
56280         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56281         dropped value.
56282         * tests/test-array_oset.c (main): Update.
56283         * tests/test-avltree_oset.c (main): Update.
56284         * tests/test-rbtree_oset.c (main): Update.
56285         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56286
56287 2007-03-13  Bruno Haible  <bruno@clisp.org>
56288
56289         * tests/test-stdbool.c (i): Update after last patch.
56290
56291 2007-03-12  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56294         the iswprint macro. Needed on Solaris 2.5.1.
56295
56296 2007-03-12  Bruno Haible  <bruno@clisp.org>
56297
56298         * tests/test-printf-frexp.c (main): Declare x as volatile.
56299
56300 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56301
56302         * doc/gnulib.texi (Build robot for gnulib): New section.
56303
56304 2007-03-12  Jim Meyering  <jim@meyering.net>
56305
56306         * build-aux/bootstrap: New file.
56307         * build-aux/bootstrap.conf: New file, from coreutils.
56308
56309 2007-03-11  Bruno Haible  <bruno@clisp.org>
56310
56311         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56312
56313 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56314
56315         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56316         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56317         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56318
56319 2007-03-11  Bruno Haible  <bruno@clisp.org>
56320
56321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56322         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56323
56324 2007-03-11  Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56327         formula. Needed for SunPRO C 5.0.
56328
56329 2007-03-11  Bruno Haible  <bruno@clisp.org>
56330
56331         * modules/long-options (Depends-on): Add getopt.
56332
56333 2007-03-11  Bruno Haible  <bruno@clisp.org>
56334
56335         * modules/modechange (Depends-on): Add stdbool.
56336
56337 2007-03-11  Bruno Haible  <bruno@clisp.org>
56338
56339         * modules/i-ring (Depends-on): Add stdbool.
56340
56341 2007-03-11  Bruno Haible  <bruno@clisp.org>
56342
56343         * modules/gc-des (Depends-on): Add stdbool.
56344
56345 2007-03-11  Bruno Haible  <bruno@clisp.org>
56346
56347         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56348
56349 2007-03-11  Bruno Haible  <bruno@clisp.org>
56350
56351         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56352
56353 2007-03-11  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56356
56357 2007-03-11  Bruno Haible  <bruno@clisp.org>
56358
56359         * lib/vasnprintf.c (sprintf): Undefine.
56360
56361 2007-03-11  Bruno Haible  <bruno@clisp.org>
56362
56363         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56364         initializers in SunPRO C and Compaq C compilers.
56365
56366 2007-03-11  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56369         decrementing code ANSI C compliant.
56370
56371 2007-03-11  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56374         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56375
56376 2007-03-11  Bruno Haible  <bruno@clisp.org>
56377
56378         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56379         <stdbool.h> substitute doesn't pass.
56380
56381 2007-03-11  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56384
56385 2007-03-11  Bruno Haible  <bruno@clisp.org>
56386
56387         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56388         script, for submission to autobuild.josefsson.org.
56389
56390 2007-03-10  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/canonicalize-lgpl-tests: New file.
56393         * tests/test-canonicalize-lgpl.sh: New file.
56394         * tests/test-canonicalize-lgpl.c: New file.
56395
56396         * modules/c-strcase-tests: New file.
56397         * tests/test-c-strcase.sh: New file.
56398         * tests/test-c-strcasecmp.c: New file.
56399         * tests/test-c-strncasecmp.c: New file.
56400
56401         * modules/atexit-tests: New file.
56402         * tests/test-atexit.sh: New file.
56403         * tests/test-atexit.c: New file.
56404
56405 2007-03-10  Bruno Haible  <bruno@clisp.org>
56406
56407         * tests/test-binary-io.sh: Use temporary filenames that are not so
56408         likely to clash with those of other tests (in a parallel make).
56409         * tests/test-binary-io.c: Likewise.
56410
56411 2007-03-10  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56414         fallback; use #error instead.
56415         Suggested by Simon Josefsson.
56416
56417 2007-03-10  Bruno Haible  <bruno@clisp.org>
56418
56419         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56420         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56421         first and the last.
56422
56423 2007-03-10  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56426
56427 2007-03-10  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56430         "make distcheck".
56431         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56432         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56433         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56434
56435 2007-03-10  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56438         variable.
56439         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56440         variable.
56441
56442 2007-03-09  Eric Blake  <ebb9@byu.net>
56443         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56444
56445         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56446         types are not being provided by gnulib.
56447         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56448         types are supported.
56449
56450 2007-03-10  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/stdio_.h (__attribute__): New macro.
56453         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56454         vsprintf): Specify __attribute__ __format__ for GCC.
56455         Suggested by Eric Blake.
56456
56457 2007-03-09  Bruno Haible  <bruno@clisp.org>
56458
56459         * modules/printf-posix-tests: New file.
56460         * tests/test-printf-posix.sh: New file.
56461         * tests/test-printf-posix.c: New file.
56462
56463         * modules/printf-posix: New file.
56464         * lib/printf.c: New file.
56465         * m4/printf-posix-rpl.m4: New file.
56466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56467         REPLACE_PRINTF.
56468         * lib/stdio_.h (printf): New declaration.
56469         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56470         ____strfmon____): New macros.
56471         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56472         REPLACE_PRINTF.
56473
56474 2007-03-09  Bruno Haible  <bruno@clisp.org>
56475
56476         * tests/test-vasnprintf-posix2.sh: New file.
56477         * tests/test-vasnprintf-posix2.c: New file.
56478         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56479         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56480         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56481
56482         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56483         a locale dependent decimal point, rather than always '.'.
56484
56485 2007-03-09  Eric Blake  <ebb9@byu.net>
56486
56487         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56488         spite of platforms like Tandem/NSK that define it to -1.
56489
56490 2007-03-08  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/vprintf-posix-tests: New file.
56493         * tests/test-vprintf-posix.sh: New file.
56494         * tests/test-vprintf-posix.c: New file.
56495         * tests/test-printf-posix.h: New file.
56496
56497         * modules/vprintf-posix: New file.
56498         * lib/vprintf.c: New file.
56499         * m4/vprintf-posix.m4: New file.
56500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56501         REPLACE_VPRINTF.
56502         * lib/stdio_.h (vprintf): New declaration.
56503         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56504         REPLACE_VPRINTF.
56505
56506 2007-03-08  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/fprintf-posix-tests: New file.
56509         * tests/test-fprintf-posix.sh: New file.
56510         * tests/test-fprintf-posix.c: New file.
56511
56512         * modules/fprintf-posix: New file.
56513         * lib/fprintf.c: New file.
56514         * m4/fprintf-posix.m4: New file.
56515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56516         REPLACE_FPRINTF.
56517         * lib/stdio_.h (fprintf): New declaration.
56518         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56519         REPLACE_FPRINTF.
56520
56521 2007-03-08  Bruno Haible  <bruno@clisp.org>
56522
56523         * modules/vfprintf-posix-tests: New file.
56524         * tests/test-vfprintf-posix.sh: New file.
56525         * tests/test-vfprintf-posix.c: New file.
56526         * tests/test-fprintf-posix.h: New file.
56527         * tests/test-fprintf-posix.out: New file.
56528
56529         * modules/vfprintf-posix: New file.
56530         * lib/vfprintf.c: New file.
56531         * m4/vfprintf-posix.m4: New file.
56532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56533         REPLACE_VFPRINTF.
56534         * lib/stdio_.h (vfprintf): New declaration.
56535         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56536         REPLACE_VFPRINTF.
56537
56538 2007-03-08  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56541
56542 2007-03-08  Bruno Haible  <bruno@clisp.org>
56543
56544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56545         instead of 'expr' invocations.
56546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56551         Suggested by Paul Eggert.
56552
56553 2007-03-08  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/fseterr-tests: New file.
56556         * tests/test-fseterr.c: New file.
56557
56558         * modules/fseterr: New file.
56559         * lib/fseterr.h: New file.
56560         * lib/fseterr.c: New file.
56561
56562 2007-03-08  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56565         * lib/getopt_.h: Likewise.
56566         * lib/mbswidth.h: Likewise.
56567         * lib/setenv.h: Likewise.
56568         * lib/vasnprintf.h: Likewise.
56569         * lib/vasprintf.h: Likewise.
56570         * lib/verror.h: Likewise.
56571         * lib/xsetenv.h: Likewise.
56572         * lib/xvasprintf.h: Likewise.
56573
56574 2007-03-08  Jim Meyering  <jim@meyering.net>
56575
56576         * users.txt: Add parted.
56577
56578         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56579
56580 2007-03-07  Bruno Haible  <bruno@clisp.org>
56581
56582         * m4/printf.m4: Make the shell script snippets copy&pastable.
56583
56584 2007-03-02  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/netinet_in_.h: New file.
56587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56588         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56589         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56590         (Depends-on): Add absolute-header.
56591         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56592         into netinet/in.h.
56593
56594 2007-03-03  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/sys_select_.h: New file.
56597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56598         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56599         * modules/sys_select (Files): Add lib/sys_select_.h.
56600         (Depends-on): Add absolute-header.
56601         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56602         into sys/select.h.
56603
56604 2007-03-02  Bruno Haible  <bruno@clisp.org>
56605
56606         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56607         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56608         values.
56609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56610         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56611         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56612         * modules/sys_socket (Depends-on): Add absolute-header.
56613         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56614         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56615         (Include): Remove requirement of inclusion of <sys/types.h>.
56616
56617 2007-03-02  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/byteswap_.h (bswap_32): Fix formula.
56620
56621 2007-03-06  Bruno Haible  <bruno@clisp.org>
56622
56623         * modules/sprintf-posix-tests: New file.
56624         * tests/test-sprintf-posix.c: New file.
56625
56626         * modules/sprintf-posix: New file.
56627         * lib/sprintf.c: New file.
56628         * m4/sprintf-posix.m4: New file.
56629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56630         REPLACE_SPRINTF.
56631         * lib/stdio_.h (sprintf): New declaration.
56632         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56633         REPLACE_SPRINTF.
56634
56635 2007-03-06  Bruno Haible  <bruno@clisp.org>
56636
56637         * modules/vsprintf-posix-tests: New file.
56638         * tests/test-vsprintf-posix.c: New file.
56639         * tests/test-sprintf-posix.h: New file.
56640
56641         * modules/vsprintf-posix: New file.
56642         * lib/vsprintf.c: New file.
56643         * m4/vsprintf-posix.m4: New file.
56644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56645         REPLACE_VSPRINTF.
56646         * lib/stdio_.h (vsprintf): New declaration.
56647         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56648         REPLACE_VSPRINTF.
56649
56650 2007-03-06  Bruno Haible  <bruno@clisp.org>
56651
56652         * modules/vsnprintf (Depend-on): Remove minmax.
56653
56654 2007-03-06  Bruno Haible  <bruno@clisp.org>
56655
56656         * modules/snprintf-posix-tests: New file.
56657         * tests/test-snprintf-posix.c: New file.
56658
56659         * modules/snprintf-posix: New file.
56660         * m4/snprintf-posix.m4: New file.
56661         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56662         gl_FUNC_SNPRINTF.
56663         (gl_FUNC_SNPRINTF): Invoke it.
56664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56665         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56666         is set.
56667         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56668
56669 2007-03-06  Bruno Haible  <bruno@clisp.org>
56670
56671         * modules/vsnprintf-posix-tests: New file.
56672         * tests/test-vsnprintf-posix.c: New file.
56673         * tests/test-snprintf-posix.h: New file.
56674
56675         * modules/vsnprintf-posix: New file.
56676         * m4/vsnprintf-posix.m4: New file.
56677         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56678         gl_FUNC_VSNPRINTF.
56679         (gl_FUNC_VSNPRINTF): Invoke it.
56680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56681         * lib/stdio_.h (vsnprintf): Define as a replacement if
56682         REPLACE_VSNPRINTF is set.
56683         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56684
56685 2007-03-06  Bruno Haible  <bruno@clisp.org>
56686
56687         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56689
56690 2007-03-06  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56693         (asinl): Declare also if HAVE_DECL_ASINL is set.
56694         (atanl): Declare also if HAVE_DECL_ATANL is set.
56695         (ceill): Declare also if HAVE_DECL_CEILL is set.
56696         (cosl): Declare also if HAVE_DECL_COSL is set.
56697         (expl): Declare also if HAVE_DECL_EXPL is set.
56698         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56699         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56700         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56701         (logl): Declare also if HAVE_DECL_LOGL is set.
56702         (sinl): Declare also if HAVE_DECL_SINL is set.
56703         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56704         (tanl): Declare also if HAVE_DECL_TANL is set.
56705         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56708         declaration of frexpl, ldexpl.
56709         * modules/printf-frexpl (Depends-on): Add math.
56710         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56711
56712 2007-03-05  Bruno Haible  <bruno@clisp.org>
56713
56714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56715         frexpl and ldexpl are declared.
56716         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56717
56718 2007-03-05  Bruno Haible  <bruno@clisp.org>
56719
56720         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56721         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56722
56723 2007-03-05  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/stdio_.h: Include <stddef.h>.
56726
56727 2007-03-05  Bruno Haible  <bruno@clisp.org>
56728
56729         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56730
56731 2007-03-05  Bruno Haible  <bruno@clisp.org>
56732
56733         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56734         NetBSD 4, from Ralf Wildenhues.
56735
56736 2007-03-04  Bruno Haible  <bruno@clisp.org>
56737
56738         * lib/vasprintf.h: Update #if logic for the case when the functions
56739         exist but are overridden.
56740
56741 2007-03-04  Bruno Haible  <bruno@clisp.org>
56742
56743         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56744         implementations: glibc-2.4 and MacOS X 10.3.
56745         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56746         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56747         * tests/test-vasprintf-posix.c (test_function): Likewise.
56748
56749 2007-03-04  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/vasprintf-posix-tests: New file.
56752         * tests/test-vasprintf-posix.c: New file.
56753
56754         * modules/vasprintf-posix: New file.
56755         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56756         defined.
56757         * m4/vasprintf-posix.m4: New file.
56758         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56759         gl_FUNC_VASPRINTF.
56760         (gl_FUNC_VASPRINTF): Invoke it.
56761         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56762         here.
56763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56764
56765 2007-03-04  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56768         REPLACE_GETTIMEOFDAY.
56769         * modules/sys_time (Makefile.am): Likewise.
56770         * m4/sys_time_h.m4: Likewise.
56771         * m4/gettimeofday.m4: Likewise.
56772
56773 2007-03-04  Bruno Haible  <bruno@clisp.org>
56774
56775         * modules/vasnprintf-posix-tests: New file.
56776         * tests/test-vasnprintf-posix.c: New file.
56777
56778         * modules/vasnprintf-posix: New file.
56779         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56780         printf-frexpl.h.
56781         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56782         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56783         REPLACE_VASNPRINTF is defined.
56784         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56785         gl_FUNC_VASNPRINTF.
56786         (gl_FUNC_VASNPRINTF): Invoke it.
56787         * m4/vasnprintf-posix.m4: New file.
56788         * m4/printf.m4: New file.
56789
56790 2007-03-04  Bruno Haible  <bruno@clisp.org>
56791
56792         Compile progreloc.c only if --enable-relocatable is specified.
56793         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56794         if --enable-relocatable was specified.
56795         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56796         lib_SOURCES.
56797
56798 2007-03-04  Jim Meyering  <jim@meyering.net>
56799
56800         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56801         Use it consistently, rather than enumerating errno constants.
56802
56803 2007-03-04  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/xvasprintf-tests: New file.
56806         * tests/test-xvasprintf.c: New file.
56807
56808         * modules/vasprintf-tests: New file.
56809         * tests/test-vasprintf.c: New file.
56810
56811         * modules/vasnprintf-tests: New file.
56812         * tests/test-vasnprintf.c: New file.
56813
56814         * modules/vsnprintf-tests: New file.
56815         * tests/test-vsnprintf.c: New file.
56816
56817         * modules/snprintf-tests: New file.
56818         * tests/test-snprintf.c: New file.
56819
56820 2007-03-04  Bruno Haible  <bruno@clisp.org>
56821
56822         Compile relocatable.c only if --enable-relocatable is specified.
56823         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56824         gl_RELOCATABLE_LIBRARY.
56825         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56826         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56827         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56828         gl_RELOCATABLE_LIBRARY.
56829         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56830         (Makefile.am): Remove lib_SOURCES.
56831         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56832         gl_RELOCATABLE_LIBRARY.
56833         (Makefile.am): Remove lib_SOURCES.
56834         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56835         always.
56836         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56837         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56838
56839 2007-03-04  Bruno Haible  <bruno@clisp.org>
56840
56841         * modules/argmatch-tests: New file.
56842         * tests/test-argmatch.c: New file.
56843
56844         * tests/test-allocsa.c (main): Halve the number of loop runs.
56845
56846         * modules/alloca-opt-tests: New file.
56847         * tests/test-alloca-opt.c: New file.
56848
56849 2007-03-04  Jim Meyering  <jim@meyering.net>
56850
56851         Work around difference between Linux ACLs and Solaris 10 ZFS.
56852         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56853         for EINVAL.
56854
56855 2007-03-03  Bruno Haible  <bruno@clisp.org>
56856
56857         * modules/relocatable-prog (Depends-on): Add back progreloc's
56858         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56859
56860 2007-03-03  Bruno Haible  <bruno@clisp.org>
56861
56862         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56863         * modules/relocatable-lib: New file.
56864
56865 2007-03-03  Bruno Haible  <bruno@clisp.org>
56866
56867         * modules/relocatable-prog: Renamed from modules/relocatable.
56868         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56869
56870 2007-03-03  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56873         m4/relocatable-lib.m4.
56874         (Depends-on): Remove 'relocatable'.
56875         (configure.ac): Add gl_RELOCATABLE_NOP.
56876
56877 2007-03-03  Bruno Haible  <bruno@clisp.org>
56878
56879         * modules/relocatable-prog-wrapper: New file.
56880         * modules/relocatable (Depends-on): Add it. Remove all other
56881         dependencies except progname.
56882         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56883
56884         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56885         (gl_FUNC_STRERROR): Nop.
56886         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56887
56888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56889         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56890
56891         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56892         (gl_FUNC_READLINK): Update.
56893
56894         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56895
56896 2007-03-03  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56899         * modules/xreadlink (Depends-on): Add unistd.
56900         * modules/xreadlink-with-size (Depends-on): Likewise.
56901
56902 2007-03-03  Bruno Haible  <bruno@clisp.org>
56903
56904         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56905         extracted from gt_FUNC_SETENV.
56906         (gt_FUNC_SETENV): Remove macro.
56907         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56908         remove gt_FUNC_SETENV.
56909
56910 2007-03-03  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56913         ENABLE_RELOCATABLE here.
56914         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56915
56916 2007-03-03  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56919         * tests/test-rbtreehash_list.c: Include progname.h.
56920         (main): Call set_program_name.
56921
56922         * modules/rbtree-oset-tests (Depends-on): Add progname.
56923         * tests/test-rbtree_oset.c: Include progname.h.
56924         (main): Call set_program_name.
56925
56926         * modules/rbtree-list-tests (Depends-on): Add progname.
56927         * tests/test-rbtree_list.c: Include progname.h.
56928         (main): Call set_program_name.
56929
56930         * modules/linked-list-tests (Depends-on): Add progname.
56931         * tests/test-linked_list.c: Include progname.h.
56932         (main): Call set_program_name.
56933
56934 2007-03-03  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56937         All uses of __restrict changed to _Restrict_.
56938         * lib/glob_.h (__restrict): Remove macro.
56939
56940 2007-03-02  Bruno Haible  <bruno@clisp.org>
56941
56942         * modules/gettext (configure.ac): Require gettext infrastructure
56943         from version 0.16.1.
56944
56945 2007-03-02  Bruno Haible  <bruno@clisp.org>
56946
56947         * modules/linkedhash-list-tests (Depends-on): Add progname.
56948         * tests/test-linkedhash_list.c: Include progname.h.
56949         (main): Call set_program_name.
56950
56951         * modules/carray-list-tests (Depends-on): Add progname.
56952         * tests/test-carray_list.c: Include progname.h.
56953         (main): Call set_program_name.
56954
56955         * modules/avltreehash-list-tests (Depends-on): Add progname.
56956         * tests/test-avltreehash_list.c: Include progname.h.
56957         (main): Call set_program_name.
56958
56959         * modules/avltree-oset-tests (Depends-on): Add progname.
56960         * tests/test-avltree_oset.c: Include progname.h.
56961         (main): Call set_program_name.
56962
56963         * modules/avltree-list-tests (Depends-on): Add progname.
56964         * tests/test-avltree_list.c: Include progname.h.
56965         (main): Call set_program_name.
56966
56967         * modules/array-oset-tests (Depends-on): Add progname.
56968         * tests/test-array_oset.c: Include progname.h.
56969         (main): Call set_program_name.
56970
56971         * modules/array-list-tests (Depends-on): Add progname.
56972         * tests/test-array_list.c: Include progname.h.
56973         (main): Call set_program_name.
56974
56975         * modules/argp-tests (Depends-on): Add progname.
56976         * tests/test-argp.c: Include argp.h first. Include progname.h.
56977         (main): Call set_program_name.
56978
56979 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         * doc/gnulib-tool.texi (Initial import): Reword description of
56982         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56983         limited effect even if defined after the first system include.
56984
56985 2007-03-01  Bruno Haible  <bruno@clisp.org>
56986
56987         * build-aux/config.libpath: Update to libtool-1.5.22.
56988         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56989
56990 2007-03-01  Bruno Haible  <bruno@clisp.org>
56991
56992         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56993         foo_CFLAGS.
56994         Reported by Ralf Wildenhues.
56995
56996 2007-03-01  Bruno Haible  <bruno@clisp.org>
56997
56998         * build-aux/install-reloc: Remove object files left over by some
56999         compilers.
57000         Reported by Ralf Wildenhues.
57001
57002 2007-03-01  Bruno Haible  <bruno@clisp.org>
57003
57004         * build-aux/install-reloc: Break long lines.
57005
57006 2007-03-01  Bruno Haible  <bruno@clisp.org>
57007
57008         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57009         Reported by Ralf Wildenhues.
57010
57011 2007-03-01  Bruno Haible  <bruno@clisp.org>
57012
57013         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57014         include ordering constraints.
57015
57016 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57017
57018         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57020         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57021         as another example.
57022         * lib/time_.h: Fix misspelling.
57023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57024         Require gl_HEADER_TIME_H_DEFAULTS.
57025         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57026         * m4/time_r.m4 (gl_TIME_R): Likewise.
57027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57028
57029 2007-03-01  Bruno Haible  <bruno@clisp.org>
57030
57031         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57032         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57033
57034 2007-03-01  Jim Meyering  <jim@meyering.net>
57035
57036         * modules/xreadlink (Maintainer): Add my name.
57037         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57038
57039 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57040             Bruno Haible  <bruno@clisp.org>
57041
57042         * build-aux/install-reloc: Compile also c-ctype.c.
57043         * build-aux/relocatable.sh.in: New file.
57044         * doc/relocatable.texi: New file.
57045         * doc/relocatable-maint.texi: New file.
57046         * doc/gnulib.texi: Include relocatable-maint.texi.
57047         * lib/progreloc.c: Include unistd.h unconditionally.
57048         * lib/relocwrapper.c: Include unistd.h unconditionally.
57049         Include c-ctype.h.
57050         (add_dotbin): Use c_tolower.
57051         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57052         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57053         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57054         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57055         to m4/relocatable-lib.m4.
57056         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57057         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57058         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57059         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57060         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57061         * modules/relocatable: New file.
57062         * modules/relocatable-lib: New file.
57063         * modules/relocatable-script: New file.
57064
57065 2007-02-28  Bruno Haible  <bruno@clisp.org>
57066
57067         Import --enable-relocatable infrastructure.
57068         * build-aux/config.libpath: New file, from GNU gettext.
57069         * build-aux/install-reloc: New file, from GNU gettext.
57070         * build-aux/reloc-ldflags: New file, from GNU gettext.
57071         * lib/relocatable.h: New file, from GNU gettext.
57072         * lib/relocatable.c: New file, from GNU gettext.
57073         * lib/relocwrapper.c: New file, from GNU gettext.
57074         * m4/relocatable.m4: New file, from GNU gettext.
57075
57076 2007-02-28  Bruno Haible  <bruno@clisp.org>
57077
57078         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57079
57080         * modules/xreadlink: New file, from GNU gettext with modifications.
57081         * lib/xreadlink.c: New file, from GNU gettext.
57082         * lib/xreadlink.h: Add comments.
57083         (xreadlink): New declaration.
57084
57085         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57086         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57087         lib/xreadlink-with-size.c.
57088         (configure.ac): Remove gl_XREADLINK invocation.
57089         (Makefile.am): Augment lib_SOURCES.
57090         * m4/xreadlink.m4: Remove file.
57091         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57092         (xreadlink_with_size): Renamed from xreadink.
57093         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57094         * modules/canonicalize (Depends-on): Replace xreadlink with
57095         xreadlink-with-size.
57096         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57097
57098 2007-02-25  Jim Meyering  <jim@meyering.net>
57099
57100         * build-aux/announce-gen: When complaining about excess arguments,
57101         list them.
57102
57103 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * README: Document signed integer overflow situation more
57106         accurately.
57107
57108 2007-02-25  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57111         'a' or 'A' conversion.
57112
57113 2007-02-25  Bruno Haible  <bruno@clisp.org>
57114
57115         * modules/filename: Renamed from modules/pathname.
57116         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57117         lib/concatpath.c with lib/concat-filename.c.
57118         (Makefile.am): Update.
57119         (Include): Replace pathname.h with filename.h.
57120         * lib/filename.h: Renamed from lib/pathname.h.
57121         (concatenated_filename): Renamed from concatenated_pathname.
57122         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57123         (concatenated_filename): Renamed from concatenated_pathname.
57124         * lib/findprog.c: Include filename.h instead of pathname.h.
57125         (find_in_path): Update.
57126         * lib/javacomp.c: Include filename.h instead of pathname.h.
57127         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57128         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57129         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57130         is_oldgcj_14_13_usable, is_javac_usable): Update.
57131         * lib/javaexec.c: Include filename.h instead of pathname.h.
57132         (execute_java_class): Update.
57133         * modules/findprog: Update.
57134         * modules/javacomp: Update.
57135         * modules/javaexec: Update.
57136         * MODULES.html.sh (File system functions): Add 'filename', remove
57137         'pathname'.
57138
57139 2007-02-25  Bruno Haible  <bruno@clisp.org>
57140
57141         * modules/printf-frexpl-tests: New file.
57142         * tests/test-printf-frexpl.c: New file.
57143
57144         * modules/printf-frexpl: New file.
57145         * lib/printf-frexpl.h: New file.
57146         * lib/printf-frexpl.c: New file.
57147         * m4/printf-frexpl.m4: New file.
57148
57149 2007-02-25  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/printf-frexp-tests: New file.
57152         * tests/test-printf-frexp.c: New file.
57153
57154         * modules/printf-frexp: New file.
57155         * lib/printf-frexp.h: New file.
57156         * lib/printf-frexp.c: New file.
57157         * m4/printf-frexp.m4: New file.
57158
57159 2007-02-25  Bruno Haible  <bruno@clisp.org>
57160
57161         Assume automake >= 1.10 for the tests.
57162         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57163         * modules/arctwo-tests: Likewise.
57164         * modules/argp-tests: Likewise.
57165         * modules/avltree-list-tests: Likewise.
57166         * modules/avltree-oset-tests: Likewise.
57167         * modules/avltreehash-list-tests: Likewise.
57168         * modules/carray-list-tests: Likewise.
57169         * modules/crc-tests: Likewise.
57170         * modules/des-tests: Likewise.
57171         * modules/gc-arcfour-tests: Likewise.
57172         * modules/gc-arctwo-tests: Likewise.
57173         * modules/gc-des-tests: Likewise.
57174         * modules/gc-hmac-md5-tests: Likewise.
57175         * modules/gc-hmac-sha1-tests: Likewise.
57176         * modules/gc-md2-tests: Likewise.
57177         * modules/gc-md4-tests: Likewise.
57178         * modules/gc-md5-tests: Likewise.
57179         * modules/gc-pbkdf2-sha1-tests: Likewise.
57180         * modules/gc-rijndael-tests: Likewise.
57181         * modules/gc-sha1-tests: Likewise.
57182         * modules/gc-tests: Likewise.
57183         * modules/getaddrinfo-tests: Likewise.
57184         * modules/hmac-md5-tests: Likewise.
57185         * modules/hmac-sha1-tests: Likewise.
57186         * modules/linked-list-tests: Likewise.
57187         * modules/linkedhash-list-tests: Likewise.
57188         * modules/lock-tests: Likewise.
57189         * modules/md2-tests: Likewise.
57190         * modules/md4-tests: Likewise.
57191         * modules/md5-tests: Likewise.
57192         * modules/rbtree-list-tests: Likewise.
57193         * modules/rbtree-oset-tests: Likewise.
57194         * modules/rbtreehash-list-tests: Likewise.
57195         * modules/read-file-tests: Likewise.
57196         * modules/rijndael-tests: Likewise.
57197         * modules/stdint-tests: Likewise.
57198         * modules/tls-tests: Likewise.
57199
57200 2007-02-24  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57203         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57204         function; instead check whether isnan with a double argument links.
57205         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57206         function; instead check whether isnan with a 'long double' argument
57207         links.
57208         Reported by Eric Blake <ebb9@byu.net>.
57209
57210 2007-02-24  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57213         defined.
57214         * lib/isnanl.c: Remove all code. Just include isnan.c.
57215         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57216
57217 2007-02-25  Jim Meyering  <jim@meyering.net>
57218
57219         Avoid conflicting types for 'unsetenv' on FreeBSD.
57220         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57221         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57222         in stdlib.h.
57223
57224 2007-02-24  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/isnanl-nolibm-tests: New file.
57227         * tests/test-isnanl.c: New file.
57228
57229         * modules/isnanl-nolibm: New file.
57230         * lib/isnanl.h: New file.
57231         * lib/isnanl.c: New file.
57232         * m4/isnanl.m4: New file.
57233
57234 2007-02-24  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/isnan-nolibm-tests: New file.
57237         * tests/test-isnan.c: New file.
57238
57239         * modules/isnan-nolibm: New file.
57240         * lib/isnan.h: New file.
57241         * lib/isnan.c: New file.
57242         * m4/isnan.m4: New file.
57243
57244 2007-02-24  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57247         assume that an exponent fits in 20 bits.
57248
57249 2007-02-24  Jim Meyering  <jim@meyering.net>
57250
57251         * m4/regex.m4: Update the description of the configure-time option,
57252         --without-included-regex, to state accurately what the defaults are,
57253         and perhaps to give people an idea why using this option is risky.
57254
57255 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57258         loops on small arguments.  This attempts to avoid the problem
57259         Bruno Haible reported for AIX 4.3.2 in
57260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57261
57262 2007-02-23  Bruno Haible  <bruno@clisp.org>
57263
57264         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57265         Needed for help2man.
57266
57267 2007-02-23  Karl Berry  <karl@gnu.org>
57268
57269         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57270         exists, foo.h should be cvs-ignored, not committed.
57271
57272 2007-02-23  Eric Blake  <ebb9@byu.net>
57273
57274         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57275         * lib/stat-time.h (includes): Likewise.
57276         * lib/utimecmp.c (includes): Likewise.
57277         * lib/utimens.h (includes): Likewise.
57278         * lib/getdate.y (includes): Also include "timespec.h" for use
57279         internal to the module.
57280         * modules/utimens (Depends-on): Revert yesterday's patch.
57281         * modules/nanosleep (Depends-on): Add missing dependency.
57282
57283 2007-02-22  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/glob.c: Don't include getlogin_r.h.
57286
57287 2007-02-22  Jim Meyering  <jim@meyering.net>
57288
57289         * modules/utimens (Depends-on): Add timespec, required for
57290         utimens.h's inclusion of timespec.h.
57291
57292 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57293
57294         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57295         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57296         Schwab in
57297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57298         I'll try to think of a better way to fix the Solaris problem.
57299
57300         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57301         like glibc; on Solaris 10, it fails with errno == EINVAL.
57302         POSIX says the behavior is unspecified if the first argument is NULL,
57303         so play it safe and never pass NULL to the system getcwd.
57304
57305 2007-02-21  Jim Meyering  <jim@meyering.net>
57306
57307         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57308         of gettimeofday.  It would conflict with the one now always
57309         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57310         an IRIX 6.5 build failure.
57311
57312 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57313
57314         Minor fixups to port to Solaris 10 with Sun C 5.8.
57315         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57316         * modules/getcwd (Depends-on): Add dirfd.
57317         * lib/putenv.c (putenv): #undef it.
57318         (rpl_putenv): New decl.
57319         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57320
57321 2007-02-20  Bruno Haible  <bruno@clisp.org>
57322
57323         * modules/stdio-tests: New file.
57324         * tests/test-stdio.c: New file.
57325
57326         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57327         (Depends-on): Add stdio.
57328         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57329         (Include): Use <stdio.h> instead of vsnprintf.h.
57330         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57331         HAVE_DECL_VSNPRINTF.
57332         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57333
57334         * modules/snprintf (Files): Remove lib/snprintf.h.
57335         (Depends-on): Add stdio.
57336         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57337         (Include): Use <stdio.h> instead of snprintf.h.
57338         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57339         HAVE_DECL_SNPRINTF.
57340         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57341         * lib/getaddrinfo.c: Likewise.
57342
57343         * modules/stdio: New file.
57344         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57345         * lib/snprintf.h: Remove file.
57346         * lib/vsnprintf.h: Remove file.
57347         * lib/.cppi-disable: Remove snprintf.h.
57348         * m4/stdio_h.m4: New file.
57349         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57350
57351 2007-02-20  Jim Meyering  <jim@meyering.net>
57352
57353         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57354         used by e.g., mingw.  From Bruno Haible.
57355
57356 2007-02-19  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57359         warnings.
57360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57361
57362 2007-02-19  Bruno Haible  <bruno@clisp.org>
57363
57364         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57365         from mingw users.
57366
57367 2007-02-19  Bruno Haible  <bruno@clisp.org>
57368
57369         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57370         warnings.
57371         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57372
57373 2007-02-19  Jim Meyering  <jim@meyering.net>
57374
57375         Don't use FD after a successful "fdopendir (fd)".
57376         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57377         Reset it by calling dirfd on the just-obtained DIR*.
57378
57379         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57380         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57381
57382 2007-02-18  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/readlink.c: Include <unistd.h>.
57385         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57386         HAVE_READLINK.
57387         * modules/readlink (Depends-on): Add unistd.
57388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57389         (Include): Add <unistd.h>.
57390
57391         * lib/getlogin_r.h: Remove file.
57392         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57393         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57394         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57395         HAVE_DECL_GETLOGIN_R.
57396         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57398         (Include): Use <unistd.h> instead of getlogin_r.h.
57399
57400         * lib/getcwd.h: Remove file.
57401         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57402         * lib/xgetcwd.c: Likewise.
57403         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57404         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57405         * modules/getcwd (Files): Remove lib/getcwd.h.
57406         (Depends-on): Add unistd.
57407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57408         (Include): Use <unistd.h> instad of getcwd.h.
57409
57410         * lib/ftruncate.c: Include <unistd.h> first.
57411         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57412         Set HAVE_FTRUNCATE.
57413         * modules/ftruncate (Depends-on): Add unistd.
57414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57415
57416         * lib/fchdir.c: Include <unistd.h> first.
57417         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57419         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57420         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57421         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57422
57423         * lib/dup2.c: Include <unistd.h> first.
57424         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57425         HAVE_DUP2.
57426         * modules/dup2 (Depends-on): Add unistd.
57427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57428
57429         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57430         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57431         REPLACE_CHOWN. Don't define chown as a macro here.
57432         * modules/chown (Depends-on): Add unistd.
57433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57434
57435         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57436         Add definition for GL_LINK_WARNING.
57437         (chown, dup2): New declarations.
57438         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57439         link warning.
57440         (ftruncate): New declaration.
57441         (getcwd): New declaration, taken from old getcwd.h.
57442         (getlogin_r): New declaration, taken from old getlogin_r.h.
57443         (readlink): New declaration.
57444         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57445         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57446         (gl_PREREQ_UNISTD): Remove macro.
57447         (gl_UNISTD_MODULE_INDICATOR): New macro.
57448         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57449         many new variables. Don't set UNISTD_H.
57450         * modules/unistd (Description): Change.
57451         (Depends-on): Add link-warning.
57452         (configure.ac): Update.
57453         (Makefile.am): Create unistd.h always. Substitute many new variables
57454         into it.
57455
57456 2007-02-18  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57459         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57460         HAVE_GETSUBOPT.
57461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57462         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57463         * lib/getsubopt.h: Remove file.
57464         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57465         (Depends-on): Add stdlib.
57466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57467         (Includes): Use <stdlib.h> instead of getsubopt.h.
57468         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57469         Set HAVE_GETSUBOPT.
57470         * lib/getsubopt.c: Don't include getsubopt.h.
57471
57472 2007-02-18  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/fchdir (Depends-on): Add dup2.
57475
57476 2007-02-18  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/stdlib_.h: Handle glibc's special invocation convention
57479         specially.
57480
57481 2007-02-18  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/stdlib-tests: New file.
57484         * tests/test-stdlib.c: New file.
57485
57486         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57487         (Depends-on): Add stdlib.
57488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57489         (Includes): Use <stdlib.h> instead of mkstemp.h.
57490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57491         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57492         * lib/mkstemp.c: Don't include mkstemp.h.
57493         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57494         * lib/stdlib--.h: Don't include mkstemp.h.
57495
57496         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57497         (Depends-on): Add stdlib.
57498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57499         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57500         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57501         HAVE_MKDTEMP.
57502         * lib/mkdtemp.c: Don't include mkdtemp.h.
57503         * lib/clean-temp.c: Don't include mkdtemp.h.
57504
57505         * modules/exit (Files): Remove lib/exit.h.
57506         (Depends-on): Add stdlib.
57507         (Makefile.am): Remove lib_SOURCES.
57508         (Include): Use <stdlib.h> instead of exit.h.
57509         * lib/argmatch.c: Don't include exit.h.
57510         * lib/execute.c: Likewise.
57511         * lib/pagealign_alloc.c: Likewise.
57512         * lib/pipe.c: Likewise.
57513         * lib/wait-process.c: Likewise.
57514         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57515         * lib/exitfail.c: Likewise.
57516         * lib/savewd.c: Likewise.
57517         * lib/xsetenv.c: Likewise.
57518
57519         * modules/stdlib: New file.
57520         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57521         and extra comments about mkstemp().
57522         * lib/exit.h: Remove file.
57523         * lib/mkdtemp.h: Remove file.
57524         * lib/mkstemp.h: Remove file.
57525         * m4/stdlib_h.m4: New file.
57526         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57527
57528 2007-02-18  Bruno Haible  <bruno@clisp.org>
57529
57530         * modules/math-tests: New file.
57531         * tests/test-math.c: New file.
57532
57533         * modules/math: New file.
57534         * modules/mathl (Files): Remove lib/mathl.h.
57535         (Depends-on): Add math.
57536         (Makefile.am): Don't mention mathl.h.
57537         (Include): Use <math.h> instead of mathl.h.
57538         * lib/math_.h: New file.
57539         * lib/mathl.h: Remove file.
57540         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57541         mathl.h.
57542         * lib/asinl.c: Likewise.
57543         * lib/atanl.c: Likewise.
57544         * lib/ceill.c: Likewise.
57545         * lib/cosl.c: Likewise.
57546         * lib/expl.c: Likewise.
57547         * lib/floorl.c: Likewise.
57548         * lib/frexpl.c: Likewise.
57549         * lib/ldexpl.c: Likewise.
57550         * lib/logl.c: Likewise.
57551         * lib/sincosl.c: Likewise.
57552         * lib/sinl.c: Likewise.
57553         * lib/sqrtl.c: Likewise.
57554         * lib/tanl.c: Likewise.
57555         * lib/trigl.c: Likewise.
57556         * m4/math_h.m4: New file.
57557         * MODULES.html.sh (Mathematics): Add math.
57558
57559 2007-02-17  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/wctype-tests: New file.
57562         * tests/test-wctype.c: New file.
57563
57564         * modules/wchar-tests: New file.
57565         * tests/test-wchar.c: New file.
57566
57567         * modules/unistd-tests: New file.
57568         * tests/test-unistd.c: New file.
57569
57570         * modules/time-tests: New file.
57571         * tests/test-time.c: New file.
57572
57573         * modules/sysexits-tests: New file.
57574         * tests/test-sysexits.c: New file.
57575
57576         * modules/sys_time-tests: New file.
57577         * tests/test-sys_time.c: New file.
57578
57579         * modules/sys_stat-tests: New file.
57580         * tests/test-sys_stat.c: New file.
57581
57582         * modules/sys_socket-tests: New file.
57583         * tests/test-sys_socket.c: New file.
57584
57585         * modules/sys_select-tests: New file.
57586         * tests/test-sys_select.c: New file.
57587
57588         * modules/string-tests: New file.
57589         * tests/test-string.c: New file.
57590
57591         * modules/stdbool-tests: New file.
57592         * tests/test-stdbool.c: New file.
57593
57594         * modules/netinet_in-tests: New file.
57595         * tests/test-netinet_in.c: New file.
57596
57597         * modules/inttypes-tests: New file.
57598         * tests/test-inttypes.c: New file.
57599
57600         * modules/fcntl-tests: New file.
57601         * tests/test-fcntl.c: New file.
57602
57603         * modules/byteswap-tests: New file.
57604         * tests/test-byteswap.c: New file.
57605
57606         * modules/arpa_inet-tests: New file.
57607         * tests/test-arpa_inet.c: New file.
57608
57609 2007-02-17  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57612         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57613         if the corresponding module is not enabled. Emit link warnings if
57614         the function is used nevertheless.
57615         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57616         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57617         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57618         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57619         * modules/inttypes (Depends-on): Add link-warning.
57620         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57621         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57622         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57623         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57624         * modules/imaxdiv (configure.ac): Likewise.
57625         * modules/strtoimax (configure.ac): Likewise.
57626         * modules/strtoumax (configure.ac): Likewise.
57627
57628 2007-02-17  Bruno Haible  <bruno@clisp.org>
57629
57630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57631         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57632         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57633         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57634
57635 2007-02-17  Bruno Haible  <bruno@clisp.org>
57636
57637         * modules/link-warning: New file.
57638         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57639         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57640         * modules/string (Depends-on): Add link-warning.
57641         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57642         string.h.
57643         * MODULES.html.sh (Support for building libraries and executables): Add
57644         link-warning.
57645
57646 2007-02-17  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57649         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57650         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57651         long lines.
57652
57653 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57654             Bruno Haible  <bruno@clisp.org>
57655
57656         * modules/tmpfile: New file.
57657         * lib/tmpfile.c: New file.
57658         * m4/tmpfile.m4: New file.
57659         * MODULES.html.sh (func_all_modules): New section "Input/output".
57660
57661 2007-02-15  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57664         (supports_delete_on_close): New function.
57665         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57666
57667 2007-02-14  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/mbspcasecmp-tests: New file.
57670         * tests/test-mbspcasecmp.sh: New file.
57671         * tests/test-mbspcasecmp.c: New file.
57672
57673         New module mbspcasecmp.
57674         * modules/mbspcasecmp: New file.
57675         * lib/mbspcasecmp.c: New file.
57676         * lib/string_.h (strncasecmp): Change warning message.
57677         (mbspcasecmp): New declaration.
57678         * m4/mbspcasecmp.m4: New file.
57679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57680         GNULIB_MBSPCASECMP.
57681         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57682         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57683
57684 2007-02-14  Bruno Haible  <bruno@clisp.org>
57685
57686         * modules/mbsncasecmp-tests: New file.
57687         * tests/test-mbsncasecmp.sh: New file.
57688         * tests/test-mbsncasecmp.c: New file.
57689
57690         New module mbsncasecmp.
57691         * modules/mbsncasecmp: New file.
57692         * lib/mbsncasecmp.c: New file.
57693         * lib/string_.h (mbsncasecmp): New declaration.
57694         * m4/mbsncasecmp.m4: New file.
57695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57696         GNULIB_MBSNCASECMP.
57697         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57698         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57699
57700 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57703         Verify that it doesn't overlap with our flags.
57704         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57705         do not have the desired effect in multibyte locales; instead, use
57706         mbscasecmp.
57707         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57708         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57709         we don't require GNU fnmatch ourselves (if our users require it, they
57710         should do so explicitly).
57711
57712         Fix regex code so it doesn't rely on strcasecmp.
57713         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57714         Otherwise, include gnulib's langinfo.h.
57715         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57716         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57717         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57718         * modules/regex (FILES): Remove m4/codeset.m4.
57719         (Depends-on): Add localcharset.  Remove strcase.
57720
57721 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57722
57723         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57725
57726 2007-02-13  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57730
57731 2007-02-12  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57734         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57735         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57736         time warning rather than a link error.
57737
57738 2007-02-12  Bruno Haible  <bruno@clisp.org>
57739
57740         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57743
57744 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57747         args, not 2.
57748
57749 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         New module 'time', so that apps can include <time.h> as per
57752         POSIX and GNU instead of separate include files like time_r.h
57753         and timegm.h.  This implementation tries out a simpler approach
57754         for replacing decls in standard include files (as compared to
57755         the string module), somewhat as an experiment.
57756
57757         * config/srclist.txt: Comment out mktime.c for now.
57758         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57759         since it doesn't apply any more.  Use generic wording instead.
57760         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57761         'time'.
57762         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57763         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57764         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57765         Don't include <sys/types.h>; no longer needed since we assume C89.
57766         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57767         * lib/strftime.c: Likewise.
57768         * lib/time_r.c: Likewise.
57769         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57770         * lib/nanosleep.c: Include <time.h> first, to check interface.
57771         * lib/strptime.c: Likewise.
57772         * lib/time_r.c: Likewise.
57773         * lib/timegm.c: Likewise.
57774         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57775         needed.
57776         * lib/timegm.c: Don't include timegm.h; no longer needed.
57777         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57778         time.h now handles any problems in that area.
57779         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57780         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57781         that time.h defines struct timespec.
57782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57783         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57784         handles that.
57785         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57786         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57787         needed.  Set REPLACE_LOCALTIME.
57788         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57789         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57790         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57791         nanosleep; time_h.m4 now does that.  Don't require
57792         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57793         module handles this now.
57794         * modules/getdate (Depends-on): Remove timespec.  Add time.
57795         * modules/nanosleep (Depends-on): Likewise.
57796         * modules/stat-time (Depends-on): Likewise.
57797         * modules/nanosleep (Include): Include time.h, not timespec.h.
57798         * modules/strptime (Files): Remove lib/strptime.h.
57799         (Depends-on): Add extensions, time.
57800         (Include): Include time.h, not strptime.h.
57801         * modules/time_r (Files): Remove lib/time_r.h.
57802         (Depends-on): Add time.
57803         (Include): Include time.h, not time_r.h.
57804         * modules/timegm: Likewise.
57805         * modules/timespec (Description): Now does timespec-related decls
57806         of our own, instead of struct timespec itself.
57807         (Depends-on): Add time; remove extensions.
57808         (Maintainer): Add self.
57809         * modules/utimecmp (Depends-on): Add time; remove timespec.
57810         * modules/utimens (Depends-on): Likewise.
57811         * modules/xnanosleep (Depends-on): Likewise.
57812
57813 2007-02-11  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/c-strstr.c: Include allocsa.h.
57816         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57817         * lib/c-strcasestr.c: Include allocsa.h.
57818         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57819         * lib/strcasestr.c: Include allocsa.h.
57820         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57821         * lib/mbsstr.c: Include allocsa.h.
57822         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57823         allocsa/freesa instead of malloc/free.
57824         * lib/mbscasestr.c: Include allocsa.h.
57825         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57826         allocsa/freesa instead of malloc/free.
57827         * modules/c-strstr (Depends-on): Add allocsa.
57828         * modules/c-strcasestr (Depends-on): Likewise.
57829         * modules/strcasestr (Depends-on): Likewise.
57830         * modules/mbsstr (Depends-on): Likewise.
57831         * modules/mbscasestr (Depends-on): Likewise.
57832
57833 2007-02-11  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57836
57837         * modules/mbsspn-tests: New file.
57838         * tests/test-mbsspn.sh: New file.
57839         * tests/test-mbsspn.c: New file.
57840
57841 2007-02-11  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57844
57845         * modules/mbspbrk-tests: New file.
57846         * tests/test-mbspbrk.sh: New file.
57847         * tests/test-mbspbrk.c: New file.
57848
57849 2007-02-11  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57852         unneeded cast.
57853
57854         * modules/mbscspn-tests: New file.
57855         * tests/test-mbscspn.sh: New file.
57856         * tests/test-mbscspn.c: New file.
57857
57858 2007-02-11  Bruno Haible  <bruno@clisp.org>
57859
57860         * modules/mbscasecmp-tests: New file.
57861         * tests/test-mbscasecmp.sh: New file.
57862         * tests/test-mbscasecmp.c: New file.
57863
57864 2007-02-11  Bruno Haible  <bruno@clisp.org>
57865
57866         Ensure O(n) worst-case complexity of mbscasestr.
57867         * lib/mbscasestr.c: Include stdbool.h.
57868         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57869         functions.
57870         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57871         the bookkeeping indicates that it's worth it.
57872         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57873
57874         * modules/mbscasestr-tests: New file.
57875         * tests/test-mbscasestr1.c: New file.
57876         * tests/test-mbscasestr2.sh: New file.
57877         * tests/test-mbscasestr2.c: New file.
57878         * tests/test-mbscasestr3.sh: New file.
57879         * tests/test-mbscasestr3.c: New file.
57880         * tests/test-mbscasestr4.sh: New file.
57881         * tests/test-mbscasestr4.c: New file.
57882         * m4/locale-tr.m4: New file.
57883
57884 2007-02-11  Bruno Haible  <bruno@clisp.org>
57885
57886         Ensure O(n) worst-case complexity of mbsstr.
57887         * lib/mbsstr.c: Include stdbool.h.
57888         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57889         functions.
57890         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57891         bookkeeping indicates that it's worth it.
57892         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57893
57894         * modules/mbsstr-tests: New file.
57895         * tests/test-mbsstr1.c: New file.
57896         * tests/test-mbsstr2.sh: New file.
57897         * tests/test-mbsstr2.c: New file.
57898         * tests/test-mbsstr3.sh: New file.
57899         * tests/test-mbsstr3.c: New file.
57900         * m4/locale-fr.m4: New file.
57901
57902 2007-02-11  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/mbsrchr.c (mbsrchr): Fix bug.
57905
57906         * modules/mbsrchr-tests: New file.
57907         * tests/test-mbsrchr.sh: New file.
57908         * tests/test-mbsrchr.c: New file.
57909
57910 2007-02-11  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/mbschr.c (mbschr): Fix bug.
57913
57914         * modules/mbschr-tests: New file.
57915         * tests/test-mbschr.sh: New file.
57916         * tests/test-mbschr.c: New file.
57917         * m4/locale-zh.m4: New file.
57918
57919 2007-02-11  Bruno Haible  <bruno@clisp.org>
57920
57921         Support for copying multibyte string iterators.
57922         * lib/mbiter.h: Include <string.h>.
57923         (mbiter_multi_copy): New function.
57924         (mbi_copy): New macro.
57925         * lib/mbuiter.h: Include <string.h>.
57926         (mbuiter_multi_copy): New function.
57927         (mbui_copy): New macro.
57928
57929 2007-02-11  Bruno Haible  <bruno@clisp.org>
57930
57931         New module mbslen.
57932         * modules/mbslen: New file.
57933         * lib/mbslen.c: New file.
57934         * lib/string_.h (mbslen): New declaration.
57935         * m4/mbslen.m4: New file.
57936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57937         GNULIB_MBSLEN.
57938         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57939         * MODULES.html.sh (Internationalization functions): Add mbslen.
57940
57941 2007-02-11  Bruno Haible  <bruno@clisp.org>
57942
57943         Ensure O(n) worst-case complexity of strcasestr substitute.
57944         * lib/strcasestr.c: Include stdbool.h.
57945         (knuth_morris_pratt): New function.
57946         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57947         bookkeeping indicates that it's worth it.
57948         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57949
57950         * modules/strcasestr-tests: New file.
57951         * tests/test-strcasestr.c: New file.
57952
57953 2007-02-11  Bruno Haible  <bruno@clisp.org>
57954
57955         Ensure O(n) worst-case complexity of c_strcasestr.
57956         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57957         (knuth_morris_pratt): New function.
57958         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57959         the bookkeeping indicates that it's worth it.
57960         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57961
57962         * modules/c-strcasestr-tests: New file.
57963         * tests/test-c-strcasestr.c: New file.
57964
57965 2007-02-11  Bruno Haible  <bruno@clisp.org>
57966
57967         Ensure O(n) worst-case complexity of c_strstr.
57968         * lib/c-strstr.c: Include stdbool.h, string.h.
57969         (knuth_morris_pratt): New function.
57970         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57971         bookkeeping indicates that it's worth it.
57972         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57973
57974         * lib/c-strstr.c: Complete rewrite for maintainability.
57975
57976         * modules/c-strstr-tests: New file.
57977         * tests/test-c-strstr.c: New file.
57978
57979 2007-02-11  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57982         5.2.1 and earlier, whereby \055 was treated just like the range
57983         delimiter '-'.
57984         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57985
57986 2007-02-08  Bruno Haible  <bruno@clisp.org>
57987
57988         * modules/regex (Depends-on): Add stdbool.
57989         Reported by Dalibor Topic <robilad@kaffe.org>.
57990
57991 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57994         Prefer returning from main to exiting from it.
57995         Remove unnecessary parens after sizeof.
57996
57997 2007-02-05  Bruno Haible  <bruno@clisp.org>
57998
57999         New module mbssep.
58000         * modules/mbssep: New file.
58001         * lib/mbssep.c: New file.
58002         * lib/string_.h (strsep): Add a conditional link warning.
58003         (mbssep): New declaration.
58004         * m4/mbssep.m4: New file.
58005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58006         GNULIB_MBSSEP.
58007         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58008         * MODULES.html.sh (Internationalization functions): Add mbssep.
58009
58010 2007-02-05  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58013         Optimize search in case of 1 delimiter.
58014
58015 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58016
58017         * lib/acl.h: Include sys/types.h before sys/acl.h.
58018
58019 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58020
58021         Merge upstream fix for glibc bugzilla #3957:
58022
58023         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58024
58025         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58026         bit for RE_HAT_LISTS_NOT_NEWLINE.
58027         (build_charclass_op): Remove bogus comment.
58028
58029 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58030
58031         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58032
58033 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58036         * lib/memmem.c [!defined _LIBC]: Include config.h.
58037
58038 2007-02-04  Bruno Haible  <bruno@clisp.org>
58039
58040         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58041         warning message.
58042
58043 2007-02-04  Bruno Haible  <bruno@clisp.org>
58044
58045         New module mbstok_r.
58046         * modules/mbstok_r: New file.
58047         * lib/mbstok_r.c: New file.
58048         * lib/string_.h (strtok_r): Change argument names to match the
58049         comments. Add a conditional link warning.
58050         (mbstok_r): New declaration.
58051         * m4/mbstok_r.m4: New file.
58052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58053         GNULIB_MBSTOK_R.
58054         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58055         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58056
58057 2007-02-04  Bruno Haible  <bruno@clisp.org>
58058
58059         New module mbsspn.
58060         * modules/mbsspn: New file.
58061         * lib/mbsspn.c: New file.
58062         * lib/string_.h (strspn): Add a conditional link warning.
58063         (mbsspn): New declaration.
58064         * m4/mbsspn.m4: New file.
58065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58066         GNULIB_MBSSPN.
58067         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58068         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58069
58070 2007-02-04  Bruno Haible  <bruno@clisp.org>
58071
58072         New module mbspbrk.
58073         * modules/mbspbrk: New file.
58074         * lib/mbspbrk.c: New file.
58075         * lib/string_.h (strpbrk): Add a conditional link warning.
58076         (mbspbrk): New declaration.
58077         * m4/mbspbrk.m4: New file.
58078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58079         GNULIB_MBSPBRK.
58080         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58081         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58082
58083 2007-02-04  Bruno Haible  <bruno@clisp.org>
58084
58085         New module mbscspn.
58086         * modules/mbscspn: New file.
58087         * lib/mbscspn.c: New file.
58088         * lib/string_.h (strcspn): Add a conditional link warning.
58089         (mbscspn): New declaration.
58090         * m4/mbscspn.m4: New file.
58091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58092         GNULIB_MBSCSPN.
58093         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58094         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58095
58096 2007-02-04  Bruno Haible  <bruno@clisp.org>
58097
58098         New module mbscasestr, reduced goal of strcasestr.
58099         * modules/mbscasestr: New file.
58100         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58101         (mbscasestr): Renamed from strcasestr.
58102         * lib/strcasestr.c: Don't include mbuiter.h.
58103         (strcasestr): Remove support for multibyte locales.
58104         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58105         Change the conditional link warning.
58106         (mbscasestr): New declaration.
58107         * m4/mbscasestr.m4: New file.
58108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58109         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58110         REPLACE_STRCASESTR.
58111         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58113         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58114         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58115         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58116         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58117         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58118         (Depends-on): Remove mbuiter.
58119         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58120
58121 2007-02-04  Bruno Haible  <bruno@clisp.org>
58122
58123         Simplify handling of strncasecmp.
58124         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58125         the conditional link warning.
58126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58127         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58129         * modules/strcase (configure.ac): Don't invoke
58130         gl_STRING_MODULE_INDICATOR.
58131         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58132
58133 2007-02-04  Bruno Haible  <bruno@clisp.org>
58134
58135         New module mbscasecmp, reduced goal of strcasecmp.
58136         * modules/mbscasecmp: New file.
58137         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58138         (mbscasecmp): Renamed from strcasecmp.
58139         * lib/strcasecmp.c: Don't include mbuiter.h.
58140         (strcasecmp): Remove support for multibyte locales.
58141         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58142         Change the conditional link warning.
58143         (mbscasecmp): New declaration.
58144         * m4/mbscasecmp.m4: New file.
58145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58146         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58147         REPLACE_STRCASECMP.
58148         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58150         GNULIB_MBSCASECMP.
58151         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58152         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58153         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58154         (Depends-on): Remove mbuiter.
58155         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58156
58157 2007-02-04  Bruno Haible  <bruno@clisp.org>
58158
58159         New module mbsstr. Remove module strstr.
58160         * modules/mbsstr: New file.
58161         * modules/strstr: Remove file.
58162         * lib/mbsstr.c: Renamed from lib/strstr.c.
58163         (mbsstr): Renamed from strstr.
58164         * lib/string_.h (strstr): Remove declaration. Change the conditional
58165         link warning.
58166         (mbsstr): New declaration.
58167         * m4/mbsstr.m4: New file.
58168         * m4/strstr.m4: Remove file.
58169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58170         REPLACE_STRSTR.
58171         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58172         Don't initialize GNULIB_STRSTR.
58173         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58174         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58175         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58176         (Support for systems lacking ANSI C 89): Remove strstr.
58177
58178 2007-02-04  Bruno Haible  <bruno@clisp.org>
58179
58180         New module mbsrchr.
58181         * modules/mbsrchr: New file.
58182         * lib/mbsrchr.c: New file.
58183         * lib/string_.h (strrchr): Add a conditional link warning.
58184         (mbsrchr): New declaration.
58185         * m4/mbsrchr.m4: New file.
58186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58187         GNULIB_MBSRCHR.
58188         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58189         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58190
58191 2007-02-04  Bruno Haible  <bruno@clisp.org>
58192
58193         New module mbschr.
58194         * modules/mbschr: New file.
58195         * lib/mbschr.c: New file.
58196         * lib/string_.h (strchr): Add a conditional link warning.
58197         (mbschr): New declaration.
58198         * m4/mbschr.m4: New file.
58199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58200         GNULIB_MBSCHR.
58201         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58202         * MODULES.html.sh (Internationalization functions): Add mbschr.
58203
58204 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58207
58208         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58209
58210 2007-02-04  Bruno Haible  <bruno@clisp.org>
58211
58212         New module description section 'configure.ac-early'.
58213         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58214         (func_get_autoconf_early_snippet): New function.
58215         (func_import, func_create_testdir): Use it. Remove special cases for
58216         modules 'extensions' and 'lock'.
58217         * modules/extensions (configure.ac-early): Require
58218         gl_USE_SYSTEM_EXTENSIONS.
58219         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58220
58221 2007-02-04  Bruno Haible  <bruno@clisp.org>
58222
58223         Make use of gcj-4.3's -fsource and -ftarget option.
58224         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58225         and if so try the options -fsource and -ftarget.
58226         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58227         source_version, ftarget_option, target_version arguments.
58228         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58229         (is_envjavac_oldgcj_14_14_usable): Renamed from
58230         is_envjavac_gcj_14_14_usable.
58231         (is_envjavac_oldgcj_14_13_usable): Renamed from
58232         is_envjavac_gcj_14_13_usable.
58233         (is_gcj_present): Update.
58234         (is_gcj_43, is_gcj43_usable): New functions.
58235         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58236         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58237         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58238         try the options -fsource and -ftarget.
58239
58240 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58243         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58244         larger value.
58245
58246 2007-02-03  Jim Meyering  <jim@meyering.net>
58247
58248         Give tools a better chance to allocate space for very large buffers.
58249         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58250
58251         Make pwd and readlink work also when run with an unreadable parent dir
58252         on systems with openat support.
58253         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58254         provided getcwd function, even when we have openat support.
58255         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58256
58257 2007-02-02  Bruno Haible  <bruno@clisp.org>
58258
58259         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58260         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58261         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58262         portability problems if one of these functions is only used on specific
58263         platforms.
58264         Reported by Paul Eggert.
58265
58266 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58269         is causing more trouble than it's curing.
58270         * lib/regex_internal.h (__mempcpy): Remove.
58271         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58272         (and make the code a tad smaller to boot).
58273         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58274
58275 2007-02-02  Jim Meyering  <jim@meyering.net>
58276
58277         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58278         section, not in the Makefile.am: one.
58279
58280 2007-02-02  Eric Blake  <ebb9@byu.net>
58281
58282         * lib/strchrnul.c: Always include config.h first.
58283
58284         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58285         gnulib strstr is not necessary here.
58286
58287 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58288
58289         * m4/socklen.m4: Fix typo.
58290
58291 2007-02-02  Eric Blake  <ebb9@byu.net>
58292
58293         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58294         * modules/netinet_in (Makefile.am): Likewise.
58295
58296 2007-02-01  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/string_.h (GL_LINK_WARNING): New macro.
58299         (strcasecmp, strstr, strcasestr): If provided by the system,
58300         conditionally define as a macro that leads to a warning instead of to
58301         an error.
58302         (strncasecmp): Conditionally define as a macro that leads to a warning.
58303
58304 2007-02-01  Karl Berry  <karl@gnu.org>
58305
58306         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58307
58308 2007-02-01  Bruno Haible  <bruno@clisp.org>
58309
58310         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58311         renamings.
58312
58313 2007-02-01  Eric Blake  <ebb9@byu.net>
58314
58315         * modules/regex (Depends-on): Revert dependence on mempcpy.
58316         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58317         module's definition of mempcpy.
58318         Reported by Paul Eggert.
58319
58320 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58323         the symbol XYZ before redefining it.  This fixes a problem with
58324         programs that don't use XYZ, when compiled on systems that define
58325         XYZ to something else.
58326
58327 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58328
58329         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58330         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58331         writeable to group or other and (2) is intended to have a special
58332         mode bit that is set or cleared.  In such a case, the directory
58333         should be neither group- nor other-writeable until the special
58334         mode bits are right.
58335
58336 2007-01-31  Eric Blake  <ebb9@byu.net>
58337
58338         * modules/mountlist (Depends-on): Add strstr.
58339
58340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58341         bug.
58342         * modules/string (Makefile.am): Remove redundant replacement.
58343         * modules/regex (Depends-on): Add mempcpy.
58344
58345 2007-01-31  Bruno Haible  <bruno@clisp.org>
58346
58347         New module description field 'Link'.
58348         * gnulib-tool (func_usage): Document --extract-link-directive.
58349         (sed_extract_prog): Recognize 'Link' directive.
58350         (func_get_link_directive): New function.
58351         (func_import): Show summary of link directives.
58352         Handle --extract-link-directive option.
58353         * modules/acl (Link): New section.
58354         * modules/clock-time (Link): New section.
58355         * modules/euidaccess (Link): New section.
58356         * modules/gettext (Link): New section.
58357         * modules/iconv (Link): New section.
58358         * modules/lock (Link): New section.
58359         * modules/nanosleep (Link): New section.
58360         * modules/readline (Link): New section.
58361
58362 2007-01-27  Bruno Haible  <bruno@clisp.org>
58363
58364         Enforce the use of gnulib modules for unportable <string.h> functions.
58365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58366         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58367         (gl_HEADER_STRING_H_BODY): Require it.
58368         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58369         the symbol XYZ to one that gives a link error.
58370         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58371         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58372         * modules/mempcpy (configure.ac): Likewise.
58373         * modules/memrchr (configure.ac): Likewise.
58374         * modules/stpcpy (configure.ac): Likewise.
58375         * modules/stpncpy (configure.ac): Likewise.
58376         * modules/strcase (configure.ac): Likewise.
58377         * modules/strcasestr (configure.ac): Likewise.
58378         * modules/strchrnul (configure.ac): Likewise.
58379         * modules/strdup (configure.ac): Likewise.
58380         * modules/strndup (configure.ac): Likewise.
58381         * modules/strnlen (configure.ac): Likewise.
58382         * modules/strpbrk (configure.ac): Likewise.
58383         * modules/strsep (configure.ac): Likewise.
58384         * modules/strstr (configure.ac): Likewise.
58385         * modules/strtok_r (configure.ac): Likewise.
58386
58387 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58388
58389         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58390
58391 2007-01-30  Jim Meyering  <jim@meyering.net>
58392
58393         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58394
58395 2007-01-29  Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58398         * lib/execute.c: Likewise.
58399         * lib/pipe.c: Likewise.
58400         * lib/printf-args.h: Likewise.
58401         * lib/printf-args.c: Likewise.
58402         * lib/printf-parse.c: Likewise.
58403         * lib/vasnprintf.c: Likewise.
58404
58405 2007-01-29  Eric Blake  <ebb9@byu.net>
58406
58407         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58408         declaration.
58409
58410 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * lib/strptime.h (strptime): Use 'restrict' for args where
58413         POSIX requires this.
58414         * lib/strptime.c (strptime): Likewise.
58415         Change license notice from LGPL to GPL, since gnulib-tool will
58416         change this as needed.
58417         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58418         defined.
58419         Include "strptime.h" first, to check interface.
58420         Do not #undef _LIBC and _NL_CURRENT.
58421         Do not include <stdlib.h>; no longer needed.
58422         Include "time_r.h" and declare ptime_locale_status
58423         only if _LIBC is not defined.
58424         (__P): Remove unused macro.
58425         (match_string): Bring back glibc version, but use it only if _LIBC
58426         is defined.
58427         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58428         Remove unnecessary assertion and abort() call.
58429         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58430         * m4/strptime.m4: Fix serial number comment.
58431         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58432         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58433         (Depends-on): Add time_r.
58434
58435 2007-01-29  Bruno Haible  <bruno@clisp.org>
58436
58437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58438         strptime.
58439         * modules/strptime (Depends-on): Add stdbool.
58440         * lib/strptime.h: Include <time.h> always. Add comments.
58441
58442 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58443
58444         * modules/strptime: New file.
58445         * lib/strptime.h: New file.
58446         * lib/strptime.c: New file.
58447         * m4/strptime.m4: New file.
58448
58449 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * MODULES.html.sh: New module mpsort.
58452         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58453
58454         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58455         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58456         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58457         All uses changed.
58458         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58459         All uses changed.
58460         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58461         to _Restrict_.
58462         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58463         the parameter matches the prototype.
58464
58465 2007-01-28  Jim Meyering  <jim@meyering.net>
58466
58467         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58468         sys/time.h here, reverting that part of the previous patch:
58469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58470
58471 2007-01-28  Bruno Haible  <bruno@clisp.org>
58472
58473         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58474         value of $(SYS_TIME_H).
58475         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58476         remove it conditionally, too. [added by Jim Meyering]
58477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58479         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58480         GETTIMEOFDAY_REPLACEMENT to 1.
58481
58482 2007-01-28  Bruno Haible  <bruno@clisp.org>
58483
58484         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58485         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58487         Set UNISTD_H instead of UNISTD_H2.
58488         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58489
58490 2007-01-28  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58493         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58494
58495 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58496
58497         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58498         (func_create_testdir): Ensure C locale for `grep' and `tr'
58499         character ranges.
58500         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58501         ACLOCAL_AMFLAGS parsing state machine.
58502
58503 2007-01-27  Bruno Haible  <bruno@clisp.org>
58504
58505         * modules/unistr/base: Update.
58506
58507 2007-01-27  Bruno Haible  <bruno@clisp.org>
58508
58509         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58510         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58511         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58512         modules/unistr/u32-mbtouc.
58513         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58514         * lib/unistr.h: Update.
58515         * lib/linebreak.c: Update.
58516         * modules/unistr/u32-mbtouc: Renamed from
58517         modules/unistr/u32-mbtouc-safe.
58518         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58519         * lib/unistr.h: Update.
58520         * lib/unistr/u32-to-u8.c: Update.
58521         * lib/unistr/u32-to-u16.c: Update.
58522
58523 2007-01-27  Bruno Haible  <bruno@clisp.org>
58524
58525         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58526         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58527         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58528         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58529         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58530         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58531         modules/unistr/u16-mbtouc.
58532         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58533         * lib/unistr.h: Update.
58534         * lib/linebreak.c: Update.
58535         * modules/linebreak: Update.
58536         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58537         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58538         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58539         * modules/unistr/u16-mbtouc: Renamed from
58540         modules/unistr/u16-mbtouc-safe.
58541         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58542         * lib/unistr.h: Update.
58543         * lib/unistr/u16-to-u8.c: Update.
58544         * modules/unistr/u16-to-u8: Update.
58545         * lib/unistr/u16-to-u32.c: Update.
58546         * modules/unistr/u16-to-u32: Update.
58547
58548 2007-01-27  Bruno Haible  <bruno@clisp.org>
58549
58550         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58551         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58552         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58553         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58554         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58555         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58556         modules/unistr/u8-mbtouc.
58557         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58558         * lib/unistr.h: Update.
58559         * lib/striconveh.c: Update.
58560         * modules/striconveh: Update.
58561         * lib/linebreak.c: Update.
58562         * modules/linebreak: Update.
58563         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58564         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58565         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58566         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58567         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58568         * lib/unistr.h: Update.
58569         * lib/striconveh.c: Update.
58570         * modules/striconveh: Update.
58571         * lib/unistr/u8-to-u16.c: Update.
58572         * modules/unistr/u8-to-u16: Update.
58573         * lib/unistr/u8-to-u32.c: Update.
58574         * modules/unistr/u8-to-u32: Update.
58575
58576 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58577
58578         Sync from Libtool.
58579         * lib/argz.c: Do not include strings.h nor memory.h, include
58580         string.h unconditionally.  Patch by Simon Josefsson.
58581
58582 2007-01-27  Bruno Haible  <bruno@clisp.org>
58583
58584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58585         from gl_HEADER_STRING_H_BODY.
58586         (gl_HEADER_STRING_H_BODY): Require it.
58587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58589         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58590         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58592         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58594         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58595         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58597         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58598         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58599         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58600         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58601         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58602
58603 2007-01-27  Bruno Haible  <bruno@clisp.org>
58604
58605         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58606         check_PROGRAMS into noinst_PROGRAMS.
58607         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58608         check_PROGRAMS in this case.
58609         (func_import): Set for_test to false.
58610         (func_create_testdir): Set for_test to true.
58611
58612 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58613             Bruno Haible  <bruno@clisp.org>
58614
58615         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58616         (Depends-on): Add string.
58617         (Includes): Use <string.h> instead of strcasestr.h.
58618         * modules/string (Makefile.am): Also substitute the value of
58619         REPLACE_STRCASESTR.
58620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58621         assume strcasestr is declared in <string.h> not <strings.h>. Also
58622         set REPLACE_STRCASESTR.
58623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58624         REPLACE_STRCASESTR.
58625         * lib/strcasestr.h: Remove file.
58626         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58627         * lib/string_.h (strcasestr): New declaration.
58628
58629 2007-01-27  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/string_.h: Use 'extern'.
58632
58633 2007-01-27  Jim Meyering  <jim@meyering.net>
58634
58635         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58636         of set-but-not-used local, "q".
58637
58638         * lib/mempcpy.c: Include <config.h> before <string.h>.
58639         This fixes a compilation error on HP-UX, due to the system's
58640         "restrict"-using mempcpy prototype.
58641
58642 2007-01-26  Bruno Haible  <bruno@clisp.org>
58643
58644         Small optimization.
58645         * lib/javacomp.c: Include c-strstr.h.
58646          (is_envjavac_gcj): Use c_strstr instead of strstr.
58647         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58648
58649 2007-01-26  Bruno Haible  <bruno@clisp.org>
58650
58651         * MODULES.html.sh (Unicode string functions): Add the new modules.
58652
58653         * modules/uniconv/u32-strconv-to-locale: New file.
58654         * lib/uniconv/u32-strconv-to-locale.c: New file.
58655
58656         * modules/uniconv/u16-strconv-to-locale: New file.
58657         * lib/uniconv/u16-strconv-to-locale.c: New file.
58658
58659         * modules/uniconv/u8-strconv-to-locale: New file.
58660         * lib/uniconv/u8-strconv-to-locale.c: New file.
58661
58662         * modules/uniconv/u32-strconv-from-locale: New file.
58663         * lib/uniconv/u32-strconv-from-locale.c: New file.
58664
58665         * modules/uniconv/u16-strconv-from-locale: New file.
58666         * lib/uniconv/u16-strconv-from-locale.c: New file.
58667
58668         * modules/uniconv/u8-strconv-from-locale: New file.
58669         * lib/uniconv/u8-strconv-from-locale.c: New file.
58670
58671         * modules/uniconv/u32-strconv-to-enc: New file.
58672         * lib/uniconv/u32-strconv-to-enc.c: New file.
58673         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58674         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58675
58676         * modules/uniconv/u16-strconv-to-enc: New file.
58677         * lib/uniconv/u16-strconv-to-enc.c: New file.
58678         * lib/uniconv/u-strconv-to-enc.h: New file.
58679         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58680         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58681
58682         * modules/uniconv/u8-strconv-to-enc: New file.
58683         * lib/uniconv/u8-strconv-to-enc.c: New file.
58684         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58685         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58686
58687         * modules/uniconv/u32-strconv-from-enc: New file.
58688         * lib/uniconv/u32-strconv-from-enc.c: New file.
58689         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58690         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58691
58692         * modules/uniconv/u16-strconv-from-enc: New file.
58693         * lib/uniconv/u16-strconv-from-enc.c: New file.
58694         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58695         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58696
58697         * modules/uniconv/u8-strconv-from-enc: New file.
58698         * lib/uniconv/u8-strconv-from-enc.c: New file.
58699         * lib/uniconv/u-strconv-from-enc.h: New file.
58700         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58701         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58702
58703         * modules/uniconv/u32-conv-from-enc: New file.
58704         * lib/uniconv/u32-conv-from-enc.c: New file.
58705         * modules/uniconv/u32-conv-from-enc-tests: New file.
58706         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58707
58708         * modules/uniconv/u16-conv-from-enc: New file.
58709         * lib/uniconv/u16-conv-from-enc.c: New file.
58710         * lib/uniconv/u-conv-from-enc.h: New file.
58711         * modules/uniconv/u16-conv-from-enc-tests: New file.
58712         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58713
58714         * modules/uniconv/u8-conv-from-enc: New file.
58715         * lib/uniconv/u8-conv-from-enc.c: New file.
58716         * modules/uniconv/u8-conv-from-enc-tests: New file.
58717         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58718
58719         * modules/uniconv/base: New file.
58720         * lib/uniconv.h: New file.
58721
58722 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58723
58724         * doc/gnulib-tool.texi (Initial import): Update to match current
58725         behavior with strdup module.
58726         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58727         * lib/memmem.h: Remove; all uses removed.  This is now done
58728         by <string.h>.
58729         * lib/mempcpy.h: Likewise.
58730         * lib/memrchr.h: Likewise.
58731         * lib/stpcpy.h: Likewise.
58732         * lib/stpncpy.h: Likewise.
58733         * lib/strcase.h: Likewise.
58734         * lib/strchrnul.h: Likewise.
58735         * lib/strdup.h: Likewise.
58736         * lib/strndup.h: Likewise.
58737         * lib/strnlen.h: Likewise.
58738         * lib/strpbrk.h: Likewise.
58739         * lib/strsep.h: Likewise.
58740         * lib/strstr.h: Likewise.
58741         * lib/strtok_r.h: Likewise.
58742         * lib/string_.h: New file.
58743         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58744         Rely on <string.h> instead.
58745         * lib/canon-host.c: Likewise.
58746         * lib/chdir-long.c: Likewise.
58747         * lib/concatpath.c: Likewise.
58748         * lib/exclude.c: Likewise.
58749         * lib/fchdir.c: Likewise.
58750         * lib/getaddrinfo.c: Likewise.
58751         * lib/getcwd.c: Likewise.
58752         * lib/getsubopt.c: Likewise.
58753         * lib/glob.c: Likewise.
58754         * lib/hard-locale.c: Likewise.
58755         * lib/iconvme.c: Likewise.
58756         * lib/javacomp.c: Likewise.
58757         * lib/mempcpy.c: Likewise.
58758         * lib/memrchr.c: Likewise.
58759         * lib/regex_internal.h: Likewise.
58760         * lib/stpncpy.c: Likewise.
58761         * lib/strcasecmp.c: Likewise.
58762         * lib/strchrnul.c: Likewise.
58763         * lib/strdup.c: Likewise.
58764         * lib/striconv.c: Likewise.
58765         * lib/striconveh.c: Likewise.
58766         * lib/striconveha.c: Likewise.
58767         * lib/strncasecmp.c: Likewise.
58768         * lib/strndup.c: Likewise.
58769         * lib/strnlen.c: Likewise.
58770         * lib/strsep.c: Likewise.
58771         * lib/strstr.c: Likewise.
58772         * lib/strtok_r.c: Likewise.
58773         * lib/userspec.c: Likewise.
58774         * lib/w32spawn.h: Likewise.
58775         * lib/xstrndup.c: Likewise.
58776         * lib/mountlist.c (strstr): Remove decl.
58777         * m4/string_h.m4: New file.
58778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58781         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58782         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58783         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58784         Set REPLACE_STRCASECMP if necessary.
58785         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58786         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58787         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58789         HAVE_DECL_STRDUP if necessary.
58790         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58791         since gl_FUNC_STRNDUP does that now.
58792         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58793         Check for decl here...
58794         (gl_PREREQ_STRNLEN): ... not here.
58795         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58796         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58797         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58798         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58799         necessary.
58800         * modules/string: New file.
58801         * modules/memmem (Files): Remove special-purpose include file.
58802         (Depends-on): Add string.
58803         (Include): Include <string.h>, not the removed file.
58804         * modules/mempcpy: Likewise.
58805         * modules/memrchr: Likewise.
58806         * modules/stpcpy: Likewise.
58807         * modules/stpncpy: Likewise.
58808         * modules/strcase: Likewise.
58809         * modules/strchrnul: Likewise.
58810         * modules/strdup: Likewise.
58811         * modules/strndup: Likewise.
58812         * modules/strnlen: Likewise.
58813         * modules/strpbrk: Likewise.
58814         * modules/strsep: Likewise.
58815         * modules/strstr: Likewise.
58816         * modules/strtok_r: Likewise.
58817         * tests/test-dirname.c: Don't include "strdup.h", since
58818         <string.h> now suffices.
58819         * tests/test-memmem.c: Don't include "memmem.h", since
58820         <string.h> now suffices.
58821
58822 2007-01-25  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58825         *resultp is 0.
58826
58827         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58828         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58829         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58830         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58831
58832         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58833         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58834         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58835         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58836         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58837         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58838
58839 2007-01-24  Bruno Haible  <bruno@clisp.org>
58840
58841         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58843         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58844         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58845         gl_FUNC_FTS_CORE.
58846         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58847         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58848         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58850         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58851         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58852         gl_FUNC_FCHOWNAT.
58853         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58854         gl_FUNC_STRFTIME.
58855         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58856         Reported by Ralf Wildenhues.
58857
58858 2007-01-24  Bruno Haible  <bruno@clisp.org>
58859
58860         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58861         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58862         gl_GETADDRINFO.
58863         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58864         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58865         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58866
58867 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58868
58869         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58870         Don't use 'exit'; just return from 'main'.
58871         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58872
58873         * lib/fnmatch_.h: Readjust white space and comments to match
58874         glibc, to avoid spurious diffs.
58875
58876 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58879         2004-12-01 change by Jakub Jelinek, since this code won't compile
58880         if !LIBC.  Problem reported by Bob Proulx.
58881
58882 2007-01-23  Bruno Haible  <bruno@clisp.org>
58883
58884         * lib/striconveh.c: Include c-strcaseeq.h.
58885         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58886         * modules/striconveh (Depends-on): Add c-strcaseeq.
58887
58888 2007-01-23  Bruno Haible  <bruno@clisp.org>
58889
58890         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58891
58892         * modules/c-strcaseeq: New file.
58893         * lib/c-strcaseeq.h: New file.
58894
58895         * modules/streq: New file.
58896         * lib/streq.h: New file.
58897
58898 2007-01-23  Bruno Haible  <bruno@clisp.org>
58899
58900         * modules/striconveha-tests: New file.
58901         * tests/test-striconveha.c: New file.
58902
58903         * lib/striconveha.h: Include <stdbool.h>.
58904         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58905         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58906         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58907         (mem_iconveha): New function.
58908         (str_iconveha_notranslit): Renamed from str_iconveha.
58909         (str_iconveha): New function.
58910         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58911         c-strcase.
58912
58913 2007-01-23  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58916         encodings without forgiving before trying any encoding with handler.
58917         (str_iconveha): Try all encodings without forgiving before trying any
58918         encoding with handler.
58919
58920 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58921
58922         Import the following changes from libc.
58923
58924         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58925
58926         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58927
58928         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58929
58930         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58931         normal_bracket label.
58932
58933         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58934
58935         [BZ #361]
58936         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58937         to normal_bracket after fetching the next character.
58938
58939 2007-01-22  Bruno Haible  <bruno@clisp.org>
58940
58941         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58942         argument.
58943         * lib/striconveh.c (iconv_carefully_1): New function.
58944         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58945         argument.
58946         (str_cd_iconveh): Update.
58947         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58948         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58949         * tests/test-striconveh.c (MAGIC): New macro.
58950         (new_offsets): New function.
58951         (main): Test call with and without offsets.
58952
58953 2007-01-22  Bruno Haible  <bruno@clisp.org>
58954
58955         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58956         * modules/sys_select (Makefile.am): Likewise.
58957         * modules/sys_socket (Makefile.am): Likewise.
58958         * modules/sys_time (Makefile.am): Likewise.
58959
58960 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58961
58962         * modules/gettimeofday (License): Change from GPL to LGPL, since
58963         gettimeofday is a library function.
58964
58965 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58966
58967         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58968
58969 2007-01-21  Bruno Haible  <bruno@clisp.org>
58970
58971         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58972
58973 2007-01-21  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/striconveha: New file.
58976         * lib/striconveha.h: New file.
58977         * lib/striconveha.c: New file.
58978         * MODULES.html.sh (Internationalization functions): Add striconveha.
58979         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58980         string.
58981         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58982
58983 2007-01-21  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58986         * lib/striconveh.c (str_iconveh): Likewise.
58987
58988 2007-01-21  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/striconveh.h (mem_iconveh): New declaration.
58991         * lib/striconveh.c (mem_iconveh): New function.
58992         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58993
58994 2007-01-21  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58997
58998         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58999         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59000         original result buffer.
59001         (str_cd_iconveh): Update.
59002         * tests/test-striconveh.c (main): Update.
59003
59004         * lib/striconv.h (mem_cd_iconv): Change specification.
59005         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59006         result buffer.
59007         (str_cd_iconv): Update.
59008         * tests/test-striconv.c (main): Update.
59009
59010 2007-01-21  Bruno Haible  <bruno@clisp.org>
59011
59012         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59013
59014 2007-01-20  Jim Meyering  <jim@meyering.net>
59015
59016         * lib/userspec.c (parse_with_separator): If a user or group string
59017         starts with "+", skip the corresponding name-to-ID look-up, since
59018         such a look-up must fail: user and group names may not include "+".
59019
59020 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59023         since we now assume the sys_time module.
59024         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59025         check for sys/time.h; no longer needed.
59026         * modules/poll (Depends-on): Depend on sys_time.
59027
59028 2007-01-18  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59031         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59032
59033         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59034         gettimeofday.
59035
59036         * tests/test-gettimeofday.c: Include <time.h>.
59037         (dummy): Remove variable.
59038
59039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59040         gl_HEADER_SYS_TIME_H.
59041         (gl_HEADER_SYS_TIME_H): New macro.
59042
59043         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59044         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59046         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59047         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59048         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59049         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59050         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59051         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59052         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59053         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59054
59055         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59056         last change; it caused a compilation error when cross-compiling to
59057         Cygwin.
59058
59059 2007-01-18  Jim Meyering  <jim@meyering.net>
59060
59061         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59062         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59063         than the race-prone "test -d sys || mkdir sys".
59064         (configure.ac): Use AC_PROG_MKDIR_P.
59065         * modules/sys_select: Likewise.
59066         * modules/sys_socket: Likewise.
59067         * modules/sys_time: Likewise.
59068
59069 2007-01-18  Eric Blake  <ebb9@byu.net>
59070
59071         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59072         replace gettimeofday.
59073         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59074         name, to avoid infinite recursion.
59075
59076 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59077
59078         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59079         module sys_time.
59080         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59081         assume timespec.h defines struct timeval.
59082         * lib/settime.c: Likewise.
59083         * lib/utimens.c: Likewise.
59084         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59085         since we now assume the gettimeofday module.
59086         * lib/tempname.c (__gen_tempname): Likewise.
59087         * lib/gettimeofday.h: Remove.
59088         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59089         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59090         Include <time.h>, for 'time()'.
59091         (localtime_buffer_addr): Also use this workaround if
59092         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59093         to simplify the uses.  All uses changed.
59094         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59095         that #undef is inside {}, and 'const' follows type name consistently.
59096         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59097         (gettimeofday): Do not use the maximum possible value for
59098         tv->tv_usec, since that might break usages other than ls.c.
59099         Instead, we'll leave ls.c alone.  This undoes today's patch
59100         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59101         we've never observed the problem but might as well keep the
59102         canary.
59103         * lib/nanosleep.c: Include timespec.h first, for interface check.
59104         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59105         now assume the sys_time module.
59106         * lib/tempname.c: Likewise.
59107         * lib/timespec.h: Likewise.
59108         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59109         needed.
59110         * lib/strftime.c: Likewise.
59111         * lib/timespec.h: Likewise.
59112         * lib/posixtm.c: Include posixtm.h first, for interface check.
59113         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59114         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59115         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59116         * lib/sys_time_.h: New file.
59117         * lib/timespec.h (struct timespec): Use long int, not long.
59118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59119         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59120         Remove obsolescent call to AC_HEADER_TIME.
59121         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59124         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59125         Likewise.
59126         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59127         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59129         into the sys_time module.  Check for gettimeofday just once.
59130         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59131         for gettimeofday signature to just check the signature.  Merely
59132         compile it, since linking doesn't test signature.  Improve test for
59133         whether gettimeofday.o is actually needed.
59134         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59135         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59136         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59137         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59138         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59139         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59140         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59141         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59142         than worrying about sys/time.h.
59143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59144         Don't bother worrying about TIME_WITH_SYS_TIME.
59145         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59146         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59147         * m4/sys_time_h.m4: New file.
59148         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59149         Don't include sys/time.h.  Return from main rather than exiting.
59150         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59151         all uses changed.
59152         * modules/gethrxtime (Depends-on): Add sys_time.
59153         * modules/gettime (Depends-on): Likewise.
59154         * modules/gettimeofday (Depends-on): Likewise.
59155         * modules/nanosleep (Depends-on): Likewise.
59156         * modules/settime (Depends-on): Likewise.
59157         * modules/tempname (Depends-on): Likewise.
59158         * modules/utimens (Depends-on): Likewise.
59159         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59160         (Include): Change back to <sys/time.h>.
59161         (Maintainer): Add self.
59162         * modules/sys_time: New file.
59163         * modules/tempname (Depends-on): Add gettimeofday.
59164         * tests/test-gettimeofday.c: Include <sys/time.h>
59165         rather than gettimeofday.h.
59166
59167 2007-01-17  Bruno Haible  <bruno@clisp.org>
59168
59169         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59170         the license default to GPL.
59171         (func_create_testdir): Don't complain if a module is LGPL and its
59172         tests module depends on GPLed modules.
59173
59174 2007-01-17  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/gettimeofday.c (gettimeofday): Add code for the case
59177         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59178         maximum possible value for tv->tv_usec, rather than the minimum one.
59179
59180 2005-10-08  Martin Lambers  <marlam@marlam.de>
59181 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59182 2007-01-16  Bruno Haible  <bruno@clisp.org>
59183
59184         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59185         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59186         gl_FUNC_GETTIMEOFDAY.
59187         (Include): Add gettimeofday.h.
59188         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59189         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59190         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59191         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59192         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59193         * lib/gettimeofday.h: New file.
59194         * lib/gettimeofday.c: Include <sys/timeb.h>.
59195         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59196         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59197         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59198         fall back on time().
59199
59200         * tests/test-gettimeofday.c: New file.
59201         * modules/gettimeofday-tests: New file.
59202
59203 2007-01-16  Eric Blake  <ebb9@byu.net>
59204
59205         * modules/fnmatch (Depends-on): Depend on wchar.
59206         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59207         * m4/fnmatch.m4: Likewise.
59208         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59209         * m4/mbchar.m4: Likewise.
59210         * modules/mbswidth (Depends-on): Depend on wchar.
59211         * lib/mbswidth.c: Assume <wchar.h>.
59212         * m4/mbswidth.m4: Likewise.
59213         * modules/quotearg (Depends-on): Depend on wchar.
59214         * lib/quotearg.c: Assume <wchar.h>.
59215         * m4/quotearg.m4: Likewise.
59216         * modules/regex (Depends-on): Depend on wchar.
59217         * lib/regex_internal.h: Assume <wchar.h>.
59218         * m4/regex.m4: Likewise.
59219         * modules/stdint (Depends-on): Depend on wchar.
59220         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59221         * m4/stdint.m4: Likewise.
59222         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59223         * modules/strftime (Depends-on): Depend on wchar.
59224         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59225         * modules/strtol (Depends-on): Depend on wchar.
59226         * lib/strtol.c: Assume <wchar.h>.
59227         * modules/wcwidth (Depends-on): Depend on wchar.
59228         * lib/wcwidth.h: Assume <wchar.h>.
59229         * m4/wcwidth.m4: Likewise.
59230
59231 2007-01-16  Bruno Haible  <bruno@clisp.org>
59232
59233         * modules/csharpexec-script: New, created from...
59234         * modules/csharpexec: ... this.
59235
59236 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59237
59238         * modules/javaexec-script: New, created from...
59239         * modules/javaexec: ... this.
59240
59241 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59242
59243         * modules/poll (Dependencies): Add sys_select.
59244
59245 2007-01-15  Jim Meyering  <jim@meyering.net>
59246
59247         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59248         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59249         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59250         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59251
59252 2007-01-15  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/striconveh: New file.
59255         * lib/striconveh.h: New file.
59256         * lib/striconveh.c: New file.
59257         * MODULES.html.sh (Internationalization functions): Add striconveh.
59258
59259         * modules/striconveh-tests: New file.
59260         * tests/test-striconveh.c: New file.
59261
59262 2007-01-15  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59265         not from GNU libiconv or GNU libc.
59266
59267 2007-01-15  Bruno Haible  <bruno@clisp.org>
59268
59269         * doc/gnulib-intro.texi (Copyright): Explain the different license
59270         terms for module descriptions, autoconf macros, tests, documentation.
59271
59272 2007-01-14  Bruno Haible  <bruno@clisp.org>
59273
59274         * modules/striconv-tests: New file.
59275         * tests/test-striconv.c: New file.
59276
59277 2007-01-14  Bruno Haible  <bruno@clisp.org>
59278
59279         * modules/iconv-tests: New file.
59280         * tests/test-iconv.c: New file.
59281
59282 2007-01-14  Bruno Haible  <bruno@clisp.org>
59283
59284         * gnulib-tool (func_get_license): For test modules, use the license of
59285         the main module.
59286
59287 2007-01-14  Bruno Haible  <bruno@clisp.org>
59288
59289         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59290         if iconv is found to exist.
59291
59292 2007-01-14  Bruno Haible  <bruno@clisp.org>
59293
59294         * modules/c-ctype-tests: New file.
59295         * tests/test-c-ctype.c: New file.
59296
59297 2007-01-14  Bruno Haible  <bruno@clisp.org>
59298
59299         * modules/binary-io-tests: New file.
59300         * tests/test-binary-io.sh: New file.
59301         * tests/test-binary-io.c: New file.
59302
59303 2007-01-14  Bruno Haible  <bruno@clisp.org>
59304
59305         * modules/array-oset-tests: New file.
59306         * tests/test-array_oset.c: New file.
59307
59308 2007-01-14  Bruno Haible  <bruno@clisp.org>
59309
59310         * modules/array-list-tests: New file.
59311         * tests/test-array_list.c: New file.
59312
59313 2007-01-14  Bruno Haible  <bruno@clisp.org>
59314
59315         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59316         and make.
59317         Reported by Simon Josefsson in
59318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59319
59320 2007-01-14  Bruno Haible  <bruno@clisp.org>
59321
59322         * modules/allocsa-tests: New file.
59323         * tests/test-allocsa.c: New file.
59324
59325 2007-01-14  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/fchdir (Depends-on): Add absolute-header.
59328         * modules/unistd (Depends-on): Likewise.
59329
59330 2006-12-30  Bruno Haible  <bruno@clisp.org>
59331
59332         * modules/fchdir: New file.
59333         * modules/unistd (Files): Add lib/unistd_.h.
59334         (Makefile.am): Generate unistd.h from unistd_.h.
59335         * lib/fchdir.c: New file.
59336         * lib/dirent_.h: New file.
59337         * lib/unistd_.h: New file.
59338         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59339         * m4/fchdir.m4: New file.
59340         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59341         (gl_HEADER_UNISTD): Invoke it.
59342         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59343         function.
59344         * lib/backupfile.c (opendir, closedir): Undefine.
59345         * lib/chown.c (open, close): Undefine.
59346         * lib/clean-temp.c (open, close): Undefine.
59347         * lib/copy-file.c (open, close): Undefine.
59348         * lib/execute.c (open, close): Undefine.
59349         * lib/fsusage.c (open, close): Undefine.
59350         * lib/gc-gnulib.c (open, close): Undefine.
59351         * lib/getcwd.c (opendir, closedir): Undefine.
59352         * lib/glob.c (opendir, closedir): Undefine.
59353         * lib/javacomp.c (open, close): Undefine.
59354         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59355         * lib/openat-proc.c (open, close): Undefine.
59356         * lib/pagealign_alloc.c (open, close): Undefine.
59357         * lib/pipe.c (open, close): Undefine.
59358         * lib/progreloc.c (open, close): Undefine.
59359         * lib/savedir.c (opendir, closedir): Undefine.
59360         * lib/utime.c (open, close): Undefine.
59361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59362
59363 2007-01-10  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59366
59367 2007-01-12  Eric Blake  <ebb9@byu.net>
59368
59369         Provide a robust <wchar.h>.  Further simplifications are now
59370         possible in other modules, but not included here.
59371         * modules/wchar: New module.
59372         * m4/wchar.m4: New file.
59373         * lib/wchar_.h: Likewise.
59374         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59375         of the new module.
59376         * MODULES.html.sh (Extended multibyte and wide character utilities):
59377         New section.
59378
59379 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59382         to a reasonable default for memory allocation.
59383         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59384         file system that reports garbage st_size values for symlinks.
59385         Problem reported by Liyang Hu.
59386
59387 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59388
59389         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59390         Emacs .#* auto-save files).
59391
59392 2007-01-11  Bruno Haible  <bruno@clisp.org>
59393
59394         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59395         directory.
59396
59397 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         Use @...@ consistently in lib/wctype_.h.
59400         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59401         on it being set to 1 or 0.
59402         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59403         go back to AC_SUBSTing it.
59404         * modules/wctype (Makefile.am): Undo previous change.
59405
59406 2007-01-10  Eric Blake  <ebb9@byu.net>
59407
59408         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59409         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59410         * modules/wctype (Makefile.am): Likewise.
59411         Reported by Chris McGuire.
59412
59413 2007-01-10  Jim Meyering  <jim@meyering.net>
59414
59415         fts.c: a small readability/maintainability improvement
59416         * lib/fts.c (fts_read): Make this code slightly more readable and
59417         maintainable by hoisting the "sp->fts_cur = p" assignments to
59418         immediately follow the statements that set P.  Derived from
59419         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59420
59421 2007-01-10  Eric Blake  <ebb9@byu.net>
59422
59423         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59424         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59426         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59427         Reported by Chris McGuire.
59428
59429 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59430
59431         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59432         in sed script.
59433
59434 2007-01-09  Bruno Haible  <bruno@clisp.org>
59435
59436         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59437         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59438         variables.
59439         (func_module): Use them.
59440
59441 2007-01-09  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/unistr/base: New file.
59444         * lib/unistr.h: New file.
59445
59446         * modules/unistr/u8-to-u16: New file.
59447         * lib/unistr/u8-to-u16.c: New file.
59448
59449         * modules/unistr/u8-to-u32: New file.
59450         * lib/unistr/u8-to-u32.c: New file.
59451
59452         * modules/unistr/u16-to-u8: New file.
59453         * lib/unistr/u16-to-u8.c: New file.
59454
59455         * modules/unistr/u16-to-u32: New file.
59456         * lib/unistr/u16-to-u32.c: New file.
59457
59458         * modules/unistr/u32-to-u8: New file.
59459         * lib/unistr/u32-to-u8.c: New file.
59460
59461         * modules/unistr/u32-to-u16: New file.
59462         * lib/unistr/u32-to-u16.c: New file.
59463
59464         * modules/unistr/u8-check: New file.
59465         * modules/unistr/u16-check: New file.
59466         * modules/unistr/u32-check: New file.
59467         * lib/unistr/u8-check.c: New file.
59468         * lib/unistr/u16-check.c: New file.
59469         * lib/unistr/u32-check.c: New file.
59470
59471         * modules/unistr/u8-chr: New file.
59472         * modules/unistr/u16-chr: New file.
59473         * modules/unistr/u32-chr: New file.
59474         * lib/unistr/u8-chr.c: New file.
59475         * lib/unistr/u16-chr.c: New file.
59476         * lib/unistr/u32-chr.c: New file.
59477
59478         * modules/unistr/u8-cmp: New file.
59479         * modules/unistr/u16-cmp: New file.
59480         * modules/unistr/u32-cmp: New file.
59481         * lib/unistr/u8-cmp.c: New file.
59482         * lib/unistr/u16-cmp.c: New file.
59483         * lib/unistr/u32-cmp.c: New file.
59484
59485         * modules/unistr/u8-cpy: New file.
59486         * modules/unistr/u16-cpy: New file.
59487         * modules/unistr/u32-cpy: New file.
59488         * lib/unistr/u8-cpy.c: New file.
59489         * lib/unistr/u16-cpy.c: New file.
59490         * lib/unistr/u32-cpy.c: New file.
59491         * lib/unistr/u-cpy.h: New file.
59492
59493         * modules/unistr/u8-cpy-alloc: New file.
59494         * modules/unistr/u16-cpy-alloc: New file.
59495         * modules/unistr/u32-cpy-alloc: New file.
59496         * lib/unistr/u8-cpy-alloc.c: New file.
59497         * lib/unistr/u16-cpy-alloc.c: New file.
59498         * lib/unistr/u32-cpy-alloc.c: New file.
59499         * lib/unistr/u-cpy-alloc.h: New file.
59500
59501         * modules/unistr/u8-endswith: New file.
59502         * modules/unistr/u16-endswith: New file.
59503         * modules/unistr/u32-endswith: New file.
59504         * lib/unistr/u8-endswith.c: New file.
59505         * lib/unistr/u16-endswith.c: New file.
59506         * lib/unistr/u32-endswith.c: New file.
59507         * lib/unistr/u-endswith.h: New file.
59508
59509         * modules/unistr/u8-mblen: New file.
59510         * modules/unistr/u16-mblen: New file.
59511         * modules/unistr/u32-mblen: New file.
59512         * lib/unistr/u8-mblen.c: New file.
59513         * lib/unistr/u16-mblen.c: New file.
59514         * lib/unistr/u32-mblen.c: New file.
59515
59516         * modules/unistr/u8-mbtouc: New file.
59517         * modules/unistr/u16-mbtouc: New file.
59518         * modules/unistr/u32-mbtouc: New file.
59519         * lib/unistr/u8-mbtouc.c: New file.
59520         * lib/unistr/u16-mbtouc.c: New file.
59521         * lib/unistr/u32-mbtouc.c: New file.
59522
59523         * modules/unistr/u8-mbtouc-safe: New file.
59524         * modules/unistr/u16-mbtouc-safe: New file.
59525         * modules/unistr/u32-mbtouc-safe: New file.
59526         * lib/unistr/u8-mbtouc-safe.c: New file.
59527         * lib/unistr/u16-mbtouc-safe.c: New file.
59528         * lib/unistr/u32-mbtouc-safe.c: New file.
59529
59530         * modules/unistr/u8-move: New file.
59531         * modules/unistr/u16-move: New file.
59532         * modules/unistr/u32-move: New file.
59533         * lib/unistr/u8-move.c: New file.
59534         * lib/unistr/u16-move.c: New file.
59535         * lib/unistr/u32-move.c: New file.
59536         * lib/unistr/u-move.h: New file.
59537
59538         * modules/unistr/u8-next: New file.
59539         * modules/unistr/u16-next: New file.
59540         * modules/unistr/u32-next: New file.
59541         * lib/unistr/u8-next.c: New file.
59542         * lib/unistr/u16-next.c: New file.
59543         * lib/unistr/u32-next.c: New file.
59544
59545         * modules/unistr/u8-prev: New file.
59546         * modules/unistr/u16-prev: New file.
59547         * modules/unistr/u32-prev: New file.
59548         * lib/unistr/u8-prev.c: New file.
59549         * lib/unistr/u16-prev.c: New file.
59550         * lib/unistr/u32-prev.c: New file.
59551
59552         * modules/unistr/u8-set: New file.
59553         * modules/unistr/u16-set: New file.
59554         * modules/unistr/u32-set: New file.
59555         * lib/unistr/u8-set.c: New file.
59556         * lib/unistr/u16-set.c: New file.
59557         * lib/unistr/u32-set.c: New file.
59558         * lib/unistr/u-set.h: New file.
59559
59560         * modules/unistr/u8-startswith: New file.
59561         * modules/unistr/u16-startswith: New file.
59562         * modules/unistr/u32-startswith: New file.
59563         * lib/unistr/u8-startswith.c: New file.
59564         * lib/unistr/u16-startswith.c: New file.
59565         * lib/unistr/u32-startswith.c: New file.
59566         * lib/unistr/u-startswith.h: New file.
59567
59568         * modules/unistr/u8-stpcpy: New file.
59569         * modules/unistr/u16-stpcpy: New file.
59570         * modules/unistr/u32-stpcpy: New file.
59571         * lib/unistr/u8-stpcpy.c: New file.
59572         * lib/unistr/u16-stpcpy.c: New file.
59573         * lib/unistr/u32-stpcpy.c: New file.
59574         * lib/unistr/u-stpcpy.h: New file.
59575
59576         * modules/unistr/u8-stpncpy: New file.
59577         * modules/unistr/u16-stpncpy: New file.
59578         * modules/unistr/u32-stpncpy: New file.
59579         * lib/unistr/u8-stpncpy.c: New file.
59580         * lib/unistr/u16-stpncpy.c: New file.
59581         * lib/unistr/u32-stpncpy.c: New file.
59582         * lib/unistr/u-stpncpy.h: New file.
59583
59584         * modules/unistr/u8-strcat: New file.
59585         * modules/unistr/u16-strcat: New file.
59586         * modules/unistr/u32-strcat: New file.
59587         * lib/unistr/u8-strcat.c: New file.
59588         * lib/unistr/u16-strcat.c: New file.
59589         * lib/unistr/u32-strcat.c: New file.
59590         * lib/unistr/u-strcat.h: New file.
59591
59592         * modules/unistr/u8-strchr: New file.
59593         * modules/unistr/u16-strchr: New file.
59594         * modules/unistr/u32-strchr: New file.
59595         * lib/unistr/u8-strchr.c: New file.
59596         * lib/unistr/u16-strchr.c: New file.
59597         * lib/unistr/u32-strchr.c: New file.
59598
59599         * modules/unistr/u8-strcmp: New file.
59600         * modules/unistr/u16-strcmp: New file.
59601         * modules/unistr/u32-strcmp: New file.
59602         * lib/unistr/u8-strcmp.c: New file.
59603         * lib/unistr/u16-strcmp.c: New file.
59604         * lib/unistr/u32-strcmp.c: New file.
59605
59606         * modules/unistr/u8-strcpy: New file.
59607         * modules/unistr/u16-strcpy: New file.
59608         * modules/unistr/u32-strcpy: New file.
59609         * lib/unistr/u8-strcpy.c: New file.
59610         * lib/unistr/u16-strcpy.c: New file.
59611         * lib/unistr/u32-strcpy.c: New file.
59612         * lib/unistr/u-strcpy.h: New file.
59613
59614         * modules/unistr/u8-strcspn: New file.
59615         * modules/unistr/u16-strcspn: New file.
59616         * modules/unistr/u32-strcspn: New file.
59617         * lib/unistr/u8-strcspn.c: New file.
59618         * lib/unistr/u16-strcspn.c: New file.
59619         * lib/unistr/u32-strcspn.c: New file.
59620         * lib/unistr/u-strcspn.h: New file.
59621
59622         * modules/unistr/u8-strdup: New file.
59623         * modules/unistr/u16-strdup: New file.
59624         * modules/unistr/u32-strdup: New file.
59625         * lib/unistr/u8-strdup.c: New file.
59626         * lib/unistr/u16-strdup.c: New file.
59627         * lib/unistr/u32-strdup.c: New file.
59628         * lib/unistr/u-strdup.h: New file.
59629
59630         * modules/unistr/u8-strlen: New file.
59631         * modules/unistr/u16-strlen: New file.
59632         * modules/unistr/u32-strlen: New file.
59633         * lib/unistr/u8-strlen.c: New file.
59634         * lib/unistr/u16-strlen.c: New file.
59635         * lib/unistr/u32-strlen.c: New file.
59636         * lib/unistr/u-strlen.h: New file.
59637
59638         * modules/unistr/u8-strmblen: New file.
59639         * modules/unistr/u16-strmblen: New file.
59640         * modules/unistr/u32-strmblen: New file.
59641         * lib/unistr/u8-strmblen.c: New file.
59642         * lib/unistr/u16-strmblen.c: New file.
59643         * lib/unistr/u32-strmblen.c: New file.
59644
59645         * modules/unistr/u8-strmbtouc: New file.
59646         * modules/unistr/u16-strmbtouc: New file.
59647         * modules/unistr/u32-strmbtouc: New file.
59648         * lib/unistr/u8-strmbtouc.c: New file.
59649         * lib/unistr/u16-strmbtouc.c: New file.
59650         * lib/unistr/u32-strmbtouc.c: New file.
59651
59652         * modules/unistr/u8-strncat: New file.
59653         * modules/unistr/u16-strncat: New file.
59654         * modules/unistr/u32-strncat: New file.
59655         * lib/unistr/u8-strncat.c: New file.
59656         * lib/unistr/u16-strncat.c: New file.
59657         * lib/unistr/u32-strncat.c: New file.
59658         * lib/unistr/u-strncat.h: New file.
59659
59660         * modules/unistr/u8-strncmp: New file.
59661         * modules/unistr/u16-strncmp: New file.
59662         * modules/unistr/u32-strncmp: New file.
59663         * lib/unistr/u8-strncmp.c: New file.
59664         * lib/unistr/u16-strncmp.c: New file.
59665         * lib/unistr/u32-strncmp.c: New file.
59666
59667         * modules/unistr/u8-strncpy: New file.
59668         * modules/unistr/u16-strncpy: New file.
59669         * modules/unistr/u32-strncpy: New file.
59670         * lib/unistr/u8-strncpy.c: New file.
59671         * lib/unistr/u16-strncpy.c: New file.
59672         * lib/unistr/u32-strncpy.c: New file.
59673         * lib/unistr/u-strncpy.h: New file.
59674
59675         * modules/unistr/u8-strnlen: New file.
59676         * modules/unistr/u16-strnlen: New file.
59677         * modules/unistr/u32-strnlen: New file.
59678         * lib/unistr/u8-strnlen.c: New file.
59679         * lib/unistr/u16-strnlen.c: New file.
59680         * lib/unistr/u32-strnlen.c: New file.
59681         * lib/unistr/u-strnlen.h: New file.
59682
59683         * modules/unistr/u8-strpbrk: New file.
59684         * modules/unistr/u16-strpbrk: New file.
59685         * modules/unistr/u32-strpbrk: New file.
59686         * lib/unistr/u8-strpbrk.c: New file.
59687         * lib/unistr/u16-strpbrk.c: New file.
59688         * lib/unistr/u32-strpbrk.c: New file.
59689         * lib/unistr/u-strpbrk.h: New file.
59690
59691         * modules/unistr/u8-strrchr: New file.
59692         * modules/unistr/u16-strrchr: New file.
59693         * modules/unistr/u32-strrchr: New file.
59694         * lib/unistr/u8-strrchr.c: New file.
59695         * lib/unistr/u16-strrchr.c: New file.
59696         * lib/unistr/u32-strrchr.c: New file.
59697
59698         * modules/unistr/u8-strspn: New file.
59699         * modules/unistr/u16-strspn: New file.
59700         * modules/unistr/u32-strspn: New file.
59701         * lib/unistr/u8-strspn.c: New file.
59702         * lib/unistr/u16-strspn.c: New file.
59703         * lib/unistr/u32-strspn.c: New file.
59704         * lib/unistr/u-strspn.h: New file.
59705
59706         * modules/unistr/u8-strstr: New file.
59707         * modules/unistr/u16-strstr: New file.
59708         * modules/unistr/u32-strstr: New file.
59709         * lib/unistr/u8-strstr.c: New file.
59710         * lib/unistr/u16-strstr.c: New file.
59711         * lib/unistr/u32-strstr.c: New file.
59712         * lib/unistr/u-strstr.h: New file.
59713
59714         * modules/unistr/u8-strtok: New file.
59715         * modules/unistr/u16-strtok: New file.
59716         * modules/unistr/u32-strtok: New file.
59717         * lib/unistr/u8-strtok.c: New file.
59718         * lib/unistr/u16-strtok.c: New file.
59719         * lib/unistr/u32-strtok.c: New file.
59720         * lib/unistr/u-strtok.h: New file.
59721
59722         * modules/unistr/u8-uctomb: New file.
59723         * modules/unistr/u16-uctomb: New file.
59724         * modules/unistr/u32-uctomb: New file.
59725         * lib/unistr/u8-uctomb.c: New file.
59726         * lib/unistr/u16-uctomb.c: New file.
59727         * lib/unistr/u32-uctomb.c: New file.
59728
59729         * MODULES.html.sh (Unicode string functions): Add the new modules.
59730
59731 2007-01-08  Bruno Haible  <bruno@clisp.org>
59732
59733         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59734         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59735         subdirectories.
59736
59737 2007-01-08  Karl Berry  <karl@gnu.org>
59738
59739         * doc/error.texi: mention that main() fns must set program_name
59740         when progname is used.
59741
59742 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59745         WCTYPE_H is empty, for the benefit of builds from non-distclean
59746         directories.  Problem reported by Eric Blake in
59747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59748
59749 2007-01-08  Bruno Haible  <bruno@clisp.org>
59750
59751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59752         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59753         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59754         PROVIDE_CANONICALIZE_FILENAME_MODE.
59755         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59756
59757 2007-01-08  Bruno Haible  <bruno@clisp.org>
59758
59759         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59760         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59761         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59762         * lib/fts.c: Likewise.
59763         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59764
59765 2006-12-25  Bruno Haible  <bruno@clisp.org>
59766
59767         * modules/utf8-ucs4-safe: New file.
59768         * lib/utf8-ucs4-safe.h: New file.
59769         * lib/unistr/utf8-ucs4-safe.c: New file.
59770
59771         * modules/utf16-ucs4-safe: New file.
59772         * lib/utf16-ucs4-safe.h: New file.
59773         * lib/unistr/utf16-ucs4-safe.c: New file.
59774
59775         * MODULES.html.sh (Unicode string functions): Add the new modules.
59776
59777 2007-01-08  Bruno Haible  <bruno@clisp.org>
59778
59779         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59780         (Depends-on): Add unitypes.
59781         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59782         (u8_mbtouc_aux): Move out to separate file.
59783         (u8_mbtouc): Use ucs4_t, uint8_t types.
59784         * lib/unistr/utf8-ucs4.c: New file.
59785
59786         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59787         (Depends-on): Add unitypes.
59788         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59789         (u16_mbtouc_aux): Move out to separate file.
59790         (u16_mbtouc): Use ucs4_t, uint16_t types.
59791         * lib/unistr/utf16-ucs4.c: New file.
59792
59793         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59794         (Depends-on): Add unitypes.
59795         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59796         (u8_uctomb_aux): Move out to separate file.
59797         (u8_uctomb): Use ucs4_t, uint8_t types.
59798         * lib/unistr/ucs4-utf8.c: New file.
59799
59800         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59801         (Depends-on): Add unitypes.
59802         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59803         (u16_uctomb_aux): Move out to separate file.
59804         (u16_uctomb): Use ucs4_t, uint16_t types.
59805         * lib/unistr/ucs4-utf16.c: New file.
59806
59807 2006-12-25  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/unitypes: New file.
59810         * lib/unitypes.h: New file.
59811         * MODULES.html.sh (func_all_modules): New section "Unicode string
59812         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59813         this section. Add unitypes.
59814
59815 2007-01-08  Bruno Haible  <bruno@clisp.org>
59816
59817         Avoid variable names that conflict with those from libtool.
59818         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59819         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59820         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59821         library_names_spec to acl_library_names_spec, hardcode_* to
59822         acl_hardcode_*.
59823         Reported by Ralf Wildenhues.
59824
59825 2007-01-08  Bruno Haible  <bruno@clisp.org>
59826
59827         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59828         definition.
59829         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59830         definition.
59831         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59832         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59833         definition.
59834         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59835         definition.
59836         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59837         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59838         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59839         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59840         definition.
59841         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59842         definition.
59843         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59844         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59845         GC_USE_<algorithm>.
59846         * lib/gc-libgcrypt.c: Likewise.
59847         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59848         * modules/gc-arctwo (configure.ac): Likewise.
59849         * modules/gc-des (configure.ac): Likewise.
59850         * modules/gc-hmac-md5 (configure.ac): Likewise.
59851         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59852         * modules/gc-md2 (configure.ac): Likewise.
59853         * modules/gc-md4 (configure.ac): Likewise.
59854         * modules/gc-md5 (configure.ac): Likewise.
59855         * modules/gc-random (configure.ac): Likewise.
59856         * modules/gc-rijndael (configure.ac): Likewise.
59857         * modules/gc-sha1 (configure.ac): Likewise.
59858
59859 2007-01-08  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59862         macro definition.
59863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59864         definition.
59865         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59866         definition.
59867         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59868         * modules/fcntl-safer (configure.ac): Likewise.
59869         * modules/fopen-safer (configure.ac): Likewise.
59870         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59871         GNULIB_FWRITEERROR macro definition.
59872
59873 2007-01-08  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/gnulib-common.m4: New file.
59876         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59877         (func_get_filelist): Add m4/gnulib-common.m4.
59878
59879 2007-01-08  Bruno Haible  <bruno@clisp.org>
59880
59881         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59882         command.
59883
59884 2007-01-08  Jim Meyering  <jim@meyering.net>
59885
59886         Use a more robust test for a "can't happen" condition.
59887         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59888         narrowed the st_size value.  Presuming the "can't happen" condition
59889         is true, that narrowing could conceivably convert an invalid st_size
59890         value into a valid one.  Instead, use a change based on Matthew
59891         Woehlke's original patch.
59892
59893         Slight readability improvement: use an assert-like macro
59894         in place of literal "abort ()" uses.
59895         * lib/fts.c (fts_assert): Define.
59896         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59897         Use this macro instead of a bare 'abort'.
59898
59899 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59902         simply work around them.
59903         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59904         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59905         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59906         declaring.
59907         Don't bother to define as macros, since the standard doesn't require it.
59908         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59909         longer worry about IRIX 5.3.
59910         (HAVE_WCTYPE_CTMP_BUG): Remove.
59911
59912 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59915         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59916         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59917         Problems reported by Georg Schwarz for IRIX 5.3.
59918
59919         * gnulib-tool (autoconf_minversion): Take the maximum version number
59920         found, not the minimum.  Problem reported by James Youngman.
59921
59922 2007-01-03  Karl Berry  <karl@gnu.org>
59923
59924         * doc/error.texi: new file, explaining interaction with progname.
59925         * doc/gnulib.texi: include it.  Update copyright.
59926
59927 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59928
59929         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59930         AC_CANONICAL_HOST, to improve autobuild outputs.
59931
59932 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59933             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59934
59935         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59936         sockets, server sockets, and other file descriptors.  Count errors
59937         to compute the return value.  Reorder the code a bit to be easier
59938         to follow.  Don't set event bits that were not requested (except
59939         POLLERR and POLLHUP).
59940
59941 2007-01-01  Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59944
59945 2007-01-03  Jim Meyering  <jim@meyering.net>
59946
59947         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59948
59949 2007-01-02  Bruno Haible  <bruno@clisp.org>
59950
59951         * modules/settime (Include): Require timespec.h.
59952         * modules/nanosleep (Include): Likewise.
59953
59954 2007-01-01  Bruno Haible  <bruno@clisp.org>
59955
59956         * gnulib-tool (func_emit_copyright_notice): Bump year.
59957         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59958
59959 2007-01-01  Bruno Haible  <bruno@clisp.org>
59960
59961         Improve support for OpenBSD.
59962         * build-aux/config.rpath (libname_spec): Export.
59963         (library_names_spec): New variable. Export.
59964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59965         library_names_spec from the config.rpath output. Locate shared library
59966         through the name pattern in library_names_spec.
59967
59968 2007-01-01  Eric Blake  <ebb9@byu.net>
59969
59970         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59971
59972 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59975         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59976         assume the C locale, and avoid an "eval" that could cause trouble.
59977         Problem with SORT reported by Bob Proulx.
59978
59979         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59980         Define.  Trivial patch from Henning Nielsen Lund, originally
59981         sent to bug-grep@gnu.org today.
59982
59983 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59986         struct stat.  Problem reported by Henning Nielsen Lund.
59987         * lib/acl.c: Include acl.h first, to check interface.  Don't
59988         bother to include sys/types.h and sys/stat.h again.
59989
59990 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         Import the following change from libc; problem reported by
59993         Sven Verdoolaege.
59994
59995         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59996
59997         [BZ #1373]
59998         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59999
60000 2006-12-28  Jim Meyering  <jim@meyering.net>
60001
60002         * build-aux/announce-gen: Do not assume that the package
60003         builds any of tar.gz, tar.bz2, and .xdelta files.
60004         Suggestion from Simon Josefsson.
60005
60006 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60007
60008         * modules/announce-gen: New file.
60009
60010 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60011
60012         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60013         handles its gotchas now.
60014         * lib/mbswidth.c: Likewise.
60015         * lib/wcwidth.h: Likewise.
60016         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60017         and iswcntrl; the wctype module does this stuff now.
60018         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60020         * modules/mbchar (Depends-on): Add wctype.
60021         * modules/mbswidth (Depends-on): Likewise.
60022         * modules/wcwidth (Depends-on): Likewise.
60023
60024 2006-12-27  Eric Blake  <ebb9@byu.net>
60025
60026         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60027         module uses more than what <wctype.h> is required to provide.
60028
60029 2006-12-26  Eric Blake  <ebb9@byu.net>
60030
60031         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60032
60033 2006-12-26  Eric Blake  <ebb9@byu.net>
60034
60035         * modules/absolute-header: New module.
60036         * modules/fcntl (Depends-on): Depend on it.
60037         * modules/inttypes (Depends-on): Likewise.
60038         * modules/stdint (Depends-on): Likewise.
60039         * modules/sys_stat (Depends-on): Likewise.
60040         * modules/wctype (Depends-on): Likewise.
60041         * MODULES.html.sh (Support for building libraries and
60042         executables): Document it.
60043
60044 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60045
60046         * gnulib-tool (SED): Remove, undoing previous change.
60047         The problem was that it broke coreutils on Solaris, because
60048         "sed --posix" leaked into a makefile.
60049         (sed): New alias, if 'alias' and GNU sed.
60050
60051 2006-12-24  Jim Meyering  <jim@meyering.net>
60052
60053         Work around an fchownat bug in glibc-2.4:
60054         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60055         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60056         in spite of the -P option.
60057         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60058         New macros.
60059         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60060         * modules/openat (Files): Add lib/fchownat.c.
60061         * lib/openat.c (fchownat): Don't define here.  Move to...
60062         * lib/fchownat.c: ...this new file.
60063
60064 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60065
60066         Fix bug reported by Bruno Haible in
60067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60068         where quotearg.c didn't compile on Mac OS X 10.2 because it
60069         lacks <wchar.h> and wint_t.
60070         * lib/wctype_.h (__wctype_wint_t): New type.
60071         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60072         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60073         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60074         Arg is now of type __wctype_wint_t, not wint_t.
60075         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60076         substitute HAVE_WINT_T.
60077         * modules/wctype (Files): Add m4/wint_t.m4.
60078         (wctype.h): Substitute HAVE_WINT_T.
60079
60080 2006-12-23  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60083
60084 2006-12-23  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60087         S_ISLNK.
60088         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60089         mingw.
60090
60091 2006-12-22  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/copy-file.c: Include acl.h.
60094         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60095         Close the file descriptors only after being done with copy_acl.
60096         * modules/copy-file (Depends-on): Add acl.
60097
60098 2006-12-22  Bruno Haible  <bruno@clisp.org>
60099
60100         * gnulib-tool (SED): New variable.
60101         Use $SED instead of sed everywhere.
60102
60103 2006-12-22  Bruno Haible  <bruno@clisp.org>
60104
60105         * modules/no-c++: New file.
60106         * m4/no-c++.m4: New file.
60107         * MODULES.html.sh (Support for building libraries and executables):
60108         Add no-c++.
60109
60110 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60113         Include <limits.h>, and use its INT_MAX to rewrite the
60114         j loop so that it does not overflow 'int'.  Problem reported by
60115         Ralf Wildenhues in
60116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60117         Play it safe by shifting left by 1 rather than multiplying by 2,
60118         as GCC is less likely to optimize this away when the value
60119         is signed (when it assumes overflow leads to undefined behavior).
60120         Also, don't assume time_t uses two's complement.
60121
60122 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * MODULES.html.sh: New module wctype.
60125         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60126         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60127         <wctype.h>, since the new wctype module should fix this.
60128         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60129         the wctype module should arrange for it.
60130         * lib/regex_internal.h: Likewise.
60131         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60132         since the wctype module should handle this now.
60133         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60134         * modules/fnmatch (Depends-on): Add wctype.
60135         * modules/quotearg (Depends-on): Likewise.
60136         * modules/regex (Depends-on): Likewise.
60137
60138 2006-12-19  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60141         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60142
60143 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60144
60145         * modules/savewd (Depends-on): Fix dependency on fcntl.
60146
60147 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60148
60149         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60150         conforms to C99, rather than relying on the user's environment
60151         setting of STDINT_H.
60152
60153 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60154         and Eric Blake  <ebb9@byu.net>
60155
60156         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60157         This is more consistent with the other defines here.
60158         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60159         Port to z/OS.  Problem reported by Paul Gilmartin.
60160         Change local vars to use gl_ prefix rather than ac_.
60161         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60162         with other defines.
60163         * modules/double-slash-root: New module.
60164         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60165         (Depends-on): Add double-slash-root.
60166         * MODULES.html.sh (File system functions): Mention new module.
60167
60168 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60171         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60172         This is for the benefit of gzip, which doesn't do i18n.
60173
60174 2006-12-12  Jim Meyering  <jim@meyering.net>
60175
60176         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60177         Reported by Andreas Schwab <schwab@suse.de>.
60178
60179 2006-12-12  Bruno Haible  <bruno@clisp.org>
60180
60181         Merge these changes.
60182         2006-09-05  Bruno Haible  <bruno@clisp.org>
60183         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60184         iconv_alloc succeeded.
60185         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60186         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60187         test for " && dest " at the end - dest is always != NULL there. Call
60188         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60189         with 2xNULL arguments, also to flush the state storage. Handle the
60190         IRIX iconv behaviour. Realloc the final result, to throw away unused
60191         memory.
60192
60193 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60196         and fchmodat unconditionally, since glibc 2.4 has them.
60197         Problem reported by Arkadiusz Miskiewicz.
60198
60199 2006-12-10  Bruno Haible  <bruno@clisp.org>
60200
60201         * gnulib-tool (func_import): Show the include files only for those
60202         modules that are copied and specified.
60203         Reported by Karl Berry.
60204
60205 2006-12-08  Jim Meyering  <jim@meyering.net>
60206
60207         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60208         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60209
60210         * build-aux/announce-gen: Add two new options, both optional:
60211         --bootstrap-tools=TOOL_LIST
60212               a comma-separated list of tools, e.g.,
60213               autoconf,automake,bison,gnulib
60214         --gnulib-snapshot-date=DATE
60215               if gnulib is in the bootstrap tool list,
60216               then report this as the snapshot date.
60217               If not specified, use the current date/time.
60218               If you specify a date here, be sure it's UTC.
60219
60220 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60221
60222         * tests/test-argp-2.sh: Fix test to match actual output.
60223         (func_compare): Fix sed script to be portable.
60224
60225 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60228         workaround for this case.  It is not autoconfigured now; offhand
60229         it's hard to see how to autoconfigure it.
60230
60231 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60232
60233         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60234         a directory that is about to be chowned.  Such a directory's
60235         initial file permissions should permit the owner only and this
60236         should not be changed until after the chown, since the group and
60237         other bits would be incorrect if they granted permission before
60238         the chown.
60239
60240         Fix porting problem for iswctype reported by Georg Schwarz in:
60241         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60242         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60243         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60245         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60246
60247 2006-12-03  Jim Meyering  <jim@meyering.net>
60248
60249         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60250         p->fts_statp may not yet be defined.
60251         (fts_read): Instead, set it in the caller, once p->fts_statp is
60252         sure to be defined, and corresponds to a top-level directory.
60253         This bug made du -x fail.  Here's the coreutils test case:
60254         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60255         Reported by Mike Frysinger.
60256
60257 2006-12-01  Jim Meyering  <jim@meyering.net>
60258
60259         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60260         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60261         Reported by Simon Josefsson.
60262
60263 2006-11-30  Jim Meyering  <jim@meyering.net>
60264
60265         * m4/warning.m4: Use the all-permissive copyright notice
60266         recommended by RMS (rather than LGPL).
60267         * m4/vararrays.m4: Likewise.
60268         * m4/flexmember.m4: Likewise.
60269
60270 2006-11-29  Bruno Haible  <bruno@clisp.org>
60271
60272         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60273         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60274         using +=.
60275         Reported by Simon Josefsson <simon@josefsson.org>.
60276
60277 2006-11-28  James Youngman <jay@gnu.org>
60278
60279         * README: Advise users that they might find the bug-gnulib@gnu.org
60280         and autotools-announce@gnu.org mailing lists useful.
60281
60282 2006-11-28  Bruno Haible  <bruno@clisp.org>
60283
60284         * m4/ptrdiff_max.m4: Remove file.
60285
60286 2006-11-21  Bruno Haible  <bruno@clisp.org>
60287
60288         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60289         _AC_COMPUTE_INT.
60290         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60291         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60292         _AC_COMPUTE_INT.
60293         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60294         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60295         _AC_COMPUTE_INT.
60296         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60297
60298 2006-11-28  Jim Meyering  <jim@meyering.net>
60299
60300         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60301         warning from "gcc -Wshadow" about shadowing the builtin.
60302
60303 2006-11-27  Bruno Haible  <bruno@clisp.org>
60304
60305         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60306         _AC_COMPUTE_INT.
60307         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60308
60309 2006-11-27  Bruno Haible  <bruno@clisp.org>
60310             Paul Eggert  <eggert@cs.ucla.edu>
60311
60312         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60313
60314 2006-11-26  Bruno Haible  <bruno@clisp.org>
60315
60316         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60317         noinst_LTLIBRARIES.
60318
60319 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60320             Bruno Haible  <bruno@clisp.org>
60321
60322         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60323         if compiling with "gcc -ansi".
60324
60325 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         Fix some incompatibilities with gcc -ansi -pedantic.
60328         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60329         if compiling pedantically with GCC, unless it's C99 or later.
60330         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60331         it mishandles gcc -ansi -pedantic as well.
60332         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60333         if gcc -pedantic.
60334         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60335         initializers for struct if -pedantic, unless it's C99 or later.
60336
60337 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60338
60339         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60340         Don't close an fd more than once. Identical atimes indicate
60341         success, not failure.
60342
60343 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60344
60345         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60346
60347 2006-11-23  Jim Meyering  <jim@meyering.net>
60348
60349         * build-aux/announce-gen: New file.  From coreutils.
60350
60351 2006-11-22  Jim Meyering  <jim@meyering.net>
60352
60353         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60354         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60355         (fts_read): Use a temporary to narrow the overused st_size member
60356         before using it in a switch statement.  Reported by Matthew Woehlke.
60357
60358         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60359         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60360
60361 2006-11-20  Bruno Haible  <bruno@clisp.org>
60362
60363         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60364         changequote instead of pairs of brackets.
60365         Reported by Andreas Schwab <schwab@suse.de>.
60366
60367 2006-11-21  Jim Meyering  <jim@meyering.net>
60368
60369         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60370         so as to remain compatible with older compilers.
60371         Patch from Michael Deutschmann.
60372
60373 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * MODULES.html.sh (File system functions): Add openat.
60376
60377         * lib/openat.h (rpl_fstatat): New macro, if
60378         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60379         (fstatat): Define to rpl_fstatat under the same conditions,
60380         unless COMPILING_FSTATAT.
60381         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60382         seems to have the bug.
60383         * lib/fstatat.c: New file.
60384         * modules/openat (Files): Add it.
60385
60386 2006-11-20  Bruno Haible  <bruno@clisp.org>
60387
60388         * Makefile: New file.
60389
60390 2006-11-20  Jim Meyering  <jim@meyering.net>
60391
60392         The beginnings of syntax-related checks for gnulib.
60393         * lib/Makefile: New file.
60394         * lib/t-idcache: New script.  Ensure that the two halves of
60395         idcache.c stay in sync.
60396
60397         * lib/idcache.c: Adjust comments in user- and group- portions to
60398         be more accurate, and to be consistent with one another.
60399
60400 2006-11-20  Jim Meyering  <jim@meyering.net>
60401
60402         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60403         continue using the flexible array member (thus, this module performs
60404         half as many malloc calls), with the addition that...
60405         (getgroup, getuser): Consistently record a non-match via an empty
60406         "name" string, and map an empty string match to a NULL return value.
60407         * modules/idcache (Depends-on): Re-add flexmember.
60408
60409         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60410         (getuidbyname, getgroup, getgidbyname): Likewise.
60411
60412         Use cleaner syntax: NULL rather than 0.
60413         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60414
60415 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60416
60417         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60418         It mishandled the case where the group was missing.
60419         Problem reported by Greg Schafer.
60420         * modules/idcache: Likewise.
60421
60422 2006-11-18  Jim Meyering  <jim@meyering.net>
60423
60424         * check-module (%exempt_header): Add exception for some
60425         conditionally-included headers.
60426
60427         * modules/i-ring (Depends-on): Add verify.
60428         (License): Change to LGPL.
60429
60430 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60433         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60434         and inttostr.h.  Use snprintf rather than uinttostr, so that
60435         LGPLed code doesn't depend on GPLed.
60436
60437 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * modules/inline (License): Change from GPL to LGPL.
60440
60441 2006-11-17  Jim Meyering  <jim@meyering.net>
60442
60443         * modules/d-type (License): Switch to LGPL.
60444
60445 2006-11-15  Bruno Haible  <bruno@clisp.org>
60446
60447         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60448
60449 2006-11-15  Eric Blake  <ebb9@byu.net>
60450
60451         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60452         the module dependency.
60453
60454 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60455             Bruno Haible  <bruno@clisp.org>
60456
60457         * gnulib-tool (func_create_testdir): Add license consistency check.
60458
60459 2006-11-15  Eric Blake  <ebb9@byu.net>
60460
60461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60462         random "(cached)" in configure output.
60463
60464 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60465
60466         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60467         test for conforming inttypes.h is both announced and cached.
60468
60469         * MODULES.html.sh (seen_modules, seen_files): New variables.
60470         (func_module): Rewrite to use a few less gnulib-tool and sed
60471         invocations.  Avoid a couple of quadratic algorithms for ...
60472         (missed_modules, missed_files): ... these, with ...
60473         (func_append, func_tmpdir): ... these new functions, from
60474         gnulib-tool.  Analogously, install traps for cleanup.
60475
60476         * tests/test-gc.c (main): Remove unused variables.
60477         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60478
60479 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * modules/inttostr (License): Change to LGPL.
60482
60483 2006-11-14  Eric Blake  <ebb9@byu.net>
60484
60485         * modules/tempname (License): Change to LGPL.
60486
60487 2006-11-14  Eric Blake  <ebb9@byu.net>
60488
60489         * doc/functions.texi (Function Portability): *printf functions on
60490         Cygwin now understand all POSIX size specifiers.
60491
60492 2006-11-14  Bruno Haible  <bruno@clisp.org>
60493
60494         * modules/c-ctype (License): Change to LGPL.
60495
60496 2006-11-12  Bruno Haible  <bruno@clisp.org>
60497
60498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60499         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60500         for GNOME libraries, for which the include files are installed in
60501         subdirectories of $prefix/include.
60502
60503 2006-11-12  Bruno Haible  <bruno@clisp.org>
60504
60505         * m4/lib-link.m4: Require at least autoconf-2.54.
60506         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60507         name to underscores for the --with option.
60508
60509 2006-11-13  Bruno Haible  <bruno@clisp.org>
60510
60511         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60512         the tests directory.
60513         Reported by Ralf Wildenhues.
60514
60515 2006-11-13  Bruno Haible  <bruno@clisp.org>
60516
60517         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60518         (func_emit_initmacro_end): Undo the override here.
60519         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60520         Works around the famous automake error in coreutils.
60521
60522 2006-11-13  Eric Blake  <ebb9@byu.net>
60523
60524         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60525         element, not its node.
60526
60527 2006-11-12  Bruno Haible  <bruno@clisp.org>
60528
60529         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60530         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60531
60532 2006-11-12  Bruno Haible  <bruno@clisp.org>
60533
60534         * gnulib-tool: New option --local-symlink.
60535         (func_usage): Document it.
60536         (lsymbolic): New variable.
60537         (func_import, func_create_testdir): If --symlink was not specified,
60538         test whether --local-symlink was specified and the file comes from
60539         the local_gnulib_dir.
60540
60541 2006-11-12  Bruno Haible  <bruno@clisp.org>
60542
60543         * gnulib-tool (func_ln): New function.
60544         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60545
60546 2006-11-12  Bruno Haible  <bruno@clisp.org>
60547
60548         Finish support for source files in subdirectories.
60549         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60550         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60551         AUTOMAKE_OPTIONS.
60552         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60553
60554 2006-11-12  Bruno Haible  <bruno@clisp.org>
60555
60556         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60557         EXTRA_lib_SOURCES augmentation.
60558         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60559
60560 2006-11-12  Jim Meyering  <jim@meyering.net>
60561
60562         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60563         file descriptors.  This also averts a failure on systems with
60564         native openat support when a traversed directory lacks "x" access.
60565         * lib/fts_.h: Include "i-ring.h"
60566         (struct FTS) [fts_fd_ring]: New member.
60567         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60568         (FCHDIR): Add parentheses.
60569         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60570         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60571         When descending, rather than simply closing the previous
60572         fts_cwd_fd value, push that file descriptor onto the ring.
60573         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60574         (fts_open): Initialize the new fd_ring member.
60575         (fts_close): Clear the ring.
60576         (fts_safe_changedir): When possible, use our new fd_ring to skip
60577         the diropen and fstat and dev/ino comparison that would normally
60578         accompany a virtual `chdir ("..")'.
60579
60580         * modules/fts (Depends-on): Add i-ring.
60581         * modules/i-ring: New module.
60582         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60583         * m4/i-ring.m4: New file.
60584
60585 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60586
60587         * gnulib-tool (func_create_testdir): Fix replacement of
60588         `build-aux' in configure.ac.  Run autotools in gltests
60589         subdirectory.
60590         (func_create_testdir, func_create_megatestdir, test): There is
60591         no need for '--force' in most autotool invocations in a new
60592         tree.  Actually fail the whole test if any of the tools, or the
60593         configure or make stages fail.
60594
60595         Sync from Automake.
60596         * build-aux/gnupload: Revert last change.  Add pointer to upload
60597         instructions of the GNU Maintenance Instructions.
60598         Suggestion by Karl Berry.
60599
60600 2006-11-10  Jim Meyering  <jim@meyering.net>
60601
60602         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60603
60604 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60607         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60608         (bind_textdomain_codeset) [! ENABLE_NLS]:
60609         Evaluate all the arguments.  That way, callers get compatible behavior
60610         if the arguments have side effects.  Also, it avoids some GCC
60611         diagnostics in some cases; Joel E. Denny reported problems when Bison
60612         was configured with --enable-gcc-warnigs.
60613
60614 2006-11-10  Jim Meyering  <jim@meyering.net>
60615
60616         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60617         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60618         account.
60619
60620 2006-11-10  Jim Meyering  <jim@meyering.net>
60621
60622         * modules/inline: New file/module.
60623         * modules/xalloc (Files): Remove m4/inline.m4.
60624         (Depends-on): Add inline, instead.
60625         * modules/oset: Likewise.
60626         * modules/list: Likewise.
60627
60628 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60631         Problem reported by Matthew Woehlke.
60632
60633 2006-11-09  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/tempname.c (gen_tempname): Remove variant that invokes
60636         __gen_tempname.
60637         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60638         __gen_tempname.
60639
60640 2006-11-08  Bruno Haible  <bruno@clisp.org>
60641
60642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60643         to 'yes' instead of 'cross-compiling'.
60644
60645 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * lib/quotearg.h (quotearg_free): New decl.
60648         * lib/quotearg.c (quotearg_free): New function.
60649         (slot0, nslots, slotvec0, slotvec):
60650         Now file-scope so that quotearg_free can get at them.
60651
60652 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60653
60654         Sync from Automake.
60655         * build-aux/gnupload: Add missing 'gnu' to example URL.
60656         Report by Karl Berry.
60657
60658 2006-11-08  Bruno Haible  <bruno@clisp.org>
60659
60660         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60661         Suggested by Paul Eggert.
60662
60663 2006-11-08  Jim Meyering  <jim@meyering.net>
60664
60665         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60666         It's already included if !_LIBC.
60667         (fts_safe_changedir): Add a comment.
60668
60669 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60670
60671         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60672         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60673         Matthew Woehlke.
60674
60675         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60676         definitions up, to avoid colliding with change below.
60677         (static_inline) [HAVE_INLINE]: New macro.
60678         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60679         Provide extern decls when !HAVE_INLINE.  Do not define unless
60680         static_inline is defined, either by us or by xmalloc.c.  Use
60681         static_inline rather than static inline.
60682         (XCALLOC): Optimize sizeof(T) = 1 case.
60683         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60684
60685 2006-11-07  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60688         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60689         AC_C_INLINE.
60690         * modules/xalloc (Files): Add m4/inline.m4.
60691
60692 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60693
60694         * README: Fix typo.
60695         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60696         (Miscellanous Notes): ...from this.
60697
60698 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60699
60700         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60701         Mention that offsetof should be used instead of sizeof.
60702         From Bruno Haible.
60703
60704 2006-11-07  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60707
60708 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60709
60710         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60711         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60712         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60713         (gl_tree_add_before, gl_tree_add_after):
60714         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60715         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60716         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60717         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60718         (gl_linked_add_after, gl_linked_add_at): Likewise.
60719         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60720         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60721         (gl_tree_add_before, gl_tree_add_after): Likewise.
60722         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60723         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60724         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60725
60726 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60727
60728         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60729
60730 2006-11-06  Bruno Haible  <bruno@clisp.org>
60731
60732         * m4/inline.m4: New file.
60733         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60734         * modules/list (Files): Add m4/inline.m4.
60735         * modules/oset (Files): Likewise.
60736
60737 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * lib/idcache.c: Include <stddef.h>, for offsetof.
60740         (struct userid.name): Change from char * to a flexible array member.
60741         All uses changed.
60742         * modules/idcache (Depends-on): Add flexmember.
60743
60744         * MODULES.html.sh (Core language properties): New module flexmember.
60745         * modules/flexmember, m4/flexmember.m4: New files.
60746
60747         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60748         inline functions that are identical with the old xnmalloc_inline,
60749         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60750         that we can avoid some unnecessary integer multiplications and
60751         divisions in the common case where the element size is known at
60752         compile time.
60753         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60754         needed.
60755         (xnboundedmalloc): Remove.
60756         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60757         arguments, for consistency with rest of this header.
60758         (xcharalloc): Rewrite using XNMALLOC.
60759         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60760         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60761         versions have been moved to lib/xalloc.h and renamed to be the
60762         non-*_inline versions.
60763         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60764         and xnrealloc functions, since those functions are now inline and
60765         now call us.
60766         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60767         renaming described above.
60768         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60769         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60770         captures the dependency in AC_C_INLINE.
60771
60772         New module canonicalize-lgpl, proposed by Charles Wilson in
60773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60774         with a few small changes afterwards.
60775         * MODULES.html.sh (File system functions): New module
60776         canonicalize-lgpl.
60777         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60778         and canonicalize_file_name.
60779         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60780         * modules/canonicalize-lgpl: New files.
60781
60782 2006-11-05  Bruno Haible  <bruno@clisp.org>
60783
60784         * gnulib-tool (func_import, func_create_testdir): Create directories
60785         also for files in subdirectories of lib/.
60786
60787 2006-11-05  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60790         ANSI C compliant.
60791
60792 2006-11-03  Bruno Haible  <bruno@clisp.org>
60793
60794         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60795         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60796         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60797         (xnboundedmalloc): New inline function.
60798         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60799         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60800         xmalloc.
60801         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60802         xmalloc.
60803         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60804         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60805         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60806         xmalloc.
60807         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60808         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60809         xmalloc.
60810         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60811         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60812         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60813         xmalloc.
60814         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60815         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60816         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60817         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60818         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60819         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60820         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60821
60822 2006-11-03  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/c-ctype.h [C++]: Define functions without name mangling.
60825         * lib/fwriteerror.h [C++]: Likewise.
60826         * lib/gcd.h [C++]: Likewise.
60827         * lib/linebreak.h [C++]: Likewise.
60828
60829 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60830
60831         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60832         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60833         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60834         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60835         Check for functions and headers just once.
60836         Check for declaration of canonicalize_file_name.
60837         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60838
60839 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60840
60841         * gnulib-tool (func_import): Fix typo in actioncmd.
60842
60843 2006-11-02  Bruno Haible  <bruno@clisp.org>
60844
60845         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60846         newline sequence in the Makefile.am snippet as a space, like "make"
60847         does.
60848         Reported by Roger Persson <perrog@gmail.com>.
60849
60850 2006-11-01  Bruno Haible  <bruno@clisp.org>
60851
60852         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60853         already declared in <string.h>.
60854         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60855
60856 2006-11-01  Bruno Haible  <bruno@clisp.org>
60857
60858         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60859         * lib/strcase.h: Include <string.h>.
60860         (strcasecmp): Define to rpl_strcasecmp here.
60861
60862 2006-11-01  Bruno Haible  <bruno@clisp.org>
60863
60864         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60865
60866 2006-11-01  Eric Blake  <ebb9@byu.net>
60867
60868         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60869
60870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60871
60872 2006-10-29  Bruno Haible  <bruno@clisp.org>
60873
60874         Make it compile in C++ mode.
60875         * lib/full-write.c (full_rw): Add a cast.
60876
60877 2006-11-01  Bruno Haible  <bruno@clisp.org>
60878
60879         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60880         be POSIX compliant.
60881         Reported by Roger Persson <perrog@gmail.com>.
60882
60883 2006-11-01  Eric Blake  <ebb9@byu.net>
60884
60885         * lib/getopt_.h: Fix comments.
60886
60887 2006-10-31  Eric Blake  <ebb9@byu.net>
60888
60889         * modules/tmpdir (Depends-on): Add sys_stat.
60890         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60891         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60892         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60893         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60894         tempname.
60895
60896 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         Avoid some C++ diagnostics reported by Bruno Haible.
60899         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60900         xmalloc.
60901         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60902         (struct slotvec): Move to top level.
60903         (quotearg_n_options): Rewrite to avoid xmalloc.
60904         * lib/xalloc.h (xcharalloc): New function.
60905         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60906         [defined __cplusplus]: Add function template that provides result
60907         type propagation.  This part of the change is from Bruno Haible.
60908
60909 2006-10-29  Bruno Haible  <bruno@clisp.org>
60910
60911         Make it compile in C++ mode.
60912         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60913         * lib/strnlen1.c (strnlen1): Cast memchr result.
60914         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60915         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60916         (create_temp_dir): Rename local variable 'template'.
60917         (compile_csharp_using_sscli): Add cast.
60918         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60919         * lib/findprog.c (find_in_path): Likewise.
60920         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60921         * lib/wait-process.c (register_slave_subprocess): Likewise.
60922
60923 2006-10-22  Bruno Haible  <bruno@clisp.org>
60924
60925         * modules/tsearch: New file.
60926         * lib/tsearch.h: New file.
60927         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60928         * m4/tsearch.m4: New file.
60929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60930
60931 2006-10-29  Eric Blake  <ebb9@byu.net>
60932
60933         * lib/arcfour.c: Assume config.h.
60934         * lib/arctwo.c: Likewise.
60935         * lib/base64.c: Likewise.
60936         * lib/check-version.c: Likewise.
60937         * lib/crc.c: Likewise.
60938         * lib/des.c: Likewise.
60939         * lib/gc-gnulib.c: Likewise.
60940         * lib/gc-libgcrypt.c: Likewise.
60941         * lib/gc-pbkdf2-sha1.c: Likewise.
60942         * lib/getaddrinfo.c: Likewise.
60943         * lib/getdelim.c: Likewise.
60944         * lib/getline.c: Likewise.
60945         * lib/hmac-md5.c: Likewise.
60946         * lib/hmac-sha1.c: Likewise.
60947         * lib/iconvme.c: Likewise.
60948         * lib/md2.c: Likewise.
60949         * lib/md4.c: Likewise.
60950         * lib/memxor.c: Likewise.
60951         * lib/read-file.c: Likewise.
60952         * lib/readline.c: Likewise.
60953         * lib/rijndael-alg-fst.c: Likewise.
60954         * lib/rijndael-api-fst.c: Likewise.
60955         * lib/xgetdomainname.c: Likewise.
60956
60957 2006-10-28  Eric Blake  <ebb9@byu.net>
60958
60959         * lib/xstrndup.c: Assume config.h.
60960
60961 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60964         stat-macros.h is now for our own macros, whereas stat_h is for
60965         macros in the <sys/stat.h> name space.
60966         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60967         (STAT_MACROS_H): Remove.
60968         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60969         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60970         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60971         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60972         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60973         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60974         Move these macros to ...
60975         * lib/stat_.h: here.  Don't include stat-macros.h.
60976         * lib/canonicalize.c: Don't include stat-macros.h.
60977         * lib/chown.c: Likewise.
60978         * lib/euidaccess.c: Likewise.
60979         * lib/file-type.c: Likewise.
60980         * lib/filemode.c: Likewise.
60981         * lib/glob.c: Likewise.
60982         * lib/isapipe.c: Likewise.
60983         * lib/lchown.c: Likewise.
60984         * lib/lstat.c: Likewise.
60985         * lib/mkdir-p.c: Likewise.
60986         * lib/rmdir.c: Likewise.
60987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60989         unless mkdir isn't declared, to speed up 'configure'.
60990         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60991         would define all the S_* symbols.
60992         * modules/canonicalize (Depends-on):
60993         Depend on sys_stat, not stat-macros.
60994         * modules/chown: Likewise.
60995         * modules/euidaccess: Likewise.
60996         * modules/filemode: Likewise.
60997         * modules/file-type: Likewise.
60998         * modules/glob: Likewise.
60999         * modules/isapipe: Likewise.
61000         * modules/lchown: Likewise.
61001         * modules/lstat: Likewise.
61002         * modules/mkancesdirs: Likewise.
61003         * modules/rmdir: Likewise.
61004         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61005         * modules/modechange: Likewise.
61006         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61007         (configure.ac): Remove gl_STAT_MACROS.
61008         * modules/sys_stat (Depends-on): Remove stat-macros.
61009
61010 2006-10-27  Bruno Haible  <bruno@clisp.org>
61011
61012         * m4/signed.m4: Remove file.
61013         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61014         invocation.
61015         * modules/vasnprintf (Files): Remove m4/signed.m4.
61016
61017 2006-10-27  Bruno Haible  <bruno@clisp.org>
61018
61019         Update to GNU gettext 0.16.
61020         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61021         m4/inttypes-h.m4, m4/signed.m4.
61022         * m4/gettext.m4: Update to GNU gettext 0.16.
61023         * m4/intl.m4: New file, from GNU gettext.
61024         * m4/intldir.m4: New file, from GNU gettext.
61025         * config/srclist.txt: Update
61026
61027 2006-10-27  Eric Blake  <ebb9@byu.net>
61028
61029         * MODULES.html.sh: Document tempname.
61030         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61031         dependencies.
61032         (Files): Move lib/tempname.c...
61033         * modules/tempname: ...to this new module.
61034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61035         (gl_PREREQ_TEMPNAME): Move...
61036         * m4/tempname.m4: ...to this new file.
61037         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61038         * modules/sys_stat (Depends-on): Add stat-macros.
61039         * lib/stat_.h (includes): Pick up stat macros.
61040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61041         if stat macros are broken.
61042         * lib/tempname.c (includes): No need to include "stat-macros.h".
61043         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61044         (direxists, __path_search) [!_LIBC]: Don't compile these in
61045         gnulib; the tmpdir module covers that.
61046         * lib/tempname.h: New file.
61047
61048 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61049
61050         * COPYING: Explain how gnulib-tool converts licence headers.
61051         Almost all wording by Eric Blake.
61052
61053 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * lib/mbchar.h (is_basic_table): Make read-only.
61056         * lib/mbchar.c (is_basic_table): Likewise.
61057         Reported by John Darrington.
61058
61059 2006-10-25  Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/progname.h (set_program_name): Undefine before defining.
61062
61063 2006-10-25  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61066         false for non-gcc C++ compilers.
61067         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61068
61069 2006-10-24  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61072         iconv implementations like Irix iconv.
61073
61074 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * modules/vararrays: New file.
61077         * m4/vararrays.m4: New file, taken from diffutils.
61078         * MODULES.html.sh: New module vararrays.
61079
61080 2006-10-24  Karl Berry  <karl@gnu.org>
61081
61082         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61083         Don't call GNU Unix.
61084
61085 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61086
61087         * users.txt: Add Libtool.
61088
61089         Sync from Libtool:
61090
61091         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61094         to gnulib's policy of including config.h unconditionally.
61095
61096 2006-10-24  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/wcwidth (Files): Add m4/wint_t.m4.
61099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61100         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61101
61102 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61105         to pacify GCC with some -W flags enabled.  Problem reported by
61106         Bruno Haible.
61107
61108 2006-10-24  Jim Meyering  <jim@meyering.net>
61109
61110         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61111         Reported by Karl Berry.
61112
61113 2006-10-23  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61116
61117 2006-10-24  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/gl_list.h: Use C comment style, not C++ comment style.
61120
61121 2006-10-23  Eric Blake  <ebb9@byu.net>
61122
61123         * lib/getaddrinfo.c (includes): Add missing include.
61124
61125 2006-10-23  Bruno Haible  <bruno@clisp.org>
61126             Paul Eggert  <eggert@cs.ucla.edu>
61127
61128         Ability to rename obstack_free.
61129         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61130         obstack_free.
61131         (obstack_free): Invoke the __obstack_free macro.
61132         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61133
61134 2006-10-23  Bruno Haible  <bruno@clisp.org>
61135             Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61138         __argc, __argv from the declaration. (They are defined as macros on
61139         mingw.)
61140
61141 2006-10-22  Bruno Haible  <bruno@clisp.org>
61142
61143         * doc/gnulib-intro.texi: New file.
61144         * doc/gnulib.texi: Include it.
61145
61146 2006-10-21  Bruno Haible  <bruno@clisp.org>
61147
61148         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61149         "Introduction", "Miscellanous Notes", "Particular Modules".
61150
61151 2006-10-21  Bruno Haible  <bruno@clisp.org>
61152
61153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61154         Change mostlyclean-local rule to avoid sh syntax error from bash
61155         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61156
61157 2006-10-23  Jim Meyering  <jim@meyering.net>
61158
61159         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61160         in place of snprintf.
61161
61162         * modules/inttostr (Files): Add lib/uinttostr.c.
61163         * lib/uinttostr.c (inttostr): New file/function.
61164         * lib/inttostr.h (uinttostr): Declare.
61165         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61166         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61167         Add uinttostr.
61168         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61169
61170 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * lib/canonicalize.c (ELOOP): Define if not already defined.
61173         Problem reported by Bruno Haible in
61174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61175
61176 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61177
61178         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61179         Problem reported by Perry Smith and Ville Laurikari.
61180
61181         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61182         uses.
61183
61184 2006-10-19  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61187         for mingw.
61188
61189 2006-10-19  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61192         Needed for mingw.
61193
61194 2006-10-19  Bruno Haible  <bruno@clisp.org>
61195
61196         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61197
61198 2006-10-19  Bruno Haible  <bruno@clisp.org>
61199
61200         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61201         it.
61202
61203 2006-10-19  Bruno Haible  <bruno@clisp.org>
61204
61205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61206         invocation.
61207
61208 2006-10-19  Bruno Haible  <bruno@clisp.org>
61209
61210         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61211         mountlist by default.
61212
61213 2006-10-16  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/c-strstr.c: Include c-strstr.h.
61216
61217 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61218
61219         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61220         in a slash.
61221
61222 2006-10-18  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/lock.h [C++]: Wrap definitions in extern "C".
61225
61226 2006-10-18  Bruno Haible  <bruno@clisp.org>
61227
61228         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61229         gl_LIBOBJS list.
61230
61231 2006-10-18  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61234
61235 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         * lib/xstrtol.h: Include gettext.h.
61238         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61239         Problem reported by Eric Blake.
61240         * modules/xstrtol (Depends-on): Add gettext-h.
61241
61242 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61243
61244         * lib/strftime.c (advance): New macro.
61245         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61246         incomplete type, so you can't add 0 to it.  Problem and patch
61247         reported by Eelco Dolstra for dietlibc.
61248
61249 2006-10-18  Jim Meyering  <jim@meyering.net>
61250
61251         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61252         type for a local, and rename it: s/up/user_proc/.
61253
61254 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61255
61256         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61257         READ_UTMP_USER_PROCESS.
61258         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61259
61260 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61263         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61264
61265 2006-10-17  Eric Blake  <ebb9@byu.net>
61266
61267         * lib/sigprocmask.c (sigprocmask): Fix typo.
61268
61269         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61270
61271         * modules/clean-temp (Makefile.am): Don't add to make output...
61272         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61273         config.h.
61274
61275 2006-10-17  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61278         differently if DEFAULT_TEXT_DOMAIN is set.
61279
61280 2006-10-16  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/clean-temp.c: Include fwriteerror.h.
61283
61284 2006-10-16  Bruno Haible  <bruno@clisp.org>
61285
61286         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61287
61288 2006-10-16  Bruno Haible  <bruno@clisp.org>
61289
61290         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61291         * lib/sigprocmask.h: Include <sys/types.h>.
61292         (sigset_t): Use the system's definition if present.
61293
61294 2006-10-17  Eric Blake  <ebb9@byu.net>
61295
61296         * lib/xvasprintf.c (includes): Assume config.h.
61297         * lib/xasprintf.c (includes): Likewise.
61298
61299 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61300
61301         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61302         at least as wide as intmax_t.
61303
61304 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61305
61306         (Imported from Automake.)
61307         * build-aux/gnupload: Update to version 1.1 of directive file.
61308
61309 2006-10-16  Eric Blake  <ebb9@byu.net>
61310
61311         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61312         match Automake 1.10a.
61313
61314 2006-10-14  Bruno Haible  <bruno@clisp.org>
61315
61316         * modules/sigprocmask: New file.
61317         * lib/sigprocmask.h: New file.
61318         * lib/sigprocmask.c: New file.
61319         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61320         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61321         request sigprocmask.o.
61322         (gl_PREREQ_SIGPROCMASK): New macro.
61323         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61324         (Depends-on): Add sigprocmask.
61325         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61326         gt_SIGNALBLOCKING. Test for 'raise' only once.
61327         * lib/fatal-signal.c: Include sigprocmask.h.
61328         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61329         unblock_fatal_signals): Define always.
61330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61331         sigprocmask.
61332
61333 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         Sync from Automake.
61336         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61337         which incorrectly sets the mode of an existing destination
61338         directory.  In some cases the unpatched install-sh could do the
61339         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61340         system.  We hope this is rare in practice, but it's clearly worth
61341         fixing.  Problem reported by Alex Unleashed in
61342         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61343         Also, don't bother to check for -m bugs unless we're using -m;
61344         suggested by Stepan Kasal.
61345
61346 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61347
61348         Sync from Automake.
61349         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61350         `-c' flag, so they appear at the same position as in %FASTDEP%
61351         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61352         which ignores unknown options only after the first non-option.
61353         Bug report against M4 by Nelson H. F. Beebe.
61354
61355 2006-10-13  Jim Meyering  <jim@meyering.net>
61356
61357         Fix a bug in yesterday's change.
61358         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61359         p->fts_statp->st_dev would be used uninitialized.
61360         Ensures that we always call fts_stat on the very first entry.
61361         Miklos Szeredi reported that find -xdev stopped working.
61362
61363 2006-10-12  Bruno Haible  <bruno@clisp.org>
61364
61365         * gnulib-tool (func_get_automake_snippet): Append an automatically
61366         computed EXTRA_DIST augmentation.
61367         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61368         * modules/alloca-opt (Makefile.am): Likewise.
61369         * modules/allocsa (Makefile.am): Likewise.
61370         * modules/arcfour (Makefile.am): Likewise.
61371         * modules/arctwo (Makefile.am): Likewise.
61372         * modules/argmatch (Makefile.am): Likewise.
61373         * modules/argz (Makefile.am): Likewise.
61374         * modules/atexit (Makefile.am): Likewise.
61375         * modules/backupfile (Makefile.am): Likewise.
61376         * modules/byteswap (Makefile.am): Likewise.
61377         * modules/c-strtod (Makefile.am): Likewise.
61378         * modules/c-strtold (Makefile.am): Likewise.
61379         * modules/calloc (Makefile.am): Likewise.
61380         * modules/canon-host (Makefile.am): Likewise.
61381         * modules/canonicalize (Makefile.am): Likewise.
61382         * modules/chdir-long (Makefile.am): Likewise.
61383         * modules/chdir-safer (Makefile.am): Likewise.
61384         * modules/check-version (Makefile.am): Likewise.
61385         * modules/chown (Makefile.am): Likewise.
61386         * modules/cloexec (Makefile.am): Likewise.
61387         * modules/close-stream (Makefile.am): Likewise.
61388         * modules/closeout (Makefile.am): Likewise.
61389         * modules/crc (Makefile.am): Likewise.
61390         * modules/csharpexec (Makefile.am): Likewise.
61391         * modules/cycle-check (Makefile.am): Likewise.
61392         * modules/des (Makefile.am): Likewise.
61393         * modules/dev-ino (Makefile.am): Likewise.
61394         * modules/dirfd (Makefile.am): Likewise.
61395         * modules/dirname (Makefile.am): Likewise.
61396         * modules/dup2 (Makefile.am): Likewise.
61397         * modules/eealloc (Makefile.am): Likewise.
61398         * modules/error (Makefile.am): Likewise.
61399         * modules/euidaccess (Makefile.am): Likewise.
61400         * modules/exclude (Makefile.am): Likewise.
61401         * modules/exitfail (Makefile.am): Likewise.
61402         * modules/fcntl-safer (Makefile.am): Likewise.
61403         * modules/fcntl (Makefile.am): Likewise.
61404         * modules/file-type (Makefile.am): Likewise.
61405         * modules/fileblocks (Makefile.am): Likewise.
61406         * modules/filemode (Makefile.am): Likewise.
61407         * modules/filenamecat (Makefile.am): Likewise.
61408         * modules/fnmatch (Makefile.am): Likewise.
61409         * modules/fopen-safer (Makefile.am): Likewise.
61410         * modules/fpending (Makefile.am): Likewise.
61411         * modules/fprintftime (Makefile.am): Likewise.
61412         * modules/free (Makefile.am): Likewise.
61413         * modules/fsusage (Makefile.am): Likewise.
61414         * modules/ftruncate (Makefile.am): Likewise.
61415         * modules/fts (Makefile.am): Likewise.
61416         * modules/gc-arcfour (Makefile.am): Likewise.
61417         * modules/gc-des (Makefile.am): Likewise.
61418         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61419         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61420         * modules/gc-md4 (Makefile.am): Likewise.
61421         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61422         * modules/gc-sha1 (Makefile.am): Likewise.
61423         * modules/gc (Makefile.am): Likewise.
61424         * modules/getaddrinfo (Makefile.am): Likewise.
61425         * modules/getcwd (Makefile.am): Likewise.
61426         * modules/getdelim (Makefile.am): Likewise.
61427         * modules/getdomainname (Makefile.am): Likewise.
61428         * modules/getgroups (Makefile.am): Likewise.
61429         * modules/gethostname (Makefile.am): Likewise.
61430         * modules/gethrxtime (Makefile.am): Likewise.
61431         * modules/getline (Makefile.am): Likewise.
61432         * modules/getloadavg (Makefile.am): Likewise.
61433         * modules/getlogin_r (Makefile.am): Likewise.
61434         * modules/getndelim2 (Makefile.am): Likewise.
61435         * modules/getopt (Makefile.am): Likewise.
61436         * modules/getpagesize (Makefile.am): Likewise.
61437         * modules/getpass-gnu (Makefile.am): Likewise.
61438         * modules/getpass (Makefile.am): Likewise.
61439         * modules/getsubopt (Makefile.am): Likewise.
61440         * modules/gettime (Makefile.am): Likewise.
61441         * modules/gettimeofday (Makefile.am): Likewise.
61442         * modules/getugroups (Makefile.am): Likewise.
61443         * modules/getusershell (Makefile.am): Likewise.
61444         * modules/glob (Makefile.am): Likewise.
61445         * modules/group-member (Makefile.am): Likewise.
61446         * modules/hard-locale (Makefile.am): Likewise.
61447         * modules/hash (Makefile.am): Likewise.
61448         * modules/hmac-md5 (Makefile.am): Likewise.
61449         * modules/hmac-sha1 (Makefile.am): Likewise.
61450         * modules/human (Makefile.am): Likewise.
61451         * modules/idcache (Makefile.am): Likewise.
61452         * modules/imaxabs (Makefile.am): Likewise.
61453         * modules/imaxdiv (Makefile.am): Likewise.
61454         * modules/inet_ntop (Makefile.am): Likewise.
61455         * modules/inet_pton (Makefile.am): Likewise.
61456         * modules/intprops (Makefile.am): Likewise.
61457         * modules/inttostr (Makefile.am): Likewise.
61458         * modules/inttypes (Makefile.am): Likewise.
61459         * modules/isapipe (Makefile.am): Likewise.
61460         * modules/javaversion (Makefile.am): Likewise.
61461         * modules/lchmod (Makefile.am): Likewise.
61462         * modules/lchown (Makefile.am): Likewise.
61463         * modules/localcharset (Makefile.am): Likewise.
61464         * modules/long-options (Makefile.am): Likewise.
61465         * modules/lstat (Makefile.am): Likewise.
61466         * modules/malloc (Makefile.am): Likewise.
61467         * modules/mathl (Makefile.am): Likewise.
61468         * modules/mbchar (Makefile.am): Likewise.
61469         * modules/md2 (Makefile.am): Likewise.
61470         * modules/md4 (Makefile.am): Likewise.
61471         * modules/md5 (Makefile.am): Likewise.
61472         * modules/memcasecmp (Makefile.am): Likewise.
61473         * modules/memchr (Makefile.am): Likewise.
61474         * modules/memcmp (Makefile.am): Likewise.
61475         * modules/memcoll (Makefile.am): Likewise.
61476         * modules/memcpy (Makefile.am): Likewise.
61477         * modules/memmem (Makefile.am): Likewise.
61478         * modules/memmove (Makefile.am): Likewise.
61479         * modules/mempcpy (Makefile.am): Likewise.
61480         * modules/memrchr (Makefile.am): Likewise.
61481         * modules/memset (Makefile.am): Likewise.
61482         * modules/memxor (Makefile.am): Likewise.
61483         * modules/mkancesdirs (Makefile.am): Likewise.
61484         * modules/mkdir-p (Makefile.am): Likewise.
61485         * modules/mkdir (Makefile.am): Likewise.
61486         * modules/mkdtemp (Makefile.am): Likewise.
61487         * modules/mkstemp (Makefile.am): Likewise.
61488         * modules/mktime (Makefile.am): Likewise.
61489         * modules/modechange (Makefile.am): Likewise.
61490         * modules/mountlist (Makefile.am): Likewise.
61491         * modules/nanosleep (Makefile.am): Likewise.
61492         * modules/obstack (Makefile.am): Likewise.
61493         * modules/openat (Makefile.am): Likewise.
61494         * modules/pagealign_alloc (Makefile.am): Likewise.
61495         * modules/pathmax (Makefile.am): Likewise.
61496         * modules/physmem (Makefile.am): Likewise.
61497         * modules/poll (Makefile.am): Likewise.
61498         * modules/posixtm (Makefile.am): Likewise.
61499         * modules/posixver (Makefile.am): Likewise.
61500         * modules/putenv (Makefile.am): Likewise.
61501         * modules/quote (Makefile.am): Likewise.
61502         * modules/quotearg (Makefile.am): Likewise.
61503         * modules/raise (Makefile.am): Likewise.
61504         * modules/read-file (Makefile.am): Likewise.
61505         * modules/readline (Makefile.am): Likewise.
61506         * modules/readlink (Makefile.am): Likewise.
61507         * modules/readtokens (Makefile.am): Likewise.
61508         * modules/readutmp (Makefile.am): Likewise.
61509         * modules/realloc (Makefile.am): Likewise.
61510         * modules/regex (Makefile.am): Likewise.
61511         * modules/rename-dest-slash (Makefile.am): Likewise.
61512         * modules/rename (Makefile.am): Likewise.
61513         * modules/rijndael (Makefile.am): Likewise.
61514         * modules/rmdir (Makefile.am): Likewise.
61515         * modules/rpmatch (Makefile.am): Likewise.
61516         * modules/safe-read (Makefile.am): Likewise.
61517         * modules/safe-write (Makefile.am): Likewise.
61518         * modules/same-inode (Makefile.am): Likewise.
61519         * modules/same (Makefile.am): Likewise.
61520         * modules/save-cwd (Makefile.am): Likewise.
61521         * modules/savedir (Makefile.am): Likewise.
61522         * modules/setenv (Makefile.am): Likewise.
61523         * modules/settime (Makefile.am): Likewise.
61524         * modules/sha1 (Makefile.am): Likewise.
61525         * modules/sig2str (Makefile.am): Likewise.
61526         * modules/snprintf (Makefile.am): Likewise.
61527         * modules/stat-macros (Makefile.am): Likewise.
61528         * modules/stat-time (Makefile.am): Likewise.
61529         * modules/stdbool (Makefile.am): Likewise.
61530         * modules/stdint (Makefile.am): Likewise.
61531         * modules/stdlib-safer (Makefile.am): Likewise.
61532         * modules/stpcpy (Makefile.am): Likewise.
61533         * modules/stpncpy (Makefile.am): Likewise.
61534         * modules/strcase (Makefile.am): Likewise.
61535         * modules/strcasestr (Makefile.am): Likewise.
61536         * modules/strchrnul (Makefile.am): Likewise.
61537         * modules/strcspn (Makefile.am): Likewise.
61538         * modules/strdup (Makefile.am): Likewise.
61539         * modules/strerror (Makefile.am): Likewise.
61540         * modules/strftime (Makefile.am): Likewise.
61541         * modules/strndup (Makefile.am): Likewise.
61542         * modules/strnlen (Makefile.am): Likewise.
61543         * modules/strpbrk (Makefile.am): Likewise.
61544         * modules/strsep (Makefile.am): Likewise.
61545         * modules/strstr (Makefile.am): Likewise.
61546         * modules/strtod (Makefile.am): Likewise.
61547         * modules/strtoimax (Makefile.am): Likewise.
61548         * modules/strtok_r (Makefile.am): Likewise.
61549         * modules/strtol (Makefile.am): Likewise.
61550         * modules/strtoll (Makefile.am): Likewise.
61551         * modules/strtoul (Makefile.am): Likewise.
61552         * modules/strtoull (Makefile.am): Likewise.
61553         * modules/strtoumax (Makefile.am): Likewise.
61554         * modules/strverscmp (Makefile.am): Likewise.
61555         * modules/sys_socket (Makefile.am): Likewise.
61556         * modules/sys_stat (Makefile.am): Likewise.
61557         * modules/sysexits (Makefile.am): Likewise.
61558         * modules/time_r (Makefile.am): Likewise.
61559         * modules/timegm (Makefile.am): Likewise.
61560         * modules/timespec (Makefile.am): Likewise.
61561         * modules/tmpfile-safer (Makefile.am): Likewise.
61562         * modules/trim (Makefile.am): Likewise.
61563         * modules/unistd-safer (Makefile.am): Likewise.
61564         * modules/unlinkdir (Makefile.am): Likewise.
61565         * modules/unlocked-io (Makefile.am): Likewise.
61566         * modules/userspec (Makefile.am): Likewise.
61567         * modules/utime (Makefile.am): Likewise.
61568         * modules/utimecmp (Makefile.am): Likewise.
61569         * modules/utimens (Makefile.am): Likewise.
61570         * modules/vasnprintf (Makefile.am): Likewise.
61571         * modules/vasprintf (Makefile.am): Likewise.
61572         * modules/vsnprintf (Makefile.am): Likewise.
61573         * modules/xalloc (Makefile.am): Likewise.
61574         * modules/xgetcwd (Makefile.am): Likewise.
61575         * modules/xnanosleep (Makefile.am): Likewise.
61576         * modules/xreadlink (Makefile.am): Likewise.
61577         * modules/xstrtod (Makefile.am): Likewise.
61578         * modules/xstrtol (Makefile.am): Likewise.
61579         * modules/xstrtold (Makefile.am): Likewise.
61580         * modules/yesno (Makefile.am): Likewise.
61581         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61582
61583 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         * modules/error (Makefile.am): Distribute files through
61586         EXTRA_DIST, not lib_SOURCES.
61587
61588 2006-10-12  Eric Blake  <ebb9@byu.net>
61589
61590         * modules/error (Makefile.am): Distribute files in /lib.
61591         * modules/obstack (Makefile.am): Likewise.
61592
61593 2006-10-12  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/acl (Makefile.am): Distribute all files in lib/ through
61596         EXTRA_DIST.
61597         * modules/arcfour (Makefile.am): Likewise.
61598         * modules/arctwo (Makefile.am): Likewise.
61599         * modules/argmatch (Makefile.am): Likewise.
61600         * modules/argz (Makefile.am): Likewise.
61601         * modules/atexit (Makefile.am): Likewise.
61602         * modules/backupfile (Makefile.am): Likewise.
61603         * modules/c-strtod (Makefile.am): Likewise.
61604         * modules/c-strtold (Makefile.am): Likewise.
61605         * modules/calloc (Makefile.am): Likewise.
61606         * modules/canon-host (Makefile.am): Likewise.
61607         * modules/canonicalize (Makefile.am): Likewise.
61608         * modules/chdir-long (Makefile.am): Likewise.
61609         * modules/chdir-safer (Makefile.am): Likewise.
61610         * modules/check-version (Makefile.am): Likewise.
61611         * modules/chown (Makefile.am): Likewise.
61612         * modules/cloexec (Makefile.am): Likewise.
61613         * modules/close-stream (Makefile.am): Likewise.
61614         * modules/closeout (Makefile.am): Likewise.
61615         * modules/crc (Makefile.am): Likewise.
61616         * modules/cycle-check (Makefile.am): Likewise.
61617         * modules/des (Makefile.am): Likewise.
61618         * modules/dirfd (Makefile.am): Likewise.
61619         * modules/dirname (Makefile.am): Likewise.
61620         * modules/dup2 (Makefile.am): Likewise.
61621         * modules/euidaccess (Makefile.am): Likewise.
61622         * modules/exclude (Makefile.am): Likewise.
61623         * modules/exitfail (Makefile.am): Likewise.
61624         * modules/fcntl-safer (Makefile.am): Likewise.
61625         * modules/file-type (Makefile.am): Likewise.
61626         * modules/fileblocks (Makefile.am): Likewise.
61627         * modules/filemode (Makefile.am): Likewise.
61628         * modules/filenamecat (Makefile.am): Likewise.
61629         * modules/fnmatch (Makefile.am): Likewise.
61630         * modules/fopen-safer (Makefile.am): Likewise.
61631         * modules/fpending (Makefile.am): Likewise.
61632         * modules/fprintftime (Makefile.am): Likewise.
61633         * modules/free (Makefile.am): Likewise.
61634         * modules/fsusage (Makefile.am): Likewise.
61635         * modules/ftruncate (Makefile.am): Likewise.
61636         * modules/fts (Makefile.am): Likewise.
61637         * modules/gc (Makefile.am): Likewise.
61638         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61639         * modules/getaddrinfo (Makefile.am): Likewise.
61640         * modules/getcwd (Makefile.am): Likewise.
61641         * modules/getdelim (Makefile.am): Likewise.
61642         * modules/getdomainname (Makefile.am): Likewise.
61643         * modules/getgroups (Makefile.am): Likewise.
61644         * modules/gethostname (Makefile.am): Likewise.
61645         * modules/gethrxtime (Makefile.am): Likewise.
61646         * modules/getline (Makefile.am): Likewise.
61647         * modules/getloadavg (Makefile.am): Likewise.
61648         * modules/getlogin_r (Makefile.am): Likewise.
61649         * modules/getopt (Makefile.am): Likewise.
61650         * modules/getpass (Makefile.am): Likewise.
61651         * modules/getpass-gnu (Makefile.am): Likewise.
61652         * modules/getsubopt (Makefile.am): Likewise.
61653         * modules/gettime (Makefile.am): Likewise.
61654         * modules/gettimeofday (Makefile.am): Likewise.
61655         * modules/getugroups (Makefile.am): Likewise.
61656         * modules/getusershell (Makefile.am): Likewise.
61657         * modules/glob (Makefile.am): Likewise.
61658         * modules/group-member (Makefile.am): Likewise.
61659         * modules/hard-locale (Makefile.am): Likewise.
61660         * modules/hash (Makefile.am): Likewise.
61661         * modules/hmac-md5 (Makefile.am): Likewise.
61662         * modules/hmac-sha1 (Makefile.am): Likewise.
61663         * modules/human (Makefile.am): Likewise.
61664         * modules/idcache (Makefile.am): Likewise.
61665         * modules/imaxabs (Makefile.am): Likewise.
61666         * modules/imaxdiv (Makefile.am): Likewise.
61667         * modules/inet_ntop (Makefile.am): Likewise.
61668         * modules/inet_pton (Makefile.am): Likewise.
61669         * modules/inttostr (Makefile.am): Likewise.
61670         * modules/isapipe (Makefile.am): Likewise.
61671         * modules/lchown (Makefile.am): Likewise.
61672         * modules/long-options (Makefile.am): Likewise.
61673         * modules/lstat (Makefile.am): Likewise.
61674         * modules/malloc (Makefile.am): Likewise.
61675         * modules/mathl (Makefile.am): Likewise.
61676         * modules/mbchar (Makefile.am): Likewise.
61677         * modules/md2 (Makefile.am): Likewise.
61678         * modules/md4 (Makefile.am): Likewise.
61679         * modules/md5 (Makefile.am): Likewise.
61680         * modules/memcasecmp (Makefile.am): Likewise.
61681         * modules/memchr (Makefile.am): Likewise.
61682         * modules/memcmp (Makefile.am): Likewise.
61683         * modules/memcoll (Makefile.am): Likewise.
61684         * modules/memcpy (Makefile.am): Likewise.
61685         * modules/memmem (Makefile.am): Likewise.
61686         * modules/memmove (Makefile.am): Likewise.
61687         * modules/mempcpy (Makefile.am): Likewise.
61688         * modules/memrchr (Makefile.am): Likewise.
61689         * modules/memset (Makefile.am): Likewise.
61690         * modules/memxor (Makefile.am): Likewise.
61691         * modules/mkancesdirs (Makefile.am): Likewise.
61692         * modules/mkdir (Makefile.am): Likewise.
61693         * modules/mkdir-p (Makefile.am): Likewise.
61694         * modules/mkdtemp (Makefile.am): Likewise.
61695         * modules/mkstemp (Makefile.am): Likewise.
61696         * modules/mktime (Makefile.am): Likewise.
61697         * modules/modechange (Makefile.am): Likewise.
61698         * modules/mountlist (Makefile.am): Likewise.
61699         * modules/nanosleep (Makefile.am): Likewise.
61700         * modules/openat (Makefile.am): Likewise.
61701         * modules/pagealign_alloc (Makefile.am): Likewise.
61702         * modules/physmem (Makefile.am): Likewise.
61703         * modules/poll (Makefile.am): Likewise.
61704         * modules/posixtm (Makefile.am): Likewise.
61705         * modules/posixver (Makefile.am): Likewise.
61706         * modules/putenv (Makefile.am): Likewise.
61707         * modules/quote (Makefile.am): Likewise.
61708         * modules/quotearg (Makefile.am): Likewise.
61709         * modules/raise (Makefile.am): Likewise.
61710         * modules/read-file (Makefile.am): Likewise.
61711         * modules/readline (Makefile.am): Likewise.
61712         * modules/readlink (Makefile.am): Likewise.
61713         * modules/readtokens (Makefile.am): Likewise.
61714         * modules/readutmp (Makefile.am): Likewise.
61715         * modules/realloc (Makefile.am): Likewise.
61716         * modules/regex (Makefile.am): Likewise.
61717         * modules/rename (Makefile.am): Likewise.
61718         * modules/rename-dest-slash (Makefile.am): Likewise.
61719         * modules/rijndael (Makefile.am): Likewise.
61720         * modules/rmdir (Makefile.am): Likewise.
61721         * modules/rpmatch (Makefile.am): Likewise.
61722         * modules/safe-read (Makefile.am): Likewise.
61723         * modules/safe-write (Makefile.am): Likewise.
61724         * modules/same (Makefile.am): Likewise.
61725         * modules/save-cwd (Makefile.am): Likewise.
61726         * modules/savedir (Makefile.am): Likewise.
61727         * modules/setenv (Makefile.am): Likewise.
61728         * modules/settime (Makefile.am): Likewise.
61729         * modules/sha1 (Makefile.am): Likewise.
61730         * modules/sig2str (Makefile.am): Likewise.
61731         * modules/snprintf (Makefile.am): Likewise.
61732         * modules/stdlib-safer (Makefile.am): Likewise.
61733         * modules/stpcpy (Makefile.am): Likewise.
61734         * modules/stpncpy (Makefile.am): Likewise.
61735         * modules/strcase (Makefile.am): Likewise.
61736         * modules/strcasestr (Makefile.am): Likewise.
61737         * modules/strchrnul (Makefile.am): Likewise.
61738         * modules/strcspn (Makefile.am): Likewise.
61739         * modules/strdup (Makefile.am): Likewise.
61740         * modules/strerror (Makefile.am): Likewise.
61741         * modules/strftime (Makefile.am): Likewise.
61742         * modules/strndup (Makefile.am): Likewise.
61743         * modules/strnlen (Makefile.am): Likewise.
61744         * modules/strpbrk (Makefile.am): Likewise.
61745         * modules/strsep (Makefile.am): Likewise.
61746         * modules/strstr (Makefile.am): Likewise.
61747         * modules/strtod (Makefile.am): Likewise.
61748         * modules/strtoimax (Makefile.am): Likewise.
61749         * modules/strtok_r (Makefile.am): Likewise.
61750         * modules/strtol (Makefile.am): Likewise.
61751         * modules/strtoll (Makefile.am): Likewise.
61752         * modules/strtoul (Makefile.am): Likewise.
61753         * modules/strtoull (Makefile.am): Likewise.
61754         * modules/strtoumax (Makefile.am): Likewise.
61755         * modules/strverscmp (Makefile.am): Likewise.
61756         * modules/time_r (Makefile.am): Likewise.
61757         * modules/timegm (Makefile.am): Likewise.
61758         * modules/tmpfile-safer (Makefile.am): Likewise.
61759         * modules/unistd-safer (Makefile.am): Likewise.
61760         * modules/unlinkdir (Makefile.am): Likewise.
61761         * modules/userspec (Makefile.am): Likewise.
61762         * modules/utime (Makefile.am): Likewise.
61763         * modules/utimecmp (Makefile.am): Likewise.
61764         * modules/utimens (Makefile.am): Likewise.
61765         * modules/vasnprintf (Makefile.am): Likewise.
61766         * modules/vasprintf (Makefile.am): Likewise.
61767         * modules/vsnprintf (Makefile.am): Likewise.
61768         * modules/xalloc (Makefile.am): Likewise.
61769         * modules/xgetcwd (Makefile.am): Likewise.
61770         * modules/xnanosleep (Makefile.am): Likewise.
61771         * modules/xreadlink (Makefile.am): Likewise.
61772         * modules/xstrtod (Makefile.am): Likewise.
61773         * modules/xstrtol (Makefile.am): Likewise.
61774         * modules/xstrtold (Makefile.am): Likewise.
61775         * modules/yesno (Makefile.am): Likewise.
61776
61777 2006-10-12  Jim Meyering  <jim@meyering.net>
61778
61779         * m4/getloadavg.m4: Revert the change below.
61780
61781         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61782         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61783         fail with a symlink, which is what coreutils' ./bootstrap now
61784         creates by default.
61785
61786 2006-10-12  Bruno Haible  <bruno@clisp.org>
61787
61788         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61789         mingw.
61790         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61791         MSVC and mingw explicitly.
61792
61793 2006-10-11  Simon Josefsson  <jas@extundo.com>
61794             Bruno Haible  <bruno@clisp.org>
61795
61796         Add support for multiple gnulib-tool invocations in the scope of a
61797         single configure.ac file.
61798         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61799         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61800         with the same contents as the _LIBADD variable.
61801         (func_emit_initmacro_start, func_emit_initmacro_end,
61802         func_emit_initmacro_done): New functions.
61803         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61804         gl_LIBOBJS and gl_LTLIBOBJS.
61805
61806 2006-10-11  Bruno Haible  <bruno@clisp.org>
61807
61808         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61809         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61810         autoreconf. Instead, invoke autopoint explicitly but move back the
61811         *.m4 files from gnulib.
61812
61813 2006-10-11  Bruno Haible  <bruno@clisp.org>
61814
61815         * gnulib-tool (func_usage): Make module names after --create-testdir
61816         optional.
61817         (func_create_testdir): If no module was specified, use nearly all
61818         modules.
61819
61820 2006-10-12  Jim Meyering  <jim@meyering.net>
61821
61822         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61823         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61824         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61825         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61826         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61827         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61828         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61829         (fts_set_stat_required): New function.
61830         (fts_open): Defer the calls to fts_stat, if possible or requested.
61831         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61832         into fts_stat itself.
61833         (fts_read): Perform any required (deferred) fts_stat call.
61834         (fts_build): Likewise, for the directory we're about to open and read.
61835         In the readdir loop, carefully decide whether each entry will require
61836         an eventual call to fts_stat, using dirent.d_type info if available.
61837         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61838         a command line argument into this function.  Update all callers.
61839         Map a return value of FTS_DOT to FTS_D for a command line argument.
61840         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61841         Thanks to Miklos Szeredi for his tenacity and for the initial
61842         bug report about "find" failing on a FUSE-based file system.
61843
61844         * lib/fts.c (fts_open): Use consistent indentation.
61845
61846 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61849         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61850         reported by Jim Meyering.  All uses of cache variables renamed
61851         to match Autoconf's.
61852         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61853         the other one.
61854
61855         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61856         Fix misspelling in diagnostic.
61857
61858 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61859
61860         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61861         defined.  Problem reported by Matthew Woehlke.
61862
61863         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61864         Add support for Tandem NonStop R series.
61865         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61866         Use new macro.
61867
61868         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61869         (has_trailing_slash): Omit size arg; all callers changed.
61870         Omit 'inline', since it doesn't help performance and we'd
61871         need to configure it.
61872         Don't count //, ///, etc. as having a trailing slash.
61873         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61874         (rpl_rename_dest_slash): On failure, use rename's errno rather
61875         than (in some cases) an incorrect or junk errno.
61876         Simplify code by removing need to compute length; this does
61877         cause it to make two passes instead of one over the file name,
61878         but it's worth it.
61879
61880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61881         change, since Autoconf's version may no longer be appropriate now
61882         that we are using CVS Autoconf's version.  Add support for Tandem.
61883
61884 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61885             Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61888         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61889         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61890         gl_AC_TYPE_LONG_LONG.
61891
61892         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61893         instead of HAVE_LONG_LONG.
61894         * lib/printf-args.c (printf_fetchargs): Likewise.
61895         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61896         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61898         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61899         gl_AC_TYPE_LONG_LONG.
61900
61901 2006-10-11  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/longlong.m4: Add comments.
61904         * m4/ulonglong.m4: Likewise.
61905
61906 2006-10-10  Bruno Haible  <bruno@clisp.org>
61907
61908         Make it possible to #define stpcpy, strdup to aliases.
61909         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61910         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61911
61912 2006-10-10  Bruno Haible  <bruno@clisp.org>
61913
61914         Make it possible to #define gcd to an alias.
61915         * lib/gcd.c: Include config.h.
61916
61917 2006-10-10  Bruno Haible  <bruno@clisp.org>
61918
61919         Make it possible to #define c_isascii to an alias.
61920         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61921         defined. Undefine the macros before defining them, to avoid gcc
61922         warnings.
61923         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61924         define NO_C_CTYPE_MACROS early.
61925
61926 2006-10-10  Bruno Haible  <bruno@clisp.org>
61927
61928         Make it possible to #define set_program_name to an alias.
61929         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61930         ENABLE_RELOCATABLE early.
61931
61932 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61935         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61936         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61937         More generally, don't assume that 64-bit signed int is available
61938         if unsigned int is, and vice versa.
61939         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61940         unsigned symbols, not on their signed counterparts.
61941         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61942         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61943         (UINT64_C, UINTMAX_C):
61944         Likewise.
61945         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61946         unsigned counterparts.
61947         (Have_long_long, Unsigned): New macros.
61948         (Int): Renamed from INT.
61949         (strtoimax): Use the new macros.
61950         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61951         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61952         * modules/inttypes (inttypes.h): Substitute
61953         HAVE_UNSIGNED_LONG_LONG_INT.
61954         * modules/stdint (stdint.h): Likewise.
61955         (Files): Add m4/ulonglong.m4.
61956
61957 2006-10-10  Bruno Haible  <bruno@clisp.org>
61958
61959         Fix a gcc -Wshadow warning.
61960         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61961         to 'bucket'.
61962         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61963         gl_linked_indexof_from_to): Likewise.
61964         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61965         Likewise.
61966         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61967         Likewise.
61968         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61969         Reported by Eric Blake.
61970
61971 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61974         for NetBSD.  Problem reported by Bruno Haible.
61975
61976 2006-10-09  Jim Meyering  <jim@meyering.net>
61977
61978         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61979         Patch from Bruno Haible.
61980
61981 2006-10-09  Jim Meyering  <jim@meyering.net>
61982
61983         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61984         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61985         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61986
61987 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         Don't include <config.h> twice; this doesn't work in some cases,
61990         e.g., when config.h has "#define intmax_t long long int" and
61991         we include <config.h>, <inttypes.h>, <config.h> in that order.
61992         Problem reported by Matthew Woehlke in:
61993         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61994         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61995         * lib/fts-cycle.c: Don't include config.h.
61996         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61997         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61998         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61999         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62000         inttypes.h.
62001         * lib/xstrtoumax.c: Likewise.
62002         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62003         __strtol and the like, so that this module is more like its siblings.
62004         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62005         Remove; no longer needed now that we assume gnulib inttypes.h.
62006
62007 2006-10-08  Bruno Haible  <bruno@clisp.org>
62008
62009         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62010         option.
62011
62012 2006-10-07  Jim Meyering  <jim@meyering.net>
62013
62014         * modules/inttypes (inttypes.h): Revert what seems to have been
62015         an inadvertent part of today's change: use "|", not "/" in the
62016         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62017
62018 2006-10-07  Bruno Haible  <bruno@clisp.org>
62019
62020         * modules/sublist: New file.
62021
62022 2006-10-07  Bruno Haible  <bruno@clisp.org>
62023
62024         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62025         * modules/argz (argz.h): Likewise.
62026         * modules/arpa_inet (arpa/inet.h): Likewise.
62027         * modules/byteswap (byteswap.h): Likewise.
62028         * modules/configmake (configmake.h): Likewise.
62029         * modules/fcntl (fcntl.h): Likewise.
62030         * modules/fnmatch (fnmatch.h): Likewise.
62031         * modules/getopt (getopt.h): Likewise.
62032         * modules/glob (glob.h): Likewise.
62033         * modules/inttypes (inttypes.h): Likewise.
62034         * modules/netinet_in (netinet/in.h): Likewise.
62035         * modules/poll (poll.h): Likewise.
62036         * modules/stdbool (stdbool.h): Likewise.
62037         * modules/stdint (stdint.h): Likewise.
62038         * modules/sys_select (sys/select.h): Likewise.
62039         * modules/sys_socket (sys/socket.h): Likewise.
62040         * modules/sys_stat (sys/stat.h): Likewise.
62041         * modules/sysexits (sysexits.h): Likewise.
62042         * modules/unistd (unistd.h): Likewise.
62043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62044         Add a "DO NOT EDIT" comment to the generated file.
62045         (func_import): Likewise for gnulib-comp.m4.
62046
62047 2006-10-07  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/gl_sublist.h: New file.
62050         * lib/gl_sublist.c: New file.
62051
62052 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62055         name (relative to the original working directory) and the file
62056         name component (relative to the temporary working directory).  All
62057         callers changed.
62058         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62059         * lib/mkdir-p.c (make_dir_parents): Likewise.
62060         * lib/mkdir-p.h (make_dir_parents): Likewise.
62061
62062 2006-10-06  Eric Blake  <ebb9@byu.net>
62063
62064         Define several macros for use by the clean-temp module.
62065         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62067         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62068
62069         * lib/clean-temp.h (close_stream_temp): New declaration.
62070         * lib/clean-temp.c (includes): Pull in headers according to what
62071         other modules are in use.
62072         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62073
62074 2006-10-06  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62077         instead of fopen, fwriteerror.
62078
62079 2006-10-06  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62082         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62083         int.
62084         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62085         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62086         Return an error indicator.
62087         Suggested by Eric Blake.
62088
62089 2006-10-06  Bruno Haible  <bruno@clisp.org>
62090
62091         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62092         Reported by Eric Blake.
62093
62094 2006-10-06  Bruno Haible  <bruno@clisp.org>
62095
62096         * modules/closeout (Description): Mention stderr too.
62097
62098 2006-10-06  Bruno Haible  <bruno@clisp.org>
62099         and Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/closeout.c (close_stdout): Also close stderr.
62102         * lib/closeout.h: Update comment.
62103
62104 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62108         * lib/dirchownmod.c: Include lchown.h.
62109         * lib/lchown.c: Don't include files that lchown.h now includes.
62110         Don't declare chown, since lchown.h now does that.
62111         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62112         (lchown): Define to rpl_chown if lchown is declared but
62113         does not exist.  Declare using a prototype if lchown is not
62114         declared.  Add a copyright notice.
62115         * lib/mkstemp.h: Include <unistd.h>.
62116         * lib/openat.c: Include lchown.h.
62117
62118         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62119         we now test for that separately.
62120         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62121         rather than O_NOFOLLOW, when testing whether it's possible to
62122         avoid a race condition reliably.
62123         * lib/savewd.c (savewd_chdir): Likewise.
62124
62125         Remove macros that are no longer needed now that stdint.h is
62126         reliable.
62127         * lib/fsusage.c (UINTMAX_MAX): Remove.
62128         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62129         * lib/utimecmp.c (SIZE_MAX): Remove.
62130
62131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62132
62133         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62134         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62135         O_NOATIME works.
62136
62137 2006-10-05  Bruno Haible  <bruno@clisp.org>
62138
62139         * lib/gl_list.h (gl_sortedlist_search_from_to,
62140         gl_sortedlist_indexof_from_to): New declarations.
62141         (gl_list_implementation): New fields sortedlist_search_from_to,
62142         sortedlist_indexof_from_to.
62143         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62144         inline functions.
62145         * lib/gl_list.c (gl_sortedlist_search_from_to,
62146         gl_sortedlist_indexof_from_to): New functions.
62147         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62148         function.
62149         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62150         (gl_array_sortedlist_search_from_to): New function.
62151         (gl_array_list_implementation): Update.
62152         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62153         function.
62154         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62155         (gl_carray_sortedlist_search_from_to): New function.
62156         (gl_carray_list_implementation): Update.
62157         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62158         gl_linked_sortedlist_indexof_from_to): New functions.
62159         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62160         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62161         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62162         gl_tree_sortedlist_indexof_from_to): New functions.
62163         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62164         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62165         Update.
62166         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62167         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62168         Update.
62169
62170 2006-10-05  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62173         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62174         (struct gl_list_implementation): Add fields search_from_to,
62175         indexof_from_to. Remove fields search, indexof.
62176         (gl_list_search): Use the search_from_to method.
62177         (gl_list_search_from, gl_list_search_from_to): New functions.
62178         (gl_list_indexof): Use the indexof_from_to method.
62179         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62180         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62181         (gl_list_search_from, gl_list_search_from_to): New functions.
62182         (gl_list_indexof): Use the indexof_from_to method.
62183         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62184         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62185         gl_array_indexof. Add start_index, end_index arguments.
62186         (gl_array_search_from_to): Renamed from gl_array_search. Add
62187         start_index, end_index arguments.
62188         (gl_array_remove, gl_array_list_implementation): Update.
62189         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62190         gl_carray_indexof. Add start_index, end_index arguments.
62191         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62192         start_index, end_index arguments.
62193         (gl_carray_remove, gl_carray_list_implementation): Update.
62194         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62195         gl_linked_search. Add start_index, end_index arguments.
62196         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62197         start_index, end_index arguments.
62198         (gl_linked_remove): Update.
62199         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62200         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62201         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62202         field to 'size_t'.
62203         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62204         gl_tree_search. Add start_index, end_index arguments.
62205         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62206         start_index, end_index arguments.
62207         (gl_tree_remove): Update.
62208         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62209         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62210         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62211         function.
62212         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62213         gl_tree_search. Add start_index, end_index arguments.
62214         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62215         start_index, end_index arguments.
62216         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62217         Update.
62218         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62219
62220 2006-10-05  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62223
62224         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62225         fwriteerror_temp): New declarations.
62226         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62227         (descriptors): New variable.
62228         (cleanup): First, close the descriptors.
62229         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62230         fclose_temp, fwriteerror_temp): New functions.
62231
62232 2006-10-04  Jim Meyering  <jim@meyering.net>
62233
62234         * lib/fts.c (fts_open): Tiny comment change.
62235
62236 2006-10-04  Bruno Haible  <bruno@clisp.org>
62237
62238         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62239         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62240         gl_LOCK_BODY.
62241         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62242         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62243         gl_LOCK_EARLY_BODY.
62244         (gl_LOCK): Require gl_LOCK_BODY.
62245
62246 2006-10-04  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62249         (gl_oset_search_atleast): New declaration.
62250         (struct gl_oset_implementation): Add field 'search_atleast'.
62251         (gl_oset_search_atleast): New inline function.
62252         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62253         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62254         (gl_array_oset_implementation): Update.
62255         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62256         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62257         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62258
62259 2006-10-04  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62262
62263 2006-10-03  Bruno Haible  <bruno@clisp.org>
62264
62265         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62266         from gl_avltreehash_list_implementation.
62267
62268 2006-10-03  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/gl_oset.c (gl_oset_add): Fix return type.
62271
62272 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62273
62274         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62275
62276 2006-10-02  Eric Blake  <ebb9@byu.net>
62277
62278         * modules/strnlen (Depends-on): Add extensions.
62279
62280 2006-10-02  Eric Blake  <ebb9@byu.net>
62281
62282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62283         definition in 2.60+.
62284
62285 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62286
62287         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62288         checks.
62289
62290 2006-10-02  Bruno Haible  <bruno@clisp.org>
62291
62292         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62293         to the AUTOMAKE_OPTIONS.
62294         Reported by Jim Meyering.
62295
62296 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         Work around bug in Solaris 10 /proc file system:
62299         /proc/self/fd/NNN/.. isn't the parent directory of
62300         the directory whose file descriptor is NNN.  This needs to
62301         be worked around at run time, not compile time, since a
62302         program might be built on Solaris 8, where things work, and
62303         run on Solaris 10.
62304         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62305         to use the following interface instead:
62306         (OPENAT_BUFFER_SIZE): New macro.
62307         (openat_proc_name): New function.
62308         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62309         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62310         Likewise.
62311         * lib/openat-proc.c: New file.
62312         * modules/openat (Files): Add lib/openat-proc.c.
62313         (Depends-on): Add same-inode, stdbool.
62314         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62315
62316 2006-09-29  Bruno Haible  <bruno@clisp.org>
62317
62318         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62319         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62320         argument. Set stdout_closed before testing for ferror, not after.
62321         (fwriteerror, fwriteerror_no_ebadf): New functions.
62322
62323 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62324
62325         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62326
62327 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62328
62329         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62330         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62331
62332 2006-09-28  Jim Meyering  <jim@meyering.net>
62333
62334         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62335         Include <unistd.h>.
62336
62337 2006-09-28  Bruno Haible  <bruno@clisp.org>
62338
62339         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62340         * modules/linkedhash-list (Depends-on): Likewise.
62341         * modules/rbtreehash-list (Depends-on): Likewise.
62342
62343 2006-09-28  Bruno Haible  <bruno@clisp.org>
62344
62345         * lib/strndup.h: Simplify the redefinition of strndup.
62346         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62347         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62348
62349 2006-09-28  Bruno Haible  <bruno@clisp.org>
62350
62351         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62352         * lib/gl_linkedhash_list.c: Likewise.
62353         * lib/gl_rbtreehash_list.c: Likewise.
62354
62355 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62356
62357         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62358         getaddrinfo.
62359
62360         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62361         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62362         it causes <stdio_ext.h> to cause a compile-time error.
62363         Problem reported by Nelson H. F. Beebe.
62364         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62365         of HAVE_DECL___PENDING.
62366
62367         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62369         declaration.
62370
62371 2006-09-27  Jim Meyering  <jim@meyering.net>
62372
62373         This file could end up with a definition for a function
62374         named __strndup, rather than rpl_strndup on a system with
62375         incomplete weak_alias support.
62376         * lib/strndup.c (strndup): Rename from __strndup.
62377         Remove #defines that used to map __strndup to strndup.
62378         Don't use K&R prototypes.
62379         Remove LIBC-related code, since this file is not sync'd with glibc.
62380         * lib/strndup.h: Revamp, accordingly.
62381         * m4/strndup.m4: Modernize.
62382
62383 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62384
62385         * modules/savewd (Depends-on): Add 'raise'.
62386         * lib/savewd.c: Include <signal.h>, for 'raise'.
62387
62388 2006-09-26  Jim Meyering  <jim@meyering.net>
62389
62390         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62391         when we detect Darwin 8.7.0's acl_get_file bug.
62392         Rearrange to perform the new (below) run-test while $LIBS
62393         contains any acl-related library.  Set USE_ACL at the end.
62394         (gl_ACL_GET_FILE): New function.
62395
62396 2006-09-26  Eric Blake  <ebb9@byu.net>
62397
62398         * lib/verror.c: Include <config.h> unconditionally.
62399
62400 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62401
62402         * modules/clock-time (Maintainer): Add self.
62403         * modules/getlogin_r (Depends-on): Add extensions.
62404
62405 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62406
62407         * modules/clock-time: New module.
62408         * modules/nanosleep (Depends-on): Add clock-time.
62409         * modules/gethrxtime (Depends-on): Likewise.
62410         * modules/gettime (Depends-on): Likewise.
62411         * modules/settime (Depends-on): Likewise.
62412
62413         * modules/fts-lgpl: Depend on openat.
62414         * modules/mkancesdirs: Depend on savewd.
62415         * modules/mkdir-p: Likewise.
62416
62417 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62418
62419         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62420
62421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62422         `gl_have_arbitrary_file_name_length_limit' to
62423         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62424         actually works between configure runs.
62425
62426 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62427             Bruno Haible  <bruno@clisp.org>
62428
62429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62430
62431 2006-09-25  Jim Meyering  <jim@meyering.net>
62432
62433         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62434         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62435
62436 2006-09-25  Eric Blake  <ebb9@byu.net>
62437
62438         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62439         exec's in 2006-09-18 patch when shuffling fds.
62440
62441 2006-09-25  Bruno Haible  <bruno@clisp.org>
62442
62443         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62444         Reported by Jim Meyering.
62445
62446 2006-09-24  Jim Meyering  <jim@meyering.net>
62447
62448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62449         compare a pointer against a literal "0".  That caused failures with
62450         at least HP-UX's hpcc.
62451
62452 2006-09-22  Simon Josefsson  <jas@extundo.com>
62453
62454         * modules/gc-sha1:
62455         * modules/gc-md4:
62456         * modules/gc-hmac-sha1:
62457         * modules/gc-hmac-md5:
62458         * modules/gc-des:
62459         * modules/gc-arcfour: Distribute more files.
62460
62461 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62462
62463         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62464         (gl_linked_iterator_from_to): Initialize struct completely.
62465         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62466         (gl_tree_iterator_from_to): Likewise
62467         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62468         * lib/gl_array_list.c [lint] (gl_array_iterator)
62469         (gl_array_iterator_from_to): Likewise.
62470         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62471         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62472         (gl_carray_iterator_from_to): Likewise.
62473
62474         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62475         * lib/md4.c (md4_process_block): Remove unused variable.
62476         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62477         parentheses for clarity.
62478
62479 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62480
62481         * modules/bison-i18n (Depends-on): Add gettext.
62482
62483 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62484
62485         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62487         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62488         also add missing comma that caused broken test.
62489         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62490         stdlib.h, for `abort'.
62491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62492         variables.
62493         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62494         include unistd.h if present, for `rmdir'.
62495         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62496         variables.
62497         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62498         in the process include standard headers for prototypes.
62499         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62500         gets declared on GNU/Linux.
62501         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62502         unistd.h, for `rmdir'.
62503         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62504
62505         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62506         always true.
62507         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62508
62509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62510
62511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62512
62513         * gnulib-tool (func_version): Create output all at once.  This
62514         may help avoid triggering unnecessary SIGPIPEs, and at any
62515         rate it doesn't hurt.
62516
62517 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62518             Bruno Haible  <bruno@clisp.org>
62519
62520         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62521         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62522         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62523
62524         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62525         (gl_FUNC_VASPRINTF): Invoke it.
62526
62527 2006-09-22  Bruno Haible  <bruno@clisp.org>
62528
62529         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62530         getloadavg.c as first argument.
62531
62532 2006-09-22  Bruno Haible  <bruno@clisp.org>
62533
62534         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62535         at the beginning of the gl_INIT macro.
62536         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62537         gl_GETLOADAVG.
62538
62539 2006-09-22  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62542         module.
62543         Suggested by Ralf Wildenhues.
62544
62545 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         Import this patch from libc:
62548
62549         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62550
62551         * lib/regex_internal.c (re_string_reconstruct): Handle
62552         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62553         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62554         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62555         re_string_context_at.
62556
62557         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62558         now requires it.
62559         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62560         gl_REGEX now does it for us.
62561         (gl_REGEX): Add test taken from
62562         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62563
62564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62565         Check that large offsets work.  Modernize Autoconf usages.
62566         Prefer "yes" to mean a good thing rather than a bad.
62567         Don't put "#define mkstemp" in config.h, as this might interfere
62568         with standard system headers that "#define mkstemp mkstemp64".
62569
62570         * modules/mkstemp (Depends-on): Add extensions, so that
62571         mkstemp is visible on some platforms.
62572         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62573         (Include): Change to "mkstemp.h" from <stdlib.h>.
62574         (Files): Add mkstemp.h.
62575
62576         * lib/mkstemp.h: New file, since some standard headers
62577         #define mkstemp.
62578         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62579         Include "mkstemp.h".
62580         Make the _LIBC code resemble glibc original more,
62581         e.g., use K&R style.
62582         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62583         (mkstemp): Remove, since mkstemp.h does this for us.
62584         * lib/stdlib--.h: Include mkstemp.h.
62585
62586         Import this patch from libc:
62587
62588         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62589
62590         * lib/tempname.c (__gen_tempname): Change attempts_min
62591         into a macro.  Use preprocessor to decide how to initialize
62592         attempts [Coverity CID 67].
62593
62594 2006-09-20  Bruno Haible  <bruno@clisp.org>
62595
62596         * lib/mkdtemp.c: Import from libc.
62597         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62598                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62599                 attempts_min into a macro.  Use preprocessor to decide how to
62600                 initialize attempts [Coverity CID 67].
62601         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62602                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62603                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62604
62605 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62606
62607         * gnulib-tool (func_exit): New function, to allow to pass the
62608         exit status portably through the trap.  Use everywhere.
62609         (--help, --version): Signal a write error.
62610         (trap): catch SIGPIPE, for write errors.
62611         Exit at the end of the trap, with the correct exit status.
62612
62613 2006-09-19  Karl Berry  <karl@gnu.org>
62614
62615         * doc/gnulib.texi: note about the license texinfo files.
62616
62617 2006-09-19  Eric Blake  <ebb9@byu.net>
62618
62619         * gnulib-tool: Avoid space-tab.
62620
62621 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62624         that prevented coreutils 6.1 from building.  Problem reported
62625         by Petter Reinholdtsen.
62626
62627 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * gnulib-tool (avoidlist): Fix typo that broke options like
62630         --avoid=lock that are used by coreutils bootstrap.
62631
62632 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62633
62634         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62635         more systematically.
62636
62637 2006-09-18  Jim Meyering  <jim@meyering.net>
62638
62639         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62640
62641 2006-09-18  Bruno Haible  <bruno@clisp.org>
62642
62643         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62644
62645 2006-09-18  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62648         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62649         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62650         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62651         * m4/gettext.m4: Require autoconf >= 2.52.
62652         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62653         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62654         of gl_cv_header_inttypes_h.
62655
62656 2006-09-18  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/javaversion.c: Include configmake.h.
62659
62660 2006-09-18  Bruno Haible  <bruno@clisp.org>
62661
62662         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62663         avoid that the while loops be executed in a subshell.
62664
62665 2006-09-18  Bruno Haible  <bruno@clisp.org>
62666
62667         * MODULES.html.sh (func_module): Break long lines.
62668         Suggested by Bruce Korb <bkorb@gnu.org>.
62669
62670 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62671
62672         Speed up by a factor of 1.12.
62673         * gnulib-tool (nl): New variable.
62674         (func_import): Rewrite include directive extraction to only read each
62675         directive once.
62676
62677 2006-09-17  Bruno Haible  <bruno@clisp.org>
62678
62679         * modules/javaversion (Makefile.am): Remove DEFS setting.
62680         (Depends-on): Add configmake, for PKGDATADIR definition.
62681
62682 2006-09-17  Bruno Haible  <bruno@clisp.org>
62683
62684         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62685
62686 2006-09-17  Bruno Haible  <bruno@clisp.org>
62687
62688         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62689         (func_modules_transitive_closure, func_modules_add_dummy,
62690         func_modules_to_filelist, func_import, func_create_testdir,
62691         func_create_megatestdir, ...): Use it wherever possible.
62692         Suggested by Ralf Wildenhues.
62693
62694 2006-09-16  Karl Berry  <karl@gnu.org>
62695
62696         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62697         to avoid sectioning errors.
62698         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62699         [ifinfo]: blank line after @center-ed titles.
62700         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62701         Spell FSF address consistently with others.
62702         (These changes approved by rms.)
62703
62704 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62705
62706         Speed up by a factor of 1.61.
62707         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62708         already checked module names again.
62709
62710 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62711
62712         Speed up by a factor of 1.13.
62713         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62714         for new_files, and the input to func_add_or_update.
62715
62716 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62717
62718         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62719         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62720
62721 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         * modules/mkancesdirs (Depends-on): Add fcntl.
62724         * modules/savewd: New file.
62725         * MODULES.html.sh (File system functions): Add savewd.
62726
62727         * modules/configmake (Makefile.am): Add support for the
62728         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62729
62730 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * m4/savewd.m4: New file.
62733
62734 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62737         (dirchownmod): New arg FD.  All callers changed.
62738         Use FD rather than opening the directory ourself, as opening is
62739         now the caller's responsibility.
62740         * lib/dirchownmod.h: Likewise.
62741         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62742         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62743         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62744         (test_dir): Remove.
62745         (mkancesdirs): Return length of prefix of FILE that has already
62746         been made, or -2 if there is a child doing the work.  Redo
62747         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62748         ".", and treat ".." specially since it might stray back into
62749         already-created areas.  Use a subprocess if necessary.  New arg
62750         WD; all users changed.  MAKE_DIR function should now return 1
62751         if it creates a directory that is not readable.  Return -2 if
62752         a child process is spun off.
62753         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62754         Adjust signature to match code.
62755         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62756         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62757         all users changed.
62758         * lib/savewd.c, lib/savewd.h: New files.
62759
62760 2006-09-15  Jim Meyering  <jim@meyering.net>
62761
62762         * modules/rename-dest-slash: New module.
62763         * MODULES.html.sh (posix_compat): Add it here.
62764
62765         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62766
62767 2006-09-15  Jim Meyering  <jim@meyering.net>
62768
62769         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62770         file.
62771
62772         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62773
62774 2006-09-15  Jim Meyering  <jim@meyering.net>
62775
62776         * lib/rename-dest-slash.c (has_trailing_slash): Use
62777         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62778         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62779         test before testing whether SRC is a directory.
62780         Suggestions from Bruno Haible.
62781
62782         Avoid a warning about an unused variable.
62783         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62784         into the #ifdef block where it's used.
62785
62786         * lib/rename-dest-slash.c: New file.
62787
62788 2006-09-14  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/allocsa.c: Include <config.h> unconditionally.
62791         * lib/asnprintf.c: Likewise.
62792         * lib/asprintf.c: Likewise.
62793         * lib/c-strcasecmp.c: Likewise.
62794         * lib/c-strcasestr.c: Likewise.
62795         * lib/c-strncasecmp.c: Likewise.
62796         * lib/c-strstr.c: Likewise.
62797         * lib/classpath.c: Likewise.
62798         * lib/clean-temp.c: Likewise.
62799         * lib/concatpath.c: Likewise.
62800         * lib/copy-file.c: Likewise.
62801         * lib/csharpcomp.c: Likewise.
62802         * lib/csharpexec.c: Likewise.
62803         * lib/execute.c: Likewise.
62804         * lib/fatal-signal.c: Likewise.
62805         * lib/findprog.c: Likewise.
62806         * lib/fwriteerror.c: Likewise.
62807         * lib/gl_array_list.c: Likewise.
62808         * lib/gl_array_oset.c: Likewise.
62809         * lib/gl_avltree_list.c: Likewise.
62810         * lib/gl_avltree_oset.c: Likewise.
62811         * lib/gl_avltreehash_list.c: Likewise.
62812         * lib/gl_carray_list.c: Likewise.
62813         * lib/gl_linked_list.c: Likewise.
62814         * lib/gl_linkedhash_list.c: Likewise.
62815         * lib/gl_list.c: Likewise.
62816         * lib/gl_oset.c: Likewise.
62817         * lib/gl_rbtree_list.c: Likewise.
62818         * lib/gl_rbtree_oset.c: Likewise.
62819         * lib/gl_rbtreehash_list.c: Likewise.
62820         * lib/imaxabs.c: Likewise.
62821         * lib/imaxdiv.c: Likewise.
62822         * lib/javacomp.c: Likewise.
62823         * lib/javaexec.c: Likewise.
62824         * lib/javaversion.c: Likewise.
62825         * lib/linebreak.c: Likewise.
62826         * lib/localcharset.c: Likewise.
62827         * lib/lock.c: Likewise.
62828         * lib/mbchar.c: Likewise.
62829         * lib/mbswidth.c: Likewise.
62830         * lib/mkdtemp.c: Likewise.
62831         * lib/pipe.c: Likewise.
62832         * lib/printf-args.c: Likewise.
62833         * lib/printf-parse.c: Likewise.
62834         * lib/progname.c: Likewise.
62835         * lib/progreloc.c: Likewise.
62836         * lib/readlink.c: Likewise.
62837         * lib/sh-quote.c: Likewise.
62838         * lib/stpcpy.c: Likewise.
62839         * lib/stpncpy.c: Likewise.
62840         * lib/strcasecmp.c: Likewise.
62841         * lib/strcasestr.c: Likewise.
62842         * lib/strcspn.c: Likewise.
62843         * lib/striconv.c: Likewise.
62844         * lib/strncasecmp.c: Likewise.
62845         * lib/strnlen1.c: Likewise.
62846         * lib/strstr.c: Likewise.
62847         * lib/strtok_r.c: Likewise.
62848         * lib/tls.c: Likewise.
62849         * lib/tmpdir.c: Likewise.
62850         * lib/unicodeio.c: Likewise.
62851         * lib/unsetenv.c: Likewise.
62852         * lib/vasnprintf.c: Likewise.
62853         * lib/vasprintf.c: Likewise.
62854         * lib/wait-process.c: Likewise.
62855         * lib/xallocsa.c: Likewise.
62856         * lib/xsetenv.c: Likewise.
62857         * lib/xstriconv.c: Likewise.
62858
62859 2006-09-13  Simon Josefsson  <jas@extundo.com>
62860
62861         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62862         that internally, suggested by Ralf Wildenhues
62863         <Ralf.Wildenhues@gmx.de>.
62864
62865 2006-09-13  Simon Josefsson  <jas@extundo.com>
62866
62867         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62868         @LIBOBJS@.
62869         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62870
62871 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62874         longer worry about uses that don't define HAVE_CONFIG_H.
62875         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62876         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62877         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62878         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62879         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62880         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62881         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62882         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62883         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62884         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62885         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62886         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62887         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62888         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62889         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62890         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62891         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62892         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62893         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62894         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62895         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62896         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62897         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62898         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62899         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62900         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62901         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62902         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62903         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62904         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62905         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62906         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62907         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62908         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62909         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62910         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62911         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62912         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62913         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62914         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62915         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62916         Likewise.
62917
62918 2006-09-13  Eric Blake  <ebb9@byu.net>
62919
62920         * lib/getopt.c: Fix typo in last commit.
62921
62922 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62923
62924         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62925         dgettext.
62926
62927 2006-09-12  Jim Meyering  <jim@meyering.net>
62928
62929         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62930         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62931         Reported by Nelson H. F. Beebe.
62932
62933 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62934
62935         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62936         program_invocation_name and program_invocation_short_name are
62937         initialized.
62938         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62939         and program_invocation_short_name to argp.h, so they are visible
62940         to user programs.
62941         * lib/argp.h: Likewise
62942
62943 2006-09-10  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62946         m4/inttypes_h.m4, m4/uintmax_t.m4.
62947
62948 2006-09-10  Bruno Haible  <bruno@clisp.org>
62949
62950         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62951         gl_AC_TYPE_UINTMAX_T.
62952
62953 2006-09-10  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62956
62957 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62958
62959         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62960         convention.  Text proposed by Bruno Haible.
62961         (struct argp_option): Document the use of N_() wrappers.
62962
62963         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62964         '\v', and translate the two parts separately, instead of feeding
62965         the whole string to gettext.  This allows to exclude
62966         '\v' from the strings visible to the translator by writing doc
62967         strings as N_("..") "\v" N_("..").
62968
62969 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62970
62971         * config/srclist.txt: Undo latest change; the bug was fixed.
62972
62973 2006-09-09  Bruno Haible  <bruno@clisp.org>
62974
62975         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62976         assignments if building a library without libtool.
62977         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62978         in func_emit_lib_Makefile_am.
62979         (func_import): When building a static library libfoo.a, arrange to
62980         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62981         (func_create_testdir): Likewise.
62982         * modules/gc (configure.ac, Makefile.am): If building statically,
62983         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62984         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62985         * modules/striconv (configure.ac, Makefile.am): Likewise.
62986         Based on a suggestion by Ralf Wildenhues.
62987
62988 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62991         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62992         Also:
62993
62994         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62995         Add year_2050_test to catch glibc bug 2821
62996         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62997
62998         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62999         Prefer #ifdef to #if.
63000
63001         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63002         Return from 'main' instead of calling 'exit'.
63003
63004 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63007         returned the maximum time_t value rather than (time_t) -1.
63008         Problem originally reported by William Bardwell
63009         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63010
63011         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63012         Moved to here ...
63013         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63014         ... from here.
63015
63016 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63019         2821 is fixed.
63020
63021 2006-09-08  Jim Meyering  <jim@meyering.net>
63022
63023         Don't make generated files read-only.  That would bother too many
63024         people.  However, do retain the ability to work when targets are
63025         read-only: remove the destination and temporary files before writing
63026         them (when generated via sed or echo), or by using the -f option for
63027         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63028         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63029         * modules/byteswap, modules/configmake, modules/fcntl:
63030         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63031         * modules/localcharset, modules/netinet_in, modules/poll:
63032         * modules/stdbool, modules/stdint, modules/sys_select:
63033         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63034
63035 2006-09-08  Jim Meyering  <jim@meyering.net>
63036
63037         Avoid new build failure on FreeBSD 6.0.
63038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63039         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63040         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63041
63042 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63043
63044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63045
63046 2006-09-07  Jim Meyering  <jim@meyering.net>
63047
63048         Fix global typo in last change: use chmod u-w, not chmod u-x.
63049         Spotted by Paul Eggert and Bruce Korb.
63050         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63051         * modules/byteswap, modules/configmake, modules/fcntl:
63052         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63053         * modules/localcharset, modules/netinet_in, modules/poll:
63054         * modules/stdbool, modules/stdint, modules/sys_select:
63055         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63056
63057 2006-09-06  Jim Meyering  <jim@meyering.net>
63058
63059         Make generated files be read-only.
63060         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63061         Ensure that each generated file is now read-only.
63062         * modules/argz: Likewise.
63063         * modules/arpa_inet: Likewise.
63064         * modules/byteswap: Likewise.
63065         * modules/configmake: Likewise.
63066         * modules/fcntl: Likewise.
63067         * modules/fnmatch: Likewise.
63068         * modules/getopt: Likewise.
63069         * modules/glob: Likewise.
63070         * modules/inttypes: Likewise.
63071         * modules/netinet_in: Likewise.
63072         * modules/poll: Likewise.
63073         * modules/stdbool: Likewise.
63074         * modules/stdint: Likewise.
63075         * modules/sys_select: Likewise.
63076         * modules/sys_socket: Likewise.
63077         * modules/sys_stat: Likewise.
63078         * modules/sysexits: Likewise.
63079         * modules/localcharset: Same as above, but continue using temporary
63080         file named "t-$@" (why different?) rather than the "$@-t" used
63081         everywhere else.
63082
63083         * modules/sysexits (Makefile.am): Replace literal occurrences
63084         of "sysexit.h" more readable, and more consistent, "$@".
63085
63086 2006-09-06  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/striconv: New file.
63089         * modules/xstriconv: New file.
63090         * MODULES.html.sh (Internationalization functions): Add striconv,
63091         xstriconv.
63092
63093 2006-09-06  Bruno Haible  <bruno@clisp.org>
63094
63095         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63096         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63097         not using libtool correctly.
63098
63099 2006-09-06  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/striconv.h: New file.
63102         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63103         iconvstring.c.
63104         * lib/xstriconv.h: New file.
63105         * lib/xstriconv.c: New file.
63106
63107 2006-09-06  Bruno Haible  <bruno@clisp.org>
63108
63109         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63110         lib_..._LDFLAGS.
63111
63112 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63113
63114         * lib/argz_.h: Sync from Libtool.
63115
63116         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63117                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63118
63119         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63120
63121 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63122
63123         * modules/trim: New file.
63124
63125 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63126
63127         * lib/trim.h: New file.
63128         * lib/trim.c: New file.
63129
63130 2006-09-05  Bruno Haible  <bruno@clisp.org>
63131
63132         * MODULES.html.sh (String handling): Add trim.
63133
63134 2006-09-04  Karl Berry  <karl@gnu.org>
63135
63136         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63137         until next release.
63138
63139 2006-09-03  Bruno Haible  <bruno@clisp.org>
63140
63141         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63142         correctly.
63143
63144 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63147         not gl_GETLOADAVG.  Omit unneeded semicolons.
63148         Problems reported by Ralf Wildenhues in
63149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63150         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63151         at the end, which is the usual gnulib style.
63152
63153         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63154         of doing all the work ourselves.
63155         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63156         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63157
63158 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63161         Problem reported by Ralf Wildenhues in
63162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63163
63164         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63165         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63166
63167 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63170         yesterday's patch by changing test -n to test -z.
63171
63172 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63175         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63176         the former is now obsolescent.
63177
63178         * modules/chdir-long (Depends-on): Add fcntl.
63179
63180 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63181
63182         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63183         obsolescent, and programs should use gnulib instead.
63184         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63185         but with prefixes changed.
63186
63187 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63190         or stdbool.h, because they might not exist while configuring.
63191
63192         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63193         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63194         does that for us.
63195         (O_DIRECTORY): Remove.
63196
63197 2006-08-31  Eric Blake  <ebb9@byu.net>
63198
63199         * gnulib-tool: Don't let emacs change spaces to TAB.
63200
63201 2006-08-31  Bruno Haible  <bruno@clisp.org>
63202
63203         * gnulib-tool: When calling func_import more than once, do it in a
63204         subshell.
63205         Reported by Eric Blake <ebb9@byu.net>.
63206
63207 2006-08-31  Bruno Haible  <bruno@clisp.org>
63208
63209         * gnulib-tool (nl): Remove variable.
63210         (sed_transform_lib_file): Use more robust test for config-h module.
63211         (func_import): Fix typo in 2006-08-25 patch.
63212
63213 2006-08-31  Bruno Haible  <bruno@clisp.org>
63214
63215         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63216         specified, augment Makefile.am variables instead of assigning them.
63217
63218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         Work around a bug in both the Linux and SunOS 64-bit kernels:
63221         nanosleep mishandles sleeps for longer than 2**31 seconds.
63222         Problem reported by Frank v Waveren in
63223         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63225         Check for nanosleep bug.
63226         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63227
63228 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         Work around a bug in both the Linux and SunOS 64-bit kernels:
63231         nanosleep mishandles sleeps for longer than 2**31 seconds.
63232         Problem reported by Frank v Waveren in
63233         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63234         * lib/nanosleep.c (BILLION): New constant.
63235         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63236         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63237         implementation.
63238
63239 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * modules/nanosleep (Depends-on): Add gettime.
63242
63243 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63244         and Simon Josefsson  <jas@extundo.com>
63245         and Oskar Liljeblad  <oskar@osk.mine.nu>
63246
63247         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63248         * gnulib-tool (func_import): New license type 'unmodifiable license
63249         text'.
63250         * modules/fdl: Use it.  Longer description.
63251         * module/gpl, module/lgpl: New files.
63252
63253 2006-08-30  Jim Meyering  <jim@meyering.net>
63254
63255         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63256         shadowing the parameter.
63257
63258 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63259
63260         Sync from Libtool:
63261
63262         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63263
63264         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63265         sharing with gnulib.  Report by Eric Blake.
63266
63267 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * modules/isapipe: New file.
63270         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63271
63272 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63273
63274         * modules/configmake (Makefile.am): Add a comment, and omit
63275         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63276         by Bruno Haible.
63277
63278 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * m4/isapipe.m4: New file.
63281
63282 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * lib/isapipe.c, lib/isapipe.h: New files.
63285
63286 2006-08-29  Jim Meyering  <jim@meyering.net>
63287
63288         * modules/configmake (Makefile.am): Make configmake.h depend on
63289         Makefile.  Otherwise, a stale configmake.h could hang around.
63290
63291 2006-08-29  Eric Blake  <ebb9@byu.net>
63292
63293         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63294         resolution of upstream bug 3044.
63295
63296 2006-08-29  Bruno Haible  <bruno@clisp.org>
63297
63298         * modules/localcharset (Depends-on): Add configmake.
63299         (Makefile.am): Remove setting of LIBDIR through DEFS.
63300
63301 2006-08-29  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63304         defined.
63305
63306 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         * modules/fcntl: New file.
63309         * modules/chdir-safer (Depends-on): Add fcntl.
63310         * modules/fts: Likewise.
63311         * modules/mkdir-p: Likewise.
63312
63313         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63314         This undoes the most recent change, since we're now addressing the
63315         problem in a different way.
63316
63317         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63318         into output, since the output might be called Makefile.am even
63319         if $makefile_name is something different.
63320         (func_import): Use $makefile_am rather than
63321         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63322         empty.
63323
63324         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63325
63326 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63329         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63330         recent change to stdint.m4, since we're now addressing the problem in a
63331         different way.
63332
63333 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         * m4/fcntl_h.m4: New file.
63336
63337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * lib/fcntl_.h: New file.
63340         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63341         the fcntl module.
63342         * lib/dirchownmod.c: Likewise.
63343         * lib/fts.c: Likewise.
63344
63345         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63346         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63347         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63348         just before including <inttypes.h>, to avoid circular inclusion.
63349
63350 2006-08-28  Jim Meyering  <jim@meyering.net>
63351
63352         * doc/visibility.texi: Actually read and correct the grammar of the
63353         sentence affected by yesterday's change.
63354
63355 2006-08-28  Eric Blake  <ebb9@byu.net>
63356
63357         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63358         needs wrapper.
63359
63360 2006-08-28  Eric Blake  <ebb9@byu.net>
63361
63362         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63363
63364 2006-08-28  Eric Blake  <ebb9@byu.net>
63365
63366         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63367
63368 2006-08-28  Bruno Haible  <bruno@clisp.org>
63369
63370         * modules/c-strstr: New file, from GNU gettext.
63371         * MODULES.html.sh (String handling): Add c-strstr.
63372
63373 2006-08-28  Bruno Haible  <bruno@clisp.org>
63374
63375         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63376         macros.
63377         Reported by Eric Blake.
63378
63379 2006-08-28  Bruno Haible  <bruno@clisp.org>
63380
63381         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63382         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63383         * lib/vasprintf.c: Include errno.h, limits.h.
63384         (EOVERFLOW): New fallback definition.
63385         (vasprintf): Test here whether the string length is > INT_MAX.
63386         * lib/vsnprintf.c: Include errno.h, limits.h.
63387         (EOVERFLOW): New fallback definition.
63388         (vsnprintf): Fix bug when generated string was too long for the buffer.
63389         Test here whether the string length is > INT_MAX.
63390
63391 2006-08-28  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/inttypes_.h (SCNX*): Remove definitions.
63394         Reported by Eric Blake.
63395
63396 2006-08-28  Bruno Haible  <bruno@clisp.org>
63397
63398         * lib/c-strstr.h: New file, from GNU gettext.
63399         * lib/c-strstr.c: New file, from GNU gettext.
63400
63401 2006-08-28  Bruno Haible  <bruno@clisp.org>
63402
63403         * gnulib-tool: Reorder some statements.
63404
63405 2006-08-28  Bruno Haible  <bruno@clisp.org>
63406
63407         * gnulib-tool: New option --makefile-name.
63408         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63409         $makefile_name.
63410         (func_import): Write $makefile_name to the cache file, and read it from
63411         there unless explicitly specified. Use $makefile_name as file name
63412         instead of Makefile.am. Adjust the recommendations accordingly.
63413
63414 2006-08-28  Bruno Haible  <bruno@clisp.org>
63415
63416         * gnulib-tool (func_verify_module): Check against misapplying patch.
63417
63418 2006-08-28  Bruno Haible  <bruno@clisp.org>
63419
63420         * gnulib-tool (func_relativize, func_relconcat): New functions.
63421         Give an error if --local-dir is given with --update.
63422         Remove trailing slashes from $local_gnulib_dir.
63423         (func_import): Store the relativized $local_gnulib_dir in
63424         gnulib-cache.m4, and read it from there if not specified explicitly.
63425
63426 2006-08-28  Bruno Haible  <bruno@clisp.org>
63427
63428         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63429         is the current directory. Respect also $local_gnulib_dir.
63430
63431 2006-08-28  Bruno Haible  <bruno@clisp.org>
63432             Simon Josefsson  <jas@extundo.com>
63433
63434         BeOS portability.
63435         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63436
63437 2006-08-27  Jim Meyering  <jim@meyering.net>
63438
63439         * doc/visibility.texi: Remove duplicate word: "pointer".
63440
63441 2006-08-26  Bruno Haible  <bruno@clisp.org>
63442
63443         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63444         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63445         (Makefile.am): Create inttypes.h from inttypes_.h.
63446         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63447
63448         * modules/imaxabs: New file.
63449
63450         * modules/imaxdiv: New file.
63451
63452 2006-08-26  Bruno Haible  <bruno@clisp.org>
63453
63454         * m4/inttypes.m4: New file.
63455         * m4/_inttypes_h.m4: Remove file.
63456         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63457         PRI_MACROS_BROKEN.
63458         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63459
63460         * m4/imaxabs.m4: New file.
63461
63462         * m4/imaxdiv.m4: New file.
63463
63464 2006-08-26  Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/inttypes_.h: New file.
63467         * lib/inttypes.h: Remove file.
63468         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63469
63470         * lib/imaxabs.c: New file.
63471
63472         * lib/imaxdiv.c: New file.
63473
63474 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63475
63476         New config-h module, so that "make" output needn't be cluttered
63477         by -DHAVE_CONFIG_H.
63478         * MODULES.html.sh (Support for building libraries and executables):
63479         Add config-h.
63480         * modules/config-h: New file.
63481         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63482         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63483         the config-h module is used.
63484
63485         New configmake module, so that "make" output needn't be cluttered
63486         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63487         * MODULES.html.sh (Support for building libraries and executables):
63488         Add configmake.
63489         * modules/configmake: New file.
63490
63491 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         * m4/config-h.m4: New file.
63494
63495 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63496
63497         * config/srclist.txt: Add elisp-comp.
63498
63499 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         * MODULES.html.sh (Support for building libraries and executables):
63502         Add elisp-comp.
63503         * build-aux/elisp-comp: New file.
63504         * modules/elisp-comp: New file.
63505
63506 2006-08-24  Bruno Haible  <bruno@clisp.org>
63507
63508         * gnulib-tool (func_create_testdir): Use non-default values of
63509         sourcebase and m4base.
63510
63511 2006-08-24  Bruno Haible  <bruno@clisp.org>
63512
63513         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63514         HTML structure.
63515
63516 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63517
63518         * modules/openat (Depends-on): Add lchown.
63519
63520 2006-08-23  Bruno Haible  <bruno@clisp.org>
63521
63522         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63523         of gl_LOCK_EARLY instead of gl_LOCK.
63524
63525 2006-08-23  Bruno Haible  <bruno@clisp.org>
63526
63527         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63528         on OSF/1 to no.
63529         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63530
63531 2006-08-23  Bruno Haible  <bruno@clisp.org>
63532
63533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63534         as unusable.
63535
63536         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63537         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63538         (gl_LOCK): New macro.
63539
63540 2006-08-22  Simon Josefsson  <jas@extundo.com>
63541
63542         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63543         to md5 module.
63544
63545 2006-08-22  Simon Josefsson  <jas@extundo.com>
63546
63547         * MODULES.html.sh: Add "Support for maintaining and release
63548         projects".
63549
63550         * build-aux/gnupload: New file, from coreutils.
63551
63552 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         Avoid the need for AC_LIBSOURCES in m4 macros.
63555         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63556         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63557         * modules/check-version (EXTRA_DIST): Add check-version.h.
63558         * modules/crc (EXTRA_DIST): Add crc.h.
63559         * modules/des (EXTRA_DIST): Add des.h.
63560         * modules/gc (EXTRA_DIST): Add gc.h.
63561         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63562         * modules/getline (EXTRA_DIST): Add getline.h.
63563         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63564         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63565         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63566         * modules/md2 (EXTRA_DIST): Add md2.h.
63567         * modules/md4 (EXTRA_DIST): Add md4.h.
63568         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63569         * modules/read-file (EXTRA_DIST): Add read-file.h.
63570         * modules/readline (EXTRA_DIST): Add readline.h.
63571         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63572         rijndael-api-fst.h.
63573
63574 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63575
63576         * m4/rijndael.m4 (gl_ARCFOUR):
63577         * m4/arctwo.m4 (gl_ARCTWO):
63578         * m4/check-version.m4 (gl_CHECK_VERSION):
63579         * m4/crc.m4 (gl_CRC):
63580         * m4/des.m4 (gl_DES):
63581         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63582         * m4/gc.m4 (gl_GC):
63583         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63584         * m4/getline.m4 (gl_FUNC_GETLINE):
63585         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63586         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63587         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63588         * m4/md2.m4 (gl_MD2):
63589         * m4/md4.m4 (gl_MD4):
63590         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63591         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63592         * m4/readline.m4 (gl_FUNC_READLINE):
63593         * m4/rijndael.m4 (gl_RIJNDAEL):
63594         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63595         to get the necessary .h files and whatnot.
63596
63597 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63598
63599         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63600         gnulib rather than the other way around.
63601         * config/srclistvars.sh (COREUTILS): Remove.
63602
63603 2006-08-22  Jim Meyering  <jim@meyering.net>
63604
63605         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63606
63607         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63608
63609 2006-08-22  Eric Blake  <ebb9@byu.net>
63610
63611         * modules/regexprops-generic: New file.
63612         * MODULES.html.sh (Support for building documentation): List it.
63613
63614 2006-08-22  Eric Blake  <ebb9@byu.net>
63615
63616         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63617         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63618         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63619         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63620
63621 2006-08-22  Bruno Haible  <bruno@clisp.org>
63622
63623         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63624         and lib_LTLIBRARIES like the other lib_* variables.
63625
63626 2006-08-22  Bruno Haible  <bruno@clisp.org>
63627
63628         * build-aux/x-to-1.in: New file, from GNU gettext.
63629
63630 2006-08-22  Bruno Haible  <bruno@clisp.org>
63631
63632         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63633         <utmpx.h> exists.
63634
63635 2006-08-22  Bruno Haible  <bruno@clisp.org>
63636
63637         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63638         <utmpx.h> exists.
63639
63640 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         BeOS portability.
63643         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63644         exist.
63645         Problem reported by Bruno Haible.
63646
63647 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         Avoid the need for AC_LIBSOURCES in m4 macros.
63650         * modules/acl (EXTRA_DIST): Add acl.h.
63651         * modules/argmatch (Files): Add m4/argmatch.m4.
63652         (configure.ac): Add gl_ARGMATCH.
63653         (EXTRA_DIST): Renamed from lib_SOURCES, for
63654         consistency with the other modules.  Remove argmatch.c.
63655         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63656         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63657         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63658         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63659         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63660         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63661         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63662         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63663         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63664         * modules/closeout (EXTRA_DIST): Add closeout.h.
63665         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63666         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63667         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63668         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63669         dirname.h; remove basename.c and stripslash.c.
63670         * modules/exclude (EXTRA_DIST): Add exclude.h.
63671         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63672         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63673         * modules/file-type (EXTRA_DIST): Add file-type.h.
63674         * modules/filemode (EXTRA_DIST): Add filemode.h.
63675         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63676         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63677         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63678         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63679         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63680         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63681         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63682         * modules/getdate (EXTRA_DIST): Add getdate.c.
63683         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63684         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63685         * modules/getpass (EXTRA_DIST): Add getpass.h.
63686         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63687         * modules/group-member (EXTRA_DIST): Add group-member.h.
63688         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63689         * modules/hash (EXTRA_DIST): Add hash.h.
63690         * modules/human (EXTRA_DIST): Add human.h.
63691         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63692         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63693         * modules/lchown (EXTRA_DIST): Add lchown.h.
63694         * modules/long-options (EXTRA_DIST): Add long-options.h.
63695         * modules/lstat (EXTRA_DIST): Add lstat.h.
63696         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63697         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63698         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63699         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63700         * modules/memxor (EXTRA_DIST): Add memxor.h.
63701         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63702         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63703         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63704         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63705         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63706         * modules/physmem (EXTRA_DIST): Add physmem.h.
63707         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63708         * modules/posixver (EXTRA_DIST): Add posixver.h.
63709         * modules/quote (EXTRA_DIST): Add quote.h.
63710         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63711         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63712         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63713         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63714         regex_internal.h regexec.c.
63715         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63716         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63717         * modules/same (EXTRA_DIST): Add same.h.
63718         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63719         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63720         * modules/savedir (EXTRA_DIST): Add savedir.h.
63721         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63722         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63723         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63724         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63725         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63726         * modules/strdup (EXTRA_DIST): Add strdup.h.
63727         * modules/strftime (EXTRA_DIST): Add strftime.h.
63728         * modules/strndup (EXTRA_DIST): Add strndup.h.
63729         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63730         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63731         * modules/time_r (EXTRA_DIST): Add time_r.h.
63732         * modules/timespec (EXTRA_DIST): Add timespec.h.
63733         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63734         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63735         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63736         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63737         * modules/userspec (EXTRA_DIST): Add userspec.h.
63738         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63739         * modules/utimens (EXTRA_DIST): Add utimens.h.
63740         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63741         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63742         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63743         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63744         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63745         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63746         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63747         * modules/yesno (EXTRA_DIST): Add yesno.h.
63748
63749 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63752
63753         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63754         * m4/dev-ino.m4, same-inode.m4: Remove.
63755
63756         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63757         * m4/acl.m4 (AC_FUNC_ACL):
63758         * m4/backupfile.m4 (gl_BACKUPFILE):
63759         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63760         * m4/canon-host.m4 (gl_CANON_HOST):
63761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63763         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63764         * m4/cloexec.m4 (gl_CLOEXEC):
63765         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63766         * m4/closeout.m4 (gl_CLOSEOUT):
63767         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63768         * m4/dirname.m4 (gl_DIRNAME):
63769         * m4/exclude.m4 (gl_EXCLUDE):
63770         * m4/exitfail.m4 (gl_EXITFAIL):
63771         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63772         * m4/file-type.m4 (gl_FILE_TYPE):
63773         * m4/filemode.m4 (gl_FILEMODE):
63774         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63775         * m4/fpending.m4 (gl_FUNC_FPENDING):
63776         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63777         * m4/fts.m4 (gl_FUNC_FTS):
63778         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63779         * m4/getdate.m4 (gl_GETDATE):
63780         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63781         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63782         * m4/getpass.m4 (gl_FUNC_GETPASS):
63783         * m4/gettime.m4 (gl_GETTIME):
63784         * m4/getugroups.m4 (gl_GETUGROUPS):
63785         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63786         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63787         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63788         * m4/hash.m4 (gl_HASH):
63789         * m4/idcache.m4 (gl_IDCACHE):
63790         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63791         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63792         * m4/long-options.m4 (gl_LONG_OPTIONS):
63793         * m4/lstat.m4 (gl_FUNC_LSTAT):
63794         * m4/md5.m4 (gl_MD5):
63795         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63796         * m4/memcoll.m4 (gl_MEMCOLL):
63797         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63798         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63799         * m4/memxor.m4 (gl_MEMXOR):
63800         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63801         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63802         * m4/modechange.m4 (gl_MODECHANGE):
63803         * m4/mountlist.m4 (gl_MOUNTLIST):
63804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63805         * m4/openat.m4 (gl_FUNC_OPENAT):
63806         * m4/pathmax.m4 (gl_PATHMAX):
63807         * m4/physmem.m4 (gl_PHYSMEM):
63808         * m4/posixtm.m4 (gl_POSIXTM):
63809         * m4/posixver.m4 (gl_POSIXVER):
63810         * m4/quote.m4 (gl_QUOTE):
63811         * m4/quotearg.m4 (gl_QUOTEARG):
63812         * m4/readtokens.m4 (gl_READTOKENS):
63813         * m4/readutmp.m4 (gl_READUTMP):
63814         * m4/regex.m4 (gl_REGEX):
63815         * m4/safe-read.m4 (gl_SAFE_READ):
63816         * m4/safe-write.m4 (gl_SAFE_WRITE):
63817         * m4/same.m4 (gl_SAME):
63818         * m4/save-cwd.m4 (gl_SAVE_CWD):
63819         * m4/savedir.m4 (gl_SAVEDIR):
63820         * m4/settime.m4 (gl_SETTIME):
63821         * m4/sha1.m4 (gl_SHA1):
63822         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63823         * m4/stat-macros.m4 (gl_STAT_MACROS):
63824         * m4/stat-time.m4 (gl_STAT_TIME):
63825         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63826         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63827         * m4/strdup.m4 (gl_FUNC_STRDUP):
63828         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63829         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63830         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63831         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63832         * m4/time_r.m4 (gl_TIME_R):
63833         * m4/timespec.m4 (gl_TIMESPEC):
63834         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63835         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63836         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63837         * m4/userspec.m4 (gl_USERSPEC):
63838         * m4/utimecmp.m4 (gl_UTIMECMP):
63839         * m4/utimens.m4 (gl_UTIMENS):
63840         * m4/xalloc.m4 (gl_XALLOC):
63841         * m4/xgetcwd.m4 (gl_XGETCWD):
63842         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63843         * m4/xreadlink.m4 (gl_XREADLINK):
63844         * m4/xstrtod.m4 (gl_XSTRTOD):
63845         * m4/yesno.m4 (gl_YESNO):
63846         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63847         to get the necessary .h files and whatnot.
63848
63849 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63850             Bruno Haible  <bruno@clisp.org>
63851
63852         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63853         /bin/sh understanding of '!' conditional negation.
63854
63855 2006-08-21  Jim Meyering  <jim@meyering.net>
63856
63857         * modules/openat (Depends-on): Really alphabetize.
63858
63859         * modules/acl (Depends-on): Add error and quote.
63860
63861         * check-module (find_included_lib_files): Add at-func.c to the
63862         ok-to-include-more-than-once white list.
63863
63864         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63865
63866 2006-08-21  Bruno Haible  <bruno@clisp.org>
63867
63868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63869         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63870         Reported by Martin Lambers <marlam@marlam.de>.
63871
63872 2006-08-21  Bruno Haible  <bruno@clisp.org>
63873
63874         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63875         specify an installation location, don't emit a noinst_LIBRARIES or
63876         noinst_LTLIBRARIES assignment.
63877
63878 2006-08-21  Bruno Haible  <bruno@clisp.org>
63879
63880         BeOS portability.
63881         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63882         BeOS has mbrtowc() but no <wctype.h>.
63883
63884 2006-08-21  Bruno Haible  <bruno@clisp.org>
63885
63886         BeOS portability.
63887         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63888         exist.
63889
63890 2006-08-21  Bruno Haible  <bruno@clisp.org>
63891
63892         BeOS portability.
63893         * lib/mbchar.h: Include <wctype.h> only if it exists.
63894
63895 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63896
63897         Remove files that are no longer needed by their respective modules.
63898         * m4/obstack.m4: Remove.
63899         * m4/strerror_r.m4: Remove.
63900         * m4/uint32_t.m4: Remove.
63901         * m4/uintptr_t.m4: Remove.
63902         * m4/ullong_max.m4: Remove.
63903         * m4/xstrtoimax.m4: Remove.
63904         * m4/xstrtoumax.m4: Remove.
63905
63906         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63907         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63908         dependencies now capture this.
63909
63910         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63911         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63912         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63913         * m4/human.m4 (gl_HUMAN): Likewise.
63914         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63915         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63916
63917         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63918
63919         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63920         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63921         stdint.
63922         * m4/human.m4 (gl_HUMAN): Likewise.
63923         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63924         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63925         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63926         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63927         * m4/xstrtol (gl_XSTRTOL): Likewise.
63928
63929         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63930         AC_TYPE_LONG_LONG_INT.
63931         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63932         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63933         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63934         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63935
63936         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63937         on stdbool.
63938
63939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63940         (gl_PREREQ_XSTRTOUL): Remove.
63941
63942         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63943
63944         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63945         mode.
63946
63947 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         Add and change modules to make it easier for coreutils to use
63950         gnulib-tool.
63951         * modules/backupfile (Files): Remove m4/d-ino.m4.
63952         (Depends-on): Add d-ino.
63953         * modules/cycle-check (Depends-on): Add stdint.
63954         (lib_SOURCES): Add cycle-check.h.
63955         * modules/d-ino: New module.
63956         * modules/d-type: New module.
63957         * modules/error (Files): Remove m4/strerror_r.m4.
63958         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63959         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63960         m4/inttypes_h.m4, m4/uintmax_t.m4.
63961         (Depends-on): Add stdint.
63962         (lib_SOURCES): Add fsusage.h.
63963         * modules/getcwd (Files): Remove d-ino.m4.
63964         (Depends-on): Add d-ino.
63965         * modules/getndelim2 (Depends-on): Add stdint.
63966         * modules/glob (Files): Remove m4/d-type.m4.
63967         (Depends-on): Add d-type.
63968         * modules/host-os: New module.
63969         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63970         m4/inttypes_h.m4, m4/uintmax_t.m4.
63971         * Depends-on: Add stdint.
63972         (lib_SOURCES): Add human.h.
63973         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63974         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63975         m4/uintmax_t.m4, m4/ulonglong.m4.
63976         (Depends-on): Add stdint.
63977         (EXTRA_DIST): Add inttostr.h.
63978         * modules/lchmod: New module.
63979         * modules/link-follow: New module.
63980         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63981         (Depends-on): Add lchmod.
63982         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63983         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63984         (Depends-on): Add stdint.
63985         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63986         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63987         (Depends-on): Add stdint.
63988         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63989         * modules/perl: New module.
63990         * modules/regex (Depends-on): Add stdint.
63991         * modules/rmdir-errno: New module.
63992         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63993         m4/intmax_t.m4.
63994         (Depends-on): Add stdint.
63995         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63996         m4/uintmax_t.m4.
63997         (Depends-on): Add stdint.
63998         * modules/unlink-busy: New module.
63999         * modules/utimecmp (Depends-on): Add stdint.
64000         * modules/uptime: New module.
64001         * modules/winsz-ioctl: New module.
64002         * modules/winsz-termios: New module.
64003         * modules/xnanosleep (Depends-on): Add nanosleep.
64004         * modules/ullong_max: Remove.
64005         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64006         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64007         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64008         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64009         (Depends-on): Add inttypes.
64010         (lib_SOURCES): Add xstrtol.h.
64011         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64012         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64013         * MODULES.html.sh: Move 'assert' into the assert section.
64014         Move 'dummy' into the linking section.
64015         Remove ullong_max.
64016         Add section for compatibility checks for POSIX:2001 functions,
64017         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64018         winsz-ioctl, and winsz-termios into it.
64019         Add lchmod.
64020         Add top-level Misc section and put host-os, perl, and uptime
64021         into it.
64022
64023 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64026         now assume the stdint module.  Do not include inttypes.h.
64027         * lib/fsusage.h: Likewise.
64028         * lib/getndelim2.c: Likewise.
64029         * lib/human.h: Likewise.
64030         * lib/inttostr.h: Likewise.
64031         * lib/obstack.c: Likewise.
64032         * lib/regex_internal.h: Likewise.
64033         * lib/tempname.c: Likewise.
64034         * lib/utimecmp.c: Likewise.
64035         * lib/xstrtol.h: Likewise.
64036
64037         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64038
64039         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64040         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64041         * lib/xtime.h: Likewise.
64042
64043 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * modules/openat (Files): Add lib/fchmodat.c.
64046         Fixes problem reported by Jay Youngman.
64047
64048 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64051         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64052
64053 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64054             Bruno Haible  <bruno@clisp.org>
64055
64056         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64057         and is a script that invokes bison. Tighten the code. Add comments.
64058
64059 2006-08-18  Jim Meyering  <jim@meyering.net>
64060
64061         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64062         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64063         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64064         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64065
64066 2006-08-18  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/bison-i18n: New file.
64069         * MODULES.html.sh (Internationalization functions): Add it.
64070
64071 2006-08-18  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64074         sys/statvfs.h. When getmntinfo was found, check its declaration and
64075         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64076
64077 2006-08-18  Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/bison-i18n.m4: New file, from bison.
64080
64081 2006-08-18  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64084         (ME_DUMMY): Treat "kernfs" as a dummy.
64085         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64086
64087 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         Update from coreutils.
64090
64091         2006-08-15  Jim Meyering  <jim@meyering.net>
64092
64093         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64094
64095         2006-01-17  Jim Meyering  <jim@meyering.net>
64096
64097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64098
64099         2006-01-11  Jim Meyering  <jim@meyering.net>
64100
64101         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64102         Check for the lchmod function.
64103
64104 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64105
64106         Update from coreutils.
64107
64108         * lib/__fpending.h: Add copyright notice.
64109         * lib/fprintftime.h: Likewise.
64110         * lib/savedir.c: Use (C) in copyright notice.
64111         * lib/savedir.h: Likewise.
64112
64113         2006-08-15  Jim Meyering  <jim@meyering.net>
64114
64115         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64116         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64117         in support of the EXPECTED_ERRNO macro.
64118         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64119         definitions.  Instead, define the appropriate symbols and include
64120         "at-func.c".
64121         * lib/mkdirat.c (mkdirat): Likewise.
64122         * lib/fchmodat.c (fchmodat): Likewise.
64123         (ENOSYS): Remove definition.
64124         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64125         it.  Don't include "unistd--.h" -- it wasn't ever used.
64126
64127         2006-01-17  Jim Meyering  <jim@meyering.net>
64128
64129         Rewrite fts.c not to change the current working directory,
64130         by using openat, fstatat, fdopendir, etc..
64131
64132         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64133         (HAVE_OPENAT_SUPPORT): Define.
64134         [_LIBC] (fchdir): Don't undef or define; no longer used.
64135         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64136         Now, this `function' always succeeds, and consumes its file descriptor
64137         parameter -- so callers must not close such FDs.  Update callers.
64138         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64139         (diropen): Add parameter, SP.  Adjust all callers.
64140         Implement using diropen_fd, rather than open.
64141         (fts_open): Initialize new member, fts_cwd_fd.
64142         Remove fts_rft-setting code.
64143         (fts_close): Close fts_cwd_fd, if necessary.
64144         (__opendir2): Define in terms of opendir or opendirat,
64145         depending on whether the FST_NOCHDIR flag is set.
64146         (fts_build): Since fts_safe_changedir consumes its FD, and since
64147         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64148         and close the dup'd file descriptor upon failure.
64149         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64150         (fts_safe_changedir): Tweak semantics to reflect that this function
64151         now calls cwd_advance_fd and hence consumes its FD argument.
64152         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64153         [struct FTS] (fts_rft): Remove now-unused member.
64154         [struct FTS] (fts_cycle.state): Improve comment.
64155
64156         * lib/openat.c (openat_needs_fchdir): New function.
64157         * lib/openat.h (openat_needs_fchdir): Declare it.
64158
64159 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64162         Problem and fix reported by Pádraig Brady in
64163         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64164
64165 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64168
64169 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * lib/memcoll.c (memcoll): Optimize for the common case where the
64172         arguments are bytewise equal.
64173
64174 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * doc/regexprops-generic.texi: Add a copyright notice.
64177
64178 2006-08-15  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/tmpdir (License): Change to LGPL.
64181
64182 2006-08-15  Bruno Haible  <bruno@clisp.org>
64183
64184         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64185         module.
64186
64187 2006-08-14  Simon Josefsson  <jas@extundo.com>
64188
64189         * config/srclist.txt: Add gnupload.
64190
64191 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         Change copyright notice from LGPL 2 to GPL 2, since that's the
64194         standard form used in the gnulib repository.
64195         * tests/test-lock.c: Likewise.
64196         * tests/test-stdint.c: Likewise.
64197         * tests/test-tls.c: Likewise.
64198
64199         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64200         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64201         Add copyright notice.
64202
64203         * check-module: Add copyright notice.  Output a copyright
64204         notice if "--version" is specified.
64205         * modules/COPYING: New file.
64206         * tests/test-getaddrinfo.c: Add copyright notice.
64207         * tests/test-verify.c: Likewise.
64208
64209 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         Change copyright notice from LGPL 2 to GPL 2, since that's the
64212         standard form used in the gnulib repository.
64213         * lib/lock.c: LGPL -> GPL.
64214         * lib/lock.h: Likewise.
64215         * lib/strnlen1.c: Likewise.
64216         * lib/strnlen1.h: Likewise.
64217         * lib/tls.c: Likewise.
64218         * lib/tls.h: Likewise.
64219         * lib/tmpdir.c: Likewise.
64220
64221         * lib/TODO: Remove; this belongs only in coreutils.
64222
64223 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         Add copyright notices to long-enough files that lack them, since
64226         otherwise the files aren't clearly free.  Use the same notice that
64227         getdate.texi already uses.
64228         * doc/alloca-opt.texi: Add copyright notice.
64229         * doc/alloca.texi: Likewise.
64230         * doc/ctime.texi: Likewise.
64231         * doc/functions.texi: Likewise.
64232         * doc/gcd.texi: Likewise.
64233         * doc/gnulib-tool.texi: Likewise.
64234         * doc/inet_ntoa.texi: Likewise.
64235         * doc/visibility.texi: Likewise.
64236
64237         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64238         * doc/quote.texi: Add copyright notice.
64239
64240         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64241         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64242         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64243         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64244         is now obsolete, and give a pointer to the Sun list.
64245         Add copyright notice.
64246
64247 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * config/srclistvars.sh: Add copyright notice.
64250
64251 2006-08-14  Eric Blake  <ebb9@byu.net>
64252
64253         Import the following change from libc:
64254
64255         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64256
64257         Upstream bug 2997.
64258         * lib/misc/error.c: Add space between program name and message if file
64259         name is missing.
64260
64261 2006-08-12  Karl Berry  <karl@gnu.org>
64262
64263         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64264         remove, these originate in gnulib now.
64265
64266 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64267
64268         * doc/Makefile (standards.info standards.html standards.dvi):
64269         Also depend on make-stds.texi.
64270
64271 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64274         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64275
64276         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64277         in wchar_t.  Problem reported by Eric Blake.
64278
64279         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64280         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64281         Also, help the compiler to keep LEN in a register.
64282
64283 2006-08-11  Eric Blake  <ebb9@byu.net>
64284
64285         * users.txt: Sort.  Add tar.
64286
64287 2006-08-11  Bruno Haible  <bruno@clisp.org>
64288
64289         * users.txt: New file.
64290
64291 2006-08-11  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64294         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64295
64296 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * modules/snprintf (Depends-on): Remove minmax.
64299         (Maintainer): Add self and Bruno.
64300
64301 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64304         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64305         (EOVERFLOW): Define if the system does not.
64306         Do not include "minmax.h"; it wasn't used.
64307         (snprintf): Don't assume size_t promotes to an unsigned type.
64308         Fix bug when generated string was too long for the buffer: the
64309         buffer's contents are supposed to be the initial prefix of the
64310         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64311         exceeds INT_MAX; do the check ourselves.
64312
64313         Import the following changes from libc:
64314
64315         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64316
64317         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64318         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64319         set wc to the byte which couldn't be converted.
64320         (re_string_reconstruct): Don't clear valid_raw_len before calling
64321         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64322         tip_context using re_string_context_at.
64323
64324         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64325
64326         * lib/posix/regex.h: g++ still cannot handled [restrict].
64327
64328         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64329
64330         * lib/posix/regex.h: Remove special handling for VMS.
64331
64332 2006-08-10  Jim Meyering  <jim@meyering.net>
64333
64334         * modules/same-inode: New module.
64335         * modules/dev-ino: New module.
64336         * modules/cycle-check: Depend on these modules, rather than simply
64337         including their .h files.
64338         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64339         required via m4/cycle-check.m4.
64340         * modules/same: Depend on new same-inode module, rather than
64341         including same-inode.h.
64342         * modules/chdir-safer: New file.
64343
64344         * modules/chown (Depends-on): Add stat-macros.
64345
64346 2006-08-10  Jim Meyering  <jim@meyering.net>
64347
64348         * m4/cycle-check.m4: New file.
64349         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64350         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64351
64352 2006-08-10  Eric Blake  <ebb9@byu.net>
64353
64354         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64355         in from original proposal.
64356
64357 2006-08-10  Eric Blake  <ebb9@byu.net>
64358         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64359
64360         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64361         namespace.
64362
64363 2006-08-10  Bruno Haible  <bruno@clisp.org>
64364
64365         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64366         as well.
64367
64368 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         Sync from coreutils.
64371
64372         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64373
64374         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64375         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64376
64377 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64378
64379         * modules/restrict: Remove; no longer needed now that we assume
64380         Autoconf 2.59 or later.
64381         * MODULES.html.sh: Remove 'restrict'.
64382         * modules/argp (Depends-on): Remove 'restrict'.
64383         * modules/base64 (Depends-on): Likewise.
64384         * modules/gc (Depends-on): Likewise.
64385         * modules/getaddrinfo (Depends-on): Likewise.
64386         * modules/glob (Depends-on): Likewise.
64387         * modules/inet_ntop (Depends-on): Likewise.
64388         * modules/inet_pton (Depends-on): Likewise.
64389         * modules/memxor (Depends-on): Likewise.
64390         * modules/regex (Depends-on): Likewise.
64391         * modules/strtok_r (Depends-on): Likewise.
64392         * modules/time_r (Depends-on): Likewise.
64393
64394 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64397         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64398         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64399         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64400         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64401         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64402         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64403         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64404
64405         Merge from coreutils.
64406         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64407         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64409         * m4/time_r.m4 (gl_TIME_R): Likewise.
64410
64411 2006-08-09  Karl Berry  <karl@gnu.org>
64412
64413         * config/srclist.txt: no more gettext-tools, per Bruno.
64414
64415 2006-08-08  Eric Blake  <ebb9@byu.net>
64416
64417         * modules/verror: New module.
64418         * MODULES.html.sh: Document it.
64419
64420 2006-08-08  Eric Blake  <ebb9@byu.net>
64421
64422         * lib/verror.h, lib/verror.c: New files.
64423
64424 2006-08-08  Eric Blake  <ebb9@byu.net>
64425
64426         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64427         verror_at_line output complies with GNU Coding Standards even when
64428         file is NULL.
64429
64430 2006-08-07  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64433         versions of AIX.
64434         Reported by Ralf Wildenhues.
64435
64436 2006-08-07  Bruno Haible  <bruno@clisp.org>
64437
64438         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64439         in an AC_DEFUN. Needed so that the autoconf snippets can use
64440         AC_REQUIRE.
64441
64442 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64443
64444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64445         Initialize pkgdata_DATA.
64446         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64447         overriding it.
64448
64449 2006-08-06  Eric Blake  <ebb9@byu.net>
64450
64451         * lib/error.h: Fold in some upstream changes from glibc.
64452         * lib/error.c: Likewise.
64453
64454 2006-08-04  Bruno Haible  <bruno@clisp.org>
64455
64456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64457         Make the mostlyclean-local rule depend on mostlyclean-generic.
64458         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64459
64460 2006-07-31  Bruno Haible  <bruno@clisp.org>
64461
64462         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64463         <stdlib.h>, <string.h>.
64464
64465 2006-07-30  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/readlink (License): Change to LGPL.
64468
64469 2006-07-30  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64472         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64473         set PKGDATADIR to point to it.
64474
64475 2006-07-30  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/csharpexec (configure.ac): Comment out macro invocation.
64478         * modules/javaexec (configure.ac): Likewise.
64479         * modules/javacomp-script (configure.ac): Likewise.
64480
64481         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64482
64483 2006-07-30  Bruno Haible  <bruno@clisp.org>
64484
64485         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64486         linked-list.
64487
64488 2006-07-30  Bruno Haible  <bruno@clisp.org>
64489
64490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64491
64492 2006-07-30  Bruno Haible  <bruno@clisp.org>
64493
64494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64495         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64496         get removed.
64497
64498 2006-07-29  Bruno Haible  <bruno@clisp.org>
64499
64500         Make it possible for gnulib-tool to work with locally modified or
64501         augmented gnulib repositories.
64502         * gnulib-tool (func_usage): Document --local-dir option.
64503         (local_gnulib_dir): New variable.
64504         Handle --local-dir option.
64505         (func_lookup_file): New function.
64506         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64507         (func_get_description, func_get_filelist, func_get_description,
64508         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64509         func_get_automake_snippet, func_get_include_directive,
64510         func_get_license, func_get_maintainer): Use func_lookup_file.
64511         (func_import, func_create_testdir): Use func_lookup_file.
64512
64513 2006-07-29  Bruno Haible  <bruno@clisp.org>
64514
64515         * modules/setenv (Depends-on): Add unistd.
64516
64517 2006-07-29  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64520
64521 2006-07-29  Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64524
64525 2006-07-29  Bruno Haible  <bruno@clisp.org>
64526
64527         * gnulib-tool (import, update): If there is no Makefile.am, look at
64528         aclocal.m4, instead of bailing out.
64529
64530 2006-07-29  Bruno Haible  <bruno@clisp.org>
64531
64532         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64533         Categorize the options by when they are useful.
64534
64535 2006-07-29  Bruno Haible  <bruno@clisp.org>
64536
64537         * gnulib-tool (func_usage): Document option --no-libtool.
64538         Handle option --no-libtool.
64539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64540         for changed semantics of $libtool variable.
64541         (func_import): Likewise. If libtool is not used, show this through
64542         an option --no-libtool.
64543         (func_create_testdir): Update.
64544
64545 2006-07-29  Bruno Haible  <bruno@clisp.org>
64546
64547         * gnulib-tool (func_import): Extend error message about missing
64548         --doc-base.
64549
64550 2006-07-29  Bruno Haible  <bruno@clisp.org>
64551
64552         * gnulib-tool (func_import): Don't create the $docbase directory if
64553         there is no file to store there.
64554
64555 2006-07-29  Bruno Haible  <bruno@clisp.org>
64556
64557         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64558         relevant, look for configure.ac there, not in the current directory.
64559         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64560
64561 2006-07-29  Bruno Haible  <bruno@clisp.org>
64562
64563         * gnulib-tool (SORT): New variable.
64564         (func_usage): Undocument --assume-autoconf option.
64565         Remove --assume-autoconf option handling.
64566         (autoconf_minversion): Determine from the contents of configure.ac.
64567         (func_import): Remove autoconf_minversion handling.
64568         Suggested by Eric Blake.
64569
64570 2006-07-29  Bruno Haible  <bruno@clisp.org>
64571
64572         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64573
64574 2006-07-29  Bruno Haible  <bruno@clisp.org>
64575
64576         * config/srclist.txt (*setenv.[ch]): Remove rules.
64577
64578 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64579
64580         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64581
64582 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64583
64584         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64585         arpa/inet.h.
64586
64587 2006-07-28  Simon Josefsson  <jas@extundo.com>
64588
64589         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64590         * modules/inet_pton (Depends-on): Likewise.
64591
64592 2006-07-28  Simon Josefsson  <jas@extundo.com>
64593
64594         * m4/netinet_in_h.m4: New file.
64595
64596 2006-07-28  Simon Josefsson  <jas@extundo.com>
64597
64598         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64599         #include's.
64600
64601 2006-07-28  Simon Josefsson  <jas@extundo.com>
64602
64603         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64604         #include's.
64605
64606 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64609         setgid on directories only if they set these bits.
64610         * lib/modechange.h: Remove obsolete comment about masks.
64611
64612 2006-07-28  Eric Blake  <ebb9@byu.net>
64613
64614         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64615         macro expansion.
64616
64617 2006-07-28  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64620
64621 2006-07-28  Bruno Haible  <bruno@clisp.org>
64622
64623         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64624
64625 2006-07-28  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64628         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64629         Define fallbacks.
64630         Avoids link error on FreeBSD 4.x.
64631         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64632
64633         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64634         encoding.
64635         * lib/mbswidth.c (iswcntrl): Likewise.
64636
64637 2006-07-27  Bruno Haible  <bruno@clisp.org>
64638
64639         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64640         test.
64641
64642 2006-07-27  Bruno Haible  <bruno@clisp.org>
64643
64644         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64645         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64646         defined.
64647
64648 2006-07-26  Eric Blake  <ebb9@byu.net>
64649
64650         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64651
64652 2006-07-26  Eric Blake  <ebb9@byu.net>
64653
64654         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64655         like mingw that lack mkstemp.
64656         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64657         avoid compilation warning on mingw.
64658
64659 2006-07-26  Bruno Haible  <bruno@clisp.org>
64660
64661         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64662         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64663         INT_FAST*_MIN, INTPTR_MIN.
64664
64665 2006-07-25  Bruno Haible  <bruno@clisp.org>
64666
64667         * modules/version-etc (Depends-on): Add stdarg.
64668
64669 2006-07-25  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64672         complex commands.
64673
64674 2006-07-25  Bruno Haible  <bruno@clisp.org>
64675
64676         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64677         defined in <stdarg.h> or config.h.
64678
64679 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64680
64681         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64682         (gl_STDIO_SAFER): Remove.
64683
64684 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * MODULES.html.sh (File stream based Input/Output):
64687         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64688         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64689         * modules/fopen-safer, modules/tmpfile-safer: New files.
64690         * modules/stdio-safer: Remove.
64691
64692 2006-07-24  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/tmpdir: New file.
64695         * MODULES.html.sh (File system functions): Add it.
64696
64697 2006-07-24  Bruno Haible  <bruno@clisp.org>
64698
64699         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64700         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64701
64702 2006-07-24  Bruno Haible  <bruno@clisp.org>
64703
64704         * modules/clean-temp: New file.
64705
64706 2006-07-24  Bruno Haible  <bruno@clisp.org>
64707
64708         * m4/tmpdir.m4: New file, from GNU gettext.
64709
64710 2006-07-24  Bruno Haible  <bruno@clisp.org>
64711
64712         * lib/tmpdir.h: New file, from GNU gettext.
64713         * lib/tmpdir.c: New file, from GNU gettext.
64714
64715 2006-07-24  Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/clean-temp.h: New file, from GNU gettext.
64718         * lib/clean-temp.c: New file, from GNU gettext.
64719
64720 2006-07-23  Eric Blake  <ebb9@byu.net>
64721
64722         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64723         (Depends-on): Add binary-io.
64724
64725 2006-07-23  Eric Blake  <ebb9@byu.net>
64726
64727         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64728
64729 2006-07-23  Eric Blake  <ebb9@byu.net>
64730
64731         * lib/tmpfile-safer.c: New file.
64732         * lib/stdio-safer.h (fopen_safer): Add prototype.
64733         * lib/stdio--.h (tmpfile): Make safer.
64734
64735 2006-07-23  Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64738         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64739         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64740         gl_linked_remove_at): Use it.
64741
64742 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64743         and Simon Josefsson <jas@extundo.com>
64744
64745         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64746
64747         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64748
64749 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64750
64751         * modules/close-stream: New file.
64752         * modules/closeout (Description): Make it clear that it exits
64753         with a diagnostic on error.
64754         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64755         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64756
64757 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         * m4/close-stream.m4: New file.
64760
64761 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * lib/close-stream.c, lib/close-stream.h: New files.
64764
64765 2006-07-22  Bruno Haible  <bruno@clisp.org>
64766
64767         Merge from GNU gettext 0.15.
64768
64769         2006-05-01  Bruno Haible  <bruno@clisp.org>
64770
64771                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64772
64773         2006-07-22  Bruno Haible  <bruno@clisp.org>
64774
64775                 * modules/javaversion: New file.
64776                 * MODULES.html.sh (Java): Add javaversion.
64777
64778         2006-03-12  Bruno Haible  <bruno@clisp.org>
64779
64780                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64781
64782         2005-12-04  Bruno Haible  <bruno@clisp.org>
64783
64784                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64785                 (untested).
64786
64787         2006-06-21  Bruno Haible  <bruno@clisp.org>
64788
64789                 Avoid warnings from recent versions of mcs.
64790                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64791                 -o, -L, -r any more. Use options documented since mcs-1.0
64792                 instead. Similarly for -g.
64793
64794         2005-12-04  Bruno Haible  <bruno@clisp.org>
64795
64796                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64797                 .resources, not .resource.
64798
64799         2005-07-09  Bruno Haible  <bruno@clisp.org>
64800
64801                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64802                 add a .dll suffix.
64803                 Reported by Mark Junker <mjscod@gmx.de>.
64804
64805         2006-07-22  Bruno Haible  <bruno@clisp.org>
64806
64807                 * modules/gettext: Upgrade to gettext-0.15.
64808                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64809                 m4/visibility.m4.
64810                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64811
64812 2006-07-22  Bruno Haible  <bruno@clisp.org>
64813
64814         Merge from GNU gettext 0.15.
64815
64816         2006-03-25  Bruno Haible  <bruno@clisp.org>
64817
64818                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64819
64820         2006-07-21  Bruno Haible  <bruno@clisp.org>
64821
64822                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64823                 "1.1".
64824
64825         2006-05-09  Bruno Haible  <bruno@clisp.org>
64826
64827                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64828                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64829                 for the conftestver execution.
64830
64831         2006-05-01  Bruno Haible  <bruno@clisp.org>
64832
64833                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64834                 optional target-version argument. Verify that the compiler
64835                 groks source of the specified source-version, or add -source
64836                 option as necessary. Verify that the compiler produces
64837                 bytecode in the specified target-version, or add -target and
64838                 -source options as necessary. Make the result of the test
64839                 available as variable CONF_JAVAC. Also log error output in
64840                 config.log.
64841
64842         2006-03-11  Bruno Haible  <bruno@clisp.org>
64843
64844                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64845
64846         2006-05-09  Bruno Haible  <bruno@clisp.org>
64847
64848                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64849                 CLASSPATH_SEPARATOR to a semicolon.
64850
64851         2006-03-12  Bruno Haible  <bruno@clisp.org>
64852
64853                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64854                 available as variable CONF_JAVA, for subsequent autoconf
64855                 tests. Also log error output in config.log.
64856
64857         2006-07-19  Bruno Haible  <bruno@clisp.org>
64858
64859                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64860                 that getline works on glibc2 systems. Needed to avoid trouble
64861                 in relocatable.c.
64862                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64863
64864         2005-12-04  Bruno Haible  <bruno@clisp.org>
64865
64866                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64867                 launcher (untested).
64868
64869         2005-12-04  Bruno Haible  <bruno@clisp.org>
64870
64871                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64872
64873         2006-07-22  Bruno Haible  <bruno@clisp.org>
64874
64875                 * gettext.m4: Update from GNU gettext-0.15.
64876                 * nls.m4: Likewise.
64877                 * po.m4: Likewise.
64878                 * inttypes-pri.m4: Likewise.
64879                 * inttypes-h.m4: Renamed from inttypes.m4.
64880                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64881
64882 2006-07-22  Bruno Haible  <bruno@clisp.org>
64883
64884         Merge from GNU gettext 0.15.
64885
64886         2005-07-05  Bruno Haible  <bruno@clisp.org>
64887
64888                 * printf-args.c (printf_fetchargs): Work around broken
64889                 definition of wint_t on mingw.
64890
64891         2005-02-12  Bruno Haible  <bruno@clisp.org>
64892
64893                 * xallocsa.h: Add extern "C" for C++.
64894
64895         2006-05-17  Bruno Haible  <bruno@clisp.org>
64896
64897                 Cygwin portability.
64898                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64899
64900         2006-04-30  Bruno Haible  <bruno@clisp.org>
64901
64902                 * progreloc.c: Include <mach-o/dyld.h> if available.
64903                 (find_executable): Use _NSGetExecutablePath when possible.
64904
64905         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64906
64907                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64908                 function.
64909
64910         2005-12-29  Bruno Haible  <bruno@clisp.org>
64911
64912                 * progreloc.c (set_program_name_and_installdir): Fix
64913                 compilation error.
64914
64915         2005-12-04  Bruno Haible  <bruno@clisp.org>
64916
64917                 Cygwin portability.
64918                 * progreloc.c: Include <windows.h> also on Cygwin.
64919                 (find_executable): Add support for Cygwin.
64920                 (set_program_name_and_installdir): Handle also platforms with
64921                 nonempty EXEEXT.
64922
64923         2006-07-11  Bruno Haible  <bruno@clisp.org>
64924
64925                 * javacomp.c: Fix a comment.
64926                 Reported by Jim Meyering.
64927
64928         2006-04-30  Bruno Haible  <bruno@clisp.org>
64929
64930                 * javacomp.h (compile_java_class): Add source_version,
64931                 target_version arguments.
64932                 * javacomp.c: Rewritten to choose only a compiler that
64933                 respects the specified source_version and target_version.
64934
64935         2006-06-27  Bruno Haible  <bruno@clisp.org>
64936
64937                 Assume correct S_ISDIR macro.
64938                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64939
64940         2006-07-22  Bruno Haible  <bruno@clisp.org>
64941
64942                 * javaversion.h: New file, from GNU gettext.
64943                 * javaversion.c: New file, from GNU gettext.
64944                 * javaversion.java: New file, from GNU gettext.
64945                 * javaversion.class: New file, from GNU gettext.
64946
64947         2006-05-17  Bruno Haible  <bruno@clisp.org>
64948
64949                 Cygwin portability.
64950                 * javaexec.c (execute_java_class): Test for jview program
64951                 also on Cygwin.
64952
64953         2006-04-09  Bruno Haible  <bruno@clisp.org>
64954
64955                 * fatal-signal.c: Don't include string.h.
64956                 (at_fatal_signal): Use a copying loop instead of memcpy.
64957
64958         2005-12-04  Bruno Haible  <bruno@clisp.org>
64959
64960                 * csharpexec.c: Add support for 'clix' launcher (untested).
64961                 (execute_csharp_using_sscli): New function.
64962                 (execute_csharp_program): Call it.
64963
64964         2006-06-21  Bruno Haible  <bruno@clisp.org>
64965
64966                 Avoid warnings from recent versions of mcs.
64967                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64968                 -o, -L, -r any more. Use options documented since mcs-1.0
64969                 instead. Similarly for -g.
64970
64971         2005-07-09  Bruno Haible  <bruno@clisp.org>
64972
64973                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64974                 add a .dll suffix.
64975                 Reported by Mark Junker <mjscod@gmx.de>.
64976
64977         2006-06-17  Bruno Haible  <bruno@clisp.org>
64978
64979                 * config.charset: Update for NetBSD 3.0.
64980
64981         2006-05-17  Bruno Haible  <bruno@clisp.org>
64982
64983                 Cygwin portability.
64984                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64985
64986         2006-05-16  Bruno Haible  <bruno@clisp.org>
64987
64988                 * localcharset.c [CYGWIN]: Include <windows.h>.
64989                 (get_charset_aliases): For Cygwin, return the same CPxxx
64990                 aliases list as under WIN32.
64991                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64992                 the environment variables. Fall back to GetACP().
64993
64994         2006-04-05  Bruno Haible  <bruno@clisp.org>
64995
64996                 * config.charset: Update Juan Manuel Guerrero's address.
64997
64998         2005-02-12  Bruno Haible  <bruno@clisp.org>
64999
65000                 * allocsa.h: Add extern "C" for C++.
65001
65002         2005-02-10  Bruno Haible  <bruno@clisp.org>
65003
65004                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65005                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65006
65007         2006-07-22  Bruno Haible  <bruno@clisp.org>
65008
65009                 * gettext.h: Update to GNU gettext-0.15.
65010
65011 2006-07-22  Bruno Haible  <bruno@clisp.org>
65012
65013         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65014         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65015         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65016
65017 2006-07-21  Eric Blake  <ebb9@byu.net>
65018
65019         * modules/stdlib-safer: New file.
65020         * MODULES.html.sh (File stream based Input/Output): Add
65021         stdlib-safer.
65022
65023 2006-07-21  Eric Blake  <ebb9@byu.net>
65024
65025         * lib/stdlib-safer.h: New file from coreutils, required by
65026         stdlib--.h.
65027
65028 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65031
65032 2006-07-20  Bruno Haible  <bruno@clisp.org>
65033
65034         * gnulib-tool: Recognize new option --assume-autoconf.
65035         (autoconf_minversion): New variable.
65036         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65037
65038 2006-07-20  Bruno Haible  <bruno@clisp.org>
65039
65040         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65041
65042 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65043
65044         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65045         Reindent and repaginate.
65046
65047 2006-07-19  Derek Price  <derek@ximbiot.com>
65048
65049         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65050         Correct grammar.
65051
65052 2006-07-17  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/list: New file.
65055         * modules/array-list: New file.
65056         * modules/carray-list, modules/carray-list-tests: New files.
65057         * modules/linked-list, modules/linked-list-tests: New files.
65058         * modules/avltree-list, modules/avltree-list-tests: New files.
65059         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65060         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65061         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65062         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65063         * modules/oset: New file.
65064         * modules/array-oset: New file.
65065         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65066         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65067         * tests/test-carray_list.c: New file.
65068         * tests/test-linked_list.c: New file.
65069         * tests/test-avltree_list.c: New file.
65070         * tests/test-rbtree_list.c: New file.
65071         * tests/test-linkedhash_list.c: New file.
65072         * tests/test-avltreehash_list.c: New file.
65073         * tests/test-rbtreehash_list.c: New file.
65074         * tests/test-avltree_oset.c: New file.
65075         * tests/test-rbtree_oset.c: New file.
65076         * MODULES.html.sh (Container data structures): New section.
65077
65078 2006-07-17  Bruno Haible  <bruno@clisp.org>
65079
65080         * m4/gl_list.m4: New file.
65081
65082 2006-07-17  Bruno Haible  <bruno@clisp.org>
65083
65084         * lib/gl_list.h: New file.
65085         * lib/gl_list.c: New file.
65086         * lib/gl_array_list.h: New file.
65087         * lib/gl_array_list.c: New file.
65088         * lib/gl_carray_list.h: New file.
65089         * lib/gl_carray_list.c: New file.
65090         * lib/gl_linked_list.h: New file.
65091         * lib/gl_linked_list.c: New file.
65092         * lib/gl_anylinked_list1.h: New file.
65093         * lib/gl_anylinked_list2.h: New file.
65094         * lib/gl_avltree_list.h: New file.
65095         * lib/gl_avltree_list.c: New file.
65096         * lib/gl_anyavltree_list1.h: New file.
65097         * lib/gl_anyavltree_list2.h: New file.
65098         * lib/gl_rbtree_list.h: New file.
65099         * lib/gl_rbtree_list.c: New file.
65100         * lib/gl_anyrbtree_list1.h: New file.
65101         * lib/gl_anyrbtree_list2.h: New file.
65102         * lib/gl_anytree_list1.h: New file.
65103         * lib/gl_anytree_list2.h: New file.
65104         * lib/gl_linkedhash_list.h: New file.
65105         * lib/gl_linkedhash_list.c: New file.
65106         * lib/gl_anyhash_list1.h: New file.
65107         * lib/gl_anyhash_list2.h: New file.
65108         * lib/gl_avltreehash_list.h: New file.
65109         * lib/gl_avltreehash_list.c: New file.
65110         * lib/gl_rbtreehash_list.h: New file.
65111         * lib/gl_rbtreehash_list.c: New file.
65112         * lib/gl_anytreehash_list1.h: New file.
65113         * lib/gl_anytreehash_list2.h: New file.
65114
65115         * lib/gl_oset.h: New file.
65116         * lib/gl_oset.c: New file.
65117         * lib/gl_array_oset.h: New file.
65118         * lib/gl_array_oset.c: New file.
65119         * lib/gl_avltree_oset.h: New file.
65120         * lib/gl_avltree_oset.c: New file.
65121         * lib/gl_rbtree_oset.h: New file.
65122         * lib/gl_rbtree_oset.c: New file.
65123         * lib/gl_anytree_oset.h: New file.
65124
65125 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * m4/mkancesdirs.m4: New file.
65128         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65129         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65130         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65131         it.
65132
65133 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65136         * lib/mkancesdirs.h: New files.
65137         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65138         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65139         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65140         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65141         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65142         callers changed.  Revamp internals significantly, by not
65143         attempting to create directories that are temporarily more
65144         permissive than the final results.  Do not attempt to use
65145         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65146         This removes some race conditions, fixes some bugs, and simplifies
65147         things.  Use new dirchownmod function to do owner and mode changes.
65148         * lib/mkdir-p.h: Likewise.
65149         * lib/modechange.c (octal_to_mode): New function.
65150         (struct mode_change): New member mentioned.
65151         (make_node_op_equals): New arg mentioned.  All callers changed.
65152         (mode_compile): Keep track of which mode bits the user has explicitly
65153         mentioned.
65154         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65155         New arg PMODE_BITS, to keep track of which mode bits the user
65156         mentioned; it treats S_ISUID and S_ISGID speciall.
65157         All callers changed.
65158         * lib/modechange.h: Likewise.
65159
65160 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * MODULES.html.sh: Add mkancestors.
65163         * modules/mkancesdirs: New module.
65164         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65165         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65166         The chdir-safer and afs files are now orphans; I'll remove them
65167         unless someone speaks up.
65168         Add lib/dirchownmod.c, lib/dirchownmod.h.
65169         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65170         Add lchown, mkancesdirs.
65171         (Maintainer): Add self.
65172
65173 2006-07-15  Karl Berry  <karl@gnu.org>
65174
65175         * gnulib-tool: help message wording/arrangement.
65176
65177 2006-07-14  Simon Josefsson  <jas@extundo.com>
65178
65179         * doc/gnulib.texi (Libtool and Windows): New section.
65180
65181 2006-07-12  Simon Josefsson  <jas@extundo.com>
65182
65183         * modules/gendocs (License): Fix license, approved by Karl.
65184
65185 2006-07-12  Eric Blake  <ebb9@byu.net>
65186
65187         * MODULES.html.sh: Add gendocs.
65188
65189 2006-07-11  Eric Blake  <ebb9@byu.net>
65190
65191         * modules/fdl: New module, to install doc/fdl.texi.
65192         * MODULES.html.sh: Add new section for documentation modules.
65193         * gnulib-tool: Avoid space-tab.
65194         (--doc-base): New option, to manage files from doc.
65195
65196 2006-07-11  Eric Blake  <ebb9@byu.net>
65197
65198         * m4/absolute-header.m4: Fix comments to match recent change.
65199
65200 2006-07-11  Eric Blake  <ebb9@byu.net>
65201
65202         * gnulib-tool: List --doc-base before --tests-base.
65203
65204 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65205
65206         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65207
65208 2006-07-11  Bruno Haible  <bruno@clisp.org>
65209
65210         * README: Mention where to put documentation.
65211
65212 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65213
65214         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65215
65216 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65219         to stdint.m4.
65220
65221 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65222
65223         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65224         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65225         "no/such/file/stdint.h" when there is no such file, so that
65226         the resulting C code can be parsed by dodgy compilers.
65227         Problems reported by Bob Proulx.
65228
65229 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65230
65231         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65232         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65233         macros into the GNU _D_EXACT_NAMLEN.
65234         * lib/savedir.c:  Likewise.
65235         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65236
65237 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65238         and Paul Eggert  <eggert@cs.ucla.edu>
65239
65240         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65241         * m4/savedir.m4:
65242         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65243         macros into the GNU _D_EXACT_NAMLEN.
65244
65245 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65246
65247         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65248         around the absolute name, to work around a problem with the HP-UX
65249         11.23 native C compiler, reported by Bob Proulx.
65250
65251 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * doc/maintain.texi, make-stds.texi: Sync from
65254         <http://savannah.gnu.org/projects/gnustandards>.
65255
65256 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65259
65260 2006-07-09  Jim Meyering  <jim@meyering.net>
65261
65262         * m4/glob.m4: Remove a doubled word in a comment.
65263
65264 2006-07-09  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/argp-pv.c: Remove a doubled word in a comment.
65267         * lib/check-version.c (check_version): Likewise.
65268         * lib/javacomp.c (compile_java_class): Likewise.
65269
65270 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65271
65272         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65273         for the benefit of people using Autoconf 2.60.  If you want to
65274         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65275         (or m4/onceonly.m4, if pre-2.57) manually.
65276
65277 2006-07-08  Jim Meyering  <jim@meyering.net>
65278
65279         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65280         comment.
65281         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65282         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65283         comment.
65284
65285 2006-07-08  Jim Meyering  <jim@meyering.net>
65286
65287         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65288
65289 2006-07-07  Simon Josefsson  <jas@extundo.com>
65290
65291         * tests/test-crc.c: Change expected crc value, the test vector
65292         were probably computed using the old broken crc.c?
65293
65294 2006-07-06  Simon Josefsson  <jas@extundo.com>
65295
65296         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65297         now the canonical place for the M4 file).
65298
65299         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65300         from the sys_socket dependency now.
65301
65302         * modules/inet_pton (Files): Ditto.
65303
65304         * modules/inet_ntop (Files): Ditto.
65305
65306 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65307
65308         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65309         not gl_PREREQ_GETUSERSHELL.
65310
65311 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65312
65313         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65314         with only one argument, for Autoconf 2.60.
65315         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65316         expand to nothing, so add a shell command to avoid syntax error.
65317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65318
65319 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65320
65321         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65322
65323 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65326         no longer needed.  Check for isblank decl.
65327         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65328         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65329         of existence.
65330
65331 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * lib/getloadavg.c: Use __VMS, not VMS.
65334         * lib/getopt.c: Likewise.
65335         * lib/getpagesize.h: Likewise.
65336         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65337         and probably does not work.
65338
65339 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * lib/.cppi-disable: Add wcwidth.
65342         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65343         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65344         (ISGRAPH): Remove.  All uses changed to isgraph.
65345         (FOLD) [!defined _LIBC]: Remove special case.
65346         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65347         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65348         HAVE_ISBLANK.
65349         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65350         case.
65351
65352 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65353
65354         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65355         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65356         brackets.  Other minor changes to suppress some compiler
65357         warnings.
65358
65359 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65360         and Paul Eggert  <eggert@cs.ucla.edu>
65361
65362         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65363         of invoking obsolescent AC_HEADER_DIRENT macro.
65364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65365         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65366         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65368         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65369         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65370         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65371         * m4/readdir.m4: Remove; no longer needed.
65372
65373 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65374         and Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65377         Don't worry about this obsolete case any more.
65378         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65379         directories.
65380         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65381         worry about this obsolete case any more.
65382         * lib/fts.c: Likewise.
65383         * lib/getcwd.c: Likewise.
65384         * lib/glob.h: Likewise.
65385         * lib/savedir.c: Likewise.
65386
65387 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65390         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65391         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65392         needed.
65393         All uses removed.
65394         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65395         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65396         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65397         needed.
65398         * m4/getdate.m4 (gl_GETDATE): Likewise.
65399         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65400         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65401         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65402         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65403         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65404         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65405         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65406         needed.
65407
65408 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65409
65410         * lib/memcasecmp.c: Include <limits.h>.
65411         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65412         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65413         Don't assume isdigit succeeds only on '0' through '9'.
65414
65415 2006-07-05  Eric Blake  <ebb9@byu.net>
65416
65417         * modules/getaddrinfo (Depends-on): Add snprintf.
65418
65419 2006-07-05  Eric Blake  <ebb9@byu.net>
65420
65421         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65422         to avoid 'header present but could not be compiled' on cygwin.
65423
65424 2006-07-05  Eric Blake  <ebb9@byu.net>
65425
65426         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65427         missing from netdb.h.
65428         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65429
65430 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65431
65432         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65433         no longer needed.
65434         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65435         * m4/getdate.m4 (gl_GETDATE): Likewise.
65436         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65437         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65438         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65439         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65440         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65441
65442 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65443
65444         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65445         All uses of is_space replaced by isspace.
65446         * lib/exit.h: Don't talk about STDC_HEADERS.
65447         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65448         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65449         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65450         replaced by isprint etc.
65451         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65452         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65453         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65454         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65455         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65456         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65457
65458 2006-07-05  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65461         the function exists, before testing against AIX.
65462         Reported by Martin Lambers <marlam@marlam.de>.
65463
65464 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65467         From Mark D. Baushke.
65468
65469 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65472         to the absolute name, not just one, to bypass Sun C 5.8's
65473         "warning: #include of /usr/include/... may be non-portable".
65474
65475 2006-07-04  Eric Blake  <ebb9@byu.net>
65476
65477         * modules/dirname-tests: New test module.
65478         * tests/test-dirname.c: New file, replacing dirname.c
65479         TEST_DIRNAME section that was recently deleted.
65480
65481 2006-07-04  Bruno Haible  <bruno@clisp.org>
65482
65483         Assume ANSI C header files and <ctype.h> functions.
65484         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65485         (mbsnwidth): Use isprint, iscntrl instead.
65486
65487 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         Merge from coreutils.
65490         * MODULES.html.sh: Add xstrtold.
65491         * modules/xstrtold: New file.
65492         * modules/cycle-check (Files): Add lib/same-inode.h.
65493         * modules/dirname (Files): Add m4/double-slash-root.m4.
65494         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65495         * modules/mkdir-p (Files): Add lib/same-inode.h.
65496         * modules/same (Files): Add lib/same-inode.h.
65497
65498 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65501         This is to keep the terminology clean; POSIX talks about
65502         "absolute pathnames", not "full pathnames", but the GNU
65503         Coding Standards say to use "path" for something else;
65504         so use "absolute" to keep both sides happy.
65505         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65506         Set gl_absolute_header, not gl_full_header_path.
65507         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65508         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65509         All uses changed.
65510
65511         Merge from coreutils.
65512
65513         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65516         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65517         want to require the building of c-strtod.o.
65518         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65519         needs -lm directly.
65520         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65521
65522         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65523
65524         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65525         --as-needed option if available.  Problem reported by Albert Chin in
65526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65527         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65528         cc merely issues a bunch of annoying warnings for --as-needed
65529         (this problem was reported by Bob Proulx).  Also, try linking with
65530         -lm to detect a bug in binutils 2.16 (this problem was reported
65531         by Ralf Wildenhues).
65532
65533         2006-06-18  Jim Meyering  <jim@meyering.net>
65534
65535         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65536         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65537         macro.
65538         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65539         also check for glibc-2.4's abort-inducing bug.
65540
65541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65542         Low-probability clean-up should be to use rmdir to get rid of
65543         the just-created directory, not unlink.
65544
65545         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65546         configure fail, and request a bug report to inform us about it.
65547         Add a comment that, barring reports to the contrary, in 2007 we'll
65548         assume ftruncate is universally available.
65549
65550         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65553
65554         2006-03-12  Jim Meyering  <jim@meyering.net>
65555
65556         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65557         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65558         * m4/same.m4 (gl_SAME): Likewise.
65559         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65560
65561         2006-03-11  Eric Blake  <ebb9@byu.net>
65562
65563         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65564         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65565         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65566         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65567
65568 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65571         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65572         reported by Mark D. Baushke, one in
65573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65574
65575         Merge from coreutils.
65576
65577         * lib/.cppi-disable: Add stdint_.h.
65578         * lib/.cvsignore: Add stdint.h.
65579
65580         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65583         both double and long double versions.
65584         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65585         * lib/xstrtold.c: New file.
65586         * lib/xstrtod.h (xstrtold): New decl.
65587
65588         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * lib/filemode.c (setst): Remove.
65591         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65592         (arguably) clearer, and the generated code is a bit smaller on my
65593         Debian GNU/Linux stable x86 host.
65594
65595         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65598         Assume that filemode.h includes sys/types.h and sys/stat.h.
65599         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65600         (ftypelet): Reorder to put common cases first, for efficiency.
65601         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65602         to do 'M'.
65603         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65604         of 10, for compatibility with FreeBSD.  All callers changed.
65605         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65606         types that can't be deduced solely from st_mode.  First arg is now a
65607         const pointer.
65608         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65609         (strmode): Renamed from mode_string.
65610         (filemodestring): New decl.
65611         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65612         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65613         needed.
65614         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65615
65616         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65619         fsusage.h now does that.  Include fsusage.h first, to test interface.
65620         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65621         at most one method (the old code could have generated decls that
65622         didn't conform to C89, not that this was ever exercised).
65623         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65624
65625         2006-03-19  Jim Meyering  <jim@meyering.net>
65626
65627         Work even in a chroot where d_ino values for entries in "/"
65628         don't match the stat.st_ino values for the same names.
65629         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65630         number, iterate through all entries again, using lstat instead.
65631         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65632         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65633
65634         * lib/getcwd.c (__getcwd): Clarify a comment.
65635         Use memcpy in place of a call to strcpy.
65636
65637         2006-03-12  Jim Meyering  <jim@meyering.net>
65638
65639         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65640         matches that of the current directory (which we're about to chdir ".."
65641         out of), then save the dev-ino of the parent, instead.
65642
65643         * lib/same-inode.h (SAME_INODE): New file/macro.
65644         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65645         Include "same-inode.h", instead.
65646         * lib/same.c: Likewise.
65647         * lib/cycle-check.h: Include "same-inode.h".
65648         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65649         * lib/cycle-check.c (SAME_INODE): Remove definition.
65650         * lib/root-dev-ino.h: Include "same-inode.h".
65651
65652         2006-03-11  Eric Blake  <ebb9@byu.net>
65653
65654         * lib/same.c (same_name): s/base_name/last_component/
65655         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65656         * lib/filenamecat.c (file_name_concat): Likewise.
65657
65658         2006-03-11  Eric Blake  <ebb9@byu.net>,
65659                     Paul Eggert  <eggert@cs.ucla.edu>
65660
65661         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65662         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65663         drive prefix.
65664         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65665         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65666         (last_component): New method.
65667         * lib/dirname.c (dir_len): Determine when drive letters need a
65668         subsequent slash.  Preserve // when it is special.
65669         (dir_name): Don't append dot when drive letter is absolute.
65670         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65671         * lib/basename.c (base_name): New semantics - malloc the result.
65672         Preserve // when it is special.  Preserve relative files that look
65673         like drive letters.
65674         (base_len): Preserve // when it is special.
65675         (last_component): New method, similar to old base_name semantics.
65676         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65677         base_name.  Strip redundant slashes from ///.
65678
65679 2006-07-03  Jim Meyering  <jim@meyering.net>
65680
65681         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65682         macro is used before the first cycle_check call.
65683
65684 2006-07-03  Eric Blake  <ebb9@byu.net>
65685
65686         * modules/dirname (Depends-on): Add xstrndup.
65687
65688 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65691         test cases, so that config.log is a bit easier to follow.
65692
65693 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65694
65695         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65696         both are 64 bits, since this seems to be the tradition, and this
65697         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65698         we ever run into a host that prefers long long to long in this
65699         case, we'll need another configure-time test.  Problem reported by
65700         Jim Meyering.
65701
65702 2006-07-02  Eric Blake  <ebb9@byu.net>
65703
65704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65705
65706 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * modules/inttypes (Depends-on): No longer depends on stdint.
65709         * modules/stdint (Description): Say more about assumptions.
65710         Say that the fast types might differ.  Say macros are used.
65711         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65712         (Makefile.am): Revise list of substituted symbols to match
65713         new stdint.m4.
65714         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65715         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65716         * tests/test-stdint.c (verify_same_types)
65717         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65718         the code conforms to C99/C89.
65719         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65720         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65721
65722 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65725         but fix a bug, by requiring at least 64 bits.
65726         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65727         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65728         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65729         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65730
65731         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65732         changes.  Make 2.59 a prerequisite.  Check and substitute for
65733         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65734         inttypes.h.  Do not use special include files; just use the
65735         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65736         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65737         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65738         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65739         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65740         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65741         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65742         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65743         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65744         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65745         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65746         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65747         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65748         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65749         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65750         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65751         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65752         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65753         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65754         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65755         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65756         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65757         not check for things that C99 does not require, e.g., int8_t.  If
65758         a test isn't needed unless <stdint.h> isn't working, and is
65759         unlikely to be needed for any other reason, then don't do it
65760         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65761         size_t, since we assume C89 freestanding at least.  Do not check
65762         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65763         the right thing even if the types are not defined.  Instead use:
65764         (gl_STDINT_TYPE_PROPERTIES): New macro.
65765         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65766         testing whether <sys/types.h> clashes, as Autoconf does this for
65767         us now.  All uses removed.
65768         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65769         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65770         (gl_CHECK_TYPE_SAME):
65771         Remove; no longer needed.
65772         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65773         exists, since we'll return 0 anyway in that case.
65774         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65775
65776 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65779         possible collision with system files.
65780         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65781         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65782         WCHAR_MIN and WCHAR_MAX in this case.
65783         (<stddef.h>): Do not include; no longer needed.
65784         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65785         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65786         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65787         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65788         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65789         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65790         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65791         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65792         !defined(__c99))]: Include in this case too, since it's harmless
65793         now.
65794         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65795         dangerous to do so.
65796         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65797         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65798         (_STDINT_MIN, _STDINT_MAX): New macros.
65799         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65800         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65801         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65802         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65803         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65804         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65805         macros, not typedefs; this simplifies things quite a bit.
65806         Use long int for all types narrower than int64_t.
65807         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65808         Define in terms of long long int or int64_t or long int,
65809         not int64_t or int32_t.  This saves some compile-time testing.
65810         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65811         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65812         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65813         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65814         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65815         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65816         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65817         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65818         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65819         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65820         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65821         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65822         undef any previous version and define our own version, for
65823         simplicity and consistency with the new macros for types.
65824         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65825         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65826         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65827         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65828         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65829         @WINT_T_SUFFIX@ to keep things simple here.
65830         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65831         Simplify by assuming typical 8/16/32/64 host, since we're
65832         already doing that elsewhere anyway.
65833         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65834         and assume long long int is 64 bits if available.  This
65835         speeds up 'configure'.
65836
65837 2006-07-01  Eric Blake  <ebb9@byu.net>
65838
65839         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65840         Reported by Andreas Buening.
65841
65842 2006-07-01  Eric Blake  <ebb9@byu.net>
65843
65844         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65845
65846 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65847
65848         * lib/getaddrinfo.c: fixed typo
65849
65850 2006-06-29  Jim Meyering  <jim@meyering.net>
65851
65852         * modules/strftime (Maintainer): Add my name, since with the
65853         FPRINTFTIME changes strftime.c has forked from glibc.
65854
65855 2006-06-29  Eric Blake  <ebb9@byu.net>
65856
65857         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65858
65859 2006-06-29  Eric Blake  <ebb9@byu.net>
65860
65861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65862
65863 2006-06-29  Eric Blake  <ebb9@byu.net>
65864
65865         * lib/stat_.h: New file.
65866
65867 2006-06-29  Eric Blake  <ebb9@byu.net>
65868
65869         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65870         unused static function.
65871
65872 2006-06-29  Eric Blake  <ebb9@byu.net>
65873
65874         * doc/functions.texi (Function Portability): Document missing lstat
65875         on mingw.
65876
65877 2006-06-29  Eric Blake  <ebb9@byu.net>
65878
65879         * MODULES.html.sh: Add sys_stat.
65880         * modules/sys_stat: New module.
65881         * modules/mkstemp (Depends-on): Add sys_stat.
65882
65883 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65884
65885         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65886
65887 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65888
65889         * m4/c-bs-a.m4: Removed.
65890
65891 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65892
65893         * lib/strftime.c: Assume strftime() exists.
65894
65895 2006-06-29  Derek Price  <derek@ximbiot.com>
65896
65897         * modules/c-bs-a: Removed - \a is C89.
65898         * MODULES.html.sh: Remove c-bs-a.
65899
65900 2006-06-29  Bruno Haible  <bruno@clisp.org>
65901
65902         * modules/wcwidth (License): Change to LGPL.
65903
65904 2006-06-28  Simon Josefsson  <jas@extundo.com>
65905
65906         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65907         on _WIN32.
65908
65909         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65910         getnameinfo.
65911
65912 2006-06-28  Simon Josefsson  <jas@extundo.com>
65913
65914         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65915
65916 2006-06-28  Simon Josefsson  <jas@extundo.com>
65917
65918         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65919         functions there.  It will succeed on Windows XP, but on Windows
65920         2000 and (presumably) earlier, it will fail, and use the internal
65921         re-implementation.
65922         (use_win32_p): New function.
65923         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65924         Support AI_NUMERICSERV to disable getservbyname.
65925         (getnameinfo): New function, only supports
65926         NI_NUMERICHOST|NI_NUMERICSERV for now.
65927
65928         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65929         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65930         getnameinfo.
65931
65932 2006-06-28  Eric Blake  <ebb9@byu.net>
65933
65934         * modules/wcwidth: New file.
65935         * modules/mbchar (Depends-on): Add wcwidth.
65936         * modules/mbswidth (Depends-on): Add wcwidth.
65937         * MODULES.html.sh: Add wcwidth.
65938
65939 2006-06-28  Eric Blake  <ebb9@byu.net>
65940
65941         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65943
65944 2006-06-28  Eric Blake  <ebb9@byu.net>
65945
65946         * lib/xvasprintf.h: Fix comments.
65947
65948 2006-06-28  Eric Blake  <ebb9@byu.net>
65949
65950         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65951         * lib/mbswidth.c (wcwidth): Move from here...
65952         * lib/wcwidth.h: ...to this new file.
65953
65954 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65955
65956         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65957
65958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65959         it's obsolete.
65960         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65961
65962 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65963
65964         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65965         Autoconf 2.60 says this stuff was obsolete.
65966
65967 2006-06-28  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65970
65971 2006-06-28  Bruno Haible  <bruno@clisp.org>
65972
65973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65974         gt_TYPE_WCHAR_T.
65975
65976 2006-06-28  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65979         declaration for wcwidth.
65980         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65981
65982 2006-06-28  Bruno Haible  <bruno@clisp.org>
65983
65984         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65985         (mkdir): Define using _mkdir.
65986
65987 2006-06-28  Bruno Haible  <bruno@clisp.org>
65988
65989         * lib/getaddrinfo.h: Fix POSIX URL.
65990         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65991         _WIN32.
65992         (use_win32_p): Make static.
65993         (getaddrinfo): Reject service name if it is empty or does not consist
65994         solely of decimal digits, or if its value is > 65535.
65995         (getnameinfo): Remove useless casts.
65996
65997 2006-06-27  Simon Josefsson  <jas@extundo.com>
65998
65999         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66000         Eggert and Martin Lambers.
66001
66002 2006-06-27  Simon Josefsson  <jas@extundo.com>
66003
66004         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66005         Eggert and Martin Lambers.
66006
66007 2006-06-27  Bruno Haible  <bruno@clisp.org>
66008
66009         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66010         result to 0, not to empty.
66011         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66012
66013 2006-06-27  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66016
66017 2006-06-26  Simon Josefsson  <jas@extundo.com>
66018
66019         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66020         present.
66021
66022 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66025         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66027
66028 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66029
66030         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66031
66032 2006-06-26  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66035
66036 2006-06-26  Bruno Haible  <bruno@clisp.org>
66037
66038         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66039
66040 2006-06-26  Bruno Haible  <bruno@clisp.org>
66041
66042         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66043         SGI C compiler in pre-C99 mode.
66044         Suggested by Mark D. Baushke and Larry Jones.
66045
66046 2006-06-26  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66049         WCHAR_MAX.
66050         Reported by Mark D. Baushke and Larry Jones.
66051
66052 2006-06-26  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66055         in pre-C99 mode.
66056         Suggested by Mark D. Baushke and Larry Jones.
66057
66058 2006-06-23  Simon Josefsson  <jas@extundo.com>
66059             Bruno Haible  <bruno@clisp.org>
66060
66061         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66062         Emit mostlyclean-local rule.
66063         (func_emit_tests_Makefile_am): Likewise.
66064         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66065
66066 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66067
66068         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66069
66070 2006-06-23  Bruno Haible  <bruno@clisp.org>
66071
66072         * tests/test-stdint.c: Update to match ISO C 99 Technical
66073         Corrigendum 1.
66074
66075 2006-06-23  Bruno Haible  <bruno@clisp.org>
66076
66077         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66078
66079 2006-06-23  Bruno Haible  <bruno@clisp.org>
66080
66081         * lib/stdint_.h: Treat IRIX like OpenBSD.
66082
66083 2006-06-23  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66086         ISO C 99 Technical Corrigendum 1.
66087
66088 2006-06-22  Simon Josefsson  <jas@extundo.com>
66089
66090         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66091         MinGW.
66092
66093 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66096         needed.  Some compiler complained about some of them.  Problem reported
66097         by Larry Jones in
66098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66099
66100 2006-06-21  Simon Josefsson  <jas@extundo.com>
66101
66102         * tests/test-getaddrinfo.c: New file.
66103
66104         * modules/getaddrinfo-tests: New file.
66105
66106         * MODULES.html.sh: Add inet_pton.
66107
66108         * modules/inet_pton: New file.
66109
66110 2006-06-21  Simon Josefsson  <jas@extundo.com>
66111
66112         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66113         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66114         of using the (limited) gnulib implementation on Windows XP.
66115
66116         * m4/inet_pton.m4: New file.
66117
66118 2006-06-21  Simon Josefsson  <jas@extundo.com>
66119
66120         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66121         variable.
66122
66123         * lib/socket_.h: Don't define WINVER.
66124
66125         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66126         slightly modified to work in gnulib.
66127
66128 2006-06-21  Simon Josefsson  <jas@extundo.com>
66129
66130         * doc/gnulib.texi (Windows sockets): Add.
66131
66132 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         * lib/read-file.c (fread_file): Start with buffer allocation of
66135         0 bytes rather than 1 byte; this simplifies the code.
66136         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66137         code to free buffer and save/restore errno.
66138         (internal_read_file): Remove unused local.
66139
66140 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66143         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66144         Problem reported by Denis Excoffier in
66145         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66146
66147 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66148
66149         * modules/sys_socket, modules/socklen: Include sys/types since
66150         FreeBSD 4.x's sys/socket.h needs it.
66151
66152 2006-06-19  Simon Josefsson  <jas@extundo.com>
66153
66154         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66155
66156 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66157
66158         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66159
66160 2006-06-19  Bruno Haible  <bruno@clisp.org>
66161
66162         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66163         and FULL_PATH_INTTYPES_H in angle brackets.
66164         Reported by Mark D. Baushke <mdb@gnu.org>.
66165
66166 2006-06-17  Eric Blake  <ebb9@byu.net>
66167
66168         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66169         errno.
66170
66171 2006-06-17  Bruno Haible  <bruno@clisp.org>
66172
66173         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66174         <sys/inttypes.h>.
66175
66176 2006-06-17  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66179         whether errno is declared. Assume <errno.h> declares errno.
66180
66181 2006-06-17  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66184
66185 2006-06-17  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66188         problem on Solaris 2.5.1.
66189
66190 2006-06-16  Eric Blake  <ebb9@byu.net>
66191
66192         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66193         * lib/unicodeio.c [!defined errno]: Likewise.
66194         * lib/strtol.c [!defined errno]: Likewise.
66195         * lib/strtod.c [!defined errno]: Likewise.
66196
66197 2006-06-15  Eric Blake  <ebb9@byu.net>
66198
66199         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66200
66201 2006-06-15  Eric Blake  <ebb9@byu.net>
66202
66203         * config/srclist.txt (ssize_t.m4): Lose sync.
66204
66205 2006-06-15  Bruno Haible  <bruno@clisp.org>
66206
66207         * modules/stdint (Files): Include m4/full-header-path.m4,
66208         m4/size_max.m4, m4/wchar_t.m4.
66209         (Makefile.am): Many more substitutions.
66210         * modules/stdint-tests: New file.
66211         * tests/test-stdint.c: New file.
66212
66213 2006-06-15  Bruno Haible  <bruno@clisp.org>
66214
66215         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66216         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66217         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66218         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66219         gl_CHECK_TYPE_SAME): New macros.
66220
66221 2006-06-15  Bruno Haible  <bruno@clisp.org>
66222
66223         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66224
66225 2006-06-15  Bruno Haible  <bruno@clisp.org>
66226
66227         * lib/stdint_.h: Rewritten to be fully auto-configured.
66228         Fixes bug on HP-UX/IA64.
66229
66230 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * lib/getdate.y (__attribute__): Don't define if already defined.
66233         Problem reported by Larry Jones.
66234         * lib/utimens.c (__attribute__): Likewise.
66235
66236 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66239         reported by Andreas Schwab.
66240
66241 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66242             Bruno Haible  <bruno@clisp.org>
66243
66244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66245         check for the declaration of strnlen and a run test that exposes the
66246         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66247         rpl_strndup.
66248
66249 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66250             Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66253
66254 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66255
66256         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66257         compile test, for Tru64 4.0D.
66258
66259 2006-05-28  Karl Berry  <karl@gnu.org>
66260
66261         * config/srclist.txt (printf-args.c): lose sync.
66262
66263 2006-05-26  Martin Lambers  <marlam@marlam.de>
66264
66265         * lib/getpass.c: Updates the test for the native W32 API, and adds
66266         missing includes, thus fixing compilation warnings.
66267
66268 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66269
66270         * lib/exclude.c (exclude_fnmatch): New function.
66271         (excluded_file_name): Call exclude_fnmatch.
66272         * lib/exclude.h (excluded_file_name): New prototype
66273
66274 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/tempname.c (small_open, large_open): New macros.
66277         (__open, __open64) [!_LIBC]: Remove.
66278         (__gen_tempname): Use small_open and large_open instead of __open
66279         and __open64.  This fixes a portability bug on HP-UX 11.11i
66280         reported by Simon Wing-Tang in
66281         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66282
66283 2006-05-24  Bruno Haible  <bruno@clisp.org>
66284
66285         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66286         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66287         Reported by Thorsten Maerz <torte@netztorte.de> via
66288         Aaron Stone <aaron@serendipity.cx>.
66289
66290 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66293         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66294         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66295         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66296         not really conditional on the cache.
66297         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66298
66299 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66302         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66303         (my_usleep): Don't mishandle maximum value.
66304
66305 2006-05-19  Jim Meyering  <jim@meyering.net>
66306
66307         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66308
66309 2006-05-17  Bruno Haible  <bruno@clisp.org>
66310
66311         Cygwin portability.
66312         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66313
66314 2006-05-17  Bruno Haible  <bruno@clisp.org>
66315
66316         * lib/stdint_.h: Fix recognition of Cygwin.
66317
66318 2006-05-15  Bruno Haible  <bruno@clisp.org>
66319
66320         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66321         on libtool patch by Ralf Wildenhues.
66322
66323 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66326         test for C99 conformance; (bool) 0.5 is an integer constant
66327         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66328         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66329
66330 2006-05-11  Simon Josefsson  <jas@extundo.com>
66331
66332         * m4/xvasprintf.m4: Fix obvious typo.
66333
66334 2006-05-11  Jim Meyering  <jim@meyering.net>
66335
66336         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66337         James Lemley.
66338
66339 2006-05-10  Simon Josefsson  <jas@extundo.com>
66340
66341         * lib/md4.c: Typo fix, update copyright years.
66342         (K1, K2): Don't use L because it turn computations into 64-bit on
66343         64-bit platforms.
66344
66345 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66348         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66349         unwanted sign propagation, e.g., on hosts with 64-bit int.
66350         There still are some problems with reeelly weird theoretical hosts
66351         (e.g., 33-bit int) but it's not worth worrying about now.
66352         * lib/sha1.c (rol): Likewise.
66353         (K1, K2, K3, K4): Remove unnecessary L suffix.
66354
66355 2006-05-10  Bruno Haible  <bruno@clisp.org>
66356
66357         * lib/des.c: Cast to avoid warnings.
66358
66359 2006-05-09  Bruno Haible  <bruno@clisp.org>
66360
66361         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66362         (Depends-on): Depend also on xsize, stdarg.
66363         (configure.ac): Add gl_XVASPRINTF.
66364
66365 2006-05-09  Bruno Haible  <bruno@clisp.org>
66366
66367         * m4/xvasprintf.m4: New file.
66368
66369 2006-05-09  Bruno Haible  <bruno@clisp.org>
66370
66371         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66372         (EOVERFLOW): Define fallback value.
66373         (xstrcat): New function.
66374         (xvasprintf): Recognize the special case of a string concatenation.
66375
66376 2006-05-08  Eric Blake  <ebb9@byu.net>
66377
66378         * gnulib-tool (func_version): Base copyright year on CVS date.
66379         (func_emit_copyright_notice): New function.
66380         (func_emit_lib_Makefile_am): Use it.
66381         (func_emit_tests_Makefile_am): Likewise.
66382         (func_import): Likewise.
66383
66384 2006-05-08  Bruno Haible  <bruno@clisp.org>
66385
66386         * modules/stdarg: New file.
66387         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66388
66389 2006-05-08  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/stdarg.m4: New file, from GNU gettext.
66392
66393 2006-05-08  Bruno Haible  <bruno@clisp.org>
66394
66395         * config/srclist.txt (build-aux/config.rpath): different from latest
66396         release.
66397
66398 2006-05-08  Bruno Haible  <bruno@clisp.org>
66399
66400         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66401
66402 2006-05-05  Jim Meyering  <jim@meyering.net>
66403
66404         * m4/warning.m4: New file, derived from bison's file by the same name.
66405
66406 2006-05-03  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/stdint_.h: Shorter URL.
66409         * lib/inttypes.h: Likewise.
66410
66411 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66414
66415 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * lib/verify.h: Document the internals better.  Most of this change
66418         was written by Bruno Haible.
66419
66420 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * doc/verify.texi: New file, partly based on a proposal by
66423         Bruno Haible.
66424
66425 2006-05-02  Bruno Haible  <bruno@clisp.org>
66426
66427         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66428         test from here...
66429         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66430
66431 2006-04-29  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66434         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66435
66436 2006-04-29  Bruno Haible  <bruno@clisp.org>
66437
66438         * gnulib-tool: Make --update option actually work.
66439
66440 2006-04-29  Bruno Haible  <bruno@clisp.org>
66441
66442         * doc/gcd.texi: New file.
66443         * doc/gnulib.texi: Include it.
66444
66445 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * lib/getdate.y (get_date): When adding relative date, start with the
66448         initial time, not with the result of the first mktime call.
66449
66450 2006-04-25  Bruno Haible  <bruno@clisp.org>
66451
66452         * gnulib-tool (func_import): Output the include directives in three
66453         blocks, sorted separately.
66454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66455
66456 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66459         to define main with arguments, for C++.  Reported by Eric Blake.
66460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66461         Prefer 'int main ()' to 'int main (void)', for C++.
66462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66464         for 'main', for C99 and C++.
66465
66466 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66469         Don't assume that exit status -1 is valid.
66470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66471         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66472         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66473         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66474         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66475         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66476         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66477         functions can be used without declaring them, or that you can
66478         exit with status -1.
66479         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66480
66481 2006-04-24  Karl Berry  <karl@gnu.org>
66482
66483         * config/srclist.txt (longdouble.m4): sync lost.
66484
66485 2006-04-24  Eric Blake  <ebb9@byu.net>
66486
66487         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66488
66489 2006-04-24  Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66492         poll() implementation in AIX.
66493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66494
66495 2006-04-24  Bruno Haible  <bruno@clisp.org>
66496
66497         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66498         assigned exactly once.
66499
66500 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66501             Bruno Haible  <bruno@clisp.org>
66502
66503         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66504         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66505         for AM_CPPFLAGS.
66506
66507 2006-04-23  Bruno Haible  <bruno@clisp.org>
66508
66509         * modules/copy-file: Depend on unistd.
66510         * modules/execute: Likewise.
66511         * modules/fatal-signal: Likewise.
66512         * modules/findprog: Likewise.
66513         * modules/mkdtemp : Likewise.
66514         * modules/pipe: Likewise.
66515         * modules/wait-process: Likewise.
66516
66517 2006-04-23  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66520         condition was already detected.
66521         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66522
66523 2006-04-23  Bruno Haible  <bruno@clisp.org>
66524
66525         * lib/copy-file.c: Include <unistd.h> unconditionally.
66526         * lib/execute.c: Likewise.
66527         * lib/fatal-signal.c: Likewise.
66528         * lib/findprog.c: Likewise.
66529         * lib/mkdtemp.c: Likewise.
66530         * lib/pipe.h: Likewise.
66531         * lib/pipe.c: Likewise.
66532         * lib/wait-process.h: Likewise.
66533
66534 2006-04-23  Bruno Haible  <bruno@clisp.org>
66535
66536         * gnulib-tool (func_usage): Fix --import description. Document
66537         --update.
66538         (func_import): Create temporary file in a temporary directory, if
66539         --dry-run is specified. Silence errors from 'grep' when there are no
66540         m4 files in $m4dir.
66541         (func_create_testdir): Silence errors from 'grep' when there are no
66542         m4 files in $m4dir.
66543         Reported by Karl Berry <karl@freefriends.org>.
66544
66545 2006-04-20  Bruno Haible  <bruno@clisp.org>
66546
66547         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66548         one argument, so that the code will be portable to Autoconf 2.60.
66549         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66550         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66551         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66552
66553 2006-04-19  Derek Price  <derek@ximbiot.com>
66554             Eric Blake  <ebb9@byu.net>
66555
66556         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66557         rather than "/full/path.h".  Update comment to match.  Shorten &
66558         generalize m4_translit call via AS_TR_CPP.
66559
66560 2006-04-19  Derek Price  <derek@ximbiot.com>
66561             Eric Blake  <ebb9@byu.net>
66562
66563         * lib/inttypes.h: Correct grammar in comment.
66564
66565 2006-04-18  Derek Price  <derek@ximbiot.com>
66566             Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * modules/inttypes: New file.
66569         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66570
66571 2006-04-18  Derek Price  <derek@ximbiot.com>
66572             Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66575         New files.
66576
66577 2006-04-18  Derek Price  <derek@ximbiot.com>
66578             Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * lib/inttypes.h: New file.
66581         * lib/strtoimax.c: Assume <inttypes.h>.
66582
66583 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66586         isn't mounted.  Problem reported by Kir Kolyshkin.
66587
66588 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66591         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66592         Derek R. Price.
66593         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66594         implementation.
66595
66596 2006-04-12  Eric Blake  <ebb9@byu.net>
66597
66598         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66599         is now done automatically by the corresponding Autoconf macro.
66600
66601 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66604         time_r.h.
66605
66606 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66607
66608         Merge regex changes from libc, removing some of our
66609         POSIX-conformance changes that were rejected and redoing them in a
66610         less-intrusive way.
66611
66612         * lib/regcomp.c (re_compile_internal, init_dfa):
66613         Length arg is now size_t, not Idx.  All uses changed.
66614         (peek_token): Forward decl now says internal_function.
66615         (__re_error_msgid, __re_error_msgid_idx):
66616         Now static rather than extern with attribute_hidden.
66617         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66618         For some reason libc prefers K&R style defns for external functions.
66619         (regerror) [!defined _LIBC]: Likewise.
66620         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66621         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66622         (build_range_exp, build_collating_symbol):
66623         Use K&R-style defn.
66624         (re_compile_fastmap): Use '\0' to memset, not 0.
66625         (utf8_sb_map): Make the calculations more obvious.
66626         (init_dfa, parse_bracket_exp, build_charclass_op):
66627         Call calloc and cast result, as glibc does.
66628         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66629         (build_range_exp, build_collating_symbol):
66630         Now internal functions.
66631
66632         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66633
66634         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66635         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66636         Don't depend on VMS; depend on __VMS instead, for POSIX
66637         namespace cleanness.
66638         (regoff_t): Define to ssize_t, not long int.
66639
66640         Remove the REG_ macros named below.  Instead, make the old names
66641         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66642         __USE_GNU_REGEX.
66643         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66644         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66645         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66646         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66647         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66648         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66649         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66650         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66651         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66652         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66653         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66654         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66655         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66656         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66657         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66658         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66659         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66660         (REG_NREGS):
66661         Remove.  All uses replaced by the old RE_* names.
66662         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66663         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66664         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66665         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66666         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66667         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66668         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66669         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66670         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66671         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66672         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66673         Don't bother having these macros be independent of each others'
66674         values, since they no longer exist in the POSIX name space.
66675
66676         Rename the following member names back to their old names,
66677         unless !__USE_GNU_REGEX.  All uses changed back.
66678         (buffer): Renamed from re_buffer.
66679         (allocated): Renamed from re_allocated.
66680         (used): Renamed from re_used.
66681         (syntax): Renamed from re_syntax.
66682         (fastmap): Renamed from re_fastmap.
66683         (translate): Renamed from re_translate.
66684         (can_be_null): Renamed from re_can_be_null.
66685         (regs_allocated): Renamed from re_regs_allocated.
66686         (fastmap_accurate): Renamed from re_fastmap_accurate.
66687         (no_sub): Renamed from re_no_sub.
66688         (not_bol): Renamed from re_not_bol.
66689         (not_eol): Renamed from re_not_eol.
66690         (newline_anchor): Renamed from re_newline_anchor.
66691         (num_regs): Renamed from rm_num_regs.
66692         (start): Renamed from rm_start.
66693         (end): Renamed from rm_end.
66694
66695         (free_state): Move up a bit.
66696
66697         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66698         #define to be empty.
66699         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66700         when that is what is intended.
66701         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66702         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66703         (MAX): New macro.
66704         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66705         All uses changed back to re_malloc, etc.  It's now the caller's
66706         responsibility to check for overflow; all callers changed.
66707         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66708         (re_x2nrealloc): Remove.
66709         (free_state): Remove decl.
66710
66711         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66712         (re_set_registers, re_exec):
66713         Use K&R-style defn.
66714
66715         2006-01-31  Roland McGrath  <roland@redhat.com>
66716
66717         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66718         Reported by Mike Frysinger <vapier@gentoo.org>.
66719
66720         2006-01-15  Andreas Jaeger  <aj@suse.de>
66721
66722         [BZ #1950]
66723         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66724         build_wcs_upper_buffer change.
66725         (build_wcs_upper_buffer): Change return type.
66726
66727         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66728
66729         * lib/regex_internal.h: Include <stdint.h> if available.
66730
66731         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66732
66733         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66734
66735         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66736
66737         * lib/regcomp.c: Adjust for changed secondary hash function.
66738
66739         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66740
66741         * lib/regex.h: Pretty printing.
66742         Clean up namespace a bit.
66743
66744         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66745
66746         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66747         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66748
66749         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66750                     Ulrich Drepper  <drepper@redhat.com>
66751
66752         [BZ #1302]
66753         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66754         changed.
66755         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66756
66757         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66758
66759         [BZ #281]
66760         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66761         * lib/regcomp.c: Remove unnecessary uses of
66762         unsigned RE_TRANSLATE_TYPE.
66763         * lib/regex_internal.h: Likewise.
66764         * lib/regex_internal.c: Likewise.
66765         * lib/regexec.c: Likewise.
66766         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66767
66768         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66769
66770         * lib/regexec.c (find_recover_state): Remove unnecessary
66771         initialization.
66772         (transit_state_bkref): Make DFA a const pointer.
66773         (get_subexp): Likewise.
66774         (check_arrival): Likewise.
66775         (update_cur_sifted_state): Likewise.
66776         (re_search_internal): Likewise.
66777         (prune_impossible_nodes): Likewise.
66778         (acquire_init_state_context): Likewise.
66779         (proceed_next_node): Likewise.
66780         (set_regs): Likewise.
66781         (free_fail_stack_return): Likewise.
66782         (check_arrival_expand_ecl): Mark DFA parameter as const.
66783         (check_arrival_expand_ecl_sub): Likewise.
66784         (check_subexp_limits): Likewise.
66785         (sub_epsilon_src_nodes):  Likewise.
66786         (add_epsilon_src_nodes):  Likewise.
66787         (merge_state_array): Likewise.
66788         (update_regs): Likewise.
66789         (build_trtable): Likewise.
66790         (sift_states_backward): Mark MCTX parameter as const.
66791         (build_sifted_states): Likewise.
66792         (update_cur_sifted_state): Likewise.
66793         (sift_states_mkref): Likewise.
66794         (check_arrival_expand_ecl): Mark eclosure as const.
66795         (check_dst_limits_calc_pos_1): Likewise.
66796         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66797         pointer.
66798
66799         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66800
66801         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66802         (transit_state_sb): Likewise.
66803         (transit_state_mb): Likewise.
66804         (sift_states_iter_mb): Likewise.
66805         (check_arrival_add_next_nodes): Likewise.
66806         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66807         [_LIBC] (re_search_2_stub): Use mempcpy.
66808
66809         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66810         mbrtowc for very simple UTF-8 case.
66811
66812         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66813         a pointer-to-const.
66814         (re_acquire_state_context): Likewise.
66815         * lib/regex_internal.h: Adjust prototypes.
66816
66817         * lib/regex.c: Prevent using C++ compilers.
66818
66819         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66820         (re_acquire_state_context): Likewise.
66821
66822 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * modules/regex (Depends-on): Add ssize_t.
66825
66826 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66829         translation table.
66830
66831 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66834
66835 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66836             Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66839         <sys/types.h> and <inttypes.h>.
66840
66841 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66842
66843         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66844         `__error_t_defined', so argp.h will not typedef the former.
66845
66846 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66849         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66850         glibc names.  Even if glibc is changed to conform to POSIX, the
66851         traditional names will be available anyway, since regex depends on
66852         the extensions module.  Also, fix a longstanding typo in the
66853         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66854         reported by Emanuele Giaquinta.  Also, change sense of cached
66855         variable, so that the message makes sense.
66856
66857 2006-03-24  Simon Josefsson  <jas@extundo.com>
66858
66859         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66860         including some doc fixes.
66861         (base64_encode_alloc): Fix +1 bug on allocation failures.
66862
66863 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66864
66865         * lib/base64.c (base64_encode): Do not read past end of array with
66866         unsanitized input on systems with CHAR_BIT > 8.
66867
66868 2006-03-24  Eric Blake  <ebb9@byu.net>
66869
66870         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66871
66872 2006-03-22  Karl Berry  <karl@gnu.org>
66873
66874         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66875         * config/srclistvars.sh (COREUTILS): new var.
66876
66877 2006-03-17  Jim Meyering  <jim@meyering.net>
66878
66879         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66880         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66881
66882 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66885         no longer needs it.  Instead, check that regoff_t is as least
66886         as wide as ptrdiff_t.
66887
66888         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66889         so that our regex.h stays compatible with the installed regex.
66890         This is helpful for installers who configure --without-included-regex.
66891         Problem reported by Emanuele Giaquinta.
66892
66893 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66896         Typedef to long int, not to off_, as POSIX will likely change
66897         in that direction.
66898
66899 2006-03-15  Eric Blake  <ebb9@byu.net>
66900
66901         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66902
66903 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66904
66905         * lib/argp-help.c (validate_uparams): Fix typo
66906         * lib/argp-parse.c (argp_default_options): Consistently begin help
66907         messages with a lowercase letter.
66908
66909 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66912         overrun buffers and shouldn't be used (much as gets shouldn't be
66913         used).
66914         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66915
66916 2006-03-08  Simon Josefsson  <jas@extundo.com>
66917
66918         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66919         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66920
66921 2006-03-08  Simon Josefsson  <jas@extundo.com>
66922
66923         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66924         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66925
66926 2006-03-08  Simon Josefsson  <jas@extundo.com>
66927
66928         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66929         signal that configure disabled the device.
66930
66931 2006-03-08  Simon Josefsson  <jas@extundo.com>
66932
66933         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66934         languages.
66935
66936 2006-03-07  Simon Josefsson  <jas@extundo.com>
66937
66938         * modules/getopt (Depends-on): Add unistd.
66939
66940         * modules/unistd: New file.
66941
66942 2006-03-07  Simon Josefsson  <jas@extundo.com>
66943
66944         * modules/gc-random: New file.
66945
66946 2006-03-07  Simon Josefsson  <jas@extundo.com>
66947
66948         * m4/unistd_h.m4: New file.
66949
66950 2006-03-07  Simon Josefsson  <jas@extundo.com>
66951
66952         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66953         test to be side-effect free by storing the result in the cache
66954         variable gl_cv_lib_readline, and moving the assignment of
66955         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66956         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66957
66958 2006-03-07  Simon Josefsson  <jas@extundo.com>
66959
66960         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66961         error on missing devices (the functions will return an error).
66962
66963         * m4/gc.m4: Move random stuff to gc-random.m4
66964
66965 2006-03-07  Simon Josefsson  <jas@extundo.com>
66966
66967         * lib/unistd_.h: New file.
66968
66969 2006-03-07  Simon Josefsson  <jas@extundo.com>
66970
66971         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66972
66973 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66974
66975         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66976         Problem reported by Juan Manuel Guerrero.
66977
66978 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66981         the unistd module.
66982         * lib/getlogin_r.c: Likewise.
66983         * lib/getlogin_r.h: Likewise.
66984         * lib/glob.c: Likewise.
66985         * lib/pagealign_alloc.c: Likewise.
66986         * lib/unistd_.h: Remove; no longer needed.
66987
66988 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66991         Add unistd.
66992         * modules/c-stack (Depends-on): Add unistd.
66993         * modules/getlogin_r: Likewise.
66994         * modules/glob: Likewise.
66995         * modules/pagealign_alloc: Likewise.
66996         * modules/unistd (Files): Remove lib/unistd_.h.
66997         (EXTRA_DIST): Remove.
66998         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66999         need unistd_.h.
67000         (MOSTLYCLEANFILES): Remove unistd.h-t.
67001
67002 2006-03-03  Simon Josefsson  <jas@extundo.com>
67003
67004         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67005
67006 2006-03-03  Simon Josefsson  <jas@extundo.com>
67007
67008         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67009         libidn and bison.
67010
67011 2006-03-03  Simon Josefsson  <jas@extundo.com>
67012
67013         * build-aux/maint.mk: Add indent target.
67014
67015 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67016
67017         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67018         our replacement poll.h in any case, to avoid a differing
67019         declaration from a system header.  Seen on AIX.
67020
67021 2006-03-01  Simon Josefsson  <jas@extundo.com>
67022
67023         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67024         <kasal@ucw.cz>.
67025
67026 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * modules/gettime (Depends-on): Add extensions module.
67029         * modules/nanosleep (Depends-on): Likewise.
67030         * modules/settime (Depends-on): Likewise.
67031
67032 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67033
67034         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67035         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67036         pedantically.
67037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67038         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67039
67040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67041         not "==".  Reported by Ralf Wildenhues.
67042
67043 2006-03-01  Karl Berry  <karl@gnu.org>
67044
67045         * doc/Copyright/request-*: new files, synced from gnuorg.
67046
67047 2006-03-01  Karl Berry  <karl@gnu.org>
67048
67049         * config/srclist.txt (Copyright/*): new entries.
67050
67051 2006-02-28  Simon Josefsson  <jas@extundo.com>
67052
67053         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67054
67055 2006-02-27  Simon Josefsson  <jas@extundo.com>
67056
67057         * lib/base64.h: Indent #define's.  From Jim Meyering
67058         <jim@meyering.net>.
67059
67060 2006-02-27  Jim Meyering  <jim@meyering.net>
67061
67062         Revert the change of 2006-02-24, so these files can continue
67063         to be sync'd from gettext.
67064         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67065         of `config.h'.
67066
67067 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67068
67069         * modules/intprops: New file.
67070         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67071         Add intprops.
67072         * modules/getloadavg (Files): Remove lib/intprops.h.
67073         (Depends-on): Add intprops.
67074         * modules/human: Likewise.
67075         * modules/inttostr: Likewise.
67076         * modules/openat: Likewise.
67077         * modules/sig2str: Likewise.
67078         * modules/userspec: Likewise.
67079         * modules/utimecmp: Likewise.
67080         * modules/xnanosleep: Likewise.
67081         * modules/xstrtol: Likewise.
67082
67083 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67084
67085         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67086         * modules/lock-tests (TESTS): Use $(EXEEXT).
67087         * modules/tls-tests: Likewise.
67088         * modules/argp-tests: Likewise.
67089         (check_PROGRAMS): New var, replacing...
67090         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67091
67092 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67093
67094         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67095         `config.h'.
67096
67097 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67100
67101 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67102
67103         Sync from coreutils.
67104         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67105         gl_CHDIR_SAFER.
67106
67107 2006-02-22  Jim Meyering  <jim@meyering.net>
67108
67109         Sync from coreutils.
67110         * m4/chdir-safer.m4: New file.
67111
67112 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67115         AT_FDCWD exceeds INT_MAX.
67116         * lib/openat.h (AT_FDCWD): Likewise.
67117
67118 2006-02-17  Eric Blake  <address@hidden>
67119
67120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67121
67122 2006-02-16  Simon Josefsson  <jas@extundo.com>
67123
67124         * modules/getaddrinfo (Depends-on): Add sys_socket.
67125
67126 2006-02-15  Simon Josefsson  <jas@extundo.com>
67127
67128         * build-aux/maint.mk: Add dsyntax-check rule.
67129
67130 2006-02-15  Eric Blake  <ebb9@byu.net>
67131
67132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67133         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67134         'present but cannot compile' warnings on cygwin.
67135         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67136         use ws2tcpip.h if sys/socket.h works.
67137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67138         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67139
67140 2006-02-14  Simon Josefsson  <jas@extundo.com>
67141
67142         * modules/maintainer-makefile (Files): Rename.
67143
67144         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67145         and (the local) Makefile.cfg to maint-cfg.mk.
67146
67147         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67148         to the latter.
67149
67150         * modules/maintainer-makefile: New module.
67151
67152         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67153         severaly stripped to make it possible to build it up from scratch
67154         with reliable tests.
67155
67156         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67157         fixes to permit overriding the default actions when configure and
67158         makefile are not available.
67159
67160 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         Sync from coreutils.
67163         * modules/lstat (Depends-on): Don't depend on xalloc.
67164         (License): Change from GPL to LGPL, since this is now simply a
67165         replacement for a libc function.
67166
67167 2006-02-14  Jim Meyering  <jim@meyering.net>
67168
67169         Sync from coreutils.
67170
67171         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67172         failure on deficient systems, and simplify gnulib lgpl dependencies.
67173         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67174         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67175
67176         * lib/xalloc-die.c: Remove unused definition of N_.
67177
67178 2006-02-14  Jim Meyering  <jim@meyering.net>
67179
67180         Sync from coreutils.
67181         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67182         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67183         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67184         double-quote uses of that variable, to accommodate the rare case in
67185         which getmntent is available in none of the libraries checked.  This
67186         happens at least on FreeBSD 5.0.
67187
67188 2006-02-13  Simon Josefsson  <jas@extundo.com>
67189
67190         * gnulib-tool (Usage): Fix --import, from
67191         karl@freefriends.org (Karl Berry).
67192
67193 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67194
67195         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67196
67197 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67198
67199         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67200         "autoupdate" on 2005-12-12.
67201
67202 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * modules/closeout (Depends-on): Remove atexit.
67205
67206 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67209         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67210
67211 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67214         __EXTENSIONS__ if this causes compilation to fail.  Problem
67215         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67216         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67217
67218 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67221         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67223         All uses changed.
67224
67225 2006-01-26  Simon Josefsson  <jas@extundo.com>
67226
67227         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67228         prototype is visible on mingw32.
67229
67230         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67231         for mingw32.
67232
67233         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67234         mingw32).
67235
67236 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67239         attempt to open for write; this always fails, at least on POSIX
67240         hosts.  This reinstates the 2006-01-09 change, which was
67241         inadvertently removed.
67242
67243 2006-01-26  Bruno Haible  <bruno@clisp.org>
67244
67245         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67246         Reported by Paul Eggert.
67247
67248 2006-01-26  Bruno Haible  <bruno@clisp.org>
67249             Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/stdbool_.h (_Bool)
67252         [(! (defined __cplusplus || defined __BEOS__)
67253           && !defined __GNUC__
67254           && !(defined __HP_cc || defined __xlc__
67255                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67256                || defined __sgi))]:
67257         #define to signed char in these cases too; this simplifies
67258         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67259         etc., separately) and makes it more conservative.
67260
67261 2006-01-25  Simon Josefsson  <jas@extundo.com>
67262
67263         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67264         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67265         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67266
67267 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67268
67269         * lib/argp-namefrob.h: Bugfix. Remove stray #
67270
67271 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67274         so that we test the test.
67275         Check for yet another HP-UX cc bug involving *bool |= bool.
67276
67277 2006-01-25  Karl Berry  <karl@gnu.org>
67278
67279         * config/srclist.txt (vasnprintf.c): sync lost.
67280
67281 2006-01-25  Jim Meyering  <jim@meyering.net>
67282
67283         Sync from the stable (b5) branch of coreutils:
67284
67285         * lib/fts.c (fts_children): Don't let close() clobber errno from
67286         failed fchdir().
67287
67288         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67289         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67290         a dangling symlink.  That can also happen at least for ELOOP.
67291         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67292         FYI, this bug predates the inclusion of fts.c in coreutils.
67293
67294         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67295         in their own block, so pre-c99 compilers don't object.
67296
67297         Avoid the double-free (first in fts_read, second in fts_close) that
67298         would occur when an `active' directory is made inaccessible (e.g.,
67299         via chmod a-x) during a traversal.
67300         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67301         before returning.  Reproduce this failure by
67302         mkdir -p a/b; cd a; chmod a-x . b
67303         Reported by Stavros Passas.
67304
67305 2006-01-25  Jim Meyering  <jim@meyering.net>
67306
67307         * lib/fileblocks.c: Remove more useless parentheses.
67308         * lib/readutmp.h: Likewise.
67309
67310 2006-01-25  Bruno Haible  <bruno@clisp.org>
67311
67312         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67313         warnings.
67314         Reported by Paul Eggert.
67315
67316 2006-01-25  Bruno Haible  <bruno@clisp.org>
67317
67318         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67319         rid of a trap command. For Solaris sh.
67320         Reported by Mark D. Baushke <mdb@gnu.org>.
67321
67322 2006-01-24  Simon Josefsson  <jas@extundo.com>
67323
67324         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67325         Bruno.
67326
67327 2006-01-24  Karl Berry  <karl@gnu.org>
67328
67329         * config/srclist.txt (argp-namefrob.h): sync lost.
67330
67331 2006-01-24  Jim Meyering  <jim@meyering.net>
67332
67333         * modules/openat (Files): Add lib/intprops.h.
67334         From Mark D. Baushke.
67335
67336 2006-01-24  Jim Meyering  <jim@meyering.net>
67337
67338         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67339         Reported by Mark D. Baushke.
67340
67341 2006-01-24  Jim Meyering  <jim@meyering.net>
67342
67343         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67344
67345 2006-01-24  Bruno Haible  <bruno@clisp.org>
67346
67347         * modules/strnlen (Maintainer): Change from glibc to all.
67348
67349 2006-01-24  Bruno Haible  <bruno@clisp.org>
67350
67351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67352         Patch by Paul Eggert.
67353
67354 2006-01-24  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67357         already has it.
67358         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67359         2005-11-26.
67360
67361         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67362         'signed char' to avoid problems with the built-in _Bool type.
67363         Reported by Paul Eggert on 2005-11-26.
67364
67365 2006-01-24  Bruno Haible  <bruno@clisp.org>
67366
67367         * gnulib-tool (func_import): Avoid constructing complicated sed
67368         expressions inside backquote.
67369         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67370
67371 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67372
67373         These changes imported from libc.
67374         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67375         test and two separate function calls.
67376         * lib/strndup.c (__strndup): Add libc_hidden_def.
67377
67378 2006-01-23  Simon Josefsson  <jas@extundo.com>
67379
67380         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67381         Remove the test_*_SOURCES variable: automake infers it by default.
67382         * modules/tls-tests: Likewise.
67383
67384 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         Work around porting bugs reported by Dieter in
67387         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67388         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67389         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67390         Include "getopt.h" first, to check interface.
67391         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67392         !HAVE_DECL_GETENV.
67393         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67394         (__strndup): Revert to K&R-style function dfns, the glibc style.
67395         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67396         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67397         Include strnlen.h first, to get prototype properly.
67398         (strnlen): Renamed from __strnlen.
67399         Remove weak alias.
67400
67401 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67404
67405 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * config/srclist.txt: Adjust to reflect glibc reorganization.
67408         This affects only comments.
67409
67410 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67411
67412          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67413          Reported by Bruce Korb <bkorb@gnu.org>.
67414
67415 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67418         to pacify gcc -Wswitch-default.
67419
67420 2006-01-22  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67423         temporary buffer for sprintf, take into account the precision also
67424         for 'd', 'i', 'u', 'o', 'x', 'X'.
67425
67426 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67427
67428         * modules/argp-tests: New module
67429         * tests/test-argp.c: New file
67430         * tests/test-argp-2.sh: New file
67431
67432 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67433
67434         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67435         (__argp_base_name): Removed
67436         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67437         typo.
67438         (__argp_base_name): Provide macro definition or extern declaration
67439         depending on the configuration
67440
67441 2006-01-20  Simon Josefsson  <jas@extundo.com>
67442
67443         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67444
67445 2006-01-20  Simon Josefsson  <jas@extundo.com>
67446
67447         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67448
67449 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67452         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67453         Suggested by Bruno Haible.
67454
67455 2006-01-20  Karl Berry  <karl@gnu.org>
67456
67457         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67458         until changes propagate, I guess.
67459
67460 2006-01-19  Simon Josefsson  <jas@extundo.com>
67461
67462         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67463
67464 2006-01-19  Simon Josefsson  <jas@extundo.com>
67465
67466         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67467
67468 2006-01-19  Simon Josefsson  <jas@extundo.com>
67469
67470         * gnulib-tool: Set check_PROGRAMS.
67471
67472         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67473         modules/des-tests, modules/gc-arcfour-tests,
67474         modules/gc-arctwo-tests, modules/gc-des-tests,
67475         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67476         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67477         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67478         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67479         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67480         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67481         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67482         test_*_SOURCES.
67483
67484 2006-01-18  Simon Josefsson  <jas@extundo.com>
67485
67486         * modules/socklen (Depends-on): Depend on sys_socket.
67487
67488 2006-01-18  Simon Josefsson  <jas@extundo.com>
67489
67490         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67491         modules/des-tests, modules/gc-arcfour-tests,
67492         modules/gc-arctwo-tests, modules/gc-des-tests,
67493         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67494         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67495         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67496         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67497         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67498         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67499         $(EXEEXT) to automake TESTS variable, for mingw32.
67500
67501 2006-01-17  Simon Josefsson  <jas@extundo.com>
67502
67503         * modules/socklen (Include): Need sys/socket.h.
67504
67505 2006-01-17  Bruno Haible  <bruno@clisp.org>
67506
67507         * modules/ssize_t (Include): Add <sys/types.h>.
67508
67509 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67512         it's not portable and it doesn't work with cross-compiles.
67513         Problem reported by Bruno Haible.  Fix missing-$ typo in
67514         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67515         -zignore from being used with Sun's C compiler.
67516
67517 2006-01-12  Simon Josefsson  <jas@extundo.com>
67518
67519         * lib/base64.c: Fix warning, reported by Bruno Haible
67520         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67521
67522 2006-01-12  Bruno Haible  <bruno@clisp.org>
67523
67524         * modules/ldd: New file.
67525         * build-aux/ldd.sh.in: New file.
67526         * MODULES.html.sh (Support for building libraries and executables): Add
67527         ldd.
67528
67529 2006-01-12  Bruno Haible  <bruno@clisp.org>
67530
67531         * m4/ldd.m4: New file.
67532
67533 2006-01-12  Bruno Haible  <bruno@clisp.org>
67534
67535         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67536         endless loop while replacing $auxdir with build-aux.
67537
67538 2006-01-11  Simon Josefsson  <jas@extundo.com>
67539
67540         * lib/stdint_.h (SIZE_MAX): Add missing (.
67541
67542 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         Sync from coreutils.
67545         * lib/md5.c: Fix commentary typos.
67546         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67547         * lib/md5.h (__attribute__): Remove; unused.
67548         * lib/sha1.c: Fix commentary to match md5 better.
67549         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67550         so that we don't need to worry about alignment.  All uses changed.
67551         This merges the 2005-10-28 md5 change into sha1.
67552
67553 2006-01-11  Jim Meyering  <jim@meyering.net>
67554
67555         Sync from coreutils.
67556         * lib/md5.c (OP): Fix spacing.
67557
67558 2006-01-11  Bruno Haible  <bruno@clisp.org>
67559
67560         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67561         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67562         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67563
67564 2006-01-11  Bruno Haible  <bruno@clisp.org>
67565
67566         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67567         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67568         the "early" section as well.
67569
67570 2006-01-11  Bruno Haible  <bruno@clisp.org>
67571
67572         Avoid "ar: no archive members specified" error on MacOS X.
67573         * gnulib-tool (func_modules_add_dummy): New function.
67574         (func_import, func_create_testdir): Invoke it.
67575
67576 2006-01-11  Bruno Haible  <bruno@clisp.org>
67577
67578         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67579         with $auxdir in AC_CONFIG_FILES statements.
67580
67581 2006-01-11  Bruno Haible  <bruno@clisp.org>
67582
67583         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67584         Initialize also noinst_HEADERS to empty.
67585
67586 2006-01-11  Bruno Haible  <bruno@clisp.org>
67587
67588         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67589         variables.
67590         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67591         autoreconf.
67592
67593 2006-01-11  Bruno Haible  <bruno@clisp.org>
67594
67595         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67596         overridable by the user.
67597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67598
67599 2006-01-10  Simon Josefsson  <jas@extundo.com>
67600
67601         * modules/sys_socket: New file.
67602
67603 2006-01-10  Simon Josefsson  <jas@extundo.com>
67604
67605         * m4/sys_socket_h.m4: New file.
67606
67607 2006-01-10  Simon Josefsson  <jas@extundo.com>
67608
67609         * lib/socket_.h: New file.
67610
67611 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * modules/readutmp (Maintainer): Add myself.
67614
67615 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67618         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67619         People who are still concerned with buggy memcmp implementations
67620         can invoke gl_FUNC_MEMCMP themselves.
67621
67622 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * lib/regex_internal.h (BITSET_WORD_BITS):
67625         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67626         preprocessor mishandles large unsigned values as if they were signed.
67627         Problem reported by Claudio Fontana in
67628         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67629
67630 2006-01-10  Jim Meyering  <jim@meyering.net>
67631
67632         Avoid the double-free (first in fts_read, second in fts_close) that
67633         would occur when an `active' directory is made inaccessible (e.g.,
67634         via chmod a-x) during a traversal.
67635         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67636         before returning.  Reproduce this failure by
67637         mkdir -p a/b; cd a; chmod a-x . b
67638         Reported by Stavros Passas.
67639
67640         Sync from coreutils.
67641         * lib/sha1.c: Tweak grammar in a comment.
67642
67643 2006-01-10  Jim Meyering  <jim@meyering.net>
67644
67645         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67646         Patch by Joerg Sonnenberger.
67647
67648 2006-01-10  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/readutmp: Depend on module free.
67651         * modules/strtok_r: Depend on module restrict.
67652
67653 2006-01-10  Bruno Haible  <bruno@clisp.org>
67654
67655         * modules/gettext (configure.ac): Add an invocation of
67656         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67657
67658 2006-01-10  Bruno Haible  <bruno@clisp.org>
67659
67660         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67661         Reported by Werner Lemberg <wl@gnu.org>.
67662
67663 2006-01-10  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/localcharset.c: Update from GNU gettext.
67666
67667 2006-01-10  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/argp.h (__const): Remove macro. Use const instead.
67670         * lib/argp-fmtstream.h (__const): Likewise.
67671         * lib/glob_.h (__const): Remove macro.
67672         * lib/glob-libc.h: Use const instead of __const.
67673
67674 2006-01-10  Bruno Haible  <bruno@clisp.org>
67675
67676         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67677         variable.
67678         Needed to avoid an automake error regarding the 'gettext' module.
67679
67680 2006-01-09  Simon Josefsson  <jas@extundo.com>
67681
67682         * modules/inet_ntop (Depends-on): Add restrict.
67683
67684 2006-01-09  Simon Josefsson  <jas@extundo.com>
67685
67686         * modules/gc-rijndael-tests (License): Put under LGPL.
67687
67688         * modules/gc-des-tests (License): Likewise.
67689
67690         * modules/gc-arcfour-tests (License): Likewise.
67691
67692         * modules/gc-arctwo-tests (License): Likewise.
67693
67694         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67695
67696         * modules/gc-hmac-sha1-tests (Files): Likewise.
67697
67698         * modules/gc-hmac-md5-tests (License): Likewise.
67699
67700         * modules/gc-sha1-tests (License): Likewise.
67701
67702         * modules/gc-md5-tests (License): Likewise.
67703
67704         * modules/gc-md4-tests (License): Likewise.
67705
67706         * modules/gc-md2-tests (License): Likewise.
67707
67708         * modules/gc-tests (License): Likewise.
67709
67710         * modules/des-tests (License): Likewise.
67711
67712         * modules/md4-tests (License): Likewise.
67713
67714         * modules/md2-tests (License): Likewise.
67715
67716 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         Sync from coreutils:
67719
67720         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67721         * modules/lib-ignore: New file.
67722         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67723         chdir-safer.m4, lchmod.m4.
67724         * modules/openat: Add mkdirat.c, openat-priv.h.
67725
67726 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         Sync from coreutils.
67729         * m4/lib-ignore.m4: New file.
67730         * m4/lchmod.m4: New file.
67731
67732 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         Sync from coreutils.
67735         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67736         for write access: POSIX says that must fail.
67737         * lib/fts.c (diropen): Likewise.
67738         * lib/save-cwd.c (save_cwd): Likewise.
67739         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67740         well, for minor improvements on hosts that lack O_DIRECTORY.
67741         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67742         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67743         Fall back on chown if open failed with EACCES.
67744
67745         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67746         Report an error at compile-time if only a 1-second nominal clock
67747         resolution is found.
67748
67749         * lib/lchmod.h: New file.
67750         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67751         (make_dir_parents): Use lchown rather than chown, and
67752         lchmod rather than chmod.
67753
67754         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67755         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67756         "proc" reported by n0dalus.
67757
67758         * lib/mountlist.c: Include <limits.h>.
67759         (dev_from_mount_options)
67760         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67761         New function.  It no longer assumes "dev=" has the System V meaning
67762         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67763         (read_file_system_list)
67764         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67765         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67766         dev= in that case.
67767
67768         * lib/posixtm.h (PDS_PRE_2000): New macro.
67769         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67770         allow_century.  All usages changed.  Reject dates outside the range
67771         1969-1999 if PDS_PRE_2000 is used.
67772
67773 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         Sync from coreutils.
67776         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67777         (Time of day items): Mention the possibility of leap seconds.
67778         Problem reported by Dr. David Alan Gilbert.
67779
67780 2006-01-09  Jim Meyering  <jim@meyering.net>
67781
67782         Sync from coreutils.
67783
67784         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67785
67786         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67787
67788         * lib/modechange.c (mode_compile): Reject an invalid mode string
67789         that starts with an octal digit.  From Andreas Gruenbacher.
67790
67791         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67792         and dup to open_safer and dup_safer, respectively.
67793         (openat_permissive): Fix typo in comment.
67794
67795         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67796         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67797         (_): Remove; no longer needed.
67798         (openat): Renamed from rpl_openat; no need for rpl_openat
67799         since openat.h renames openat for us.
67800         Replace most of the body with a call to openat_permissive,
67801         to avoid duplicate code.
67802         Port to (probably hypothetical) environments were mode_t is
67803         wider than int.
67804         (openat_permissive): Require mode arg, so that we can check
67805         types better.  Put it just after flags.  Change cwd failure
67806         indicator from pointer-to-bool to pointer-to-errno-value.
67807         All callers changed.
67808         Invoke openat_save_fail and/or openat_restore_fail if
67809         cwd_errno is null, so that openat can call us.
67810         (openat_permissive, fdopendir, fstatat, unlinkat):
67811         Simplify errno handling to avoid some duplicate code,
67812         as it's OK to set errno on success.
67813         * lib/openat.h: Revamp code so that function macros depend on
67814         __OPENAT_PREFIX only, not also on AT_FDCWD.
67815         (openat_ro): Remove.  Caller changed to use openat_permissive.
67816         (openat_permissive): Now a macro, if not a function.
67817         (openat_restore_fail, openat_save_fail): Now always functions,
67818         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67819
67820         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67821         and openat.c.
67822         * lib/mkdirat.c: Include openat-priv.h.
67823         Remove definitions of macros defined therein.
67824         * lib/openat.c: Likewise.
67825
67826         * lib/mkdirat.c (mkdirat): New file and function.
67827         * lib/openat.h (mkdirat): Declare.
67828
67829         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67830
67831         * lib/openat.h (openat_permissive): Declare.
67832         (openat_ro): Define.
67833
67834         * lib/openat.c (EXPECTED_ERRNO): New macro.
67835         (openat_permissive): New function -- used in remove.c rewrite.
67836         (all functions): Set errno just before returning, only if there
67837         was an actual failure.
67838         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67839
67840         Emulate openat-family functions using Linux's procfs, if possible.
67841         Idea and some code based on Ulrich Drepper's glibc changes.
67842
67843         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67844         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67845         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67846         before falling back on save_cwd and restore_cwd.
67847         (fdopendir, fstatat, unlinkat): Likewise.
67848
67849         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67850         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67851
67852         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67853         as second argument to va_arg.  Otherwise, some versions of gcc
67854         warn that `if this code is reached, the program will abort'.
67855
67856 2006-01-09  Jim Meyering  <jim@meyering.net>
67857
67858         Sync from coreutils.
67859         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67860         Require openat-priv.h.
67861
67862 2006-01-09  Bruno Haible  <bruno@clisp.org>
67863
67864         * modules/strnlen (Include): Use strnlen.h.
67865
67866 2006-01-09  Bruno Haible  <bruno@clisp.org>
67867
67868         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67869
67870 2006-01-09  Bruno Haible  <bruno@clisp.org>
67871
67872         * lib/sysexit_.h (EX_OK): New macro.
67873         Suggested by Martin Lambers <marlam@marlam.de>.
67874
67875 2006-01-09  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67878         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67879
67880 2006-01-09  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67883         numbers.
67884
67885 2006-01-09  Bruno Haible  <bruno@clisp.org>
67886
67887         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67888         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67889         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67890         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67891
67892 2006-01-09  Bruno Haible  <bruno@clisp.org>
67893
67894         * build-aux/javacomp.sh.in: New file, moved from lib/.
67895         * modules/javacomp-script (Files): Update.
67896         (configure.ac): Add AC_CONFIG_FILES invocation.
67897         (EXTRA_DIST): Remove variable.
67898
67899         * build-aux/javaexec.sh.in: New file, moved from lib/.
67900         * modules/javaexec (Files): Update.
67901         (configure.ac): Add AC_CONFIG_FILES invocation.
67902         (EXTRA_DIST): Remove javaexec.sh.in.
67903
67904         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67905         * modules/csharpcomp-script (Files): Update.
67906         (configure.ac): Add AC_CONFIG_FILES invocation.
67907         (EXTRA_DIST): Remove variable.
67908
67909         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67910         * modules/csharpexec (Files): Update.
67911         (configure.ac): Add AC_CONFIG_FILES invocation.
67912         (EXTRA_DIST): Remove csharpexec.sh.in.
67913
67914 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67915
67916         Sync from coreutils.
67917
67918         Add POSIX ACL support
67919         * lib/acl.h (copy_acl, set_acl): Add declarations.
67920         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67921         systems other than Linux.
67922         (chmod_or_fchmod): New function: use fchmod when possible,
67923         and chmod otherwise.
67924         (file_has_acl): Add a POSIX ACL implementation, with a
67925         Linux-specific subcase.
67926         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67927         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67928         acls are unsupported.
67929         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67930         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67931         are unsupported.
67932
67933 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67934
67935         Sync from coreutils.
67936         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67937
67938 2006-01-07  Bruno Haible  <bruno@clisp.org>
67939
67940         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67941         gl_EARLY.
67942
67943 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67946         Problem reported for Mingw by Mark Junker.
67947
67948 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * README: Gnulib normally doesn't generate a tarball.
67951
67952 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67955         long int, not int, for nanosecond counts, so that people who are
67956         used to POSIX struct timespec won't be surprised.  Reported by Jim
67957         Meyering.
67958
67959 2005-12-28  Bruno Haible  <bruno@clisp.org>
67960
67961         * build-aux/config.rpath: Update from GNU gettext.
67962
67963 2005-12-16  Jim Meyering  <jim@meyering.net>
67964
67965         * modules/fprintftime: New module.
67966         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67967
67968 2005-12-16  Jim Meyering  <jim@meyering.net>
67969
67970         * m4/fprintftime.m4: New file.
67971
67972 2005-12-16  Jim Meyering  <jim@meyering.net>
67973
67974         * lib/fprintftime.c, lib/fprintftime.h: New files.
67975
67976 2005-12-15  Simon Josefsson  <jas@extundo.com>
67977
67978         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67979         new m4/socklen.m4.
67980
67981 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67982
67983         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67984         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67985
67986 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67987
67988         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67989         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67990         struct uparams is valid. Fall back to the default values if it is
67991         not.
67992
67993 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67994
67995         * modules/argp (Files): Add argp-pin.c
67996         (Depends-on): dirname
67997         (lib_SOURCES): Add argp-pin.c
67998
67999 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68000
68001         * m4/argp.m4:  Check if program_invocation_name and
68002         program_invocation_short_name are declared and define appropriate
68003         macros if they are not.
68004
68005 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68006
68007         * lib/argp-help.c (__argp_base_name): New function
68008         (__argp_short_program_name): Rewrite using __argp_base_name
68009         * lib/argp-namefrob.h: Define program_invocation_name and
68010         program_invocation_short_name if requested
68011         (__argp_base_name): Add prototype
68012         * lib/argp-parse.c (argp_def): Use gettext wrappers
68013         (argp_default_parser): Use __argp_base_name
68014         * lib/argp-pin.c: New file. Defines program_invocation_name and
68015         program_invocation_short_name on systems that lack them.
68016
68017 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68020         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68021         porting problem reported by Georg Schwarz in
68022         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68023
68024 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68027         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68028         porting problem reported by Georg Schwarz in
68029         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68030
68031 2005-12-05  Bruno Haible  <bruno@clisp.org>
68032
68033         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68034         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68035         Reported by Mark Junker <mjscod@gmx.de>.
68036
68037 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68040         Use implementation from Albert Chin, with some
68041         comments/corrections by Stepan Kasal and myself.
68042
68043 2005-12-02  Bruno Haible  <bruno@clisp.org>
68044
68045         * gnulib-tool (func_import): Accept GPLed build tool modules when
68046         --lgpl is given.
68047         * modules/csharpcomp-script: New file.
68048         * modules/csharpcomp: Depend on it.
68049         * modules/javacomp-script: New file.
68050         * modules/javacomp: Depend on it.
68051         Suggested by Simon Josefsson.
68052
68053 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68056         statement, to work around an HP-UX 10.20 compiler bug reported by
68057         Peter O'Gorman.
68058
68059 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68060
68061         * modules/savedir (Depends-on): Add openat.
68062
68063 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68066         (uintmax_t) [defined uintmax_t]: Do not declare.
68067         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68068         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68069         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68070         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68071         sake of portability to weird hosts that C allows (though we don't
68072         know of any practical examples).
68073
68074         * lib/savedir.h (fdsavedir): New decl.
68075         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68076         contains most of the former guts of savedir.
68077         (savedir): Use savedirstream.
68078         Include "openat.h".
68079
68080 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * modules/obstack (Files): Add m4/ulonglong.m4.
68083         Problem reported by Davide Angelocola.
68084
68085 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68088         coreutils no longer futzes with rounding modes.
68089
68090 2005-11-14  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68093         replacement of mkstemp.
68094
68095 2005-11-10  Simon Josefsson  <jas@extundo.com>
68096
68097         * lib/readline.c: Remove EOL.
68098
68099 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         * modules/gethrxtime (Depends-on): Add gettime.
68102
68103 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68106         or gettimeofday; no longer needed.
68107
68108 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68111         time business.
68112         (gethrxtime) [! (HAVE_NANOUPTIME
68113         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68114         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68115         our own approximation.
68116
68117 2005-11-08  Eric Blake  <ebb9@byu.net>
68118
68119         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68120
68121 2005-11-08  Eric Blake  <ebb9@byu.net>
68122
68123         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68124
68125 2005-11-04  Bruno Haible  <bruno@clisp.org>
68126
68127         * gnulib-tool: Implement --update mode.
68128
68129 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68130
68131         Fix porting problem reported by Theodoros V. Kalamatianos.
68132         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68133         Don't assume that futimes failing means we must fail.
68134
68135 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68138         variables to suggest the intended function of the PATH_MAX check.
68139
68140 2005-10-30  Kean Johnston  <jkj@sco.com>
68141
68142         Trivial changes to support SCO systems.
68143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68144         as PATH_MAX.
68145         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68146         where __ptr is null when no I/O is pending.
68147
68148 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68151         leave errno alone.  Problem reported by Dmitry V. Levin.
68152
68153 2005-10-28  Simon Josefsson  <jas@extundo.com>
68154
68155         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68156         Test more.
68157
68158         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68159
68160         * modules/md2, modules/md2-tests: New files.
68161
68162 2005-10-28  Simon Josefsson  <jas@extundo.com>
68163
68164         * m4/inet_ntop.m4: More tests.
68165
68166         * m4/gc-md2.m4, md2.m4: New file.
68167
68168 2005-10-28  Simon Josefsson  <jas@extundo.com>
68169
68170         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68171         "restrict" keywords, as per POSIX.  Protect the function
68172         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68173         Don't use K&R prototypes.  Check the sprintf return values.
68174         Re-define EAFNOSUPPORT if not present.  Indent.
68175
68176         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68177         suggested by Bruno Haible <bruno@clisp.org>.
68178
68179         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68180
68181         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68182
68183         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68184         libgcrypt).
68185
68186         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68187
68188         * lib/md2.h, lib/md2.c: New files.
68189
68190 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68193         errno alone.  Problem reported by Frederic Jolliton.
68194
68195 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * modules/verify (License): Change from GPL to LGPL.  This is a
68198         tiny module and there are apparently near-equivalents that are
68199         under the BSD license.
68200
68201 2005-10-24  Simon Josefsson  <jas@extundo.com>
68202
68203         * modules/sha1: Relicense to LGPL.
68204
68205 2005-10-24  Simon Josefsson  <jas@extundo.com>
68206
68207         * lib/md4.h: Shrink buffer size, now that we changed the type.
68208
68209 2005-10-23  Simon Josefsson  <jas@extundo.com>
68210
68211         * gnulib-tool (func_import): Fix --tests-base.
68212
68213 2005-10-22  Simon Josefsson  <jas@extundo.com>
68214
68215         * modules/arcfour (Depends-on): Need stdint.
68216
68217 2005-10-22  Simon Josefsson  <jas@extundo.com>
68218
68219         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68220         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68221
68222 2005-10-22  Simon Josefsson  <jas@extundo.com>
68223
68224         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68225         suggested by Bruno Haible <bruno@clisp.org>.
68226
68227 2005-10-22  Simon Josefsson  <jas@extundo.com>
68228
68229         * lib/crc.h: Include stddef.h, for size_t.
68230
68231 2005-10-22  Simon Josefsson  <jas@extundo.com>
68232
68233         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68234         arcfour_context struct (simplify test vector testing in GNU
68235         Shishi).
68236
68237 2005-10-21  Simon Josefsson  <jas@extundo.com>
68238
68239         * modules/des, modules/des-tests: New files.
68240
68241         * modules/gc-des, modules/gc-des-tests: New files.
68242
68243         * tests/test-des.c, tests/test-gc-des.c: New file.
68244
68245 2005-10-21  Simon Josefsson  <jas@extundo.com>
68246
68247         * modules/arctwo, modules/arctwo-tests: New files.
68248
68249         * tests/test-arctwo.c: New file.
68250
68251         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68252
68253         * tests/test-gc-arctwo.c: New file.
68254
68255 2005-10-21  Simon Josefsson  <jas@extundo.com>
68256
68257         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68258         Bruno Haible <bruno@clisp.org>.
68259
68260         * m4/gc-des.m4: New file.
68261
68262 2005-10-21  Simon Josefsson  <jas@extundo.com>
68263
68264         * m4/arctwo.m4: New file.
68265
68266         * m4/gc-arctwo.m4: New file.
68267
68268 2005-10-21  Simon Josefsson  <jas@extundo.com>
68269
68270         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68271         block.
68272
68273 2005-10-21  Simon Josefsson  <jas@extundo.com>
68274
68275         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68276         <bruno@clisp.org>.
68277
68278         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68279
68280         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68281         Bruno Haible <bruno@clisp.org>.
68282
68283         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68284         <bruno@clisp.org>.
68285
68286 2005-10-21  Simon Josefsson  <jas@extundo.com>
68287
68288         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68289
68290 2005-10-21  Simon Josefsson  <jas@extundo.com>
68291
68292         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68293
68294 2005-10-21  Simon Josefsson  <jas@extundo.com>
68295
68296         * lib/des.h, lib/des.c: New files.
68297
68298         * lib/gc-gnulib.c: Support DES.c
68299
68300 2005-10-21  Simon Josefsson  <jas@extundo.com>
68301
68302         * lib/arctwo.h, lib/arctwo.c: New files.
68303
68304         * lib/gc-gnulib.c: Support ARCTWO.
68305
68306 2005-10-21  Simon Josefsson  <jas@extundo.com>
68307
68308         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68309         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68310
68311 2005-10-21  Simon Josefsson  <jas@extundo.com>
68312
68313         * gnulib-tool (func_import, func_create_testdir): Define automake
68314         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68315         Makefile.am snippet),
68316         suggested by Bruno Haible <bruno@clisp.org>.
68317
68318         * modules/gc (Makefile.am): Use it.
68319
68320 2005-10-21  Bruno Haible  <bruno@clisp.org>
68321
68322         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68323         patch.
68324
68325 2005-10-19  Simon Josefsson  <jas@extundo.com>
68326
68327         * tests/test-gc-rijndael.c: New file.
68328
68329         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68330
68331 2005-10-19  Simon Josefsson  <jas@extundo.com>
68332
68333         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68334         interface too.
68335
68336 2005-10-19  Simon Josefsson  <jas@extundo.com>
68337
68338         * tests/test-gc-arcfour.c: New file.
68339
68340         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68341
68342 2005-10-19  Simon Josefsson  <jas@extundo.com>
68343
68344         * modules/gc-md4, modules/gc-md4-tests: New file.
68345
68346         * tests/test-gc-md4.c: New file.
68347
68348 2005-10-19  Simon Josefsson  <jas@extundo.com>
68349
68350         * m4/gc-md4.m4: New file.
68351
68352 2005-10-19  Simon Josefsson  <jas@extundo.com>
68353
68354         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68355         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68356         <kasal@ucw.cz>.
68357
68358 2005-10-19  Simon Josefsson  <jas@extundo.com>
68359
68360         * m4/gc-arcfour.m4: New file.
68361
68362         * m4/gc-rijndael.m4: New file.
68363
68364 2005-10-19  Simon Josefsson  <jas@extundo.com>
68365
68366         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68367
68368 2005-10-19  Simon Josefsson  <jas@extundo.com>
68369
68370         * lib/gc-gnulib.c: Support ARCFOUR.
68371
68372 2005-10-19  Simon Josefsson  <jas@extundo.com>
68373
68374         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68375         support.
68376
68377         * lib/gc.h: Add ECB enum type.
68378
68379         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68380
68381 2005-10-18  Simon Josefsson  <jas@extundo.com>
68382
68383         * tests/test-md5.c: New file.
68384
68385         * modules/md5-tests: New file.
68386
68387 2005-10-18  Simon Josefsson  <jas@extundo.com>
68388
68389         * tests/test-md4.c: New file.
68390
68391         * modules/md4, modules/md4-tests: New files.
68392
68393 2005-10-18  Simon Josefsson  <jas@extundo.com>
68394
68395         * m4/md4.m4: New file.
68396
68397 2005-10-18  Simon Josefsson  <jas@extundo.com>
68398
68399         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68400
68401 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68402
68403         * gnulib-tool (func_create_testdir): Omit the second check whether
68404         BUILT_SOURCES in nonempty.
68405
68406 2005-10-17  Simon Josefsson  <jas@extundo.com>
68407
68408         * tests/test-rijndael.c: New file.
68409
68410 2005-10-17  Simon Josefsson  <jas@extundo.com>
68411
68412         * modules/sha1: Depend on stdint instead of md5.
68413
68414         * modules/md5: Depend on stdint, remove uint32_t.
68415
68416 2005-10-17  Simon Josefsson  <jas@extundo.com>
68417
68418         * modules/gc-sha1-tests: New file.
68419
68420         * tests/test-gc-sha1.c: New file.
68421
68422 2005-10-17  Simon Josefsson  <jas@extundo.com>
68423
68424         * m4/md5.m4: Remove call to uint32_t.m4.
68425
68426 2005-10-17  Simon Josefsson  <jas@extundo.com>
68427
68428         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68429
68430         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68431         md5.h.
68432
68433         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68434
68435         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68436
68437 2005-10-17  Simon Josefsson  <jas@extundo.com>
68438
68439         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68440
68441 2005-10-17  Simon Josefsson  <jas@extundo.com>
68442
68443         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68444
68445 2005-10-17  Simon Josefsson  <jas@extundo.com>
68446
68447         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68448
68449         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68450
68451 2005-10-17  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68454         that it can also be used in a test.
68455
68456 2005-10-16  Bruno Haible  <bruno@clisp.org>
68457
68458         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68459         TESTS_ENVIRONMENT, so that individual tests can augment it.
68460
68461         * gnulib-tool (func_create_testdir): Use an intermediate target for
68462         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68463         macros, like $(ALLOCA_H), which cannot be passed through the command
68464         line.
68465
68466 2005-10-15  Simon Josefsson  <jas@extundo.com>
68467
68468         * modules/rijndael-tests: New file.
68469
68470         * modules/rijndael: New file.
68471
68472 2005-10-15  Simon Josefsson  <jas@extundo.com>
68473
68474         * m4/rijndael.m4: New file.
68475
68476 2005-10-15  Simon Josefsson  <jas@extundo.com>
68477
68478         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68479
68480         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68481
68482 2005-10-14  Simon Josefsson  <jas@extundo.com>
68483
68484         * tests/test-arcfour.c: New file.
68485
68486         * modules/arcfour, modules/arcfour-tests: New files.
68487
68488 2005-10-14  Simon Josefsson  <jas@extundo.com>
68489
68490         * m4/arcfour.m4: New file.
68491
68492 2005-10-14  Simon Josefsson  <jas@extundo.com>
68493
68494         * lib/arcfour.h, lib/arcfour.c: New files.
68495
68496 2005-10-14  Roland McGrath  <roland@redhat.com>
68497
68498         Import from libc.  [BZ #1331]
68499         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68500         macro argument.
68501         Reported by Matej Vela <vela@debian.org>.
68502
68503 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68506         include <wchar.h>; no longer needed.
68507
68508 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68511
68512 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68513         and  Ulrich Drepper  <drepper@redhat.com>
68514
68515         Import from libc.
68516         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68517         instead of inline stream orientation test and two separate
68518         function calls.  Pay no attention to USE_IN_LIBIO.
68519
68520 2005-10-13  Simon Josefsson  <jas@extundo.com>
68521
68522         * modules/gc-hmac-md5-tests: New file.
68523
68524         * tests/test-gc-hmac-sha1.c: New file.
68525
68526         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68527
68528         * modules/gc-hmac-md5-tests: New file.
68529
68530         * tests/test-gc-md5.c: New file.
68531
68532         * modules/gc-md5-tests: New file.
68533
68534 2005-10-13  Simon Josefsson  <jas@extundo.com>
68535
68536         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68537         Move memory allocation outside of loop.
68538
68539 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68542         intermediate directory is in a read-only file system.  Problem
68543         reported by Eric Blake.
68544
68545 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68546
68547         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68548
68549 2005-10-12  Simon Josefsson  <jas@extundo.com>
68550
68551         * tests/test-hmac-sha1.c: New file.
68552
68553         * modules/hmac-sha1-tests: New file.
68554
68555         * modules/hmac-sha1: New file.
68556
68557 2005-10-12  Simon Josefsson  <jas@extundo.com>
68558
68559         * modules/gc-sha1: New file.
68560
68561 2005-10-12  Simon Josefsson  <jas@extundo.com>
68562
68563         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68564
68565         * tests/test-gc-pbkdf2-sha1.c: New file.
68566
68567 2005-10-12  Simon Josefsson  <jas@extundo.com>
68568
68569         * modules/gc-md5, modules/gc-hmac-md5: New files.
68570
68571         * modules/gc (Files): Remove md5, memxor and hmac files.
68572
68573 2005-10-12  Simon Josefsson  <jas@extundo.com>
68574
68575         * m4/gc-pbkdf2-sha1.m4: New file.
68576
68577         * m4/gc-hmac-sha1.m4: New file.
68578
68579         * m4/gc-sha1: New file.
68580
68581         * m4/hmac-sha1.m4: New file.
68582
68583 2005-10-12  Simon Josefsson  <jas@extundo.com>
68584
68585         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68586
68587         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68588
68589 2005-10-12  Simon Josefsson  <jas@extundo.com>
68590
68591         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68592         suggested by Bruno Haible <bruno@clisp.org>.
68593
68594 2005-10-12  Simon Josefsson  <jas@extundo.com>
68595
68596         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68597
68598 2005-10-12  Simon Josefsson  <jas@extundo.com>
68599
68600         * lib/gc-pbkdf2-sha1.c: New file.
68601
68602         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68603
68604 2005-10-12  Simon Josefsson  <jas@extundo.com>
68605
68606         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68607
68608         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68609
68610 2005-10-12  Simon Josefsson  <jas@extundo.com>
68611
68612         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68613         GC_USE_HMAC_MD5, respectively.
68614
68615         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68616         (gc_md5): Fix typo.
68617
68618         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68619
68620         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68621
68622         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68623
68624 2005-10-12  Bruno Haible  <bruno@clisp.org>
68625
68626         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68627         Reported by Stepan Kasal <kasal@ucw.cz>.
68628
68629 2005-10-11  Simon Josefsson  <jas@extundo.com>
68630
68631         * tests/test-crc.c: New file.
68632
68633         * modules/crc, modules/crc-tests: New files.
68634
68635 2005-10-11  Simon Josefsson  <jas@extundo.com>
68636
68637         * m4/crc.m4: New file.
68638
68639 2005-10-11  Simon Josefsson  <jas@extundo.com>
68640
68641         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68642
68643         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68644
68645         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68646
68647 2005-10-11  Simon Josefsson  <jas@extundo.com>
68648
68649         * lib/crc.h, lib/crc.c: New files.
68650
68651         * lib/gc.h (gc_hash_buffer): Add doc.
68652
68653 2005-10-11  Bruno Haible  <bruno@clisp.org>
68654
68655         * modules/c-strcasestr: New file.
68656         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68657
68658 2005-10-11  Bruno Haible  <bruno@clisp.org>
68659
68660         * modules/c-strcase: New file.
68661         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68662
68663 2005-10-11  Bruno Haible  <bruno@clisp.org>
68664
68665         * lib/strcasecmp.c: Include limits.h.
68666         (strcasecmp): Avoid integer overflow on exotic platforms.
68667         * lib/strncasecmp.c: Include limits.h.
68668         (strncasecmp): Avoid integer overflow on exotic platforms.
68669         Reported by Paul Eggert.
68670
68671 2005-10-11  Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/c-strcasestr.h: New file, from GNU gettext.
68674         * lib/c-strcasestr.c: New file, from GNU gettext.
68675
68676 2005-10-11  Bruno Haible  <bruno@clisp.org>
68677
68678         * lib/c-strcase.h: New file, from GNU gettext.
68679         * lib/c-strcasecmp.c: New file, from GNU gettext.
68680         * lib/c-strncasecmp.c: New file, from GNU gettext.
68681
68682 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * modules/mempcpy (License): GPL -> LGPL.
68685         * modules/strchrnul (License): Likewise.
68686         * modules/sysexits (License): Likewise.
68687
68688 2005-10-08  Simon Josefsson  <jas@extundo.com>
68689
68690         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68691
68692 2005-10-07  Simon Josefsson  <jas@extundo.com>
68693
68694         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68695
68696 2005-10-06  Simon Josefsson  <jas@extundo.com>
68697
68698         * tests/test-hmac-md5.c: New file.
68699
68700         * modules/hmac-md5-tests: New file.
68701
68702         * modules/hmac-md5: New file.
68703
68704 2005-10-06  Simon Josefsson  <jas@extundo.com>
68705
68706         * m4/hmac-md5.m4: New file.
68707
68708         * m4/memxor.m4: Require gl_C_RESTRICT.
68709
68710 2005-10-06  Simon Josefsson  <jas@extundo.com>
68711
68712         * lib/memxor.c (memxor): Avoid casts and warnings.
68713
68714 2005-10-06  Simon Josefsson  <jas@extundo.com>
68715
68716         * lib/hmac-md5.c: New file.
68717
68718         * lib/hmac.h: New file.
68719
68720 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68723         promotes to int, not unsigned int, to catch the AIX 5.3
68724         compiler bug.
68725
68726 2005-10-05  Simon Josefsson  <jas@extundo.com>
68727
68728         * modules/memxor: New file.
68729
68730         * modules/iconv (Files): Move config.rpath to havelib, it is used
68731         there.
68732
68733         * modules/havelib (Files): Add config.rpath.
68734
68735 2005-10-05  Simon Josefsson  <jas@extundo.com>
68736
68737         * m4/memxor.m4: New file.
68738
68739 2005-10-05  Simon Josefsson  <jas@extundo.com>
68740
68741         * lib/memxor.c (memxor): Fix compiler error.
68742
68743         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68744         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68745
68746         * lib/memxor.h, lib/memxor.c: New files.
68747
68748         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68749         we assume all systems have it, suggested by Jim Meyering
68750         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68751         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68752         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68753         same reasons.
68754
68755 2005-10-05  Simon Josefsson  <jas@extundo.com>
68756
68757         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68758
68759 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68762         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68763         needed, since the source code now assumes these .h files.
68764
68765 2005-10-05  Derek Price  <derek@ximbiot.com>
68766
68767         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68768
68769 2005-10-05  Bruno Haible  <bruno@clisp.org>
68770
68771         * modules/stdint (License): Change to LGPL.
68772
68773 2005-10-04  Simon Josefsson  <jas@extundo.com>
68774
68775         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68776         D. Baushke" <mdb@gnu.org>.
68777
68778 2005-10-04  Bruno Haible  <bruno@clisp.org>
68779
68780         * lib/verify.h (verify_true): Provide alternative definition for C++.
68781
68782 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68785         (SSIZE_MAX): New macro, if not already defined.
68786         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68787         than 2 GiB.
68788
68789 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         Sync from coreutils.
68792         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68793         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68794         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68795         ULLONG_MAX doesn't work with 2.7.2.1.
68796
68797 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68800         From Ben Pfaff.
68801
68802         * modules/exclude (Depends-on): Depend on verify.
68803         * modules/strtoimax (Depends-on): Likewise.
68804         * modules/utimecmp (Depends-on): Likewise.
68805
68806 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         * lib/exclude.c: Include verify.h.
68809         (verify): Remove.  All callers changed to use verify.h's version.
68810         * lib/strtoimax.c: Likewise.
68811         * lib/utimecmp.c: Likewis.e
68812
68813         Sync from coreutils.
68814         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68815         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68816         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68817         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68818         bother returning ENOSYS if settimeofday or stime fails; just let
68819         them return whatever errno they want to return.
68820         * lib/utimens.c: Include unistd.h, for dup2.
68821         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68822         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68823
68824 2005-10-02  Jim Meyering  <jim@meyering.net>
68825
68826         Sync from coreutils.
68827         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68828         from glibc-2.2.5 that fails for read-only files.
68829
68830 2005-10-02  Jim Meyering  <jim@meyering.net>
68831
68832         Sync from coreutils.
68833         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68834         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68835         `#if HAVE_CONFIG_H'.
68836         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68837         Remove AT_FDCWD test.
68838         Do not consume the fd unless successful.
68839         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68840         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68841         block, so that we don't even try to compile it if settimeofday is
68842         available.  This works around a compilation failure on OSF1 V5.1,
68843         due to stime requiring a `long int*' while tv_sec is `int'.
68844
68845 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68846
68847         Sync from coreutils.
68848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68849         against `yes', rather than just testing for nonempty.
68850
68851 2005-10-01  Simon Josefsson  <jas@extundo.com>
68852
68853         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68854         and Darwin.
68855
68856         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68857         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68858         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68859         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68860         Check if struct addrinfo is declared.
68861
68862 2005-10-01  Simon Josefsson  <jas@extundo.com>
68863
68864         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68865         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68866         AI_* and EAI_* definitions.  Protect function declarations.
68867
68868 2005-10-01  Jim Meyering  <jim@meyering.net>
68869
68870         Sync from coreutils.
68871
68872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68873         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68874         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68876         in the inet and nsl libraries.  Required on Solaris 5.7.
68877
68878 2005-10-01  Jim Meyering  <jim@meyering.net>
68879
68880         Sync from coreutils.
68881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68882         in the inet and nsl libraries.  Required on Solaris 5.7.
68883
68884 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68885
68886         * lib/getdelim.c (getdelim): Remove unused variables.
68887
68888 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68891         so that the code works even with ancient cpp.  Portability problem
68892         with GCC 2.7.2.1 reported by Thomas M.Ott.
68893
68894 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68895
68896         * modules/regex (Depends-on): Add strcase.
68897
68898         * modules/gethostname (Licence): Change from GPL to LGPL, since
68899         gethostname.c is a trivial implementation of a standard library
68900         function.
68901         * modules/poll (License): Change from GPL to LGPL, since it's
68902         derived from LGPL code.
68903
68904 2005-09-27  Jim Meyering  <jim@meyering.net>
68905
68906         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68907         HAVE_CONFIG_H.
68908
68909         * lib/intprops.h (signed_type_or_expr__): Define.
68910         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68911         for unsigned types.
68912
68913 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * lib/verify.h (verify_expr): Remove, replacing with:
68916         (verify_true): New macro that returns true instead of void.
68917         (verify_type__): Remove.
68918         (verify): Use verify_true rather than verify_type__.
68919
68920 2005-09-26  Bruno Haible  <bruno@clisp.org>
68921
68922         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68923         is necessary.
68924         (lib_SOURCES): Remove mbchar.c.
68925         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68926         (Files): Add m4/mbrtowc.m4.
68927         * modules/mbiter: Likewise.
68928         * modules/mbuiter: Likewise.
68929
68930 2005-09-26  Bruno Haible  <bruno@clisp.org>
68931
68932         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68933         compile mbchar.c if they are not both present.
68934         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68935         * m4/mbiter.m4 (gl_MBITER): Likewise.
68936         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68937         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68938         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68939
68940 2005-09-25  Jim Meyering  <jim@meyering.net>
68941
68942         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68943         also uses socklen_t.
68944
68945 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/utimens.c (ENOSYS): Define if not already defined.
68948         (futimens): Support having a null PATH if the file descriptor
68949         is nonnegative.
68950
68951         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68952         Remove.
68953         (__attribute): Define to empty unless GCC 3.1 or later.
68954         This works around a core dump on OpenBSD 3.4, which has GCC
68955         2.95.3, which dumps core when given __attribute__(()).  It also
68956         simplifies other tests, since we really don't want to bother with
68957         worrying about which ancient version of GCC supported what.
68958         Original problem reported by Yoann Vandoorselaere, with part of
68959         the fix suggested by Derek Price.
68960
68961 2005-09-24  Jim Meyering  <jim@meyering.net>
68962
68963         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68964         so we can once again use a positive bitfield width of 1 -- now we
68965         don't have to explain why we were using a bitfield width of 2.
68966
68967 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68970         and similarly for the other external symbols.  Problem reported
68971         by James Gallager.
68972
68973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68974         bug reported by Jim Meyering.
68975
68976         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68977         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68978         not needed, since socklen is a prerequisite module.
68979
68980 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68983         Problem reported by Eric Blake.
68984         (getaddrinfo): Initialize se so that it's not garbage.
68985         Redo internal storage allocation so that it doesn't make unportable
68986         assumptions about alignment.
68987         Fix a memory leak.
68988
68989         * lib/utimens.c (futimens): Use futimesat if available.
68990         Prefer it to futimes since it doesn't have the futimes bug.
68991
68992         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68993         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68994         Instead, declare a function that returns a pointer to an array,
68995         and use verify_type__ to declare the size of the array.
68996         Problem and germ of a solution reported by Bruno Haible.
68997         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68998         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68999
69000 2005-09-23  Jim Meyering  <jim@meyering.net>
69001
69002         Sync from coreutils.
69003         Correct build failure (socklen_t not defined) on at least
69004         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69006
69007 2005-09-23  Jim Meyering  <jim@meyering.net>
69008
69009         * modules/getaddrinfo (Depends-on): Add socklen.
69010
69011 2005-09-23  Bruno Haible  <bruno@clisp.org>
69012
69013         * tests/test-verify.c: New file.
69014
69015 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         Sync from coreutils.
69018
69019         * modules/argmatch (Depends-on): Add verify.
69020         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69021         unistd-safer.
69022         * modules/save-cwd (Depends-on): Likewise.
69023
69024         * modules/openat (Files): Add lib/openat-die.c.
69025         (Depends-on): Remove error, exitfail.
69026         Add dirname.
69027
69028         * modules/verify: New file.
69029         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69030         with "verify" module.
69031
69032 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         Sync from coreutils.
69035
69036         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69037         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69038         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69039         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69040         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69041         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69042         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69043         Don't bother checking for string.h, stdlib.h, unistd.h.
69044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69045         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69046         module's job.
69047         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69048         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69049
69050         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69051         (gl_GETDATE): Use it.
69052
69053         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69054
69055 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         Sync from coreutils.
69058
69059         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69060         stat-time.h.
69061         * lib/argmatch.h: Include verify.h
69062         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69063         (ARGMATCH_ASSERT): Remove; unused.
69064         * lib/canonicalize.c: Assume STDC_HEADERS.
69065         * lib/exclude.c: Include "strcase.h".
69066         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69067         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69068         and stdio-safer.h.
69069         (getusershell): Call fopen, not fopen_safer.
69070         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69071         Do not include unistd-safer.h.
69072         (save_cwd): Don't call fd_safer; no longer needed
69073         now that we include fcntl--.h.
69074
69075         * lib/getdate.y (relative_time): New type.
69076         (RELATIVE_TIME_0): New constant.
69077         (parser_control): Use relative_time instead of doing it ourselves.
69078         (%union): Add new relative_time rel member.
69079         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69080         Now typeless.
69081         (relunit, relunit_snumber): Now of type rel.
69082         (zone, rel, relunit, get_date): Adjust to above changes.
69083
69084         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69085         Do not include unistd-safer.h.
69086         (getloadavg): Don't call fd_safer; no longer needed
69087         now that we include fcntl--.h.
69088
69089         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69090         (make_dir_parents): Treat ENOSYS like EEXIST.
69091
69092         Improve quality of diagnostics on restore_cwd failure.
69093         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69094         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69095         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69096         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69097         each time through the loop.  Do not diagnose restore_cwd failure;
69098         that is the caller's job (and perhaps the caller does not care).
69099
69100         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69101         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69102         If the file already exists but is not a directory, don't bother
69103         to try to make its parents.
69104         Close potential file descriptor leak if we can't chdir("/") (!).
69105         Don't always return true if chdir($PWD) fails; return true only
69106         if the requested action was done successfully (except for the
69107         chdir($PWD)).
69108         Don't log final directory unless we actually made it.
69109         Refactor to avoid duplicate code to fix up permissions.
69110         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69111
69112         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69113         to make it a bit faster and (I hope) clearer.
69114         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69115         Fix bug in formats like %2N.
69116
69117         * lib/verify.h: New file.
69118
69119 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         Sync from coreutils.
69122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69123
69124 2005-09-22  Jim Meyering  <jim@meyering.net>
69125
69126         Sync from coreutils.
69127
69128         * m4/lstat.m4 (gl_FUNC_LSTAT):
69129         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69130         Remove obsolete comment.
69131         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69132         * m4/xstrtod.m4: Likewise.
69133
69134         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69135
69136 2005-09-22  Jim Meyering  <jim@meyering.net>
69137
69138         Sync from coreutils.
69139
69140         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69141
69142         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69143         the .tm_year member, since otherwise gcc-4.0 would now warn about
69144         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69145
69146         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69147         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69148
69149         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69150         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69151         when run in a time zone for which daylight savings time is in effect
69152         for the starting date.
69153
69154         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69155         stop us from restricting permissions of just-created absolute-named
69156         directories.
69157         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69158         to restore initial working directory.
69159         * lib/mkdir-p.c (make_dir_parents): New parameter:
69160         different_working_dir, to tell caller if/when we change the working
69161         directory and are unable to return to the initial one.
69162         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69163         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69164         `return false'.  This fixes a bug introduced on 2004-07-30.
69165
69166         * lib/openat.c (fdopendir): Be sure to close the supplied
69167         file descriptor before returning.  This makes our replacement
69168         implementation a little closer to Solaris's, where fdopendir
69169         ties the file descriptor to the returned DIR* pointer.
69170         * lib/openat.c (unlinkat): New function.
69171         * lib/openat.h (unlinkat): Add prototype.
69172         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69173         (openat_restore_fail): Rename from openat_restore_die.
69174         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69175
69176         Provide an alternative to exiting immediately upon save_cwd or
69177         restore_cwd failure.  Now, an application can arrange e.g.,
69178         to perform a longjump in that case.
69179         * lib/openat.c: Include dirname.h.
69180         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69181         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69182         and openat_restore_die rather than calling error directly.
69183         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69184
69185         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69186         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69187         define.
69188
69189         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69190         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69191                             int utc, int nanoseconds);
69192         Background:
69193         date should not have to allocate a megabyte of virtual memory to
69194         handle a format argument like +%1048575T.  When implemented with
69195         strftime, it must allocate such a buffer, use strftime to fill it
69196         in, print it, then free it.
69197         With fprintftime, it simply prints everything and exits.
69198         With no need for memory allocation, that's one fewer way to fail.
69199         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69200         optional field width, not before, so we accept %9:z, not %:9z.
69201         (my_strftime): Be sure to use L_('x') for literals.
69202
69203         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69204         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69205         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69206         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69207         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69208         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69209         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69210         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69211         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69212         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69213         * lib/xgethostname.c, lib/xreadlink.c:
69214         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69215
69216         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69217         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69218         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69219         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69220         and don't include <sys/file.h>).
69221
69222 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69223
69224         Sync from coreutils.
69225
69226         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69227         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69228         [!LDAV_DONE]: Avoid unused variable warning.
69229
69230 2005-09-21  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/unicodeio.h (unicode_to_mb): New declaration.
69233
69234 2005-09-20  Derek Price  <derek@ximbiot.com>
69235
69236         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69237         getaddrinfo.h.
69238
69239 2005-09-20  Bruno Haible  <bruno@clisp.org>
69240
69241         * gnulib-tool: Remove trailing slashes from the values specified for
69242         --source-base, --m4-base, --tests-base, --aux-dir.
69243         Suggested by Simon Josefsson <jas@extundo.com>.
69244
69245 2005-09-20  Bruno Haible  <bruno@clisp.org>
69246
69247         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69248         func_modules_to_filelist, func_import, func_create_testdir): Make all
69249         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69250         change when gnulib-tool is invoked in a different locale.
69251
69252 2005-09-19  Simon Josefsson  <jas@extundo.com>
69253
69254         * m4/socklen.m4: Fix typo.
69255
69256 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69257
69258         Use a consistent style for including <config.h>.
69259         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69260         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69261         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69262         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69263         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69264         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69265         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69266         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69267         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69268         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69269         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69270         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69271         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69272         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69273         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69274         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69275         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69276         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69277         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69278         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69279         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69280         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69281         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69282         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69283         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69284         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69285         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69286         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69287         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69288         lib/xstrtoumax.c, lib/yesno.c:
69289         Standardize inclusion of config.h.
69290         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69291         lib/inttostr.h:  Removed inclusion of config.h from header files.
69292         * lib/inttostr.c:  Adjusted in-tree users.
69293         * lib/timespec.h: Remove superfluous warning to include config.h.
69294         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69295         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69296         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69297         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69298         config.h with HAVE_CONFIG_H.
69299
69300 2005-09-19  Jim Meyering  <jim@meyering.net>
69301
69302         * modules/pathmax (License): Change to LGPL.
69303
69304 2005-09-19  Derek Price  <derek@ximbiot.com>
69305
69306         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69307
69308 2005-09-19  Bruno Haible  <bruno@clisp.org>
69309
69310         * gnulib-tool (import): Provide default for --tests-base.
69311
69312 2005-09-19  Bruno Haible  <bruno@clisp.org>
69313
69314         * doc/quote.texi: New file, extracted from gnulib.texi.
69315         * doc/ctime.texi: New file, extracted from gnulib.texi.
69316         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69317         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69318         * doc/gnulib.texi: Include them.
69319
69320 2005-09-18  Bruno Haible  <bruno@clisp.org>
69321
69322         Portability fix.
69323         * gnulib-tool (func_readlink): New function.
69324         (func_ln_if_changed): Use it.
69325
69326 2005-09-18  Bruno Haible  <bruno@clisp.org>
69327
69328         * gnulib-tool: Support --with-tests also with --import.
69329         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69330         (func_import): Use variables $testsbase and $inctests. Emit a
69331         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69332         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69333         SUBDIRS += $testsdir.
69334         (func_create_testdir): Update.
69335
69336 2005-09-18  Bruno Haible  <bruno@clisp.org>
69337
69338         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69339         instead of $dry_run.
69340         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69341         (func_ln_if_changed): Don't handle dry-run here.
69342         (func_import): In dry-run mode, detect more precisely which actions
69343         would be performed, and don't use "...ing" verbs.
69344
69345 2005-09-18  Bruno Haible  <bruno@clisp.org>
69346
69347         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69348         (func_import): Use join on two temporary files instead of three nested
69349         loops, in order to determine which files are new or old.
69350
69351 2005-09-18  Bruno Haible  <bruno@clisp.org>
69352
69353         * gnulib-tool (func_import): Comment out code that spits out the
69354         new files with --dry-run.
69355
69356 2005-09-18  Bruno Haible  <bruno@clisp.org>
69357
69358         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69359
69360 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * lib/stat-time.h: New file.
69363         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69364         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69365         in a different way.
69366         (timespec_cmp): New function.
69367         * lib/utimecmp.c: Include stat-time.h.
69368         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69369         members exist, not on the obsolescent ST_MTIM_NSEC.
69370         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69371
69372 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69375
69376 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         * MODULES.html.sh (File system functions): Add stat-time.
69379         * modules/stat-time: New file.
69380         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69381         is now done in a different way, by the stat-time module.
69382         * modules/utimecmp (Depends-on): Add stat-time.
69383
69384 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * m4/st_mtim.m4: Remove.  Superseded by...
69387         * m4/stat-time.m4: New file.
69388         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69389         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69390
69391 2005-09-15  Derek Price  <derek@ximbiot.com>
69392
69393         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69394
69395 2005-09-15  Derek Price  <derek@ximbiot.com>
69396
69397         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69398         * lib/regex_internal.c: Ditto, using this...
69399         (__GNUC_PREREQ): ...new macro.
69400         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69401         using...
69402         (__GNUC_PREREQ): ...this new macro.
69403
69404         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69405
69406 2005-09-15  Derek Price  <derek@ximbiot.com>
69407             Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69410         changes, consolidating in...
69411         * lib/regex_internal.h: ...this file.
69412
69413 2005-09-13  Jim Meyering  <jim@meyering.net>
69414
69415         * lib/canon-host.c: Filter through gnu indent and reword comments
69416         slightly.
69417         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69418
69419 2005-09-13  Derek Price  <derek@ximbiot.com>
69420
69421         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69422         failure.
69423         Reported by Jim Meyering  <jim@meyering.net>.
69424
69425 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69426
69427         * lib/base64.c: Typo.
69428         (base64_encode): Put b64str in initialized data section.
69429
69430 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         Merge glibc and coreutils changes into gnulib, plus a few
69433         extra fixes.
69434         * lib/md5.c: Use #error rather than a string.
69435         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69436         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69437         (__attribute__): Define to empty for non recent-GCC.
69438         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69439         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69440         Renamed from their non-__ counterparts, with new macros replacing
69441         them if not _LIBC.  Add __THROW attribute.
69442         (rol): Remove.
69443         (struct md5_ctx): Align buffer if using GCC.
69444         * lib/sha1.h (struct sha1_ctx): Likewise.
69445         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69446         The old name was backwards.
69447         (NOTSWAP): Remove; not used.
69448         (rol): New macro, moved here from md5.h.
69449         (sha1_process_block): Remove a FIXME that doesn't make sense.
69450
69451 2005-09-12  Derek Price  <derek@ximbiot.com>
69452
69453         Return usable errors from canon-host.
69454         * lib/canon-host.h: New file.
69455         * lib/canon-host.c (canon_host): Wrap...
69456         (canon_host_r): ...this new function, which now relies exclusively on
69457         getaddrinfo.
69458         (ch_strerror): New function.
69459         (last_cherror): New global.
69460         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69461         interface.
69462         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69463         void *.
69464         (freeaddrinfo): Free ai->ai_canonname when set.
69465
69466 2005-09-12  Derek Price  <derek@ximbiot.com>
69467
69468         Make canon-host require getaddrinfo.
69469         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69470         AC_LIBSOURCE canon-host.h.  Call...
69471         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69472         gl_GETADDRINFO.
69473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69474
69475 2005-09-12  Derek Price  <derek@ximbiot.com>
69476
69477         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69478         LGPL.
69479         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69480
69481 2005-09-12  Derek Price  <derek@ximbiot.com>
69482
69483         * lib/gai_strerror.c: Include config.h when available.  Include
69484         getaddrinfo.h before other headers to test interface.
69485         Reported by Larry Jones <lawrence.jones@ugs.com>.
69486
69487 2005-09-12  Derek Price  <derek@ximbiot.com>
69488             Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * modules/glob (Files): Add glob-libc.h.
69491
69492 2005-09-12  Derek Price  <derek@ximbiot.com>
69493             Paul Eggert  <eggert@cs.ucla.edu>
69494
69495         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69496         glob_.h, glob-libc.h.
69497         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69498
69499 2005-09-12  Derek Price  <derek@ximbiot.com>
69500             Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69503         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69504         protecting things that should be done only in gnulib contexts.
69505         * lib/glob_.h: New file, containing only the glob things needed for
69506         gnulib.
69507         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69508         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69509         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69510         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69511         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69512         and to respect the namespace rules better.
69513
69514 2005-09-08  Simon Josefsson  <jas@extundo.com>
69515
69516         * modules/socklen: New file.
69517
69518 2005-09-08  Simon Josefsson  <jas@extundo.com>
69519
69520         * m4/socklen.m4: New file.
69521
69522 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         * modules/utimens (Files): Add m4/utimbuf.m4, since
69525         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69526         Reported by Sergey Poznyakoff.
69527
69528 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69529
69530         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69531         definitions, since that's the preferred style in glibc.
69532         Fix a minor spacing issue, and update copyright notice to match
69533         glibc's.
69534
69535 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69538
69539 2005-09-06  Simon Josefsson  <jas@extundo.com>
69540
69541         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69542         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69543
69544 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69547         warning.
69548
69549 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * config/srclist.txt: Add glibc bug 1302.
69552
69553 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         Change bitset word type from unsigned int to unsigned long int,
69556         as this has better performance on typical 64-bit hosts.
69557         Port bitset code to hosts with unusual word sizes.
69558         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69559         (build_collating_symbol):
69560         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69561         argument is a bitset.  This is merely a style issue, but it makes
69562         it clearer that an entire array is expected.
69563         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69564         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69565         Port to the case where bitset_word is not the same as unsigned int.
69566         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69567         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69568         Likewise.
69569         * lib/regexec.c (check_dst_limits_calc_pos_1,
69570         check_subexp_matching_top):
69571         (build_trtable, group_nodes_into_DFAstates):
69572         Likewise.
69573         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69574         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69575         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69576         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69577         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69578         * lib/regcomp.c (optimize_subexps, lower_subexp):
69579         Work even if bitset_word has holes in its bitwise representation.
69580         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69581         * lib/regexec.c (check_dst_limits_calc_pos_1,
69582         check_subexp_matching_top):
69583         Likewise.
69584         * lib/regex_internal.c (re_string_reconstruct):
69585         Don't assume UCHAR_MAX == 255.
69586         * lib/regex_internal.h (bitset_set_all): Likewise.
69587         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69588         All uses changed.
69589         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69590         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69591         All uses changed.
69592         (BITSET_WORD_MAX): New macro.
69593         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69594         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69595         (bitset_empty, bitset_copy):
69596         Prefer sizeof (bitset) to multiplying it out ourselves.
69597         (bitset_not_merge): Remove; unused.
69598         (bitset_contain): Return bool, not unsigned int with one bit on.
69599         All callers changed.
69600         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69601         alignment than re_node_set; do this by defining a new internal
69602         type struct dests_alloc and using it to allocate memory.
69603
69604 2005-09-05  Bruno Haible  <bruno@clisp.org>
69605
69606         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69607         links.
69608
69609 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69610
69611         * modules/size_max (Makefile.am): Add size_max.h
69612
69613 2005-09-04  Derek Price  <derek@ximbiot.com>
69614
69615         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69616
69617 2005-09-03  Simon Josefsson  <jas@extundo.com>
69618
69619         * gnulib-tool: Fix typo.
69620
69621 2005-09-03  Simon Josefsson  <jas@extundo.com>
69622
69623         * config/srclist.txt: Add glibc bug 1293.
69624
69625 2005-09-03  Derek Price  <derek@ximbiot.com>
69626
69627         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69628         From Larry Jones <lawrence.jones@ugs.com>.
69629
69630 2005-09-02  Simon Josefsson  <jas@extundo.com>
69631
69632         * modules/socklen: New file.
69633
69634 2005-09-02  Simon Josefsson  <jas@extundo.com>
69635
69636         * modules/havelib: New module.
69637
69638         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69639         Use havelib.
69640
69641 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         Check for arithmetic overflow when calculating sizes, to prevent
69644         some buffer-overflow issues.  These patches are conservative, in the
69645         sense that when I couldn't determine whether an overflow was possible,
69646         I inserted a run-time check.
69647         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69648         macros.
69649         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69650         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69651         (re_xnrealloc, re_x2nrealloc): New inline functions.
69652         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69653         parse_bracket_exp):
69654         (build_equiv_class, build_charclass): Check for arithmetic overflow
69655         in size expression calculations.
69656         * lib/regex_internal.c (re_string_realloc_buffers):
69657         (build_wcs_upper_buffer, re_node_set_add_intersect):
69658         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69659         (re_dfa_add_node, register_state): Likewise.
69660         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69661         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69662         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69663         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69664
69665 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69668         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69669
69670 2005-09-02  Bruno Haible  <bruno@clisp.org>
69671
69672         Support for lib vs. lib64 distinction on biarch platforms.
69673         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69674         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69676
69677 2005-09-02  Bruno Haible  <bruno@clisp.org>
69678
69679         * gnulib-tool (import): In the other first-use case, provide defaults
69680         as well.
69681
69682 2005-09-02  Bruno Haible  <bruno@clisp.org>
69683
69684         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69685         patches not yet found in the latest gettext release.
69686
69687 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69688
69689         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69690         to avoid a collision with bits/local_lim.h in glibc.
69691         All uses changed.  Problem reported by Dmitry V. Levin in
69692         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69693
69694         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69695         bugs in int versus size_t comparisons.
69696         (re_string_context_at): Fix bug where the code assumed that
69697         Idx is signed.
69698
69699         Use bool where appropriate.
69700         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69701         All callers changed.
69702         (calc_eclosure_iter): Likewise, for ROOT arg.
69703         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69704         (build_charclass_op): Likewise, for NON_MATCH arg.
69705         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69706         (re_string_construct_common): Likewise, for ICASE arg.
69707         * lib/regexec.c (re_search_2_stub, re_search_stub):
69708         Likewise, for RET_LEN arg.
69709         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69710         (set_regs): Likewise, for FL_BACKTRACK arg.
69711         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69712         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69713         (calc_eclosure_iter, parse_bracket_exp):
69714         Use bool for internal variables that are booleans.
69715         * lib/regexec.c (re_search_internal, check_matching,
69716         proceed_next_node):
69717         (set_regs, build_sifted_states, sift_states_bkref):
69718         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69719         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69720         (find_collation_sequence_value):
69721         Likewise.
69722         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69723         (re_node_set_compare):
69724         Return bool, not int. All callers changed.
69725         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69726         (build_trtable, check_node_accept): Likewise.
69727         * lib/regex_internal.h: Include stdbool.h.
69728
69729         Fix bugs uncovered when converting to bool.
69730         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69731         failure instead of charging ahead blindly.
69732         * lib/regex_internal.c (register_state): Likewise.
69733         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69734         for freeing internal storage.
69735         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69736         bitset pieces used as boolean, to avoid undefined behavior
69737         on hosts that do int overflow checking.
69738
69739 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * config/srclist.txt: Add glibc bugs 1285-1287.
69742
69743 2005-09-01  Jim Meyering  <jim@meyering.net>
69744
69745         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69746         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69747         Require gl_STAT_MACROS, too.
69748
69749 2005-09-01  Bruno Haible  <bruno@clisp.org>
69750
69751         * gnulib-tool (import): In the first-use case, provide defaults.
69752
69753 2005-09-01  Bruno Haible  <bruno@clisp.org>
69754
69755         * gnulib-tool (func_import): Remove the .tmp files.
69756
69757 2005-09-01  Bruno Haible  <bruno@clisp.org>
69758
69759         * gnulib-tool (func_import): Fix handling of symbolic links.
69760
69761 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69764         old glibc regex code mishandles strings longer than 2**31 bytes.
69765         This patch fixes this when the regex code is used in gnulib
69766         (i.e., outside glibc).
69767
69768         This patch should not affect the use of the regex code inside
69769         glibc.  No doubt this problem also needs to be handled for glibc
69770         as well, but the result will be an incompatible change to the
69771         glibc ABI, and the old ABI will have to be supported too.  That
69772         can be the the subject for another patch.
69773
69774         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69775         governing whether the rest of this patch is active.  By default,
69776         the macro is disabled and the patch has no effect.
69777         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69778         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69779         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69780         (re_match_2, re_set_registers): Use the new types.
69781         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69782         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69783         New macros.
69784         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69785         (re_string_context_at, bin_tree_t, re_dfastate_t):
69786         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69787         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69788         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69789         (re_string_char_size_at, re_string_wchar_at):
69790         (re_string_elem_size_at):
69791         Use the new types and macros to port to 64-bit hosts.
69792         Use unsigned types for internal values, so that the code
69793         mostly works even for arrays larger than SSIZE_MAX.
69794         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69795         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69796         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69797         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69798         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69799         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69800         (calc_inveclosure, parse_dup_op, build_range_exp):
69801         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69802         (fetch_number, create_token_tree, mark_opt_subexp):
69803         Likewise.
69804         * lib/regex_internal.c (re_string_construct_common,
69805         create_ci_newstate):
69806         (create_cd_newstate, re_string_allocate, re_string_construct):
69807         (re_string_realloc_buffers, build_wcs_upper_buffer):
69808         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69809         (re_string_reconstruct, re_string_peek_byte_case):
69810         (re_string_fetch_byte_case, re_string_context_at):
69811         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69812         (re_node_set_init_copy, re_node_set_add_intersect):
69813         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69814         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69815         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69816         (re_acquire_state, re_acquire_state_context, register_state):
69817         Likewise.
69818         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69819         search_cur_bkref_entry):
69820         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69821         (re_search_internal, re_search_2_stub, re_search_stub)
69822         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69823         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69824         (update_cur_sifted_state, check_dst_limits):
69825         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69826         (check_subexp_limits, sift_states_bkref, merge_state_array):
69827         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69828         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69829         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69830         (expand_bkref_cache, check_node_accept_bytes):
69831         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69832         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69833         (acquire_init_state_context, check_halt_node_context):
69834         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69835         (sift_states_backward, clean_state_log_if_needed):
69836         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69837         (find_recover_state, transit_state_sb, transit_state_mb):
69838         (transit_state_bkref, build_trtable, match_ctx_clean):
69839         Likewise.
69840         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69841         to work around an assumption that REG_MISSING is negative.
69842
69843         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69844         (seek_collating_symbol_entry) [defined _LIBC]:
69845         (lookup_collation_sequence_value) [defined _LIBC]:
69846         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69847         Use prototypes rather than old-style function definitions.
69848         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69849         (transit_state_sb) [0]:
69850         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69851
69852         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69853         rm_eo.
69854
69855         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69856         (optimize_subexps, lower_subexp):
69857         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69858         since the signed shift might overflow.  Use 1u<<31 instead.
69859         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69860         Likewise.
69861         * lib/regexec.c (check_dst_limits_calc_pos_1,
69862         check_subexp_matching_top): Likewise.
69863
69864         * lib/regcomp.c (optimize_subexps, lower_subexp):
69865         Use CHAR_BIT rather than 8, for clarity.
69866         * lib/regexec.c (check_dst_limits_calc_pos_1):
69867         (check_subexp_matching_top): Likewise.
69868         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69869         have to worry about portability issues when shifting it left.
69870         Remove no-longer-needed test for table_size > 0.
69871         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69872         in a word, as the resulting behavior is undefined.
69873         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69874         in one case, a <= should have been an <, and in another case the
69875         whole test was missing.
69876         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69877         the standard name CHAR_BIT.
69878         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69879         this is not true on one's complement and signed-magnitude hosts.
69880
69881         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69882         next_last_offset.
69883         (struct re_dfa_t): Remove unused member states_alloc.
69884         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69885
69886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69889         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69890         and large-file glibc and in 32-bit large-file Solaris.
69891
69892 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69895         lengths fit in regoff_t; this isn't true if regoff_t is the same
69896         width as size_t.
69897         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69898         (= START + RANGE) instead of RANGE.  This avoids overflow
69899         problems when regoff_t is the same width as size_t.
69900         All callers changed.
69901         (re_search_2_stub): Check for overflow when adding the
69902         sizes of the two strings.
69903         (re_search_stub): Check for overflow when adding START
69904         to RANGE; if it occurs, substitute the extreme value.
69905
69906 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69909
69910 2005-08-31  Jim Meyering  <jim@meyering.net>
69911
69912         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69913         a pointer-to-const.
69914         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69915         (register_state): Likewise.
69916         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69917         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69918         (group_nodes_into_DFAstates): Likewise.
69919
69920 2005-08-31  Jim Meyering  <jim@meyering.net>
69921
69922         * check-module: Add a FIXME comment.
69923
69924 2005-08-31  Eric Blake  <ebb9@byu.net>
69925
69926         * modules/unistd-safer (Files): Add unistd--.h.
69927         * modules/stdio-safer (Files): Add stdio--.h.
69928
69929 2005-08-31  Derek Price  <derek@ximbiot.com>
69930
69931         * lib/getdelim.c (getdelim): Return EOF on EOF.
69932         Reported by Larry Jones <lawrence.jones@ugs.com>.
69933
69934 2005-08-31  Bruno Haible  <bruno@clisp.org>
69935
69936         Avoid unnecessary diffs in the generated lib/Makefile.am.
69937         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69938         the generated files.
69939         (func_import): Don't set cmd.
69940
69941 2005-08-31  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/strstr.c: Include <stddef.h>, for NULL.
69944         * lib/strcasestr.c: Likewise.
69945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69946
69947 2005-08-31  Bruno Haible  <bruno@clisp.org>
69948
69949         * gnulib-tool: New option --macro-prefix.
69950         (func_import): Use macro_prefix.
69951         (import): Handle option --macro-prefix.
69952
69953 2005-08-31  Bruno Haible  <bruno@clisp.org>
69954
69955         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69956         Also use new variables cached_lgpl, cached_libtool.
69957
69958 2005-08-31  Bruno Haible  <bruno@clisp.org>
69959
69960         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69961         always instantiating them.
69962
69963 2005-08-31  Bruno Haible  <bruno@clisp.org>
69964
69965         * gnulib-tool (func_import): Read the previous cached settings
69966         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69967         earlier added by gnulib but are now dropped. Warn when a gnulib file
69968         overwrites a non-gnulib file.
69969
69970 2005-08-31  Bruno Haible  <bruno@clisp.org>
69971
69972         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69973         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69974         projects that don't keep autogenerated files in CVS. Put into
69975         actioncmd only the specified modules, not the transitive closure.
69976
69977 2005-08-31  Bruno Haible  <bruno@clisp.org>
69978
69979         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69980         Create directories that shall be filled.
69981         (import): Don't look for gl_* macros in configure.ac. Recurse across
69982         all directories containing a gnulib-cache.m4 files, if meaningful.
69983
69984 2005-08-31  Bruno Haible  <bruno@clisp.org>
69985
69986         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69987         (import): Set seen_libtool when we see gl_LIBTOOL.
69988
69989 2005-08-31  Bruno Haible  <bruno@clisp.org>
69990
69991         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69992         declaration macro definitions from generated gnulib.m4.
69993
69994 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69995
69996         * lib/iconvme.h: Add prototype for iconv_alloc.
69997
69998 2005-08-29  Simon Josefsson  <jas@extundo.com>
69999
70000         * lib/iconvme.c: Fix errno.
70001
70002 2005-08-29  Bruno Haible  <bruno@clisp.org>
70003
70004         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70005         that it works when the directory contains spaces.
70006
70007 2005-08-29  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70010
70011 2005-08-29  Bruno Haible  <bruno@clisp.org>
70012
70013         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70014         Emit more advice.
70015
70016 2005-08-29  Bruno Haible  <bruno@clisp.org>
70017         and Stepan Kasal  <kasal@ucw.cz>
70018
70019         * check-module: If more parameters are given, check each of them
70020         separately; add more exceptions, as noted by Jim Meyering.
70021         (check_module): New procedure.
70022         (%exempt_header): Now contains all exceptions.
70023
70024 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70025
70026         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70027
70028 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70029
70030         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70031
70032 2005-08-28  Bruno Haible  <bruno@clisp.org>
70033
70034         * m4/gnulib-tool.m4: New file.
70035
70036 2005-08-27  Jim Meyering  <jim@meyering.net>
70037
70038         * modules/unistd-safer (Files): Add pipe-safer.c.
70039         * modules/fcntl-safer (Files): Add creat-safer.c.
70040
70041 2005-08-27  Jim Meyering  <jim@meyering.net>
70042
70043         * m4/stdlib-safer.m4: New file.  From coreutils.
70044         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70046         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70047         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70048         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70049
70050 2005-08-27  Jim Meyering  <jim@meyering.net>
70051
70052         * lib/fopen-safer.c: Merge minor changes from coreutils.
70053         * lib/dup-safer.c: Likewise.
70054         * lib/fd-safer.c: Likewise.
70055
70056         Merge from coreutils.
70057         * lib/stdio--.h: New file.
70058         * lib/stdlib--.h: New file.
70059         * lib/mkstemp-safer.c: New file.
70060
70061         GNU tar needs these.
70062         * lib/pipe-safer.c: New file.
70063         * lib/creat-safer.c: New file.
70064         * lib/fcntl--.h (creat): Define to creat_safer.
70065         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70066         * lib/unistd--.h (pipe): Define to pipe_safer.
70067         * lib/unistd-safer.h: Declare pipe_safer.
70068
70069 2005-08-26  Simon Josefsson  <jas@extundo.com>
70070
70071         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70072         Haible <bruno@clisp.org>.
70073
70074 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * lib/regex_internal.h: Remove all references to
70077         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70078         or better.
70079         (bitset_not, bitset_merge, bitset_not_merge):
70080         (bitset_mask, re_string_allocate, re_string_construct):
70081         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70082         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70083         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70084         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70085         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70086         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70087         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70088         (re_acquire_state_context):
70089         Remove unnecessary forward decls.
70090         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70091         Put __attribute at function definition,
70092         now that the function decl has been removed.
70093         * lib/regex_internal.c (re_string_peek_byte_case):
70094         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70095         Likewise.
70096
70097 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70098
70099         * m4/regex.m4: Add AC_PREREQ(2.50).
70100         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70101
70102 2005-08-25  Simon Josefsson  <jas@extundo.com>
70103
70104         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70105         __fsetlocking.
70106
70107 2005-08-25  Simon Josefsson  <jas@extundo.com>
70108
70109         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70110         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70111         GLIBC specific code.
70112
70113 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70114
70115         Make regex safe for g++.  This fixes one real bug (an "err"
70116         that should have been "*err").  g++ problem reported by
70117         Sam Steingold.
70118         * lib/regex_internal.h (re_calloc): New macro, consistent with
70119         re_malloc etc.  All callers of calloc changed to use re_calloc.
70120         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70121         not int.  All callers changed.
70122         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70123         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70124         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70125         (find_recover_state): Change "err" to "*err"; this fixes what
70126         appears to be a real bug.
70127         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70128         versus int.
70129
70130 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * modules/regex (Depends-on): Add malloc, since the code
70133         assumes that !malloc(0) means failure.
70134
70135 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70136
70137         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70138
70139         alloca modernization/simplification for regex.
70140         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70141         needs to be at the start of the file, and can be moved into
70142         regex_internal.h and simplified.
70143         * lib/regex_internal.h: Include <alloca.h>.
70144         (__libc_use_alloca) [!defined _LIBC]: New macro.
70145         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70146         now works outside glibc.
70147
70148 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         * config/srclist.txt: Add glibc bugs 1241, 1245.
70151
70152 2005-08-25  Jim Meyering  <jim@meyering.net>
70153
70154         * lib/open-safer.c: Include <config.h>.
70155         Otherwise, we'd lose LARGEFILE support in any file using
70156         e.g. "fcntl--.h"
70157
70158 2005-08-25  Bruno Haible  <bruno@clisp.org>
70159
70160         * m4/minmax.m4: Require autoconf 2.52.
70161         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70162         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70163         alternatives of translit over the alphabet.
70164         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70165
70166 2005-08-24  Simon Josefsson  <jas@extundo.com>
70167
70168         * tests/test-getpass.c: New file.
70169
70170 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70173         for GNU regex features.
70174
70175 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70178         * lib/regex.h (regerror): Likewise.
70179
70180         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70181         requires this.  (The code never needed it.)
70182
70183         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70184         All uses of recently-renamed identifiers changed to use the new,
70185         POSIX-compliant names.  The code will build and run just fine
70186         without these changes, but it's better to eat our own dog food
70187         and use the standard-conforming names.
70188
70189         * lib/regex.h: Fix a multitude of POSIX name space violations.
70190         These changes have an effect only for programs that define
70191         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70192         do not change anything for programs compiled in the normal way.
70193         Also, there is no effect on the ABI.
70194
70195         (_REGEX_SOURCE): New macro.
70196         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70197         defined and _GNU_SOURCE is not; this fixes a name space violation.
70198
70199         Rename the following macros to obey POSIX requirements.
70200         The old names are still visible as macros if _REGEX_SOURCE is defined.
70201         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70202         RE_BACKSLASH_ESCAPE_IN_LISTS.
70203         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70204         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70205         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70206         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70207         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70208         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70209         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70210         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70211         (REG_INTERVALS): renamed from RE_INTERVALS.
70212         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70213         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70214         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70215         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70216         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70217         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70218         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70219         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70220         RE_UNMATCHED_RIGHT_PAREN_ORD.
70221         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70222         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70223         (REG_DEBUG): renamed from RE_DEBUG.
70224         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70225         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70226         unusual, since we can't clash with the POSIX REG_ICASE.
70227         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70228         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70229         (REG_NO_SUB): renamed from RE_NO_SUB.
70230         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70231         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70232         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70233         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70234         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70235         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70236         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70237         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70238         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70239         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70240         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70241         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70242         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70243         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70244         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70245         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70246         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70247         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70248         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70249         (REG_FIXED): Renamed from REGS_FIXED.
70250         (REG_NREGS): Renamed from RE_NREGS.
70251
70252         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70253         of other REG_* macros, since POSIX says the user is allowed to
70254         #undef these macros selectively.
70255
70256         (reg_errcode_t): Update comment stating what other tables need
70257         to be consistent.
70258
70259         Rename the following enum values to obey POSIX requirements.
70260         The old names are still visible as macros.
70261         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70262         is not defined, since GNU is supposed to be a superset of POSIX as
70263         much as possible, and since we want reg_errcode_t to be a signed
70264         type for implementation consistency.
70265         (_REG_NOERROR): Renamed from REG_NOERROR.
70266         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70267         (_REG_BADPAT): Renamed from REG_BADPAT.
70268         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70269         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70270         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70271         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70272         (_REG_EBRACK): Renamed from REG_EBRACK.
70273         (_REG_EPAREN): Renamed from REG_EPAREN.
70274         (_REG_EBRACE): Renamed from REG_EBRACE.
70275         (_REG_BADBR): Renamed from REG_BADBR.
70276         (_REG_ERANGE): Renamed from REG_ERANGE.
70277         (_REG_ESPACE): Renamed from REG_ESPACE.
70278         (_REG_BADRPT): Renamed from REG_BADRPT.
70279         (_REG_EEND): Renamed from REG_EEND.
70280         (_REG_ESIZE): Renamed from REG_ESIZE.
70281         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70282         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70283         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70284         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70285         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70286
70287         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70288         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70289         changed.  But support the old name if the new one is not defined
70290         and if _REGEX_SOURCE.
70291
70292         Change the following member names in struct re_pattern_buffer.
70293         The old names are still supported if !_REGEX_SOURCE.
70294         The new names are always supported, regardless of _REGEX_SOURCE.
70295         (re_buffer): Renamed from buffer.
70296         (re_allocated): Renamed from allocated.
70297         (re_used): Renamed from used.
70298         (re_syntax): Renamed from syntax.
70299         (re_fastmap): Renamed from fastmap.
70300         (re_translate): Renamed from translate.
70301         (re_can_be_null): Renamed from can_be_null.
70302         (re_regs_allocated): Renamed from regs_allocated.
70303         (re_fastmap_accurate): Renamed from fastmap_accurate.
70304         (re_no_sub): Renamed from no_sub.
70305         (re_not_bol): Renamed from not_bol.
70306         (re_not_eol): Renamed from not_eol.
70307         (re_newline_anchor): Renamed from newline_anchor.
70308
70309         Change the following member names in struct re_registers.
70310         The old names are still supported if !_REGEX_SOURCE.
70311         The new names are always supported, regardless of _REGEX_SOURCE.
70312         (rm_num_regs): Renamed from num_regs.
70313         (rm_start): Renamed from start.
70314         (rm_end): Renamed from end.
70315
70316         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70317         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70318         Prepend __ to parameter names.
70319
70320         Undo yesterday's changes.
70321
70322 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70325         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70326         lib/regex.c.
70327
70328 2005-08-24  Jim Meyering  <jim@meyering.net>
70329
70330         Sync from coreutils.
70331         * m4/fcntl-safer.m4: New file.
70332
70333         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70334         and object files for this module.
70335
70336 2005-08-24  Jim Meyering  <jim@meyering.net>
70337
70338         Sync from coreutils.
70339         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70340
70341 2005-08-24  Jim Meyering  <jim@meyering.net>
70342
70343         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70344         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70345
70346 2005-08-24  Jim Meyering  <jim@meyering.net>
70347
70348         * modules/fcntl-safer: New module.
70349         * modules/fts (Depends-on): Add fcntl-safer.
70350         * MODULES.html.sh (File descriptor based Input/Output):
70351         Add fcntl-safer.
70352
70353 2005-08-24  Bruno Haible  <bruno@clisp.org>
70354
70355         Support for unit test modules.
70356         * modules/README: Mention tests modules.
70357         * modules/TEMPLATE-TESTS: New file.
70358         * gnulib-tool: New options --extract-tests-module, --with-tests and
70359         --tests-base (unused for the moment).
70360         (testsbase, inctests): New variables.
70361         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70362         (func_verify_module): Exclude TEMPLATE-TESTS.
70363         (func_verify_nontests_module, func_verify_tests_module): New functions.
70364         (func_get_dependencies): Add implicit dependency for tests modules.
70365         (func_get_tests_module): New function.
70366         (func_modules_transitive_closure): When --with-tests was specified,
70367         include the unit tests as well, unless explicitly avoided.
70368         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70369         (func_emit_tests_Makefile_am): New function.
70370         (func_create_testdir): When --with-tests was specified, emit a
70371         tests/ directory.
70372         * MODULES.html.sh (Future developments): Update.
70373
70374 2005-08-24  Bruno Haible  <bruno@clisp.org>
70375
70376         * modules/tls-tests: New file.
70377         * tests/test-tls.c: New file, from GNU gettext.
70378
70379 2005-08-24  Bruno Haible  <bruno@clisp.org>
70380
70381         * modules/lock-tests: New file.
70382         * tests/test-lock.c: New file, from GNU gettext.
70383
70384 2005-08-24  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/lock.h: Add multiple inclusion guard.
70387         * lib/tls.h: Add multiple inclusion guard.
70388
70389 2005-08-24  Bruno Haible  <bruno@clisp.org>
70390
70391         * gnulib-tool: Add support for the --aux-dir option to
70392         --create-testdir, --create-megatestdir, --test, --megatest.
70393         (func_create_testdir, func_create_megatestdir): Optionally emit a
70394         AC_CONFIG_AUX_DIR directive.
70395         (create-testdir, create-megatestdir, test, megatest): Provide a
70396         default value for $auxdir.
70397
70398 2005-08-24  Bruno Haible  <bruno@clisp.org>
70399
70400         * gnulib-tool (import): Use compound statement instead of subshell
70401         where possible.
70402
70403 2005-08-24  Bruno Haible  <bruno@clisp.org>
70404
70405         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70406
70407 2005-08-24  Bruno Haible  <bruno@clisp.org>
70408
70409         * gnulib-tool (func_version): Update.
70410
70411 2005-08-24  Bruno Haible  <bruno@clisp.org>
70412
70413         * gnulib-tool (func_import, func_create_testdir,
70414         func_create_megatestdir): Quote all autoconf macro arguments.
70415
70416 2005-08-24  Bruno Haible  <bruno@clisp.org>
70417
70418         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70419         option --force, because --force causes the aclocal.m4 of each
70420         subdirectory to be newer than the corresponding config.h.in.
70421
70422 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70425         All contents moved to gl_REGEX.
70426         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70427         assume that it does.
70428
70429 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * lib/regex.h (REG_NOSYS)
70432         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70433         Define, since POSIX requires it as of 2001.
70434         (_REG_ENOSYS)
70435         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70436         New private symbol, used to keep the enum signed in all cases.
70437         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70438         Youngman in
70439         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70440
70441         * lib/regex_internal.c (re_string_skip_chars, register_state):
70442         (calc_state_hash):
70443         Remove forward decls; no longer needed now that we use prototypes.
70444         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70445         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70446         (clean_state_log_if_needed): Likewise.
70447
70448 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * config/srclist.txt: Add glibc bugs 1231-1233.
70451
70452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         Fix problems reported by Sam Steingold in
70455         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70456         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70457         assumed that reg_errcode_t is a signed type, which is not
70458         necessarily true if _XOPEN_SOURCE is not defined.
70459         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70460         since some compilers warn about it otherwise.
70461
70462 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70465         (init_word_char, create_initial_state, duplicate_node_closure):
70466         (fetch_token, peek_token_bracket, build_range_exp):
70467         (build_collating_symbol): Remove forward decls; no longer needed
70468         now that we use prototypes.
70469
70470         * lib/regcomp.c:
70471         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70472         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70473         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70474         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70475         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70476         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70477         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70478         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70479         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70480         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70481         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70482         (build_charclass, build_charclass_op, fetch_number, create_tree):
70483         (create_token_tree, mark_opt_subexp, duplicate_tree):
70484         Use prototypes rather than old-style definitions.
70485
70486         * lib/regex_internal.c:
70487         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70488         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70489         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70490         (re_string_reconstruct, re_string_peek_byte_case):
70491         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70492         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70493         (re_node_set_init_copy, re_node_set_add_intersect):
70494         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70495         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70496         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70497         (re_acquire_state, re_acquire_state_context, register_state):
70498         (create_ci_newstate, create_cd_newstate, free_state):
70499         Likewise.
70500         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70501         re_search_2):
70502         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70503         (re_search_internal, prune_impossible_nodes):
70504         (acquire_init_state_context, check_matching, static):
70505         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70506         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70507         (update_regs, sift_states_backward, build_sifted_states):
70508         (clean_state_log_if_needed, merge_state_array):
70509         (update_cur_sifted_state, add_epsilon_src_nodes):
70510         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70511         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70512         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70513         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70514         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70515         (check_arrival, check_arrival_add_next_nodes):
70516         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70517         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70518         (check_node_accept_bytes, check_node_accept, extend_buffers):
70519         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70520         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70521         (sift_ctx_init):
70522         Likewise.
70523
70524         * lib/regex_internal.h:
70525         (re_string_allocate, re_string_construct, re_string_reconstruct):
70526         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70527         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70528         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70529         (re_string_context_at, re_string_peek_byte_case):
70530         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70531         is defined, since we now use prototypes always.
70532
70533         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70534         C89 or better.  All uses removed.
70535
70536 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         * config/srclist.txt: Add glibc bugs 1220-1227.
70539
70540 2005-08-20  Jim Meyering  <jim@meyering.net>
70541
70542         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70543         of unused local, dfa.
70544
70545 2005-08-20  Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70548
70549 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70550
70551         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70552         (re_node_set_insert_last, re_dfa_add_node):
70553         Rename local variables to avoid GCC shadowing warnings.
70554
70555 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70558         [defined lint]: Suppress bogus uninitialized-variable warnings.
70559
70560         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70561         and let the caller return REG_ESPACE if out of space.  This
70562         removes an uninitialied-variable warning with GCC 4.0.1, and also
70563         avoids taking the address of a local variable.  All callers
70564         changed.
70565
70566 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70567
70568         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70569         $LIBCSRC/posix/regexec.c.
70570         Add glibc bug 1217 for regcomp.c.
70571
70572 2005-08-19  Jim Meyering  <jim@meyering.net>
70573
70574         * lib/regexec.c (proceed_next_node): Redo local variables to
70575         avoid GCC shadowing warnings.
70576
70577 2005-08-18  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/strstr.c (strstr): Fix return value in multibyte case.
70580         * lib/strcasestr.c (strcasestr): Likewise.
70581
70582 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70585
70586 2005-08-17  Jim Meyering  <jim@meyering.net>
70587
70588         Make the %s format (seconds since the epoch) work for a negative
70589         number and when used with a zero-padded field width, e.g. %015s.
70590
70591         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70592         label so that it precedes the code to set `digits'.  Otherwise,
70593         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70594         print `00-22'.  Now, it prints `-0022', as it should.
70595
70596 2005-08-17  Bruno Haible  <bruno@clisp.org>
70597
70598         * modules/strstr (Files): Add m4/mbrtowc.m4.
70599         (Depends-on): Add mbuiter.
70600
70601 2005-08-17  Bruno Haible  <bruno@clisp.org>
70602
70603         * modules/strcasestr: New file.
70604         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70605         strcasestr.
70606
70607 2005-08-17  Bruno Haible  <bruno@clisp.org>
70608
70609         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70610
70611 2005-08-17  Bruno Haible  <bruno@clisp.org>
70612
70613         * modules/mbuiter: New file.
70614         * MODULES.html.sh (Extended multibyte and wide character utilities):
70615         Add mbuiter.
70616
70617 2005-08-17  Bruno Haible  <bruno@clisp.org>
70618
70619         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70620         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70621
70622 2005-08-17  Bruno Haible  <bruno@clisp.org>
70623
70624         * m4/strcasestr.m4: New file.
70625
70626 2005-08-17  Bruno Haible  <bruno@clisp.org>
70627
70628         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70629         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70630
70631 2005-08-17  Bruno Haible  <bruno@clisp.org>
70632
70633         * lib/strcasestr.h: New file.
70634         * lib/strcasestr.c: New file.
70635
70636 2005-08-17  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/strcasecmp.c: Use mbuiter.h.
70639
70640 2005-08-17  Bruno Haible  <bruno@clisp.org>
70641
70642         * lib/mbuiter.h: New file.
70643
70644 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70647         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70648         and gl_GETOPT are both invoked via different paths (as happens
70649         with GNU tar CVS because it uses both argp and getopt), the former
70650         wins.
70651
70652 2005-08-16  Bruno Haible  <bruno@clisp.org>
70653
70654         * modules/tls: New file.
70655         * MODULES.html.sh (Multithreading): Add tls.
70656
70657 2005-08-16  Bruno Haible  <bruno@clisp.org>
70658
70659         * modules/strnlen1: New file.
70660         * MODULES.html.sh (String handling): Add strnlen1.
70661
70662 2005-08-16  Bruno Haible  <bruno@clisp.org>
70663
70664         * modules/strcase (Files): Add m4/mbrtowc.m4.
70665         (Depends-on): Add strnlen1, mbchar.
70666
70667 2005-08-16  Bruno Haible  <bruno@clisp.org>
70668
70669         * modules/mbiter: New file.
70670         * MODULES.html.sh (Extended multibyte and wide character utilities):
70671         Add mbiter.
70672
70673 2005-08-16  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/mbfile: New file.
70676         * MODULES.html.sh (Extended multibyte and wide character utilities):
70677         Add mbfile.
70678
70679 2005-08-16  Bruno Haible  <bruno@clisp.org>
70680
70681         * modules/mbchar: New file.
70682         * MODULES.html.sh (Extended multibyte and wide character utilities):
70683         New section.
70684
70685 2005-08-16  Bruno Haible  <bruno@clisp.org>
70686
70687         * m4/tls.m4: New file, from GNU gettext.
70688
70689 2005-08-16  Bruno Haible  <bruno@clisp.org>
70690
70691         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70692         always.
70693         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70694
70695 2005-08-16  Bruno Haible  <bruno@clisp.org>
70696
70697         * m4/mbiter.m4: New file.
70698
70699 2005-08-16  Bruno Haible  <bruno@clisp.org>
70700
70701         * m4/mbfile.m4: New file.
70702
70703 2005-08-16  Bruno Haible  <bruno@clisp.org>
70704
70705         * m4/mbchar.m4: New file.
70706
70707 2005-08-16  Bruno Haible  <bruno@clisp.org>
70708
70709         * lib/tls.h: New file, from GNU gettext.
70710         * lib/tls.c: New file, from GNU gettext.
70711
70712 2005-08-16  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/strnlen1.h: New file.
70715         * lib/strnlen1.c: New file.
70716
70717 2005-08-16  Bruno Haible  <bruno@clisp.org>
70718
70719         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70720         (mbi_init): Update.
70721         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70722         NUL byte, not after it.
70723
70724 2005-08-16  Bruno Haible  <bruno@clisp.org>
70725
70726         * lib/strcase.h (strcasecmp): Add note in comments.
70727         * lib/strncasecmp.c: Use code from strcasecmp.c.
70728         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70729         (strcasecmp): Work correctly in multibyte locales.
70730
70731 2005-08-16  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/mbiter.h: New file.
70734
70735 2005-08-16  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/mbfile.h: New file.
70738
70739 2005-08-16  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/mbchar.h: New file.
70742         * lib/mbchar.c: New file.
70743
70744 2005-08-16  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70747         the valid ones. Makes the comparison operations transitive:
70748         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70749         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70750
70751 2005-08-15  Simon Josefsson  <jas@extundo.com>
70752
70753         * modules/ssize_t (License): Change to 'unlimited'.
70754
70755         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70756
70757 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70760         Add comments for each pending glibc patch.
70761
70762 2005-08-15  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70765         __cplusplus is defined.
70766
70767 2005-08-14  Jim Meyering  <jim@meyering.net>
70768
70769         Sync from coreutils.
70770
70771         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70772         Use the hash-table-based cycle-detection code not just when
70773         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70774         Reported by James Youngman in
70775         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70776         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70777         FTS_TIGHT_CYCLE_CHECK.
70778         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70779         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70780         once again.
70781         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70782         * lib/fts.c (fd_safer): Remove decl.
70783         Include fcntl--.h rather than unistd-safer.h
70784         (fts_safe_changedir): Don't call fd_safer; no longer needed
70785         now that we include fcntl--.h.
70786
70787 2005-08-12  Simon Josefsson  <jas@extundo.com>
70788
70789         * modules/getndelim2: Use ssize_t module.
70790         * modules/getnline: Likewise.
70791         * modules/safe-read: Likewise.
70792         * modules/xreadlink: Likewise.
70793
70794         * modules/ssize_t: New file.
70795
70796 2005-08-12  Simon Josefsson  <jas@extundo.com>
70797
70798         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70799
70800 2005-08-12  Simon Josefsson  <jas@extundo.com>
70801
70802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70803         ssize_t.
70804
70805 2005-08-12  Simon Josefsson  <jas@extundo.com>
70806
70807         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70808         readline, getdelim and check_version.
70809         (Support for systems lacking ISO C 99: Sizes of integer types):
70810         Add size_max.
70811
70812 2005-08-12  Bruno Haible  <bruno@clisp.org>
70813
70814         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70815
70816 2005-08-11  Simon Josefsson  <jas@extundo.com>
70817
70818         * modules/readline: New file.
70819
70820         * modules/strnlen (Files): Add strnlen.h.
70821
70822 2005-08-11  Simon Josefsson  <jas@extundo.com>
70823
70824         * m4/readline.m4: New file.
70825
70826 2005-08-11  Simon Josefsson  <jas@extundo.com>
70827
70828         * lib/readline.h, readline.c: New file.
70829
70830 2005-08-11  Simon Josefsson  <jas@extundo.com>
70831
70832         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70833         gl_AVOID.
70834
70835 2005-08-11  Bruno Haible  <bruno@clisp.org>
70836
70837         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70838
70839 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70840
70841         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70842
70843 2005-08-10  Simon Josefsson  <jas@extundo.com>
70844
70845         * tests/test-iconvme.c: New file.
70846
70847 2005-08-10  Simon Josefsson  <jas@extundo.com>
70848
70849         * m4/strnlen.m4: New file.
70850
70851         * m4/strndup.m4: Don't check for strnlen declaration, done in
70852         strnlen.m4.
70853
70854 2005-08-10  Simon Josefsson  <jas@extundo.com>
70855
70856         * lib/strndup.c: Use strnlen.h.
70857
70858         * lib/strnlen.h: New file.
70859
70860 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70861
70862         * README: Typos.
70863
70864 2005-08-02  Simon Josefsson  <jas@extundo.com>
70865
70866         * modules/readline: New file.
70867
70868 2005-08-02  Simon Josefsson  <jas@extundo.com>
70869
70870         * modules/getdelim: New file.
70871
70872         * modules/getline: Rewrite, don't use getndelim2.
70873
70874 2005-08-02  Simon Josefsson  <jas@extundo.com>
70875
70876         * m4/getline.m4: Separate out getdelim stuff into separate module.
70877
70878         * m4/getdelim.m4: New file.
70879
70880 2005-08-02  Simon Josefsson  <jas@extundo.com>
70881
70882         * lib/getline.h, getline.c: Rewrite.
70883
70884         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70885
70886 2005-07-31  Bruno Haible  <bruno@clisp.org>
70887
70888         * lib/lock.h (gl_lock_initializer): New macro.
70889         (gl_lock_define_initialized): Use it.
70890         (gl_rwlock_initializer): New macro.
70891         (gl_rwlock_define_initialized): Use it.
70892         (gl_recursive_lock_initializer): New macro.
70893         (gl_recursive_lock_define_initialized): Use it.
70894
70895 2005-07-30  Karl Berry  <karl@gnu.org>
70896
70897         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70898         Report from Ben Pfaff, regarding getopt.
70899
70900 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70903         normal way.
70904         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70905         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70906         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70907         (gl_GETOPT): Use the new macros.  Most of the implementation
70908         is moved to the new macros.  This is for programs like Emacs
70909         that don't want all the functionality of gl_GETOPT.
70910
70911 2005-07-26  Bruno Haible  <bruno@clisp.org>
70912
70913         * m4/lock.m4: Update from GNU gettext.
70914
70915 2005-07-26  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/lock.h: Update from GNU gettext.
70918         * lib/lock.c: Update from GNU gettext.
70919
70920 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70923         obsolescent AC_TRY_RUN.  Include the default includes files, for
70924         'exit'.
70925
70926 2005-07-24  Bruno Haible  <bruno@clisp.org>
70927
70928         * modules/visibility: New file.
70929         * MODULES.html.sh (Misc): Add visibility.
70930
70931 2005-07-24  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/visibility.m4: New file.
70934
70935 2005-07-24  Bruno Haible  <bruno@clisp.org>
70936
70937         * doc/visibility.texi: New file.
70938
70939 2005-07-22  Bruno Haible  <bruno@clisp.org>
70940
70941         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70942         $(ALLOCA_H), redundant through BUILT_SOURCES.
70943         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70944         redundant through BUILT_SOURCES.
70945         * modules/byteswap (Makefile.am): Remove explicit dependency on
70946         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70947         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70948         $(FNMATCH_H), redundant through BUILT_SOURCES.
70949         * modules/getopt (Makefile.am): Remove explicit dependency on
70950         $(GETOPT_H), redundant through BUILT_SOURCES.
70951         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70952         redundant through BUILT_SOURCES.
70953         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70954         redundant through BUILT_SOURCES.
70955         * modules/stdbool (Makefile.am): Remove explicit dependency on
70956         $(STDBOOL_H), redundant through BUILT_SOURCES.
70957         * modules/stdint (Makefile.am): Remove explicit dependency on
70958         $(STDINT_H), redundant through BUILT_SOURCES.
70959         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70960         Remove explicit dependency on $(SYSEXITS_H).
70961         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70962
70963 2005-07-18  Simon Josefsson  <jas@extundo.com>
70964
70965         * lib/check-version.c (check_version): Accept identical versions too.
70966
70967 2005-07-18  Bruno Haible  <bruno@clisp.org>
70968
70969         * modules/lock: New file.
70970         * MODULES.html.sh (Multithreading): New section.
70971
70972 2005-07-18  Bruno Haible  <bruno@clisp.org>
70973
70974         * m4/lock.m4: New file, from GNU gettext.
70975
70976 2005-07-18  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/lock.h: New file, from GNU gettext.
70979         * lib/lock.c: New file, from GNU gettext.
70980
70981 2005-07-18  Bruno Haible  <bruno@clisp.org>
70982
70983         * lib/lock.h (gl_once_t): New type.
70984         (gl_once_define, gl_once): New macros.
70985         * lib/lock.c (fresh_once): New variable.
70986         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70987         functions.
70988
70989 2005-07-16  Simon Josefsson  <jas@extundo.com>
70990
70991         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70992         workaround, suggested by Bruno.
70993
70994 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * modules/xalloc (Depends-on): Add xalloc-die.
70997         * modules/xvasprintf (Depends-on): Add xalloc-die.
70998
70999 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71002         with a minor change.
71003
71004 2005-07-15  Bruno Haible  <bruno@clisp.org>
71005
71006         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71007         When using lib/poll.c, define poll as rpl_poll.
71008
71009 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * modules/argp (Depends-on): Remove unlocked-io.
71012
71013 2005-07-14  Derek Price  <derek@ximbiot.com>
71014
71015         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71016         for glob symlink bug.
71017
71018 2005-07-14  Bruno Haible  <bruno@clisp.org>
71019
71020         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71021         Instead, test for *_unlocked function declarations directly.
71022
71023 2005-07-11  Simon Josefsson  <jas@extundo.com>
71024
71025         * modules/size_max: New file.
71026
71027         * modules/xsize: Depend on size_max module for size_max.m4.
71028
71029 2005-07-11  Simon Josefsson  <jas@extundo.com>
71030
71031         * lib/size_max.h: New file.
71032
71033 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71036         copyright symbol and the year.
71037         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71038         (version_etc_va): Use parameterized copyright notice.
71039         Reword to conform to the current GNU coding standards.
71040
71041 2005-07-11  Karl Berry  <karl@gnu.org>
71042
71043         * doc/gnulib.texi (Quoting): new node.
71044         (Initial import): more info, from Patrice.
71045
71046 2005-07-11  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_usage): Document option --avoid.
71049         (Command line options): Handle --avoid.
71050         (func_acceptable): New function.
71051         (func_modules_transitive_closure): Use it.
71052
71053 2005-07-11  Bruno Haible  <bruno@clisp.org>
71054
71055         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71056         Reported by Jim Meyering.
71057
71058 2005-07-10  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71061         Needed when size_t is smaller than 'unsigned int'.
71062         Reported by Paul Eggert.
71063
71064 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71065
71066         * modules/argp (Depends-on): Add unlocked-io
71067
71068 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71069
71070         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71071         block of defines.
71072
71073 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71076         fix now.
71077
71078 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71079         and Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71082         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71083
71084 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * modules/regex (Files): Add lib/regex_internal.c,
71087         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71088         (Depends-on): Add extensions.
71089         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71090
71091 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71094         pathconf.
71095         * m4/same.m4 (gl_SAME): Likewise.
71096         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71097
71098         * m4/regex.m4: Adjust to new libc regex implementation.
71099         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71100         all the .c and .h parts of (the new) regex.
71101         Quote the m4 stuff better.
71102         Check for RE_ICASE bug of old gnulib.
71103         Check for REG_STARTEND of recent libc.
71104         Rename local variables from jm_* to gl_*.
71105         Quote operand of "test -f".
71106         Say "recent enough" version of libc, not "version 2".
71107         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71108         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71109         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71110         Remove check for btowc, isascii.
71111         Require AM_LANGINFO_CODESET.
71112
71113 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * lib/regex.c, regex.h: Sync from libc.
71116         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71117         * lib/regexec.c:
71118         New files, synced from libc, except that regex_internal.h
71119         currently has a small porting fix.
71120
71121 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71124         regex_internal.c, regexec.c.
71125         Add regex_internal.h too, but as a comment, since the libc version
71126         is currently broken in gnulib mode.
71127
71128 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         Support programs like Emacs that use gnulib but not gettext.
71131         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71132         * modules/gettext-h: New file.
71133         * modules/gettext (Files): Remove lib/gettext.h.
71134         (Depends-on): Add gettext-h.
71135         (Makefile.am): Remove lib_SOURCES.
71136         * modules/argmatch, modules/c-stack, modules/closeout:
71137         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71138         * modules/execute, modules/file-type, modules/getaddrinfo:
71139         * modules/getopt, modules/human, modules/javacomp:
71140         * modules/javaexec, modules/mkdir-p, modules/obstack:
71141         * modules/openat, modules/pagealign_alloc, modules/pipe:
71142         * modules/quotearg, modules/regex, modules/rpmatch:
71143         * modules/unicodeio, modules/userspec, modules/version-etc:
71144         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71145         * modules/xsetenv:
71146         Depend on gettext-h, not gettext.
71147
71148 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * gnulib-tool (func_import): Add support for 'public domain' license.
71151         * modules/alloca, modules/atexit, modules/memmove:
71152         Now public domain, not GPL.
71153         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71154         * modules/realloc, modules/strerror, modules/strtod:
71155         Now LGPL, not GPL.
71156
71157 2005-07-05  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71160         autoconf CVS. Needed for mingw.
71161
71162 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         Remove the dependency of the strftime module on the tzset module.
71165         * modules/strftime (Depends-on): Remove dependency on tzset.
71166
71167 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         Remove the dependency of the strftime module on the tzset module.
71170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71171         gl_FUNC_TZSET_CLOBBER.
71172
71173 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71174
71175         Remove the dependency of the strftime module on the tzset module.
71176         * lib/strftime.c (my_strftime)
71177         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71178         Copy the input structure, to work around some of the bug with
71179         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71180         Solaris releases, you should also use the tzset module, but we won't
71181         require it as a dependency any more since we don't want LGPLed code
71182         to depend on GPLed code.
71183
71184 2005-07-02  Jim Meyering  <jim@meyering.net>
71185
71186         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71187         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71188         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71189         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71190
71191 2005-07-02  Jim Meyering  <jim@meyering.net>
71192
71193         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71194
71195 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71198         declares only 'struct timespec;' (!).
71199
71200 2005-07-01  Jim Meyering  <jim@meyering.net>
71201
71202         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71203         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71204         * lib/save-cwd.c, tempname.c:
71205         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71206         and don't include <sys/file.h>).
71207
71208 2005-06-29  Jim Meyering  <jim@meyering.net>
71209
71210         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71211         type name.  Use the variable name instead.
71212         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71213         Likewise.
71214
71215 2005-06-28  Simon Josefsson  <jas@extundo.com>
71216
71217         * modules/check-version (Files): Add check-version.m4.
71218
71219 2005-06-28  Simon Josefsson  <jas@extundo.com>
71220
71221         * m4/check-version.m4: New file, suggested by Jim Meyering
71222         <jim@meyering.net>.
71223
71224 2005-06-28  Simon Josefsson  <jas@extundo.com>
71225
71226         * lib/check-version.h, lib/check-version.c: New files.
71227
71228 2005-06-28  Simon Josefsson  <jas@extundo.com>
71229
71230         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71231         collision with global variable.  Better indentation.  Don't
71232         increment buffer pointer beyond buffer end.  Based on comments
71233         from Paul Eggert <eggert@cs.ucla.edu>.
71234
71235         * lib/base64.h: Indent.
71236
71237 2005-06-28  Simon Josefsson  <jas@extundo.com>
71238
71239         * doc/gnulib.texi (Library version handling): New section.
71240
71241 2005-06-28  Jim Meyering  <jim@meyering.net>
71242
71243         * check-module (find_included_lib_files): Hard-code another
71244         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71245         but modules/fts-lgpl (correctly) does not list those files.
71246
71247         * modules/canonicalize (Files): Add lib/pathmax.h.
71248
71249 2005-06-25  Simon Josefsson  <jas@extundo.com>
71250
71251         * modules/check-version: New file.
71252
71253 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71256         initializer of struct addrinfo, as an indication that we don't
71257         care how many members the structure has.
71258
71259 2005-06-24  Derek Price  <derek@ximbiot.com>
71260         and Bruno Haible  <bruno@clisp.org>
71261
71262         Remove stat module & update lstat.
71263         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71264         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71265         * m4/stat.m4: Remove this file.
71266
71267 2005-06-24  Derek Price  <derek@ximbiot.com>
71268         and Bruno Haible  <bruno@clisp.org>
71269
71270         Remove stat module & update lstat.
71271         * lib/stat.c: Remove this file...
71272         (slash_aware_lstat): ...moving this content and its support...
71273         * lib/lstat.c (rpl_lstat): ...into here.
71274         * lib/lstat.h: New file.
71275
71276 2005-06-24  Derek Price  <derek@ximbiot.com>
71277         and Bruno Haible  <bruno@clisp.org>
71278
71279         Remove stat module & update lstat.
71280         * config/srclist.txt (libc sources): Remove stat.
71281
71282 2005-06-24  Derek Price  <derek@ximbiot.com>
71283         and Bruno Haible  <bruno@clisp.org>
71284
71285         Remove stat module & update lstat.
71286         * MODULES.html.sh (stat): Remove.
71287         * MODULES.html: Regenerated.
71288         * modules/lstat (Description): Correct function name.
71289         (Files): Add "lstat.h".
71290         (Depends-on): Remove stat, add xalloc, stat-macros.
71291         * modules/stat: Remove this file.
71292         (Include): Add "lstat.h", remove <sys/stat.h>.
71293
71294 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71297         (ranged_convert): Don't save conversion in a temporary struct.
71298         This causes a warning with GCC 4.0.0, and anyway in the typical
71299         case it's not worth the extra 100 bytes or so of code.
71300         (ranged_convert, __mktime_internal): When calling a function via a
71301         pointer P, use P () rather than (*P) (), as we now assume C89 or
71302         better.
71303
71304 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71307         "who -r" failed to give output.  Problem reported by Tim Waugh.
71308
71309         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71310         (xcalloc): Use it to avoid needless tests.
71311         Problem reported by Jim Meyering.
71312
71313 2005-06-20  Derek Price  <derek@ximbiot.com>
71314
71315         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71316         unnecessary for Autoconfs > 2.59c.
71317
71318 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71319
71320         * lib/argp.h (__option_is_short): Check upper limit of
71321         __key. Isprint() requires its argument to have the value
71322         of an unsigned char or EOF.
71323
71324 2005-06-16  Jim Meyering  <jim@meyering.net>
71325
71326         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71327         when either N or S is zero.
71328
71329 2005-06-16  Derek Price  <derek@ximbiot.com>
71330
71331         * m4/bison.m4: Declare YACC & YFLAGS precious.
71332
71333 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71336         multibyte string or pattern, fall back on unibyte matching.
71337         Problem reported by James Youngman.
71338
71339 2005-06-08  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/csharpcomp: New file.
71342         * MODULES.html.sh (C#): Add csharpcomp.
71343
71344 2005-06-08  Bruno Haible  <bruno@clisp.org>
71345
71346         * m4/csharpcomp.m4: New file, from GNU gettext.
71347
71348 2005-06-08  Bruno Haible  <bruno@clisp.org>
71349
71350         * lib/csharpcomp.h: New file, from GNU gettext.
71351         * lib/csharpcomp.c: New file, from GNU gettext.
71352         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71353
71354 2005-06-08  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71357         warning on mingw.
71358
71359 2005-06-07  Derek Price  <derek@ximbiot.com>
71360
71361         Sync from CVS.
71362         * lib/glob_.h: Indent nested #ifdef.
71363
71364 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71365
71366         Sync from coreutils.
71367         Use "file name" when talking about file names, instead of "filename"
71368         or "path", as per the GNU coding standards.
71369         * lib/mkdir-p.c: Renamed from makepath.c.
71370         (make_dir_parents): Renamed from make_path.  All callers changed.
71371         * lib/mkdir-p.h: Likewise.  All includers changed.
71372         * lib/filenamecat.c: Renamed from path-concat.c.
71373         (file_name_concat): Renamed from path_concat.  All callers changed.
71374         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71375         * lib/filenamecat.h: Likewise.  All includers changed.
71376         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71377         in comments or local variable names.
71378         * lib/basename.c: Likewise.
71379         * lib/canonicalize.c, canonicalize.h: Likewise.
71380         * lib/dirname.c, dirname.h: Likewise.
71381         * lib/euidaccess.c: Likewise.
71382         * lib/exclude.c: Likewise
71383         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71384         * lib/fsusage.c, fsuage.h: Likewise.
71385         * lib/fts.c, fts_.h: Likewise.
71386         * lib/getcwd.c: Likewise.
71387         * lib/getloadavg.c: Likewise.
71388         * lib/mkstemp.c: Likewise.
71389         * lib/mountlist.c, mountlist.h: Likewise.
71390         * lib/openat.c, openat.h: Likewise.
71391         * lib/readlink-stub.c: Likewise.
71392         * lib/readutmp.c, readutmp.h: Likewise.
71393         * lib/rename.c: Likewise.
71394         * lib/rmdir.c: Likewise.
71395         * lib/same.c: Likewise.
71396         * lib/savedir.c: Likewise.
71397         * lib/stripslash.c: Likewise.
71398         * lib/tempname.c: Likewise.
71399         * lib/xreadlink.c: Likewise.
71400         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71401         All uses changed.
71402         * lib/exclude.h: Likewise.
71403
71404         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71405         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71406         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71407         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71408         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71409         files have been getting away with it for years (MORE/BSD 4.3
71410         is extinct now).
71411         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71412         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71413
71414         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71415         Define to 256, not 255, as per modern POSIX.
71416
71417 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         Sync from coreutils.
71420         Use "file name" when talking about file names, instead of "filename"
71421         or "path", as per the GNU coding standards.
71422         * MODULES.html.sh: mkdir-p renamed from makepath.
71423         filenamecat renamed from path-concat.
71424         * modules/filenamecat: Renamed from modules/path-concat.
71425         (Files): filenamecat.h and filenamecat.c renamed from
71426         path-concat.h and path-concat.c.
71427         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71428         (Include): filenamecat.h, not path-concat.h.
71429         * modules/mkdir-p: Renamed from modules/makepath.
71430         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71431         makepath.c.
71432         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71433         (Include): mkdir-p.h, not makepath.h.
71434
71435 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         Sync from coreutils.
71438         * m4/mkdir-p.m4: Renamed from makepath.m4.
71439         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71440         Rename files from makepath.c to mkdir-p.c, and from
71441         makepath.h to mkdir-p.h.
71442         * m4/filenamecat.m4: Renamed from path-concat.m4.
71443         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71444         Rename files from path-concat.c to filenamecat.c,
71445         and from path-concat.h to filenamecat.h.
71446         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71447         "file name" in local variables or comments.
71448         * m4/rename.m4: Likewise.
71449
71450 2005-06-01  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/csharpexec: New file.
71453         * MODULES.html.sh (C#): New section.
71454
71455 2005-06-01  Bruno Haible  <bruno@clisp.org>
71456
71457         * m4/csharp.m4: New file, from GNU gettext.
71458         * m4/csharpexec.m4: New file, from GNU gettext.
71459
71460 2005-06-01  Bruno Haible  <bruno@clisp.org>
71461
71462         * lib/csharpexec.h: New file, from GNU gettext.
71463         * lib/csharpexec.c: New file, from GNU gettext.
71464         * lib/csharpexec.sh.in: New file, from GNU gettext.
71465
71466 2005-05-31  Derek Price  <derek@ximbiot.com>
71467             Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         Sync from cvs.
71470         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71471
71472 2005-05-31  Derek Price  <derek@ximbiot.com>
71473             Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         Sync from cvs.
71476         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71477
71478 2005-05-29  Derek Price  <derek@ximbiot.com>
71479
71480         * config/srclist.txt (glob_.h, glob.c): Add these files.
71481
71482 2005-05-29  Derek Price  <derek@ximbiot.com>
71483
71484         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71485         * modules/glob: New file.
71486         * modules/getlogin_r: Add link to POSIX spec in description.
71487
71488 2005-05-29  Derek Price  <derek@ximbiot.com>
71489             Paul Eggert  <eggert@cs.ucla.edu>
71490
71491         * m4/glob.m4: New file.
71492
71493 2005-05-29  Derek Price  <derek@ximbiot.com>
71494             Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * lib/glob_.h, lib/glob.c: New files.
71497
71498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71501         * modules/fts-lgpl (Depends-on): Remove gettext.
71502
71503 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71504
71505         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71506         and don't require gt_INTTYPES_PRI.
71507
71508 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71511
71512         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71513         the configuration hassle isn't worth it.
71514         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71515         (LONGEST_MODIFIER, PRIuMAX): Remove.
71516
71517 2005-05-27  Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71520
71521 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71524         _POSIX_PTHREAD_SEMANTICS for Solaris.
71525
71526 2005-05-25  Derek Price  <derek@ximbiot.com>
71527
71528         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71529
71530 2005-05-25  Derek Price  <derek@ximbiot.com>
71531             Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71534         * lib/getlogin_r.c, getlogin_r.h: New files.
71535
71536 2005-05-25  Bruno Haible  <bruno@clisp.org>
71537             Derek Price  <derek@ximbiot.com>
71538
71539         * lib/getlogin_r.h: Simplify API documentation.
71540
71541 2005-05-23  Derek Price  <derek@ximbiot.com>
71542
71543         * modules/minmax (Files): Add m4/minmax.m4.
71544         (configure.ac): Add gl_MINMAX.
71545
71546 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71549         so that unistd-safer.h (GPL'ed code) need not be included.
71550
71551 2005-05-22  Bruno Haible  <bruno@clisp.org>
71552
71553         * m4/minmax.m4: New file.
71554         Based on a patch by Derek Price <derek@ximbiot.com>.
71555
71556 2005-05-22  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71559         (INT64_MIN): Fix definition.
71560         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71561
71562         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71563         NEED_SIGNED_INT_TYPES.
71564
71565         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71566         HAVE_SYSTEM_INTTYPES.
71567
71568 2005-05-22  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71571         Also include <sys/param.h> if it defines MIN, MAX.
71572         Based on a patch by Derek Price <derek@ximbiot.com>.
71573
71574 2005-05-21  Jim Meyering  <jim@meyering.net>
71575
71576         * modules/fts (Files): Add m4/inttypes-pri.m4.
71577         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71578
71579 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         New fts module.
71582         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71583         (setup_dir, free_dir): New functions.
71584         (enter_dir, leave_dir): Define trivial
71585         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71586         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71587         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71588         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71589         Move to fts-cycle.c.
71590         (fts_open): Use setup_dir.
71591         (fts_close): Use free_dir.
71592         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71593         This adds a label and some gotos, but the alternatives were messier.
71594         Check for memory allocation failure when entering a dir.
71595         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71596         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71597         (FTS): New member fts_cycle, that is a union that contains the
71598         old active_dir_ht and cycle_state.  All uses changed to mention
71599         fts_cycle.ht and fts_cycle.state.
71600         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71601         fts.c, with the following changes:
71602         (setup_dir, free_dir): New functions.
71603         (enter_dir): Now returns bool.  Return true if successful, false
71604         if memory exhausted.  All callers changed.
71605         Do not bother partly cleaning up on
71606         memory allocation failure; that is free_dir's job.
71607         However, free ad if hash_insert fails, to avoid memory leak.
71608         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71609         fts->fts_options to see which union member to use.
71610
71611 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71614         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71615
71616 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71619
71620 2005-05-20  Jim Meyering  <jim@meyering.net>
71621
71622         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71623         Now a macro, to pacify GCC.
71624
71625 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71626
71627         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71628         of -1.
71629
71630 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71631
71632         * lib/chown.c (rpl_chown): Return -1 on failure.
71633
71634 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71637         Don't check for stddef.h.
71638         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71639         don't use its results.
71640         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71641         since we include them unconditionally.  Don't require
71642         AM_STDBOOL_H, since stdbool is a prerequisite.
71643         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71644         since we assume C89 or better.
71645         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71646         as we don't use their results.
71647         Don't check for fchdir, memmove, memset, strrchr, as we use
71648         them unconditionally.
71649         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71650         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71651
71652 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71655         Include <stddef.h> unconditionally, since we assume C89 now.
71656         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71657         * lib/fts.c: Include fts_.h first, to check interface.
71658         Do not include intprops.h; no longer needed.
71659         Include cycle-check.h and hash.h, since fts_.h no longer does.
71660         Remove unnecessary casts of closedir to void.
71661         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71662         decide whether to decrement nlinks.
71663         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71664         (FTS): Use struct hash_table * instead of Hash_table, so that
71665         we no longer need to include hash.h here.
71666
71667 2005-05-18  Jim Meyering  <jim@meyering.net>
71668
71669         * modules/dirfd (License): Change to LGPL.  Most of the code
71670         is already in the public domain.
71671
71672 2005-05-18  Jim Meyering  <jim@meyering.net>
71673
71674         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71675         Reported by Yoann Vandoorselaere.
71676
71677 2005-05-17  Jim Meyering  <jim@meyering.net>
71678
71679         * m4/fts.m4: New file, from coreutils.
71680
71681 2005-05-17  Jim Meyering  <jim@meyering.net>
71682
71683         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71684
71685 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71686
71687         Sync from coreutils.
71688         * m4/unlinkdir.m4: New file.
71689
71690 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         Sync from coreutils.
71693         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71694         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71695         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71696         White space changes only.
71697         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71698         special.
71699         * lib/yesno.c: Include getline.h, not ctype.h.
71700         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71701         Use getline to remove arbitrary restriction on response length.
71702
71703 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * config/srclist-update: Spell out "Street" in FSF postal
71706         mail address; this is the style the FSF seems to prefer.
71707
71708         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71709         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71710         this updates FSF postal mail address.
71711
71712         Sync from coreutils.
71713         * modules/unlinkdir: New file.
71714         * modules/yesno (Depends-on): Add getline.
71715         * MODULES.html.sh (File system functions): Add unlinkdir.
71716
71717 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71720         lib/strsep.h:
71721         Change the initial comment to refer to GPL, not LGPL.
71722         gnulib-tool will change it to LGPL as needed.
71723
71724         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71725         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71726         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71727         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71728         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71729         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71730         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71731         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71732         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71733         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71734         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71735         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71736         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71737         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71738         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71739         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71740         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71741         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71742         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71743         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71744         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71745         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71746         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71747         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71748         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71749         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71750         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71751         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71752         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71753         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71754         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71755         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71756         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71757         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71758         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71759         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71760         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71761         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71762         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71763         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71764         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71765         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71766         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71767         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71768         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71769         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71770         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71771         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71772         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71773         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71774         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71775         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71776         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71777         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71778         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71779         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71780         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71781         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71782         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71783         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71784         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71785         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71786         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71787         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71788         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71789         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71790         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71791         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71792         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71793         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71794         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71795         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71796         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71797         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71798         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71799         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71800         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71801         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71802         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71803         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71804         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71805         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71806         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71807         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71808         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71809         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71810         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71811         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71812         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71813         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71814         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71815         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71816         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71817         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71818         lib/yesno.c, lib/yesno.h:
71819         Update FSF postal mail address.
71820
71821 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71822
71823         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71824         tests/test-memmem.c, tests/test-stpncpy.c:
71825         Update FSF postal mail address.
71826
71827 2005-05-13  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71830         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71831         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71832         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71833         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71834         Add support for 64-bit integers in the MSVC compiler.
71835
71836 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71837
71838         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71839
71840 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71841
71842         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71843
71844 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * doc/getdate.texi (General date syntax): Don't say that date
71847         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71848         Problem reported by Nic Ferrier.
71849
71850 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71851
71852         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71853         specified in ai_socktype. Fix invalid ai_protocol
71854         check. ai_protocol is usually set to 0 or depending on
71855         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71856         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71857         ai_socktype / ai_protocol in the returned addrinfo structure.
71858
71859 2005-05-10  Simon Josefsson  <jas@extundo.com>
71860
71861         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71862         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71863
71864 2005-05-10  Karl Berry  <karl@gnu.org>
71865
71866         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71867         (from http://www.gnu.org/licenses).
71868         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71869         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71870         fdl.texi suffices.
71871
71872 2005-05-10  Karl Berry  <karl@gnu.org>
71873
71874         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71875         (COPYING.DOC): remove.
71876
71877         * config/srclist-update: new FSF address.
71878
71879 2005-05-10  Derek Price  <derek@ximbiot.com>
71880
71881         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71882         possible.
71883
71884 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71885             Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/inet_ntop: New file.
71888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71889         inet_ntop.
71890
71891 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71892             Bruno Haible  <bruno@clisp.org>
71893
71894         * m4/inet_ntop.m4: New file.
71895
71896 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71897             Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/inet_ntop.h: New file.
71900         * lib/inet_ntop.c: New file, from glibc with modifications.
71901
71902 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * modules/time_r (License): Change to LGPL.
71905         * modules/extensions (License): Change to LGPL.  Actually,
71906         the license is more permissive than that, but currently gnulib-tool
71907         doesn't know how to handle more-permissive licenses.
71908
71909         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71910         Problem reported by Dave Love.
71911
71912 2005-05-08  Jim Meyering  <jim@meyering.net>
71913
71914         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71915         blank.
71916
71917 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * modules/argmatch (Depends-on): Add stdbool.
71920         * modules/backupfile (Depends-on): Likewise.
71921         * modules/chdir-long (Depends-on): Likewise.
71922         * modules/closeout (Depends-on): Likewise.
71923         * modules/cycle-check (Depends-on): Likewise.
71924         * modules/dirname (Depends-on): Likewise.
71925         * modules/fnmatch (Depends-on): Likewise.
71926         * modules/fsusage (Depends-on): Likewise.
71927         * modules/fwriteerror (Depends-on): Likewise.
71928         * modules/getcwd (Depends-on): Likewise.
71929         * modules/getloadavg (Depends-on): Likewise.
71930         * modules/hard-locale (Depends-on): Likewise.
71931         * modules/makepath (Depends-on): Likewise.
71932         * modules/mountlist (Depends-on): Likewise.
71933         * modules/nanosleep (Depends-on): Likewise.
71934         * modules/posixtm (Depends-on): Likewise.
71935         * modules/quotearg (Depends-on): Likewise.
71936         * modules/readtokens (Depends-on): Likewise.
71937         * modules/readtokens0 (Depends-on): Likewise.
71938         * modules/readutmp (Depends-on): Likewise.
71939         * modules/save-cwd (Depends-on): Likewise.
71940         * modules/strftime (Depends-on): Likewise.
71941         * modules/userspec (Depends-on): Likewise.
71942         * modules/utimecmp (Depends-on): Likewise.
71943         * modules/xgetcwd (Depends-on): Likewise.
71944         * modules/xnanosleep (Depends-on): Likewise.
71945         * modules/xstrtod (Depends-on): Likewise.
71946         * modules/yesno (Depends-on): Likewise.
71947
71948 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71951         needless checks.
71952
71953 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71954
71955         Merge from coreutils.  Among other things,
71956         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71957         * lib/fd-safer.c: New file.
71958         * lib/fcntl-safer.h, open-safer.c: Remove.
71959         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71960         * lib/dup-safer.c: Include unistd-safer.h first.
71961         Don't include errno.h.
71962         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71963         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71964         * lib/file-type.c: Rely on file-type.h change.
71965         * lib/getloadavg.c: Include unistd-safer.h.
71966         (getloadavg): Use safer open.
71967         * lib/getusershell.c: Include "stdio-safer.h".
71968         (getusershell): Use safer fopen.
71969         * lib/long-options.c (long_options): Use NULL rather than 0.
71970         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71971         'free'.
71972         * lib/modechange.c: Likewise.
71973         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71974         (MODE_DONE): New constant.
71975         (struct mode_change): Remove 'next' member.
71976         (make_node_op_equals): New function; like the old one of the
71977         same name, except it allocates an array.
71978         (mode_compile, mode_create_from_ref): Use it.
71979         (mode_compile): Allocate result as an array, not a linked list.
71980         Parse octal string ourself, so that we catch mistakes like "+0".
71981         (mode_adjust): Arg is an array, not a linked list.
71982         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71983         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71984         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71985         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71986         Remove.  This is now stat-macros.h's job.
71987         (talloc): Remove.  All callers replaced by xalloc, so that
71988         our invokers don't have to worry about reporting memory failures.
71989         (make_node_op_equals): Remove.
71990         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71991         New constants.
71992         (struct mode_change): Moved here from modechange.h.
71993         (mode_append_entry): Remove.
71994         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71995         apps to have incorrect behavior.  Use simpler algorithm for head
71996         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71997         Detect more invalid usages rather than having somewhat-random behavior.
71998         Don't insert an "a=" action, as that leads to incorrect behavior.
71999         (mode_compile, mode_create_from_ref): Return NULL on error instead
72000         of an enum, since now there's only one way to have an error.  All
72001         callers changed.
72002         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72003         at the correct time.  Simplify calculation of "+u" and its ilk.
72004         Don't mishandle "+X".
72005         (mode_free): Remove "register" and localize decls.
72006         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72007         (struct mode_change): Move to modechange.c; callers don't
72008         need to see this stuff.
72009         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72010         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72011         (mode_change, mode_adjust): Reflect the new signatures noted above.
72012         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72013         that might redefine system include files.
72014         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72015         (my_usleep): Use NULL rather than (void *) 0.
72016         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72017         Use siginterrupt to specify that system calls should be interrupted.
72018         (rpl_nanosleep): Move initialization of suspended closer to call of
72019         my_usleep.
72020         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72021         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72022         (desirable_utmp_entry): New function.
72023         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72024         using x2nrealloc, to simplify logic.
72025         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72026         size calculation.  Do not assume utmp file is a regular file.
72027         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72028         (READ_UTMP_CHECK_PIDS): New constant.
72029         * lib/save-cwd.c: Include unistd-safer.h.
72030         (save_cwd): Use fd_safer.
72031         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72032         [!_LIBC] Include "stat-macros.h" instead.
72033         * lib/unistd-safer.h (fd_safer): New decl.
72034
72035 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         * modules/getloadavg (Depends-on): Add unistd-safer.
72038         * modules/getusershell (Depends-on): Add stdio-safer.
72039         * modules/lstat (Depends-on): Remove xalloc.
72040         * modules/mkstemp (Depends-on): Add stat-macros.
72041         * modules/modechange (Depends-on): Remove xstrtol.
72042         Add stat-macros, xalloc.
72043         * modules/save-cwd (Depends-on): Add unistd-safer.
72044         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72045         * modules/unistd-safer (Files): Add lib/fd-safer.c
72046         (Makefile.am): Remove lib_SOURCES.
72047
72048         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72049         Remove fcntl-safer; unistd-safer supersedes it.
72050
72051 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72054         AC_HEADER_STAT.
72055         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72056         (gl_PREREQ_CHOWN): Remove.
72057         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72058         it.  Don't require AC_HEADER_STAT.
72059         (gl_PREREQ_LSTAT): Remove.
72060         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72061         Don't require AC_HEADER_STAT.
72062         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72063         (gl_PREREQ_RMDIR): Remove.
72064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72065         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72066         the stat-macros module a prerequisite.
72067         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72068         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72069         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72070         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72071         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72072         variable names.
72073         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72074         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72075         variable prefixes.
72076         * m4/fcntl-safer.m4: Remove.
72077         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72079         Invoke gl_PREREQ_FD_SAFER.
72080         (gl_PREREQ_FD_SAFER): New macro.
72081         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72082         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72083         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72084         Remove duplicate call to AC_LIBOBJ(readutmp).
72085         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72086
72087         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72088         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72089
72090 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * MODULES.html.sh (Misc): Add byteswap.
72093
72094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72095
72096         * modules/getcwd (Depends-on): Add extensions.
72097         * modules/openat (Depends-on): Likewise.
72098
72099 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72100
72101         * modules/byteswap: New file.
72102
72103 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72104
72105         * m4/byteswap.m4: New file.
72106
72107 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72108
72109         * lib/byteswap_.h: New file.
72110
72111 2005-04-25  Karl Berry  <karl@gnu.org>
72112
72113         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72114
72115 2005-04-25  Albert Chin  <china@thewrittenword.com>
72116
72117         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72118         Toolkit C bug.
72119
72120 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72121
72122         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72123         (func_ln_if_changed): Remove forcibly for no error message
72124         in case file does not exist.
72125
72126 2005-04-19  Simon Josefsson  <jas@extundo.com>
72127
72128         * gnulib-tool (Options): Make --symlink mean --symbolic.
72129
72130 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72131
72132         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72133
72134 2005-04-16  Simon Josefsson  <jas@extundo.com>
72135
72136         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72137
72138 2005-04-15  Simon Josefsson  <jas@extundo.com>
72139
72140         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72141
72142 2005-04-15  Simon Josefsson  <jas@extundo.com>
72143
72144         * gnulib-tool: Rename --symlink to --symbolic.
72145
72146 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72147
72148         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72149         symbolic links to files instead of copying/moving.  Add --aux-dir,
72150         specifying directory relative --dir where auxiliary build tools
72151         are placed.
72152
72153 2005-04-14  Bruno Haible  <bruno@clisp.org>
72154
72155         * modules/allocsa (License): Change to LGPL.
72156         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72157
72158 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72161         that "UTC +1 second" continues to work.  Problem reported
72162         by Dmitry V. Levin.
72163         (relunit_snumber): New rule.
72164         (relunit): Use it.
72165
72166 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * lib/getdate.y (universal_time_zone_table): New constant.
72169         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72170         universal_time_zone_table.
72171         (lookup_zone): Prefer universal_time_zone_table to
72172         local_time_zone_table, so that "GMT" time stamps are allowed in
72173         London during the summer.  Problem reported by Ian Abbott.
72174
72175 2005-04-12  Jim Meyering  <jim@meyering.net>
72176
72177         * lib/human.c (humblock): Set *options even when returning due to
72178         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72179         warning from gcc-4.
72180
72181 2005-04-09  Jim Meyering  <jim@meyering.net>
72182
72183         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72184         -Wuninitialized: initialize tm0.tm_year.
72185
72186 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72189         count, since there's no maximum.  All uses changed.
72190         Add member dsts_seen.
72191         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72192         not being INT_MAX.
72193         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72194         Use pc_rels_seen to decide whther a date is absolute.
72195
72196         * lib/getdate.y (number): Don't overwrite year.
72197         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72198         check.
72199
72200 2005-04-02  Simon Josefsson  <jas@extundo.com>
72201
72202         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72203         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72204
72205 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72206
72207         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72208         where no absolute path name can be longer than PATH_MAX.
72209
72210 2005-03-27  Jim Meyering  <jim@meyering.net>
72211
72212         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72213
72214 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72217         "one's complement" -> "ones' complement" in comment, as per Knuth.
72218         "value of type" -> "type or expression" in comment.
72219         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72220
72221 2005-03-26  Jim Meyering  <jim@meyering.net>
72222
72223         Comment nits.
72224         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72225         Correct typos: s/or/of/.
72226
72227 2005-03-26  Jim Meyering  <jim@meyering.net>
72228
72229         * modules/check-include-files: Move to ../ and rename to...
72230         * check-module: ...this.
72231
72232 2005-03-25  Jim Meyering  <jim@meyering.net>
72233
72234         * modules/xvasprintf (Files): Add xalloc.h.
72235
72236 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         * modules/gettext (Files): config/config.rpath ->
72239         build-aux/config.rpath
72240         * modules/iconv (Files): Likewise.
72241         Problem reported by Oskar Liljeblad.
72242
72243 2005-03-23  Jim Meyering  <jim@meyering.net>
72244
72245         * modules/check-include-files: New script to check for
72246         missing dependencies, multiple includes, etc.
72247
72248         * modules/c-strtold (Depends-on): Add xalloc.
72249         * modules/c-strtod (Depends-on): Add xalloc.
72250         * modules/hash (Depends-on): Add xalloc.
72251         (Files): Remove lib/xalloc.h.
72252
72253         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72254         * modules/userspec (Files): Add lib/inttostr.h.
72255
72256 2005-03-23  Jim Meyering  <jim@meyering.net>
72257
72258         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72259
72260 2005-03-22  Jim Meyering  <jim@meyering.net>
72261
72262         * modules/stat-macros: New module.
72263         * modules/canonicalize, modules/euidaccess, modules/file-type,
72264         * modules/filemode, modules/lchown, modules/makepath,
72265         * modules/rmdir, modules/stat: Depend on new stat-macros module
72266         rather than listing lib/stat-macros.h manually.
72267         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72268
72269 2005-03-22  Jim Meyering  <jim@meyering.net>
72270
72271         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72272
72273 2005-03-22  Bruno Haible  <bruno@clisp.org>
72274
72275         * config/srclist.txt: Replace target directory 'config' with
72276         'build-aux'.
72277         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72278         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72279         ../build-aux/.
72280
72281 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * modules/chdir-long (Depends-on): Add mempcpy.
72284
72285         * modules/acl, modules/backupfile, modules/c-strtod,
72286         modules/c-strtold, modules/canon-host, modules/canonicalize,
72287         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72288         modules/exclude, modules/exitfail, modules/file-type,
72289         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72290         modules/getdate, modules/getline, modules/getpagesize,
72291         modules/getpass, modules/getugroups, modules/group-member,
72292         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72293         modules/inttostr, modules/long-options, modules/makepath,
72294         modules/md5, modules/memcasecmp, modules/memcoll,
72295         modules/modechange, modules/mountlist, modules/path-concat,
72296         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72297         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72298         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72299         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72300         modules/strftime, modules/strndup, modules/strverscmp,
72301         modules/timespec, modules/unlocked-io, modules/userspec,
72302         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72303         modules/yesno:
72304         Remove lib_SOURCES line from Makefile.am section, as this is now
72305         done automatically by the corresponding Autoconf macro.
72306
72307 2005-03-21  Jim Meyering  <jim@meyering.net>
72308
72309         Changes imported from coreutils.
72310
72311         * lib/cycle-check.c: Don't include xalloc.h.
72312
72313         * lib/path-concat.c: Don't include assert.h.
72314         (path_concat): Remove assertion that would have triggered
72315         for ABASE starting with more than one slash.
72316         Reported by Andreas Schwab.
72317
72318         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72319         properly when ABASE is an absolute file name.
72320         Correct the description of this function.
72321         Include <assert.h>.
72322         Add an assertion and a test driver.
72323         This fixes a bug introduced on 2004-07-02.
72324         Andreas Schwab reported the resulting failure of cp --parents:
72325         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72326
72327 2005-03-21  Jim Meyering  <jim@meyering.net>
72328
72329         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72331
72332 2005-03-21  Jim Meyering  <jim@meyering.net>
72333         and  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72336         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72337         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72338         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72339         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72340         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72341         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72342         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72343         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72344         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72345         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72346         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72347         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72348         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72349         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72350         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72351         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72352         for these modules.
72353
72354 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72357         (which shouldn't happen), generate nothing instead of returning 0
72358         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72359
72360 2005-03-16  Bruno Haible  <bruno@clisp.org>
72361
72362         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72363         HAVE_LONGLONG_64BIT.
72364
72365 2005-03-16  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72368         HAVE_LONGLONG_64BIT.
72369
72370 2005-03-16  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72373         HAVE_LONGLONG_64BIT.
72374
72375 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72378         reliably distinguish strftime failure from empty output on POSIX
72379         hosts.
72380
72381 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72384         (iconv_string): Don't guess a size-zero buffer, as that might cause
72385         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72386         result would be 'too large', where 'too large' is (heuristically)
72387         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72388         overflow concerns.  This will prevent some unwanted malloc failures
72389         when the inputs are very large.
72390
72391 2005-03-15  Karl Berry  <karl@gnu.org>
72392
72393         * config/srclist.txt (config.rpath): from gettext.
72394         * config/config.rpath: update.
72395
72396 2005-03-15  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72399         to 'negate'.
72400
72401         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72402         variable.
72403
72404         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72405         results.
72406
72407 2005-03-14  Simon Josefsson  <jas@extundo.com>
72408
72409         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72410         <fx@gnu.org>.
72411
72412 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72415         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72416         intprops.h.
72417         * lib/strtol.c: Likewise.
72418
72419 2005-03-14  Jim Meyering  <jim@meyering.net>
72420
72421         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72422         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72423         to be nonzero so that we (and caller) can detect the difference
72424         between a valid zero-length expansion and an error return, even
72425         when the underlying strftime fails before writing anything into
72426         that location.
72427
72428 2005-03-14  Bruno Haible  <bruno@clisp.org>
72429
72430         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72431         Update from GNU gettext 0.14.3.
72432
72433 2005-03-10  Jim Meyering  <jim@meyering.net>
72434
72435         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72436
72437 2005-03-10  Jim Meyering  <jim@meyering.net>
72438
72439         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72440         so that this module works on systems without fchdir.
72441
72442 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         Factor int-properties macros into a single file, except for
72445         glibc-related files.
72446         * lib/intprops.h: New file.
72447         * lib/getloadavg.c: Include it instead of limits.h.
72448         (INT_STRLEN_BOUND): Remove.
72449         * lib/human.c: Include intprops.h.
72450         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72451         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72452         302/1000.
72453         * lib/inttostr.h: Include intprops.h instead of limits.h.
72454         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72455         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72456         for consistency with intprops.h.
72457         (time_t_is_integer, twos_complement_arithmetic): Use them.
72458         * lib/sig2str.h: Include <signal.h>, intprops.h.
72459         (INT_STRLEN_BOUND): Remove.
72460         * lib/strftime.c (TYPE_SIGNED): Remove.
72461         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72462         * lib/strtol.c: Adjust comments to match intprops.h.
72463         * lib/userspec.c: Include intprops.h.
72464         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72465         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72466         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72467         instead of rolling our own expressions.
72468         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72469
72470         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72471         instead of int.
72472         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72473         the right thing even if adding 1900 would overflow.  Similarly
72474         for tm_mon + 1 and tm_yday + 1.
72475         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72476         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72477         (DO_SIGNED_NUMBER): New macro.
72478         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72479
72480 2005-03-07  Bruno Haible  <bruno@clisp.org>
72481
72482         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72483
72484 2005-03-07  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72487
72488 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72489
72490         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72491         (func_import): Only replace files via --import when they have actually
72492         changed.
72493
72494 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72495
72496         * m4/mmap-anon.m4: New file.
72497         * m4/pagealign_alloc.m4: New file.
72498
72499 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72500             Bruno Haible  <bruno@clisp.org>
72501
72502         * modules/pagealign_alloc: New file.
72503         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72504
72505 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72506             Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/pagealign_alloc.h: New file.
72509         * lib/pagealign_alloc.c: New file.
72510
72511 2005-03-03  Bruno Haible  <bruno@clisp.org>
72512
72513         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72514         Use an all-permissive copyright notice, recommended by RMS.
72515
72516 2005-03-02  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72519         of AIX, the replacement has to be done only after <string.h> is
72520         included, therefore not in config.h. stpncpy.h does the replacement,
72521         and stpncpy.c uses it.
72522
72523 2005-03-02  Bruno Haible  <bruno@clisp.org>
72524
72525         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72526         stpncpy.c uses it.
72527
72528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72531         The workaround isn't strictly needed for POSIX conformance, and
72532         it's too much of a pain to configure and maintain.  We'll ask
72533         people to fix their kernels instead.
72534         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72535         (NANOSLEEP_BUG_WORKAROUND): Remove.
72536         (xnanosleep): Remove the workaround.
72537
72538 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72541         Reported by Derek Price.
72542         (Include): Add "timespec.h".
72543
72544         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72545
72546 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72549         to detect nanosleep bug.
72550
72551 2005-03-01  Bruno Haible  <bruno@clisp.org>
72552
72553         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72554
72555 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72556
72557         * modules/gethrxtime: New file.
72558         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72559         (Depends-on): Add gethrxtime.
72560         (configure.ac): Add gl_XNANOSLEEP.
72561         (Makefile.am): Remove lib_SOURCES line.
72562
72563 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72564
72565         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72566         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72567
72568 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72569
72570         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72571         * lib/timespec.h (gettime): Return void, since it always
72572         succeeds now.  All uses changed.
72573         * lib/gettime.c (gettime): Likewise.
72574         [HAVE_NANOTIME]: Prefer nanotime.
72575         Assume gettimeofday succeeds, as POSIX requires.
72576         Assime time () succeeds, since other code already does.
72577         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72578         (timespec_subtract): Remove.
72579         (NANOSLEEP_BUG_WORKAROUND): New constant.
72580         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72581         things considerably.  Use it only on GNU/Linux hosts, since the
72582         workaround shouldn't be needed elsewhere.
72583
72584 2005-02-24  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/gettext (Files): Add m4/glibc2.m4.
72587
72588 2005-02-24  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72591         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72592         * m4/progtest.m4:
72593         Update from GNU gettext 0.14.2.
72594         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72595
72596 2005-02-24  Bruno Haible  <bruno@clisp.org>
72597
72598         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72599         * lib/config.charset: Update from GNU gettext 0.14.2.
72600
72601 2005-02-24  Bruno Haible  <bruno@clisp.org>
72602
72603         * lib/gettext.h: Update from GNU gettext 0.14.2.
72604
72605 2005-02-23  Simon Josefsson  <jas@extundo.com>
72606
72607         * m4/iconvme.m4: New file.
72608
72609 2005-02-23  Jim Meyering  <jim@meyering.net>
72610
72611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72612         change.
72613         Thanks to Bruno Haible for catching it.
72614
72615 2005-02-22  Simon Josefsson  <jas@extundo.com>
72616
72617         * modules/iconvme: New file.
72618
72619         * MODULES.html.sh: Add iconvme.
72620
72621 2005-02-22  Simon Josefsson  <jas@extundo.com>
72622
72623         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72624
72625 2005-02-22  Simon Josefsson  <jas@extundo.com>
72626
72627         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72628
72629 2005-02-22  Jim Meyering  <jim@meyering.net>
72630
72631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72632         s/ifndef/ifdef/.
72633
72634 2005-02-20  Neil Conway  <neilc@samurai.com>
72635
72636         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72637         returned by OSX/Darwin if the specified buffer is not large
72638         enough for the hostname.
72639
72640 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72641
72642         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72643         pass it to _help, otherwise the latter coredumps trying to
72644         dereference state.root_argp.
72645
72646 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * modules/chdir-long (Depends-on): Add memrchr.
72649         * modules/memrchr (Files): Add lib/memrchr.h.
72650         (Include): "memrchr.h".
72651
72652 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72655
72656 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * lib/memrchr.h: New file.
72659         * lib/chdir-long.c: Include it.
72660         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72661         Don't bother including stddef.h.
72662
72663 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72666         inclusion.
72667         Include <sys/types.h>, for dev_t.
72668         (ME_DUMMY, ME_REMOTE): Move from here....
72669         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72670         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72671         Dmitry V. Levin.
72672         Include mountlist.h first, to test the interface.
72673
72674 2005-01-29  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/progname.c (program_name): Initialize.
72677         Needed when linking statically on MacOS X.
72678
72679 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         Sync from coreutils.
72682         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72683         (Depends-on): Add c-strtod.
72684         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72685
72686 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         Sync from coreutils.
72689         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72690
72691         Remove files that are specific to coreutils.
72692         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72693
72694 2005-01-28  Bruno Haible  <bruno@clisp.org>
72695
72696         * modules/javacomp: New file.
72697         * MODULES.html.sh (Java): Add javacomp.
72698
72699 2005-01-28  Bruno Haible  <bruno@clisp.org>
72700
72701         * m4/javacomp.m4: New file, from GNU gettext.
72702
72703 2005-01-28  Bruno Haible  <bruno@clisp.org>
72704
72705         * lib/javacomp.sh.in: New file, from GNU gettext.
72706         * lib/javacomp.h: New file, from GNU gettext.
72707         * lib/javacomp.c: New file, from GNU gettext.
72708
72709 2005-01-26  Simon Josefsson  <jas@extundo.com>
72710
72711         * lib/gai_strerror.c: Use GPL in header.
72712
72713 2005-01-26  Bruno Haible  <bruno@clisp.org>
72714
72715         * modules/javaexec: New file.
72716         * MODULES.html.sh (Java): Add javaexec.
72717
72718 2005-01-26  Bruno Haible  <bruno@clisp.org>
72719
72720         * m4/javaexec.m4: New file, from GNU gettext.
72721
72722 2005-01-26  Bruno Haible  <bruno@clisp.org>
72723
72724         * lib/javaexec.sh.in: New file, from GNU gettext.
72725         * lib/javaexec.h: New file, from GNU gettext.
72726         * lib/javaexec.c: New file, from GNU gettext.
72727
72728 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72729
72730         * modules/lchown (Depends-on): Remove lchown.h
72731
72732 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72733
72734         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72735         must be defined if the header file was not found, in order
72736         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72737
72738 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72739
72740         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72741         initializers for struct pentry_state.
72742         (__argp_error): Check return value of __asprintf
72743         (__argp_failure): Translate error message
72744
72745         * lib/argp-parse.c: Removed braces around the expansion of N_()
72746
72747 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72750         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72751         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72752         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72753         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72754         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72755         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72756         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72757         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72758         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72759         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72760         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72761         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72762         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72763         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72764         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72765         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72766         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72767         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72768         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72769         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72770         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72771         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72772         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72773         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72774         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72775         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72776         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72777         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72778         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72779         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72780         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72781         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72782         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72783         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72784         Use an all-permissive copyright notice, recommended by RMS.
72785
72786 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72787
72788         * modules/chdir-long (Depends-on): Remove mempcpy.
72789
72790 2005-01-21  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72793         same value as for Solaris 9.
72794
72795         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72796         component length.  This included changing the parameter to be
72797         of type `char *' rather than `char const *'.
72798         * lib/chdir-long.h (chdir_long): Update prototype.
72799
72800         * lib/openat.c (fdopendir, fstatat): New functions.
72801         * lib/openat.h: Include headers required for use of DIR and struct
72802         stat.
72803         [AT_SYMLINK_NOFOLLOW]: Define.
72804         (fdopendir, fstatat): Add prototypes.
72805
72806 2005-01-21  Bruno Haible  <bruno@clisp.org>
72807
72808         * modules/classpath: New file.
72809         * MODULES.html.sh (Java): Add classpath.
72810
72811 2005-01-21  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/classpath.h: New file, from GNU gettext.
72814         * lib/classpath.c: New file, from GNU gettext.
72815
72816 2005-01-20  Simon Josefsson  <jas@extundo.com>
72817
72818         * modules/version-etc-fsf: New file.
72819
72820 2005-01-20  Simon Josefsson  <jas@extundo.com>
72821
72822         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72823         * lib/version-etc.c: Remove version_etc_copyright.
72824         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72825         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72826
72827 2005-01-20  Simon Josefsson  <jas@extundo.com>
72828
72829         * lib/base64.h (isbase64): Add.
72830
72831         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72832         using a unsigned prototype, don't inline.
72833         (base64_decode): Use it.
72834
72835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72838         it.
72839
72840 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * lib/save-cwd.c (save_cwd): Remove code to support the case
72843         where fchdir is missing or flaky.
72844
72845 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72848
72849 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72852         AC_LIBSOURCES now does this.
72853         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72854         with new ullong_max module.
72855
72856 2005-01-19  Bruno Haible  <bruno@clisp.org>
72857
72858         * modules/sh-quote: New file.
72859         * MODULES.html.sh (Executing programs): Add sh-quote.
72860
72861 2005-01-19  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/sh-quote.h: New file, from GNU gettext.
72864         * lib/sh-quote.c: New file, from GNU gettext.
72865
72866 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         Merge from coreutils.
72869         * m4/ullong_max.m4: New file.
72870         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72871         (gl_MACROS): Assume localeconv exists.
72872
72873 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         Merge changes from coreutils, as described below in several
72876         changelogs dated today.
72877
72878         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72879         (O_DIRECTORY): Remove; not needed here, since "." must be
72880         a directory.  All uses removed.
72881         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72882         universal on Suns, and we also need to test for IRIX.
72883         Revamp code to use 'if' rather than '#if'.
72884         Avoid unnecessary comparison of cwd->desc to 0.
72885
72886         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72887         for known valid error numbers rather than observed invalid ones.
72888
72889 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * modules/ullong_max: New file.
72892
72893         * modules/chdir-long, modules/openat: New files.
72894         * modules/save-cwd (Depends-on): Depend on chdir-long.
72895         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72896
72897 2005-01-18  Jim Meyering  <jim@meyering.net>
72898
72899         Merge from coreutils.
72900         * m4/chdir-long.m4, m4/openat.m4: New files.
72901         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72902         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72903         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72904         is sane and DOES follow symlinks.  Besides, testing 20 different
72905         systems found no broken chown implementations.
72906         Prompted by a change in rsync's copy of this macro.
72907         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72908
72909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72910
72911         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72912         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72913         NULL-means-set-to-current-time semantics.
72914         Remove temporary file immediately, rather than waiting
72915         for configure's at-exit trap code to do it.
72916
72917 2005-01-18  Jim Meyering  <jim@meyering.net>
72918
72919         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72920
72921         * lib/utimens.c (futimens): Account for the fact that futimes
72922         can also fail with errno == ENOSYS or errno == ENOENT.
72923         Patch from Dmitry V. Levin.
72924
72925         Change the name of the robust chdir function from chdir to chdir_long.
72926         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72927         (restore_cwd): Use chdir_long, not chdir.
72928         * lib/chdir-long.c: Renamed from chdir.c.
72929         * lib/chdir-long.h: Renamed from chdir.h.
72930         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72931         Hurd.
72932
72933 2005-01-18  Bruno Haible  <bruno@clisp.org>
72934
72935         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72936         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72937         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72938         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72939         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72940         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72941         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72942         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72943         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72944         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72945         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72946         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72947         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72948         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72949         Use an all-permissive copyright notice, recommended by RMS.
72950
72951 2005-01-18  Bob Proulx  <bob@proulx.com>
72952
72953         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72954         simplify offsetof() macro construct to avoid compile failure with
72955         native HP-UX 11.0 ANSI C compiler.
72956
72957 2005-01-17  Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72960         redundant because stpncpy.m4 takes care of it.
72961
72962 2005-01-17  Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72965
72966 2005-01-17  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72969         used.
72970
72971 2005-01-17  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/fwriteerror.h (fwriteerror): Change specification to include
72974         fclose.
72975         * lib/fwriteerror.c: Include <stdbool.h>.
72976         (fwriteerror): At the end, close the file stream. Record whether
72977         stdout was already closed.
72978
72979 2005-01-17  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/execute.c (environ): Declare if needed.
72982         * lib/pipe.c (environ): Likewise.
72983         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72984
72985 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72986
72987         * modules/argp: Depend on vsnprintf
72988
72989 2005-01-10  Jim Meyering  <jim@meyering.net>
72990
72991         * modules/closeout (Depends-on): Add atexit.
72992
72993 2005-01-06  Bruno Haible  <bruno@clisp.org>
72994
72995         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72996
72997 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73000         definitions to be after all include files, to avoid collisions.
73001         Problem reported by Bob Proulx.
73002
73003 2005-01-04  Jim Meyering  <jim@meyering.net>
73004
73005         Changes imported from coreutils.
73006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73007         as the mkstemp template, use a temporary directory and an
73008         8.3-friendly template to avoid trouble on systems like DJGPP.
73009         Reported by Juan M. Guerrero via Stepan Kasal.
73010         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73011         close. Remove the temporary directory right away, rather than waiting
73012         for configure's at-exit trap code to do it.
73013         Suggestion from Stepan Kasal.
73014
73015 2005-01-01  Simon Josefsson  <jas@extundo.com>
73016
73017         * gnulib-tool: Print #include directives when --import'ing.
73018
73019 2004-12-28  Simon Josefsson  <jas@extundo.com>
73020
73021         * tests/test-base64.c: Include required header files.  Remove
73022         unused variables.
73023
73024 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73025
73026         * modules/error (Depends-on): Remove gettext.
73027
73028 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73031         not needed.  This removes a dependency on the gettext module.
73032         [defined _LIBC]: Do not include <libintl.h>; not needed.
73033
73034 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73035
73036         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73037         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73038
73039 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73040
73041         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73042         HAVE_DECL_STRTOLD.
73043
73044 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * modules/getdate (Depends-on): Remove alloca-opt.
73047
73048 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73051
73052 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * lib/argp-parse.c: Include <stddef.h>.
73055         (alignof, alignto): New macros.
73056         (parser_init): Don't assume that void * is aligned sufficiently
73057         for struct option.
73058
73059         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73060         need to extend the stack.
73061         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73062         large.
73063
73064 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73065
73066         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73067
73068 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73071         (2004-10-24) change.  Apparently this was a false alarm.
73072
73073         * modules/getdate: Depend on alloca-opt, not alloca.
73074
73075 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73078         Remove now-obsolete comment about AIX.
73079         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73080         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73081         (YYMAXDEPTH): New macro.
73082
73083 2004-12-18  Simon Josefsson  <jas@extundo.com>
73084
73085         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73086
73087 2004-12-18  Bruno Haible  <bruno@clisp.org>
73088
73089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73090
73091 2004-12-18  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/fatal-signal.c (fatal_signals): Make non-const.
73094         (init_fatal_signals): New function.
73095         (uninstall_handlers, install_handlers): Ignore signals that were set to
73096         SIG_IGN.
73097         (at_fatal_signal): Call init_fatal_signals.
73098         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73099         SIG_IGN.
73100         Reported by Paul Eggert.
73101
73102 2004-12-18  Bruno Haible  <bruno@clisp.org>
73103
73104         * doc/alloca.texi: New file.
73105         * doc/alloca-opt.texi: New file.
73106
73107 2004-12-17  Jim Meyering  <jim@meyering.net>
73108
73109         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73110         Otherwise, install-sh could exit with improper exit status when
73111         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73112
73113 2004-12-16  Simon Josefsson  <jas@extundo.com>
73114
73115         * tests/test-base64.c: Add license.
73116
73117 2004-12-15  Stepan Kasal  <address@hidden>
73118
73119         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73120
73121 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * modules/getcwd (Files): Add m4/d-ino.m4.
73124         Suggested by Mark D. Baushke.
73125
73126 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/getdate.y (textint): New member "negative".
73129         (time_zone_hhmm): New function.
73130         Expect 14 shift-reduce conflicts, not 13.
73131         (o_colon_minutes): New rule.
73132         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73133         (yylex): Set the "negative" member of signed numbers.
73134
73135 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * doc/getdate.texi (Time of day items, Time zone items):
73138         Describe new formats +00:00, UTC+00:00.
73139
73140 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73143         spurious "-l"s.  Problem reported by Stepan Kasal.
73144
73145 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73148         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73149
73150 2004-12-04  Simon Josefsson  <jas@extundo.com>
73151
73152         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73153         Vandoorselaere <yoann@prelude-ids.org>.
73154
73155 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         Changes imported from coreutils.
73158         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73159         exist.
73160         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73161
73162 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         Changes imported from coreutils.
73165         * lib/hard-locale.c: Assume <locale.h> exists.
73166         Include "strdup.h".
73167         (GLIBC_VERSION): New macro.
73168         (hard_locale): Assume setlocale exists.
73169         Rewrite to avoid #ifdef.
73170         Use strdup rather than malloc + strcpy.
73171         * lib/human.c: Assume <locale.h> exists.
73172         (human_readable): Assume localeconv exists.
73173
73174 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * modules/hard-locale (Depends-on): Add strdup.
73177
73178 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73179
73180         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73181         convert T2, not T.  (Imported from libc.)
73182
73183 2004-11-30  Simon Josefsson  <jas@extundo.com>
73184
73185         * modules/restrict (License): Change to LGPL.
73186
73187 2004-11-30  Simon Josefsson  <jas@extundo.com>
73188
73189         * m4/restrict.m4: Add copyright and copying conditions.
73190
73191 2004-11-30  Simon Josefsson  <jas@extundo.com>
73192
73193         * m4/base64.m4: New file.
73194
73195 2004-11-30  Simon Josefsson  <jas@extundo.com>
73196
73197         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73198         base64.
73199
73200         * tests/test-base64.c: New file.
73201
73202         * modules/base64: New file.
73203
73204 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73207         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73208
73209         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73210
73211 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73214         (__getcwd.c): Don't restore errno; glibc doesn't.
73215         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73216         first, falling back to our code only if its results look suspicious.
73217         Ensure that the resulting buffer is only as large as necessary.
73218
73219         * lib/readutmp.c: Include readutmp.h first.
73220         Include <errno.h>, since readutmp.h no longer does that.
73221         * lib/readutmp.h: Don't include <errno.h>,
73222         <sys/param.h>, <time.h>; not needed to establish interface.
73223         (errno): Remove decl.
73224         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73225         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73226         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73227
73228 2004-11-28  Simon Josefsson  <jas@extundo.com>
73229
73230         * lib/base64.h, base64.c: New file.
73231
73232 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73235
73236 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73239         (Depends-on): Remove pathmax, same.  Add mempcpy.
73240         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73241         (Makefile.am): Append getcwd.h to lib_SOURCES.
73242         (Include): Add getcwd.h.
73243         (Maintainer): Change from Jim Meyering to "all, glibc",
73244         since getdate now uses intended-for-glibc code.
73245         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73246         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73247
73248 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73251         HP's ANSI C compiler.
73252         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73253         Declaring int functions causes warnings on some modern systems and
73254         shouldn't be needed to compile on ancient ones.
73255         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73256         defined.
73257
73258         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73259         with the following changes.
73260         (__set_errno): Parenthesize properly.
73261         Include <stdbool.h>.
73262         (MIN, MAX, MATCHING_INO): New macros.
73263         (__getcwd): Define with prototype, not K&R form.
73264         Use heuristics to allocate default buffer on stack if possible.
73265         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73266         behavior, and to avoid the PATH_MAX limit when computing
73267         ../../../../...
73268         Use MATCHING_INO to compare inode number to file.
73269         Check for arithmetic overflow in size calculations.
73270         Fix bug in reallocation of dot array that caused getcwd to fail
73271         on directories nested deeper than 75.
73272         Be more careful about saving errno on error.
73273         Do not use realloc; use only free+malloc, as this is a bit
73274         more flexible and avoids a needless copy operation.
73275         Do not inspect st_dev and st_ino for symbolic links; POSIX
73276         doesn't specify the latter.
73277         Check for closedir errors.
73278         Avoid needless casts.
73279         Use "#ifdef weak_alias" around weak_alias, to be like other
73280         glibc code.
73281         The following changes to getcwd.c have effect only when used in
73282         gnulib; they have no effect inside glibc proper.
73283         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73284         as alloca isn't used.
73285         (alloca, __alloca): Likewise.
73286         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73287         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73288         unconditionally, as gnulib assumes C89 or better.
73289         Do not include <sys/param.h>.
73290         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73291         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73292         better.
73293         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73294         Include <dirent.h> in a way that is compatible with modern Autoconf.
73295         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73296         New macros, if not already defined.
73297         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73298         Use "_LIBC", not "defined _LIBC", for consistency.
73299         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73300         a mempcpy module.
73301         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73302         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73303         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73304         credit only to Jim Meyering and adjust the copyright dates.
73305         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73306         <stdlib.h>, <unistd.h>, "pathmax.h".
73307         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73308         (INITIAL_BUFFER_SIZE): Remove.
73309         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73310
73311 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73314         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73315         Use the _ONCE methods, for efficiency.
73316         Check for fcntl.h.  In test program, include <errno.h>
73317         and <fcntl.h> if available.  Remove old K&R cruft from
73318         test program.  Check for common errors in GNU/Linux,
73319         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73320         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73321         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73322         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73323         name accordingly.
73324         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73325         accommodate new getcwd.c.
73326         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73327         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73328         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73329         that's all we need now.
73330
73331 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73332
73333         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73334         argp-parse.c depends on getopt internals, that means we should
73335         always use our getopt, to be on the safe side.
73336         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73337         order not to spoil the result of an eventual previous invocation
73338         of gl_GETOPT_SUBSTITUTE.
73339
73340 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73341
73342         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73343         redefinition warnings. To avoid them, include the defines
73344         in `#if !defined __need_getopt ... #endif'. The only place
73345         where __getopt_argv_const is used is in definitions
73346         of getopt_long and getopt_long_only below, which are as well
73347         protected by `#ifndef __need_getopt'.
73348         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73349         __need_getopt after including <stdio.h> and <unistd.h> These
73350         headers might have defined it.
73351
73352 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73355
73356 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73359         (futimens): New function, which uses futimes if available.
73360         (futimens, utimens): Support timespec==NULL, with same semantics
73361         as utime and utimens.
73362         * lib/utimens.h (futimens): New decl.
73363
73364 2004-11-23  Jim Meyering  <jim@meyering.net>
73365
73366         * lib/getopt_.h: Remove trailing blanks.
73367
73368 2004-11-23  Jim Meyering  <jim@meyering.net>
73369
73370         * lib/__fpending.c: Add comment.
73371
73372 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * modules/canonicalize (Depends-on): Add xreadlink.
73375         Problem reported by James Youngman.
73376
73377 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73380         New macros.
73381         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73382         optopt): Use them instead of invoking ## directly; otherwise, the
73383         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73384
73385 2004-11-19  Bruno Haible  <bruno@clisp.org>
73386
73387         * lib/strtok_r.c: Move comments from here...
73388         * lib/strtok_r.h: ... to here.
73389
73390 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73391
73392         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73393         implementations that mishandle size_t overflow.
73394
73395 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73398         might fail.  Problem reported by Yoann Vandoorselaere.
73399         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73400         implementations that mishandle size_t overflow.
73401
73402 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73403
73404         * modules/canon-host (Depends-on): Add strdup.
73405
73406 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73407
73408         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73409
73410 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * lib/canon-host.c: Include "strdup.h".
73413         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73414         Use strdup instead of malloc/strcpy to duplicate strings.
73415
73416         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73417         (human_space_before_unit): New constant.
73418         * lib/human.c (human_readable): Support it.
73419
73420         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73421         (xgetcwd): Set errno correctly when failing.
73422         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73423         the failure is actually due to a PATH_MAX problem.
73424
73425         Further getopt changes to make it more likely that glibc will
73426         buy the changes back.
73427         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73428         (getopt): Use it, so to preserve glibc semantic
73429         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73430         when compiling for libc.
73431         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73432         (getopt_long, getopt_long_only): Use it.
73433
73434         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73435         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73436         (getopt): Argv is now char * const *, as per standard.
73437         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73438         not char *__getopt_argv_const *.
73439         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73440         _getopt_long_only_r): Likewise.
73441         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73442         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73443         _getopt_long_r, _getopt_long_only_r): Likewise.
73444         * lib/getopt_.h (__getopt_argv_const): Remove.
73445         (getopt): Argv is now char * const *, as per standard.
73446
73447         * lib/getdate.y (tORDINAL): New token.
73448         (day, relunit): Allow it for relative times.
73449         (relative_time_table): Use tORDINAL for ordinals.
73450
73451 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73454         Document that "second" isn't allowed as an ordinal number.
73455
73456 2004-11-16  Jim Meyering  <jim@meyering.net>
73457
73458         * modules/closeout (Depends-on): Add fpending.
73459
73460 2004-11-15  Jim Meyering  <jim@meyering.net>
73461
73462         * lib/closeout.c: Include "__fpending.h" once again.
73463         Include <stdbool.h>.
73464         (close_stdout): Don't fail just because stdout was closed initially,
73465         since some programs don't write to stdout in the normal course of
73466         operation (other than --version and --help), and we don't want this
73467         function to make e.g. `touch file >&-' fail.
73468         But do fail if it was closed and someone has tried to write to it.
73469         E.g., `printf foo >&-' must fail.
73470
73471 2004-11-13  Jim Meyering  <jim@meyering.net>
73472
73473         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73474
73475 2004-11-12  Simon Josefsson  <jas@extundo.com>
73476
73477         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73478         small doc fix is still pending.
73479
73480 2004-11-11  Simon Josefsson  <jas@extundo.com>
73481
73482         * modules/strtok_r: New file.
73483
73484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73485         strtok_r.
73486
73487 2004-11-11  Simon Josefsson  <jas@extundo.com>
73488
73489         * m4/strtok_r.m4: New file.
73490
73491         * m4/getopt.m4: Replace opterr.
73492
73493 2004-11-11  Simon Josefsson  <jas@extundo.com>
73494
73495         * lib/strtok_r.h, strtok_r.c: New file.
73496
73497 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73500         of replacing opterr, getopt, etc.  This should handle the
73501         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73502
73503 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73506         we can stop lying to compilers about the constness of argv when we
73507         are compiled outside glibc.
73508         (getopt, getopt_long, getopt_long_only): Use it.
73509         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73510         _getopt_internal, getopt): Likewise.
73511         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73512         _getopt_long_only_r): Likewise.
73513         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73514         _getopt_long_r, _getopt_long_only_r): Likewise.
73515
73516         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73517         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73518         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73519         the other external symbols.
73520         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73521         declaration, since the above renaming now works around collisions.
73522
73523 2004-11-11  Jim Meyering  <jim@meyering.net>
73524
73525         * lib/linebreak.c: Remove trailing blanks.
73526         * lib/alloca_.h: Likewise.
73527         * lib/acosl.c: Likewise.
73528         * lib/euidaccess.c: Likewise.
73529         * lib/allocsa.h: Likewise.
73530
73531 2004-11-10  Simon Josefsson  <jas@extundo.com>
73532
73533         * m4/getaddrinfo.m4: New file.
73534
73535 2004-11-10  Simon Josefsson  <jas@extundo.com>
73536
73537         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73538
73539 2004-11-10  Simon Josefsson  <jas@extundo.com>
73540
73541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73542         getaddrinfo.
73543
73544         * modules/getaddrinfo: New file.
73545
73546 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73549
73550 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * lib/mktime.c (SHR): New macro, which is a portable
73553         substitute for >> that should work even on Crays.
73554         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73555         Problem reported by Mark D. Baushke in
73556         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73557         * lib/getdate.y (SHR): Likewise.
73558         (tm_diff): Use it.
73559         * lib/strftime.c (SHR): Likewise.
73560         (tm_diff): Use it.
73561         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73562         quote_these_too, so that right shifts are well defined.  All uses
73563         changed.
73564
73565 2004-11-10  Jim Meyering  <jim@meyering.net>
73566
73567         Ensure that no close failure goes unreported.
73568         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73569         return early when it seems there's nothing to flush.
73570         Don't include __fpending.h.
73571
73572 2004-11-10  Jim Meyering  <jim@meyering.net>
73573
73574         * modules/closeout (Depends-on): Remove fpending.
73575
73576 2004-11-10  Jim Meyering  <jim@meyering.net>
73577
73578         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73579
73580 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73583         gl_FUNC_STRFTIME.
73584         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73585         and AC_REQUIRE when possible, to avoid duplicate checks.
73586         Check for <wchar.h>.
73587
73588 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73591
73592 2004-11-09  Bruno Haible  <bruno@clisp.org>
73593
73594         * m4/sockpfaf.m4: New file.
73595
73596 2004-11-05  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73599         Reported by Mark D. Baushke <mdb@cvshome.org>.
73600
73601 2004-11-04  Bruno Haible  <bruno@clisp.org>
73602
73603         2004-09-11  Bruno Haible  <bruno@clisp.org>
73604                 * allocsa.valgrind: New file.
73605         2004-02-06  Bruno Haible  <bruno@clisp.org>
73606                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73607                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73608                 Reported by Christopher Seip <chris.seip@hp.com>.
73609
73610 2004-11-04  Bruno Haible  <bruno@clisp.org>
73611
73612         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73613         (Makefile.am): Distribute it.
73614
73615 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73618         with errno == ERANGE if the buffer is too small.
73619         Problem reported by Mark D. Baushke.
73620
73621 2004-11-03  Albert Chin  <china@thewrittenword.com>
73622             Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73625         equivalent, substitute $ac_type for equivalent type rather than
73626         blindly using uint32_t *always* which won't work if uint32_t is not
73627         available.  Define _UINT32_T to work around typedef of uint32_t if
73628         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73629         2.5.1.
73630
73631 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         * m4/jm-macros.m4: Sync from coreutils.
73634         (gl_MACROS): Check for mbrlen, for pathchk.
73635         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73636
73637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * lib/xreadlink.c (MAXSIZE): New macro.
73640         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73641         size does not exceed MAXSIZE.  Avoid cast.
73642         As suggested by Mark D. Baushke in
73643         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73644         if readlink fails with buffer size just under MAXSIZE, try again
73645         with MAXSIZE.
73646
73647 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73650
73651 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73652         and  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73655         (get_date): Overparenthesize to avoid GCC warning.
73656
73657 2004-11-02  Bruno Haible  <bruno@clisp.org>
73658
73659         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73660         returns void.
73661
73662 2004-11-02  Bruno Haible  <bruno@clisp.org>
73663
73664         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73665         function returns void.
73666
73667 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73670         fflush_unlocked, flockfile, funlockfile, funlockfile,
73671         fputs_unlocked, putc_unlocked.
73672
73673 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73676         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73677         already declared.
73678
73679 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * modules/getdate (Files): Add doc/getdate.texi.
73682         (Depends-on): Add setenv, xalloc.
73683
73684 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/getdate.y: Add support for TZ="foo" within a date string.
73687         Fix some bugs near time_t boundaries.  Reject dates with
73688         out-of-range components, e.g., "Sept 31".
73689         Include <stdlib.h>, "setenv.h", "xalloc.h".
73690         (ISDIGIT_LOCALE): Remove; unused.
73691         Note that the TZ and time functions used here are not reentrant.
73692         (mktime_ok, get_tz): New functions.
73693         (TZBUFSIZE): New constant.
73694         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73695         This requires that we sometimes generate our own TZ="XXX..." setting.
73696
73697 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * doc/getdate.texi: New file, from coreutils with modifications for
73700         the new TZ parsing.
73701
73702 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73703
73704         * lib/mktime.c (not_equal_tm): Remove redundant check.
73705
73706 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73707
73708         * modules/regex (lib_SOURCES): Add regex.c.
73709         Reported by James Youngman in
73710         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73711
73712 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73713
73714         * lib/getdate.y: Use Bison 1.875 features, and some minor
73715         code cleanups.  This change does not affect semantics.
73716         Don't include <stdlib.h>; no longer needed.
73717         Don't include unlocked-io.h; only the "#if TEST" code uses
73718         stdio, and performance isn't crucial there.
73719         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73720         Bison 1.875 features as described below.
73721         All uses of "PC." replaced by "pc->".
73722         (YYSTYPE): Add a forward declaration.
73723         (yylex, yyerror): Use full prototypes in forward decls.
73724         Use "%pure-parser" rather than obsolescent "%pure_parser".
73725         Use %parse-param and %lex-param instead of obsolescent
73726         YYPARSE_PARAM and YYLEX_PARAM.
73727         (meridian_table, month_and_day_table, time_units_table,
73728         relative_time_table, time_zone_table, military_table,
73729         lookup_zone, lookup_word, get_date):
73730         Use NULL instead of 0 where appropriate.
73731         (to_hour): Avoid abort (), to avoid a dependency on
73732         stdlib.h.
73733         (yyerror, yylex): Now accepts parser_control * arg.
73734         (main) [TEST]: Use '\0' rather than 0 for char.
73735
73736 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73739
73740 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73743         It's now the caller's responsibility to handle the case where
73744         !HAVE_GETPAGESIZE && !defined getpagesize.
73745
73746         * lib/mktime.c (leapyear): Arg is long int, not int.
73747
73748 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73751
73752 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73755         missing.  Problem reported by James Youngman.
73756
73757 2004-10-16  Simon Josefsson  <jas@extundo.com>
73758
73759         * gnulib-tool: Fix comments.  Fix parse problem.
73760         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73761
73762 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73765         implementation of getopt_long.  Problem reported by Alexander Taler in:
73766         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73767
73768 2004-10-15  Bruno Haible  <bruno@clisp.org>
73769
73770         * gnulib-tool: Untabify. Initialize supplied_libname.
73771         (func_usage): More homogenous output.
73772         (func_modules_transitive_closure, func_modules_to_filelist,
73773         func_emit_lib_Makefile_am): New functions.
73774         (func_import): New function, extracted from big case statement. Use
73775         func_get_license, func_modules_transitive_closure,
73776         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73777         opt_lgpl. Don't use test -a, as it's not portable.
73778         (func_create_testdir): Use func_modules_transitive_closure,
73779         func_modules_to_filelist, func_emit_lib_Makefile_am.
73780
73781 2004-10-15  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73784
73785 2004-10-15  Bruno Haible  <bruno@clisp.org>
73786
73787         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73788         the portions belonging to each module.
73789         Suggested by Derek Robert Price <derek@ximbiot.com>.
73790
73791 2004-10-12  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73794         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73795         to real functions.
73796
73797 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73798
73799         * modules/vsnprintf: New file.
73800
73801 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73802
73803         * m4/vsnprintf.m4: New file.
73804
73805 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73806
73807         * lib/vsnprintf.h: New file.
73808         * lib/vsnprintf.c: New file.
73809
73810 2004-10-11  Bruno Haible  <bruno@clisp.org>
73811
73812         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73813         vsnprintf.
73814
73815 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73818
73819 2004-10-07  Bruno Haible  <bruno@clisp.org>
73820
73821         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73822         fits into the provided buffer.
73823
73824 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * lib/diacrit.c, diacrit.h: Add GPL notice.
73827
73828         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73829         notice.
73830         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73831         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73832         This avoids a potential constant-folding bug.
73833
73834 2004-10-05  Bruno Haible  <bruno@clisp.org>
73835
73836         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73837         for the declaration of strsep.
73838
73839 2004-10-05  Bruno Haible  <bruno@clisp.org>
73840
73841         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73842
73843 2004-10-04  Simon Josefsson  <jas@extundo.com>
73844
73845         * modules/memmem: New file.
73846         * tests/test-memmem.c: New file.
73847         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73848
73849 2004-10-04  Simon Josefsson  <jas@extundo.com>
73850
73851         * m4/memmem.m4: New file.
73852
73853 2004-10-04  Simon Josefsson  <jas@extundo.com>
73854
73855         * lib/memmem.h: New file.
73856         * lib/memmem.c: New file, taken from glibc.
73857
73858 2004-10-04  Simon Josefsson  <jas@extundo.com>
73859
73860         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73861         '#ifdef USE_UNLOCKED_IO'.
73862
73863 2004-10-04  Simon Josefsson  <jas@extundo.com>
73864
73865         * config/srclist.txt: Add memmem from glibc.
73866
73867 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73870
73871         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73872         modules/exclude, modules/getdate, modules/getline,
73873         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73874         modules/getusershell, modules/linebuffer, modules/md5,
73875         modules/mountlist, modules/posixtm, modules/readtokens,
73876         modules/readutmp, modules/regex, modules/sha1,
73877         modules/version-etc, modules/yesno:
73878         Remove dependency on unlocked-io.
73879
73880 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73881
73882         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73883
73884         * m4/unlocked-io.m4: Add copyright notice.
73885         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73886
73887 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73890         * lib/xmalloc.c (xmemdup): Likewise.
73891         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73892         XFREE): Remove these long-obsolescent macros.
73893         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73894         * lib/xstrdup.c: Remove.
73895
73896         * lib/regex.c (re_comp): Cast gettext return value to char *,
73897         Problem reported by Martin Neitzel via Mark D. Baushke.
73898
73899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73902         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73903         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73904         regex.c, sha1.c, version-etc.c, yesno.c:
73905         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73906         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73907         the includer's responsibility.
73908
73909         Sync from coreutils.
73910
73911         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73912         points to the start of a string, as the C Standard says the
73913         resulting behavior is undefined.
73914
73915         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73916         simple -> simple_backups, numbered_existing ->
73917         numbered_existing_backups, numbered -> numbered_backups
73918         to avoid shadowing problems.  All uses changed.
73919         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73920         * lib/backupfile.c (check_extension, numbered_backup):
73921         Rename locals to avoid shadowing 'basename'.
73922         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73923         once.
73924
73925         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73926         * lib/.cvsignore: Add getopt.h.
73927
73928 2004-10-04  Bruno Haible  <bruno@clisp.org>
73929
73930         * modules/README: New file.
73931         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73932         not a module.
73933
73934 2004-10-02  Jim Meyering  <jim@meyering.net>
73935
73936         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73937
73938 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73939
73940         * modules/strsep: New file.
73941
73942 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73943
73944         * m4/strsep.m4: New file.
73945
73946 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73947
73948         * lib/strsep.h: New file.
73949         * lib/strsep.c: New file.
73950
73951 2004-10-01  Simon Josefsson  <jas@extundo.com>
73952
73953         * lib/snprintf.c (snprintf): Handle size==0.
73954
73955 2004-10-01  Simon Josefsson  <jas@extundo.com>
73956             Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73959         (snprintf): Declare 'args'.
73960
73961 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * lib/snprintf.c: Remove comments as to why each header is needed.
73964
73965 2004-10-01  Bruno Haible  <bruno@clisp.org>
73966
73967         * MODULES.html.sh: Add strsep.
73968
73969 2004-09-30  Simon Josefsson  <jas@extundo.com>
73970
73971         * modules/snprintf: New file.
73972
73973 2004-09-30  Simon Josefsson  <jas@extundo.com>
73974
73975         * m4/snprintf.m4: New file.
73976
73977 2004-09-30  Simon Josefsson  <jas@extundo.com>
73978
73979         * lib/snprintf.h, lib/snprintf.c: New files.
73980
73981 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73982
73983         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73984         (hol_entry_help): Never translate an empty string.
73985         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73986         * lib/argp.h (OPTION_NO_TRANS): New option.
73987
73988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * modules/argp (Maintainer): Replace Simon Josefsson
73991         by Sergey Poznyakoff.
73992
73993 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73996         changes merged back into glibc.
73997
73998 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73999
74000         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74001
74002 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74003
74004         * lib/xvasprintf.c: Include xalloc.h.
74005         (xvasprintf): Use xalloc_die, not xmalloc_die.
74006
74007 2004-09-29  Bruno Haible  <bruno@clisp.org>
74008
74009         * modules/alloca-opt: New file, derived from modules/alloca.
74010         * modules/allocsa: Depend on alloca-opt instead of alloca.
74011         * modules/setenv: Likewise.
74012         * modules/vasnprintf: Likewise.
74013         * MODULES.html.sh: Add alloca-opt.
74014
74015 2004-09-28  Simon Josefsson  <jas@extundo.com>
74016
74017         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74018         LGPL, and to replace license template from GPL to LGPL.
74019
74020 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * modules/dummy: Change license to LGPL.
74023
74024 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74027
74028 2004-09-24  Simon Josefsson  <jas@extundo.com>
74029
74030         * modules/minmax (License): Change from GPL to LGPL.
74031
74032 2004-09-23  Simon Josefsson  <jas@extundo.com>
74033
74034         * gnulib-tool (--import): Typo.
74035
74036 2004-09-23  Simon Josefsson  <jas@extundo.com>
74037
74038         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74039
74040 2004-09-22  Bruno Haible  <bruno@clisp.org>
74041
74042         * modules/*: Add 'License' field.
74043         * gnulib-tool: Accept --extract-license option.
74044         (func_get_license): New function.
74045
74046 2004-09-21  Bruno Haible  <bruno@clisp.org>
74047
74048         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74049         Reported by Simon Josefsson.
74050
74051 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74052
74053         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74054         gl_AC_TYPE_LONG_LONG.
74055
74056 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74059
74060 2004-09-18  Simon Josefsson  <jas@extundo.com>
74061         and  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74064         calls with autoreconf.  Define GL_LIB.
74065
74066 2004-09-14  Karl Berry  <karl@gnu.org>
74067
74068         * config/srclist.txt: unsync setenv.c, sigh.
74069
74070 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74073         Problem reported by Bruno Haible in:
74074         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74075
74076 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         * config/srclist.txt: Comment out argp-pvh.c.
74079
74080 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74083         in case some system header has #define'd it.  Problem reported by
74084         Soeren D. Schulze in
74085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74086
74087 2004-09-09  Karl Berry  <karl@gnu.org>
74088
74089         * regex.[ch]: delete from the root.  These were supposed to be
74090                 synced with emacs cvs, but this has not happened for about
74091                 a year, and anyway nothing else uses emacs regex.[ch].
74092                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74093                 lib/regex[.ch] is untouched.
74094
74095 2004-09-09  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74098
74099 2004-09-09  Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74102         modifications.
74103         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74104
74105 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74106
74107         * modules/xvasprintf: New file.
74108         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74109
74110 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74111
74112         * lib/xvasprintf.h: New file.
74113         * lib/xvasprintf.c: New file.
74114         * lib/xasprintf.c: New file.
74115
74116 2004-09-08  Bruno Haible  <bruno@clisp.org>
74117
74118         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74119
74120 2004-09-08  Bruno Haible  <bruno@clisp.org>
74121
74122         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74123         length is > INT_MAX.
74124         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74125         more.
74126
74127 2004-09-08  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/stdint_.h: New file, taken from GNU clisp.
74130
74131 2004-09-08  Bruno Haible  <bruno@clisp.org>
74132             Oskar Liljeblad  <oskar@osk.mine.nu>
74133
74134         * modules/stdint: New file.
74135         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74136
74137 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         Import from coreutils.
74140         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74141         strings on unbounded length.  alloca's performance benefits aren't
74142         that important here.
74143         (V_STRDUP): Remove.
74144         (parse_with_separator): New function, with most of the internals
74145         of the old parse_user_spec.  Allow user to omit both user and group,
74146         for compatibility with FreeBSD.
74147         Clone only the user name, not the entire spec.
74148         Do not set *uid, *gid unless entirely successful.
74149         Avoid memory leak in some failing cases.
74150         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74151         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74152         (parse_user_spec): Rewrite to use parse_with_separator.
74153
74154 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * modules/userspec: Don't depend on alloca.
74157
74158 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74161
74162 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74165         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74166         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74167
74168 2004-08-16  Simon Josefsson  <jas@extundo.com>
74169
74170         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74171         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74172         Add --dry-run for --import.
74173         Let user provided command line parameters override configure.ac
74174         settings.
74175
74176 2004-08-12  Simon Josefsson  <jas@extundo.com>
74177
74178         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74179         as discussed with Paul Eggert in threads rooted at
74180         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74181         and
74182         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74183         Before, the test was empty, and relied on ELIDE_CODE in source
74184         code.)
74185         (gl_PREREQ_GETOPT): New macro.
74186         (gl_GETOPT): Use them.
74187
74188 2004-08-12  Simon Josefsson  <jas@extundo.com>
74189
74190         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74191         * lib/getopt_.h: Renamed from getopt.h.
74192
74193 2004-08-12  Simon Josefsson  <jas@extundo.com>
74194
74195         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74196         Change default library name from libfoo to libgnu.
74197         Now, if you have a configure.ac that says:
74198                 gl_SOURCE_BASE(gl)
74199                 gl_M4_BASE(gl/m4)
74200                 gl_MODULES(error getopt etcetera)
74201                 gl_INIT
74202         you can import all you need by running:
74203                 ../gnulib/gnulib-tool --import
74204
74205         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74206         (Makefile.am): Rewrite, use logic from argz.
74207         (Include): Use <getopt.h> instead of "getopt.h".
74208
74209 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * modules/argp (Files): Add m4/unlocked-io.m4.
74212         (Depends-on): Add extensions.
74213
74214 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74217         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74218         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74219         Check for program_invocation_name, program_invocation_short_name,
74220         flockfile, funlockfile, features.h, _getopt_long_only_r.
74221
74222 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74225         its complicated substitute.
74226         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74227         and program_invocation_name.
74228         (__argp_basename) [!_LIBC]: Remove; the only use was
74229         replaced by its body.
74230         (__argp_short_program_name): Change condition from
74231         !defined __argp_short_program_name to
74232         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74233         to match argp-namefrob.h.
74234         (__argp_failure): Don't assume strerror_r returns char *.
74235         * lib/argp-parse.c (N_): Define unconditionally.
74236         (argp_default_options): Fill out initializers with 0 to avoid
74237         gcc warnings.
74238
74239 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74242         getopt1.c.
74243
74244 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         Merge from coreutils.
74247
74248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74249
74250         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74251         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74252
74253 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         Merge from coreutils.
74256
74257         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74258         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74259         for Reliant Unix 5.43.
74260
74261         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74262         (union fooround): Use uintmax_t, not long int.
74263         The rest is a merge from libc:
74264         [defined _LIBC]: Include <shlib-compat.h>.
74265         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74266
74267         * lib/settime.c (settime): Recode to avoid warning with
74268         Sun Forte C 6U2.
74269
74270         * lib/strverscmp.c: Convert to UTF-8.
74271
74272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74275         m4/uintmax_t.m4.
74276
74277 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * modules/xalloc-die: New file.
74280         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74281
74282         * modules/md5 (Files): Add m4/uint32_t.m4.
74283         * modules/sha1: Renamed from modules/sha.
74284         (Files):
74285         Rename lib/sha.h to lib/sha1.h.
74286         Rename lib/sha.c to lib/sha1.c.
74287         Rename m4/sha.m4 to m4/sha1.m4.
74288         (lib_SOURCES): Likewise.
74289         (configure.ac): Rename gl_SHA to gl_SHA1.
74290         (Include): sha.h -> sha1.h.
74291
74292 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74295         * m4/sha1.m4: Renamed from sha.m4.
74296         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74297
74298 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * lib/obstack.h (obstack_empty_p):
74301         Don't assume that chunk->contents is suitably aligned.
74302         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74303         Likewise. Problem reported by Benno in
74304         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74305
74306         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74307         readable.  This could be improved further but it'd take some work.
74308
74309 2004-08-08  Simon Josefsson  <jas@extundo.com>
74310
74311         * modules/xgethostname (Depends-on): Remove exit and error (not
74312         used).
74313
74314         * modules/getpass-gnu: Add getpass.h.
74315         (Depends-on): Add stdbool.
74316         * modules/getpass: Add getpass.h.
74317
74318 2004-08-08  Simon Josefsson  <jas@extundo.com>
74319
74320         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74321         Check getpass declaration.
74322
74323 2004-08-08  Simon Josefsson  <jas@extundo.com>
74324
74325         * lib/xgethostname.c: Don't include error.h (not used).
74326
74327         * lib/getpass.h: Add.
74328         * lib/getpass.c: Include getpass.h first.
74329
74330 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/xalloc-die.c: New file.
74333         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74334         All uses removed.
74335         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74336         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74337         xalloc-die.c.
74338         (_, N_, xalloc_die): Move to xalloc-die.c.
74339         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74340         so that we needn't mess with xalloc_msg_memory_exhausted.
74341
74342         * lib/sha1.h: Renamed from sha.h.
74343         (SHA1_H): Renamed from _SHA_H.
74344         (sha1_ctx): Renamed from sha_ctx.
74345         (sha1_init_ctx): Renamed from sha_init_ctx.
74346         (sha1_process_block): Renamed from sha_process_block.
74347         (sha1_process_bytes): Renamed from sha_process_bytes.
74348         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74349         (sha1_read_ctx): Renamed from sha_read_ctx.
74350         (sha1_stream): Renamed from sha_stream.
74351         (sha1_buffer): Renamed from sha_buffer.
74352         * lib/sha1.c: Likewise; renamed from sha.c.
74353         Do not include <sys/types.h>.
74354         Include <stddef.h> rather than <stdlib.h>.
74355
74356 2004-08-08  Bruno Haible  <bruno@clisp.org>
74357
74358         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74359         FILESYSTEM_PREFIX_LEN.
74360         * lib/progreloc.c: Likewise.
74361         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74362
74363 2004-08-06  Simon Josefsson  <jas@extundo.com>
74364
74365         * modules/progname (Depends-on): Don't depend on stdbool.
74366
74367 2004-08-06  Simon Josefsson  <jas@extundo.com>
74368
74369         * modules/getsubopt: New file.
74370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74371         getsubopt.
74372
74373 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74374
74375         More merge from coreutils.
74376
74377         * m4/utimens.m4, m4/utimecmp.m4: New files.
74378         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74379         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74380         prereq.m4, sha.m4: Import changes from coreutils.
74381
74382 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         More merge from coreutils.
74385         * modules/raise, modules/readtokens0, modules/utimens:
74386         * modules/utimecmp, module/xnanosleep: New files.
74387         * modules/strftime: Add lib/strftime.h.
74388         Change include from <time.h> to "strftime.h".
74389         * modules/yesno: Add lib/yesno.h.
74390         * modules/backupfile: Remove lib/addext.c.
74391         * modules/euidaccess: Add stat-macros.h.
74392         * modules/canonicalize, modules/euidaccess,
74393         modules/filemode, modules/lchown, modules/makepath,
74394         modules/rmdir, modules/stat: Likewise.
74395
74396 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74397
74398         Merge from tar.
74399         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74400         SIZE_MAX is a valid preprocessor constant.
74401         (__argp_basename): Change from "#ifndef _LIBC"
74402         to "#ifndef __argp_short_program_name", so that
74403         we don't compile these functions for tar.
74404
74405         More merges from coreutils.
74406         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74407         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74408         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74409         * lib/addext.c: Remove; no longer needed.
74410         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74411         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74412         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74413         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74414         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74415         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74416         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74417         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74418         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74419         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74420         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74421         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74422         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74423         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74424         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74425         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74426         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74427         Import changes from coreutils.
74428
74429 2004-08-05  Simon Josefsson  <jas@extundo.com>
74430
74431         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74432
74433 2004-08-05  Simon Josefsson  <jas@extundo.com>
74434
74435         * m4/getsubopt.m4: New file.
74436
74437 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         Merge from coreutils.
74440
74441         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74442         * m4/getcwd-path-max.m4: New files.
74443
74444         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74445         FILESYSTEM_PREFIX_LEN ->
74446         FILE_SYSTEM_PREFIX_LEN.
74447         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74448         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74449         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74450         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74451
74452         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74453         prerequisite modules now handle the DOS stuff.
74454         Don't check for unistd.h.
74455
74456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         Merge from coreutils.
74459
74460         * lib/.gdb-history: Remove; this doesn't belong here.
74461
74462         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74463         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74464         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74465         * lib/getcwd.c: New files.
74466
74467         * lib/dirname.h: Include <stdbool.h>.
74468         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74469         for consistency with POSIX terminology.  All uses changed.
74470         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74471         (strip_trailing_slashes): Use bool for booleans.
74472         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74473
74474         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74475         sometimes returns a positive errno value even when it succeeds.
74476         (print_errno_message) [!LIBC]: Fall back on strerror if
74477         __strerror_r fails.
74478
74479         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74480         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74481         (longest_relative_suffix): New function.
74482         (path_concat): Use it.  Assume first argument is not NULL.
74483         Port to DOS.  Omit redundant separators.
74484         Report an error instead of returning NULL.
74485         Use mempcpy instead of memcpy.
74486         (xpath_concat): Remove: not declared or used.
74487
74488         * lib/same.h: Include <stdbool.h>
74489         (same_name): Return bool, not int.
74490         * lib/same.c (same_name): Likewise.
74491         (errno): Don't declare; we assume C89 or better now.
74492
74493         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74494         if not already defined.
74495
74496         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74497         * lib/dup-safer.c (errno): Likewise.
74498
74499 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         Merge from coreutils.
74502         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74503         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74504         * modules/path-concat: Don't depend on strdup.
74505
74506 2004-08-03  Simon Josefsson  <jas@extundo.com>
74507
74508         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74509         * lib/progname.h: Don't include stdbool.h.
74510
74511 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74514         * MODULES.html.sh (func_all_modules): Remove fatal.
74515
74516 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74519
74520 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74523         working.
74524
74525 2004-08-02  Simon Josefsson  <jas@extundo.com>
74526
74527         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74528         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74529         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74530
74531 2004-08-01  Simon Josefsson  <jas@extundo.com>
74532
74533         * lib/xgetdomainname.c: Include stdlib.h, for free().
74534
74535 2004-07-19  Bruno Haible  <bruno@clisp.org>
74536
74537         * MODULES.html.sh (func_all_modules): Add dummy.
74538
74539 2004-07-16  Simon Josefsson  <jas@extundo.com>
74540
74541         * modules/dummy: New file.
74542
74543 2004-07-16  Simon Josefsson  <jas@extundo.com>
74544
74545         * lib/dummy.c: New file.
74546
74547 2004-07-16  Bruno Haible  <bruno@clisp.org>
74548
74549         * lib/backupfile.h: Add extern "C" for C++.
74550         * lib/closeout.h: Likewise.
74551         * lib/copy-file.h: Likewise.
74552         * lib/findprog.h: Likewise.
74553         * lib/full-write.h: Likewise.
74554         * lib/pathname.h: Likewise.
74555         * lib/progname.h: Likewise.
74556         * lib/stpcpy.h: Likewise.
74557         * lib/stpncpy.h: Likewise.
74558         * lib/strcase.h: Likewise.
74559         * lib/strstr.h: Likewise.
74560         * lib/xalloc.h: Likewise.
74561
74562         * lib/mbswidth.h: Add extern "C" for C++.
74563         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74564
74565 2004-07-13  Robert Millan  <robertmh@gnu.org>
74566
74567         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74568
74569 2004-07-09  Simon Josefsson  <jas@extundo.com>
74570
74571         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74572         failed without this.)
74573
74574 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * modules/chown (Files): Add lib/fchown-stub.c, since
74577         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74578
74579 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/fchown-stub.c: New file.
74582
74583 2004-06-24  Jim Meyering  <jim@meyering.net>
74584
74585         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74586
74587 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * modules/argz: Omit "#include".
74590
74591         * MODULES.html.sh (func_all_modules): Add calloc, to match
74592         2004-06-01 addition of calloc module.
74593
74594 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * m4/argz.m4: New file, which is autoupdated from libtool.
74597
74598 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74601         libtool.
74602
74603 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * config/srclist-update: Don't insist on "USA." before the
74606         close-comment, as libtool omits the period and puts the */ on a
74607         separate line.
74608         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74609         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74610
74611 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74612
74613         * modules/argz: New file.
74614         * MODULES.html.sh (func_all_modules): Add argz.
74615
74616 2004-06-12  Jim Meyering  <jim@meyering.net>
74617         and  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * modules/hash (Files): Add lib/xalloc.h.
74620         * modules/pipe (Depends-on): Add wait-process.
74621         * modules/stat (Depends-on): Add xalloc.
74622         * modules/userspec (Files): Add lib/userspec.h.
74623         * modules/xstrto
74624
74625         Upgrade from gettext-0.13.
74626         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74627         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74628         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74629
74630 2004-06-10  Jim Meyering  <jim@meyering.net>
74631
74632         * lib/calloc.c: New file.
74633
74634 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * lib/getdate.y (yylex): Allow space between sign and number.
74637         Problem reported by Dan Jacobson.
74638
74639 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         Merge from coreutils CVS.
74642
74643         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74644         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74645         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74646         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74647         xstrtol.m4: Fix copyright date and/or serial number.
74648
74649         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74650         See if we need an fchown replacement.
74651         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74652         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74653         and use the replacement function if we detect either defect.
74654
74655         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74656         gl_UTIMECMP.
74657
74658 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74659         and  Jim Meyering  <jim@meyering.net>
74660
74661         Merge from coreutils CVS.
74662
74663         * lib/stat-macros.h: New file, with contents from file-type.h
74664         and coreutils' system.h.
74665         * lib/file-type.c: Include "stat-macros.h".
74666         * lib/file-type.h (file_type): Move all macro definitions to new file,
74667         stat-macros.h.
74668
74669         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74670         Wrap old code with this conditional.
74671         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74672         function that does not dereference symlinks.
74673         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74674
74675         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74676         dependency problems.
74677         (xreadlink): Accept new arg SIZE, for efficiency.
74678         All decls and uses changed.
74679         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74680
74681         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74682         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74683
74684         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74685         sysexits.h.
74686
74687 2004-06-01  Jim Meyering  <jim@meyering.net>
74688
74689         * m4/calloc.m4: New file.
74690
74691 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74694         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74695         Also, fix a typo in a diagnostic.
74696
74697 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74700         or AC_FUNC_REALLOC.
74701
74702 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74705         macros to be defined.
74706         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74707         the allocator returns NULL because the requested size is zero.
74708
74709 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74712         var.  Add comment explaining why libc still defines it.  This
74713         merges the following patch from glibc:
74714         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74715
74716 2004-05-20  Andreas Schwab  <schwab@suse.de>
74717
74718         * m4/free.m4: Replace free if it not known to work, not the other
74719         way round.
74720
74721 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74724         present in glibc since revision 1.1 of this file.
74725         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74726         obstack_alignment_mask, obstack_alloc, obstack_base,
74727         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74728         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74729         obstack_grow0, obstack_init, obstack_int_grow,
74730         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74731         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74732         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74733         nonexistent functions.
74734
74735 2004-05-18  Karl Berry  <karl@gnu.org>
74736
74737         * config/srclist.txt: break link for vasnprintf.c.
74738
74739 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         Port obstack to the AS/400, where pointers are 16 bytes wide and
74742         you cannot cast an integer to a valid pointer.  This patch is
74743         currently waiting to be integrated into glibc; see
74744         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74745
74746         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74747         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74748         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74749         (struct obstack): temp member is now a union of a pointer and
74750         an integer, instead of an integer.  All integer uses changed.
74751         This does not affect the physical layout of struct obstack,
74752         except on hosts (like the AS/400) where the size or alignment of
74753         void * is greater than that of ptrdiff_t.
74754         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74755         __STDC__)]: Store temporary in pointer member of union, not
74756         integer member.
74757         * lib/obstack.c: Include <stddef.h>, for offsetof.
74758         (struct fooalign): Remove; it doesn't need a name.
74759         (union fooround): Change double to long double, and add void *.
74760         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74761         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74762         not a macro.  Hence the values are always int; so remove all
74763         casts-to-int in uses.
74764
74765 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74768         we can get this patch merged into glibc.
74769
74770 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74771             Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * m4/argp: Depend on alloca.
74774
74775 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74776             Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74779         freecoding.
74780
74781 2004-05-17  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74784         precision that consists of a '.' followed by an empty digit string.
74785         Patch by Tor Lillqvist <tml@iki.fi>.
74786
74787 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74790         for backward compatibility with older code.  We need our own
74791         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74792         it under some other name, and our alloca.h will define it.
74793
74794 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74795             Derek Price  <derek@ximbiot.com>
74796
74797         * lib/alloca.c: Include <alloca.h>, to get our interface.
74798         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74799         include <alloca.h> first.  Use C89 prototype for alloca; this
74800         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74801         Use #elif for simplicity, since we can assume C89 now.
74802         Don't try to source the system alloca.h since it will not be found
74803         and to prevent recursively including its replacement.
74804         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74805         * lib/regex.c: Likewise.
74806
74807 2004-05-16  Derek Price  <derek@ximbiot.com>
74808             Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         getline cleanup.  This changes the getndelim2 API: both order of
74811         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74812         no delimiter).
74813
74814         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74815         interface does that.
74816         (getline): Always use getdelim, so that we don't have two
74817         copies of this code.
74818         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74819         if available.
74820         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74821         (GETNDELIM2_MAXIMUM): New macro.
74822         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74823         instead of the old practice of delim2==0.  All callers changed.
74824         Return -1 on overflow, instead of returning junk.
74825         Do not set *linesize unless allocation succeeds.
74826         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74827         that we include sys/types.h.
74828         * lib/getnline.h: Likewise.
74829         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74830         (getndelim2): Reorder arguments.
74831         * lib/getnline.c (getnline, getndelim):
74832         Don't discard the NMAX argument.
74833         (getnline): Invoke getndelim, to avoid code duplication.
74834         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74835         of (size_t) -1 by callers of the getnline family.
74836
74837 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74840         Check for gettimeofday.
74841         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74842         Check for settimeofday, stime.
74843
74844 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/nanosleep.c (suspended): Change its type from int to
74847         sig_atomic_t volatile.
74848         (first_call): Make it private to rpl_nanosleep, and have it
74849         be zero initially as that's a bit faster.
74850         (my_usleep): Round up fractional times instead of truncating them,
74851         as this is the usual meaning for 'sleep'.
74852
74853         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74854         doesn't work.
74855         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74856         (ENOSYS): Define if not defined.
74857         (settime): Fall back on stime if it exists and settimeofday fails.
74858         But don't bother with fallbacks if a method fails with errno == EPERM.
74859
74860 2004-05-11  Jim Meyering  <jim@meyering.net>
74861
74862         Prior to this change, the save_cwd caller required read access to the
74863         current directory on most systems (ones with the fchdir function).
74864
74865         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74866         fails, try write-only, and finally, resort to using xgetcwd.
74867
74868 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * lib/obstack.c, obstack.h: Import changes from libc.
74871
74872 2004-04-28  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74875         also implicitly appends .exe to executables.
74876         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74877         accepts Windows pathnames.
74878         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74879         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74880         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74881         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74882         Reported by Derek Robert Price <derek@ximbiot.com>.
74883
74884 2004-04-21  Karl Berry  <karl@gnu.org>
74885
74886         * config/srclist.txt (localcharset.c): break sync.
74887
74888 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74889
74890         * m4/host-os.m4: Add a copyright notice.
74891
74892 2004-04-20  Jim Meyering  <jim@meyering.net>
74893
74894         Change UTILS_ to gl_ in AC_DEFINE'd names.
74895         Change utils_- and jm_-prefixed variables, too.
74896         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74897         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74899
74900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74901         Don't emit trailing blanks.
74902         Also rename jm_-prefixed variables to have gl_ prefix.
74903
74904         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74905         Also rename jm_-prefixed variables to have gl_ prefix.
74906
74907         * m4/jm-macros.m4: Reflect the renamings.
74908         * m4/prereq.m4: Likewise.
74909
74910 2004-04-20  Jim Meyering  <jim@meyering.net>
74911
74912         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74913         memory.
74914
74915 2004-04-20  Jim Meyering  <jim@meyering.net>
74916             Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74919         memory when realloc fails.
74920
74921 2004-04-19  Jim Meyering  <jim@meyering.net>
74922
74923         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74924         now that readutmp.c may call `free (0)'.
74925
74926 2004-04-19  Bruno Haible  <bruno@clisp.org>
74927
74928         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74929         * m4/inttypes_h.m4: Likewise.
74930         * m4/stdint_h.m4: Likewise.
74931         * m4/intmax_t.m4: Likewise.
74932         * m4/uintmax_t.m4: Likewise.
74933
74934 2004-04-18  Jim Meyering  <jim@meyering.net>
74935
74936         * m4/prereq.m4: Don't forbid jm_ prefix.
74937
74938         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74939         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74940         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74941         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74942         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74943         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74944         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74945         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74946         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74947         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74948         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74949         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74950         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74951         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74952         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74953         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74954         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74955         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74956         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74957
74958 2004-04-18  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74961         failure, don't leak memory and do call END_UTMP_ENT.
74962
74963 2004-04-16  Jim Meyering  <jim@meyering.net>
74964
74965         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74966         coreutils' stat program.
74967         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74968
74969 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74970
74971         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74972         C89.
74973         (CHAR_BIT): Remove, since we assume C89.
74974         Include <stdint.h> if available, as per current Autoconf CVS advice.
74975
74976 2004-03-31  Jim Meyering  <jim@meyering.net>
74977
74978         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74979         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74980         * m4/xalloc.m4: Likewise.
74981
74982 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74983
74984         Merge from coreutils.
74985
74986         * m4/inttostr.m4: New file.
74987         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74988         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74989         Require gl_CLOCK_TIME.
74990         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74991
74992 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74993
74994         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74995         not bool, to be more consistent with Unix conventions.
74996         Suggested by Bruno Haible.
74997
74998         Merge from coreutils.
74999
75000         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75001         * lib/umaxtostr.c: New files.
75002
75003         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75004         the usual <time.h> dance.
75005         (get_date): Change signature to support fractional time stamps.
75006         All callers changed.
75007         * lib/getdate.y: Include "getdate.h" first, as we can now
75008         assume C89 and don't need to worry about 'const'.
75009         Similarly, include "unlocked-io.h" near start, not in middle.
75010         Include <limits.h>.
75011         (textint.value): Use long int rather than int.
75012         (textint.digits): Use size_t rather than int.
75013         (BILLION, LOG10_BILLION): New constants.
75014         (parser_control): New member rel_ns.  Members day_ordinal,
75015         time_zone, month, day, hour, minutes, rel_year, rel_month,
75016         rel_day, rel_hour, rel_minutes, rel_seconds
75017         are now long int, not int.  Member seconds is now struct timespec,
75018         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75019         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75020         not int.
75021         (%union.intval): Now long int, not int.
75022         New member timespec.
75023         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75024         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75025         (spec): Now is a timespec or an item list.
75026         (timespec, items): New nonterminals.
75027         (time, rel, relunit, number, get_date):
75028         Add support for fractional seconds.
75029         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75030         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75031         (to_hour): First arg is now long int, not int.
75032         (to_year): Returns long int, not int.
75033         Don't treat year -70 like 70.
75034         (tm_diff): Returns long int, not int.
75035         (lookup_word): Use bool instead of int when appropriate.
75036         (yylex): Use size_t for count, not int.
75037         Detect overflow when parsing large integer constants.
75038         Add support for fractions.
75039         (get_date): Make pointers 'const' if possible.
75040         Use more-portable code to detect integer overflow.
75041         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75042         Don't use ctime; it's not reliable if the year has >4 digits.
75043
75044         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75045         This is for compatibility with BSD.
75046
75047         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75048         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75049         From coreutils' system.h.
75050
75051         * lib/userspec.c: Don't include "posixver.h".
75052         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75053         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75054         compatible extension.  Simplify code by removing a boolean int
75055         that was always nonzero if a string was nonnull.
75056
75057 2004-03-30  Jim Meyering  <jim@meyering.net>
75058
75059         Merge from coreutils.
75060
75061         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75062         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75063         on some systems one must include <grp.h> before it.
75064         Reported by Christian Krackowizer.
75065
75066 2004-03-30  Jim Meyering  <jim@meyering.net>
75067
75068         Merge from coreutils.
75069
75070         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75071
75072         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75073         an empty input stream.
75074
75075         * lib/readtokens.c: Include <stdbool.h>.
75076         (readtoken): Use `size_t' rather than int/long.
75077         All callers adjusted.
75078         Use `bool' rather than `int' where appropriate.
75079         Use memset rather than an explicit loop.
75080         Use x2nrealloc rather than xrealloc.
75081         Allow the use of `\0' as a delimiter.
75082         (readtokens): Likewise.
75083         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75084
75085 2004-03-30  Jim Meyering  <jim@meyering.net>
75086
75087         * m4/realloc.m4: Remove file, since now it does no more than
75088         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75089         the `configure.ac' section of module/realloc.
75090         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75091
75092 2004-03-30  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75095         nonnull.
75096
75097 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75098
75099         Merge changes to getloadavg.c from coreutils and Emacs.
75100
75101         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75102         Define to an expression, not to the empty string.
75103         Include cloexec.h and xalloc.h.
75104         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75105         Use set_cloexec_flag rather than rolling our own.
75106         * lib/cloexec.c, lib/cloexec.h: New files.
75107
75108 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75109
75110         * m4/cloexec.m4: New file.
75111
75112 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75113
75114         * lib/getopt.h: Sync with libc CVS.
75115
75116 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75117             Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75120         mbswidth.
75121
75122 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75123             Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/mbswidth.h: Include <wchar.h> only if
75126         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75127         <wchar.h>.
75128         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75129
75130 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75131
75132         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75133         Sync with libc CVS.
75134         * lib/getopt_int.h: New file, also synced from libc.
75135
75136 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75137
75138         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75139         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75140         Bring back getopt.c, getopt.h, getopt1.c.
75141
75142 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75143
75144         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75145         All uses changed.  Check for sa_sigaction member; this fixes
75146         a bug first reported by Jason Andrade in
75147         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75148
75149 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75150
75151         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75152         '#if' expressions.  Unlike the code it replaces, it does not
75153         depend on (defined _SC_PAGESIZE).  However, it does depend on
75154         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75155         first reported by Jason Andrade in
75156         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75157
75158 2004-02-25  Simon Josefsson  <jas@extundo.com>
75159
75160         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75161
75162 2004-02-25  Simon Josefsson  <jas@extundo.com>
75163
75164         * lib/strdup.h: New file.
75165         * lib/strdup.c: Include it.
75166         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75167         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75168
75169 2004-02-23  Karl Berry  <karl@gnu.org>
75170
75171         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75172         (from fencepost.gnu.org:/gd/gnuorg).
75173
75174 2004-02-23  Karl Berry  <karl@gnu.org>
75175
75176         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75177         * config/srclist.txt: add maintain/standards documents.
75178
75179 2004-02-18  Bruno Haible  <bruno@clisp.org>
75180
75181         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75182         Reported by Derek Robert Price <derek@ximbiot.com>.
75183
75184 2004-02-16  Karl Berry  <karl@gnu.org>
75185
75186         * config/mkinstalldirs, install-sh: update from automake.
75187
75188 2004-02-06  Karl Berry  <karl@gnu.org>
75189
75190         * m4/po.m4: update from gettext 0.14.1.
75191
75192 2004-02-06  Karl Berry  <karl@gnu.org>
75193
75194         * lib/config.charset: update from gettext 0.14.1.
75195
75196 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75197
75198         Add comments and code, prompted by suggestions from Bruno Haible
75199         for sh-quote.
75200         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75201         describing the enum quoting_style values.
75202         * lib/quotearg.c (quotearg_alloc): New function.
75203         (quotearg_buffer_restyled): Treat lone { and } as special.
75204         Treat = as special.  Work around bug with older shells
75205         that "see" a '\' that is really the 2nd byte of a multibyte char.
75206         Quote empty string with shell_quoting_style.
75207
75208 2004-02-03  Bruno Haible  <bruno@clisp.org>
75209
75210         * m4/pipe.m4: New file, from GNU gettext.
75211
75212 2004-02-03  Bruno Haible  <bruno@clisp.org>
75213
75214         * lib/pipe.h: New file, from GNU gettext.
75215         * lib/pipe.c: New file, from GNU gettext.
75216
75217 2004-01-27  Bruno Haible  <bruno@clisp.org>
75218
75219         * m4/execute.m4: New file, from GNU gettext.
75220
75221 2004-01-27  Bruno Haible  <bruno@clisp.org>
75222
75223         * lib/execute.h: New file, from GNU gettext.
75224         * lib/execute.c: New file, from GNU gettext.
75225         * lib/w32spawn.h: New file, from GNU gettext.
75226
75227 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75228
75229         Merge from diffutils.
75230
75231         * lib/file-type.c (file_type): Add typed memory objects.
75232         * lib/file-type.h (S_TYPEISTMO): New macro.
75233
75234         * lib/c-stack.h (c_stack_action): Remove argv argument.
75235         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75236         (die): Don't calculate message unless segv_action returns.
75237         (get_stack_location, min_address_from_argv, max_address_from_argv,
75238         volatile stack_base, volatile_stack_size): Remove.
75239         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75240         that every segmentation violation is a stack overflow.  (Ouch!)
75241         See Debian bug 136249 (still outstanding) for more info about why
75242         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75243
75244 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75245
75246         Exit-status fix from coreutils.
75247
75248         Use exit_failure consistently in place of EXIT_FAILURE,
75249         so that program exit statuses are consistent on failure.
75250
75251         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75252         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75253         * lib/argmatch.h: Comment fix to match the above.
75254         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75255         Now a macro referring to exit_failure, instead of a separate
75256         variable.  Include "exitfail.h" to get it.
75257         * lib/xstrtol.h: Include "exitfail.h".
75258         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75259
75260         * lib/long-options.c (parse_long_options): Use prototype
75261         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75262         for clarity.
75263
75264 2004-01-21  Jim Meyering  <jim@meyering.net>
75265
75266         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75267         so as not to conflict with a different-sized __mktime_internal
75268         function in GNU libc.
75269         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75270         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75271
75272 2004-01-20  Karl Berry  <karl@gnu.org>
75273
75274         * config/config.guess: update from config.
75275
75276         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75277
75278 2004-01-20  Bruno Haible  <bruno@clisp.org>
75279
75280         Safer stack allocation.
75281         * lib/setenv.c: Include allocsa.h.
75282         (alloca): Remove fallback definition.
75283         (freea): Remove macro.
75284         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75285         instead of freea.
75286
75287 2004-01-20  Bruno Haible  <bruno@clisp.org>
75288
75289         * m4/eealloc.m4: New file, from GNU gettext.
75290
75291 2004-01-20  Bruno Haible  <bruno@clisp.org>
75292
75293         * m4/allocsa.m4: New file, from GNU gettext.
75294
75295 2004-01-20  Bruno Haible  <bruno@clisp.org>
75296
75297         * lib/xallocsa.h: New file, from GNU gettext.
75298         * lib/xallocsa.c: New file, from GNU gettext.
75299
75300 2004-01-20  Bruno Haible  <bruno@clisp.org>
75301
75302         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75303
75304 2004-01-20  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75307         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75308         specially.
75309
75310 2004-01-20  Bruno Haible  <bruno@clisp.org>
75311
75312         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75313         patch.
75314
75315 2004-01-20  Bruno Haible  <bruno@clisp.org>
75316
75317         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75318
75319 2004-01-20  Bruno Haible  <bruno@clisp.org>
75320
75321         * lib/eealloc.h: New file.
75322
75323 2004-01-20  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/binary-io.h: Avoid warnings on Cygwin.
75326
75327 2004-01-20  Bruno Haible  <bruno@clisp.org>
75328
75329         * lib/allocsa.h: New file, from GNU gettext.
75330         * lib/allocsa.c: New file, from GNU gettext.
75331
75332 2004-01-18  Karl Berry  <karl@gnu.org>
75333
75334         * doc/gpl.texi, doc/lgpl.texi: new files.
75335
75336 2004-01-18  Karl Berry  <karl@gnu.org>
75337
75338         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75339         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75340
75341 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75342
75343         Merge from coreutils.
75344
75345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75346         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75347         (gl_DEFAULT_POSIX2_VERSION): Move
75348         the documentation from 'configure' into 'config.hin',
75349         so that 'configure --help' isn't burdened by it and
75350         we don't have to worry about its formatting there.
75351         Reword the documentation so that it's more succinct
75352         and can be run together into a single paragraph.
75353         * m4/same.m4 (gl_SAME): Check for pathconf.
75354
75355 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75356
75357         Merge from coreutils.
75358
75359         * lib/posixver.c: Include posixver.h.
75360
75361         * lib/same.c: Include <stdbool.h>, <limits.h>.
75362         (_POSIX_NAME_MAX): Define if not defined.
75363         (MIN): New macro.
75364         (same_name): If file names are silently truncated, report
75365         that the file names are the same if they are the same after
75366         the silent truncation.
75367
75368         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75369         conversion function.
75370         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75371         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75372         longer needed.
75373
75374 2004-01-15  Jim Meyering  <jim@meyering.net>
75375
75376         Merge from coreutils.
75377
75378         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75379         if no library is required.
75380         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75381         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75382         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75383         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75384         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75385         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75386         value, $ac_cv_search_crypt, if it's "none required".
75387         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75388         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75389         not gl_FUNC_GETLOADAVG.
75390         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75391         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75392
75393 2004-01-15  Jim Meyering  <jim@meyering.net>
75394
75395         Merge from coreutils.
75396
75397         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75398         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75399         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75400
75401         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75402         optional configure-time default.
75403
75404         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75405
75406         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75407
75408 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75409
75410         Merge from coreutils.
75411
75412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75413         value, $ac_cv_search_nanosleep, if it's "none required".
75414
75415 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75416
75417         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75418         with like-named macro in fnmatch.c.
75419         (EXT): Use an internal constant instead.
75420
75421         Merge fnmatch patches from glibc.
75422         * lib/fnmatch.c (mbsinit): Remove define.
75423         Add libc_hidden_ver (__fnmatch, fnmatch).
75424         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75425         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75426
75427 2004-01-14  Karl Berry  <karl@gnu.org>
75428
75429         * config/install-sh: update from automake.
75430
75431 2004-01-13  Karl Berry  <karl@gnu.org>
75432
75433         * config/install-sh: update from automake.
75434
75435 2004-01-09  Karl Berry  <karl@gnu.org>
75436
75437         * config/install-sh: update from automake.
75438
75439 2004-01-05  Karl Berry  <karl@gnu.org>
75440
75441         * config/config.{sub,guess}: update from config.
75442
75443 2003-12-31  Karl Berry  <karl@gnu.org>
75444
75445         * config/depcomp: update from automake.
75446
75447 2003-12-14  Karl Berry  <karl@gnu.org>
75448
75449         * lib/config.charset: update from gettext-runtime.
75450
75451 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75452
75453         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75454         Bug reported by Alfred M. Szmidt.
75455
75456 2003-12-03  Bruno Haible  <bruno@clisp.org>
75457
75458         * m4/gettext.m4: Upgrade from gettext-0.13.
75459         * m4/po.m4: Upgrade from gettext-0.13.
75460         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75461         * m4/intmax.m4: New file, from gettext-0.13.
75462         * m4/printf-posix.m4: New file, from gettext-0.13.
75463
75464 2003-11-29  Karl Berry  <karl@gnu.org>
75465
75466         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75467
75468 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75469             Bruno Haible  <bruno@clisp.org>
75470
75471         * lib/printf-parse.h: Don't include sys/types.h.
75472         (ARG_NONE): New macro.
75473         (char_directive): Change type of *arg_index fields to size_t.
75474         * lib/printf-parse.c: Don't include sys/types.h.
75475         (SSIZE_MAX): Remove macro.
75476         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75477         Remove unnecessary overflow check.
75478         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75479         fields.
75480
75481 2003-11-25  Bruno Haible  <bruno@clisp.org>
75482
75483         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75484
75485 2003-11-25  Bruno Haible  <bruno@clisp.org>
75486
75487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75488         gt_TYPE_SSIZE_T.
75489
75490 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75491
75492         * modules/alloca: Remove dependency on xalloc.
75493
75494 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75495
75496         * lib/alloca.c: Remove dependency on xalloc module.
75497         (xalloc_die): Remove.
75498         (memory_full) [!defined emacs]: New macro.
75499         [!defined emacs]: Don't include xalloc.h.
75500         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75501         address arithmetic overflows.  Change datatypes a bit to avoid
75502         unnecessary casts.
75503
75504 2003-11-22  Jim Meyering  <jim@meyering.net>
75505
75506         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75507         s/size/size_t/.
75508
75509 2003-11-21  Karl Berry  <karl@gnu.org>
75510
75511         * config/config.{sub,guess}: update from config.
75512
75513 2003-11-18  Karl Berry  <karl@gnu.org>
75514
75515         * config/config.{sub,guess}: update from config.
75516
75517         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75518
75519 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75520
75521         * README: Mention that S+T cannot overflow if S is the size of
75522         an existing object and T is sufficiently small.
75523
75524 2003-11-17  Jim Meyering  <jim@meyering.net>
75525
75526         On systems without utime and without a utimes function capable of
75527         dealing with a NULL struct utimbuf* argument, this utime replacement
75528         could -- in unusual circumstances -- leak a file descriptor.
75529         * lib/utime.c: Include <unistd.h> and <errno.h>.
75530         (utime_null): Be sure to close `fd' and to preserve errno.
75531         Reported by Geoff Collyer via Arnold Robbins.
75532
75533 2003-11-17  Bruno Haible  <bruno@clisp.org>
75534
75535         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75536         (Depends-on): Add xsize.
75537
75538 2003-11-17  Bruno Haible  <bruno@clisp.org>
75539
75540         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75541
75542 2003-11-17  Bruno Haible  <bruno@clisp.org>
75543
75544         * lib/vasnprintf.c (alloca): Remove fallback definition.
75545         (freea): Remove definition.
75546         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75547         Reported by Paul Eggert.
75548
75549 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75550             Bruno Haible  <bruno@clisp.org>
75551
75552         Protect against address arithmetic overflow.
75553         * lib/printf-args.h: Include stddef.h.
75554         (arguments): Change type of field 'count' to size_t.
75555         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75556         'unsigned int' where appropriate.
75557         * lib/printf-parse.h: Include sys/types.h.
75558         (char_directive): Change type of *arg_index fields to ssize_t.
75559         (char_directives): Change type of fields 'count', max_*_length to
75560         size_t.
75561         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75562         (SSIZE_MAX): Define fallback value.
75563         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75564         instead of 'int' where appropriate. Check a_allocated, d_allocated
75565         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75566         * lib/vasnprintf.c: Include xsize.h.
75567         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75568         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75569         overflow. Avoid wraparound when converting a width or precision from
75570         decimal to binary.
75571
75572 2003-11-16  Bruno Haible  <bruno@clisp.org>
75573
75574         Update from GNU gettext.
75575         * lib/printf-parse.c: Generalize to it can be compiled for wide
75576         strings.
75577         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75578         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75579         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75580         SNPRINTF): New macros.
75581         Don't include <alloca.h> if the file is used inside libintl.
75582         (local_wcslen): New function, for Solaris 2.5.1.
75583         (VASNPRINTF): Use it instead of wcslen.
75584
75585 2003-11-16  Bruno Haible  <bruno@clisp.org>
75586
75587         * lib/xsize.h (xmax): New function.
75588         (xsum, xsum3, xsum4): Declare as "pure" functions.
75589
75590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75591
75592         * modules/xalloc (Files): Undo latest change, since xalloc.h
75593         no longer needs SIZE_MAX or PTRDIFF_MAX.
75594
75595 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75596
75597         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75598         gl_PTRDIFF_MAX.
75599
75600 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75601
75602         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75603         "return", to pacify some unknown compiler.  Problem reported
75604         by Joerg Schilling.
75605
75606 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75607
75608         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75609         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75610         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75611         heuristic is just as accurate as far as we know, and it removes a
75612         dependency on size_max.m4 and ptrdiff_max.m4.
75613
75614 2003-11-11  Bruno Haible  <bruno@clisp.org>
75615
75616         * modules/xsize (Files): Add m4/size_max.m4.
75617         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75618
75619 2003-11-11  Bruno Haible  <bruno@clisp.org>
75620
75621         * m4/size_max.m4: New file.
75622         * m4/ptrdiff_max.m4: New file.
75623         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75625         (gl_XALLOC): Invoke it.
75626
75627 2003-11-11  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75630         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75631         defined.
75632
75633 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75634
75635         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75636         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75637         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75638         From Bruno Haible.
75639         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75640         not (size_t) -1, since it's defined here.
75641
75642 2003-11-09  Karl Berry  <karl@gnu.org>
75643
75644         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75645
75646 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75647
75648         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75649         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75650         Reject sizes of exactly SIZE_MAX bytes.
75651         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75652         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75653
75654 2003-11-05  Bruno Haible  <bruno@clisp.org>
75655
75656         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75657         SIZE_MAX defined in <limits.h> on Solaris.
75658
75659 2003-11-04  Jim Meyering  <jim@meyering.net>
75660
75661         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75662         variable names, rather than @VAR@.
75663         * modules/poll: Likewise.
75664
75665 2003-11-04  Bruno Haible  <bruno@clisp.org>
75666
75667         * modules/xsize: New file.
75668         * modules/linebreak: Depend on xsize.
75669         * MODULES.html.sh (func_all_modules): Add xsize.
75670
75671 2003-11-04  Bruno Haible  <bruno@clisp.org>
75672
75673         * m4/xsize.m4: New file.
75674
75675 2003-11-04  Bruno Haible  <bruno@clisp.org>
75676
75677         * lib/xsize.h: New file.
75678         * lib/linebreak.c: Include xsize.h.
75679         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75680         argument for overflow.
75681         Suggested by Paul Eggert.
75682
75683 2003-11-03  Karl Berry  <karl@gnu.org>
75684
75685         * config/config.{guess,sub}: update from config.
75686
75687 2003-11-03  Jim Meyering  <jim@meyering.net>
75688
75689         * modules/userspec (lib_SOURCES): Add userspec.h.
75690         (Include): Add "userspec.h".
75691         Improve description.
75692
75693 2003-11-03  Jim Meyering  <jim@meyering.net>
75694
75695         * lib/userspec.c: Include "userspec.h".
75696         * lib/userspec.h: New file.
75697
75698 2003-11-03  Bruno Haible  <bruno@clisp.org>
75699
75700         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75701
75702 2003-11-03  Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75705         available, to avoid (extremely rare) race condition.
75706         Suggested by Paul Eggert.
75707
75708 2003-11-02  Karl Berry  <karl@gnu.org>
75709
75710         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75711
75712 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75713
75714         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75715         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75716         (read_filesystem_list): Set and use me_type_malloced.
75717         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75718         whatever the type happens to be), for brevity and consistency.
75719         Check for size calculation overflow on Alphas running OSF/1.
75720
75721 2003-10-31  Jim Meyering  <jim@meyering.net>
75722
75723         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75724
75725         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75726
75727 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75728             Bruno Haible  <bruno@clisp.org>
75729
75730         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75731         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75732
75733 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75736         netbsd*-gnu*.  Suggested by Robert Millan.
75737
75738 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75739
75740         * modules/group-member: Depend on stdbool.
75741
75742 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75743
75744         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75745
75746 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75747
75748         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75749         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75750         after the 'gnu' in these cases.  This fixes some bugs in the
75751         previous change, and is based on suggestions by Robert Millan.
75752
75753 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75754
75755         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75756         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75757         no longer needed.
75758         * lib/quotearg.c (quotearg_n_options): Use it.
75759         * lib/group-member.c: Include <stdbool.h>.
75760         (free_group_info): Arg is now const *; don't free arg.
75761         (get_group_info): Now returns bool and accepts struct group_info *,
75762         rather than returning a malloc'ed struct group_info *.
75763         All uses changed.  Check for overflow in internal size calculation.
75764
75765         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75766         rather than xmalloc/xrealloc.
75767         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75768         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75769         conformance bug: the old code used a pointer after freeing the
75770         storage that it addressed.
75771         * lib/hash.c (hash_initialize): Simplify the code by using
75772         xalloc_oversized rather than doing it by hand.
75773         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75774         the buffer preserved.  Use free and xmalloc instead.
75775         * lib/quotearg.c (quotearg_n_options): Likewise.
75776         Use a simpler test for size overflow.  Don't use xalloc_oversized
75777         because unsigned int might be wider than size_t (!); this suggests
75778         that we should switch from unsigned int to size_t for slot numbers.
75779
75780 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75781
75782         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75783         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75784         NetBSD kernels.  Requested by Richard Stallman.
75785
75786 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75787
75788         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75789         to allocate the returned structure.  Do not allocate a subarray,
75790         as x2nrealloc will do that.
75791         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75792         instead of xnrealloc.
75793         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75794
75795 2003-10-27  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/stdbool_.h: Better support for BeOS.
75798
75799 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75800
75801         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75802         now uses inline.
75803
75804 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75805
75806         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75807         callers that want to do their own size-overflow checking.  Include
75808         <stdbool.h>, since xalloc_oversized returns bool.
75809         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75810         to use xalloc_oversized.
75811
75812         Add two functions x2realloc, x2nrealloc, for programs that grow
75813         arrays dynamically by doubling their sizes.
75814         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75815         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75816         New functions.
75817
75818         Port to C99 semantics for 'inline' of external functions.
75819         Bug reported by Bruno Haible.
75820         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75821         with the old contents of xnmalloc.
75822         (xnmalloc, xmalloc): Use it.
75823         (xnrealloc_inline): New static inline function,
75824         with the old contents of xnrealloc.
75825         (xnrealloc, xrealloc): Use it.
75826
75827         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75828         that.
75829
75830 2003-10-26  Karl Berry  <karl@gnu.org>
75831
75832         * config/srclist.txt (COPYING.DOC): no longer available from
75833         /gd/gnuorg; don't know where the ultimate source is.
75834
75835 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75836
75837         Fix several address-calculation bugs in the hash modules,
75838         plus some minor code cleanup.
75839
75840         * lib/hash.h: Include <stdbool.h>, for bool.
75841         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75842         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75843         hash_get_n_entries, hash_get_max_bucket_length,
75844         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75845         hash_rehash): Use size_t rather than unsigned.
75846         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75847         hash_get_n_buckets_used, hash_get_n_entries,
75848         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75849         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75850         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75851         Likewise.
75852         (SIZE_MAX): Define if not defined.
75853         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75854         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75855         hash_print):
75856         Use const * when possible.
75857         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75858         (check_tuning): Fix bug: if tuning parameters were very close to
75859         0 or 1, rounding errors could have caused subscript violations.
75860         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75861         (hash_initialize): Add 'fail:' label
75862         to free table and return NULL, and use it to simplify code.
75863         Use calloc rather than clearing the storage ourself.
75864         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75865         buffer size calculations.
75866         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75867         Include <stddef.h>, for size_t.
75868         * lib/hash-pjw.c (hash_pjw): Likewise.
75869         Switch to method described by Bruno Haible.
75870         Include <limits.h>, for CHAR_BIT.
75871         (SIZE_BITS): New macro.
75872
75873 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75874
75875         * m4/getline.m4 (AM_FUNC_GETLINE):
75876         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75877         hosts.  Problem reported by Derek Robert Price in
75878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75879         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75880         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75881
75882 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75883
75884         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75885         ceiling the allocation at NMAX bytes rather than silently
75886         discarding input bytes before NMAX is reached.  This makes
75887         a difference only if NMAX exceeds SIZE_MAX / 2.
75888
75889         * lib/obstack.c: Merge from glibc.
75890         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75891         Add libc_hidden_def (_obstack_newchunk).
75892         (_obstack_free) [! defined _LIBC]: Remove.
75893         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75894         a clone of the function body.
75895         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75896         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75897
75898         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75899         glibc.
75900         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75901         arg to memcpy.
75902
75903         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75904         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75905         Don't use lvalue casts, as GCC plans to remove support for them
75906         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75907         was also present in the non-GCC version, indicating that this
75908         code had always been buggy and had never been widely used.
75909         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75910         Use the fast variant of each macro, rather than copying the
75911         definiens of the fast variant; that way, we'll be more likely to
75912         catch future bugs in the fast variants.
75913
75914 2003-10-20  Bruno Haible  <bruno@clisp.org>
75915
75916         * modules/wait-process: New file.
75917         * MODULES.html.sh (func_all_modules): Add wait-process.
75918
75919 2003-10-20  Bruno Haible  <bruno@clisp.org>
75920
75921         * m4/wait-process.m4: New file.
75922
75923 2003-10-20  Bruno Haible  <bruno@clisp.org>
75924
75925         * lib/wait-process.h: New file, from GNU gettext.
75926         * lib/wait-process.c: New file, from GNU gettext.
75927
75928 2003-10-19  Jim Meyering  <jim@meyering.net>
75929
75930         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75931         HPUX 10.20.
75932
75933 2003-10-18  Karl Berry  <karl@gnu.org>
75934
75935         * config/config.guess: update from config.
75936
75937 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75938
75939         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75940         (getgroups): First arg is int, not size_t.
75941         Don't let 'free' mangle errno.
75942
75943 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75944
75945         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75946
75947 2003-10-16  Karl Berry  <karl@gnu.org>
75948
75949         * config/config.{guess,sub}: update from config.
75950
75951 2003-10-16  Jim Meyering  <jim@meyering.net>
75952
75953         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75954         memcpy.
75955
75956 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75957
75958         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75959         (SIZE_MAX): Remove.
75960         (new_exclude, add_exclude_file): Initial size no longer needs to
75961         be a power of 2.
75962         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75963         our own address arithmetic overflow checking.
75964
75965         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75966         (fnmatch): Do not alloca more than 2000 wide characters;
75967         instead, use malloc for large buffers.
75968         Check for address arithmetic overflow, and return -1
75969         with errno set to ENOMEM in that case.
75970         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75971         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75972         instead, return -1.  Check for address arithmetic overflow.
75973
75974 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75975
75976         Handle invalid suffixes and overflow independently, so that
75977         callers can treat them independently as needed.  Fix some bugs in
75978         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75979         suffix for a human-readable blocksize.  The major caller-visible
75980         change is the addition of a new
75981         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75982         that both overflow and suffix chars were found.
75983
75984         * lib/human.c (humblock): Don't check separately for invalid suffix
75985         char; that is xstrtoumax's job (now that its bug is fixed).
75986         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75987         INTMAX_MAX]: New macros.
75988         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75989         TYPE_MAXIMUM): New macros.
75990         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75991         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75992         if overflow occurs, as it's what __strtol does and it's more useful
75993         in practice.
75994         (__xstrtol): If __strtol reports some error other than ERANGE,
75995         reflect it to the caller as LONGINT_INVALID.  If it reports
75996         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75997         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75998         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75999         value.
76000         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76001         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76002         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76003         [defined UINTMAX_MAX]: New macros.
76004
76005 2003-10-14  Bruno Haible  <bruno@clisp.org>
76006
76007         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76008
76009 2003-10-14  Bruno Haible  <bruno@clisp.org>
76010
76011         * m4/sig_atomic_t: New file, from GNU gettext.
76012         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76013
76014 2003-10-14  Bruno Haible  <bruno@clisp.org>
76015
76016         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76017         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76018         Also use volatile where needed.
76019
76020 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76021
76022         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76023         Change maintainer from Bruno Haible to 'all'.
76024
76025 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76026
76027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76028
76029 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76030
76031         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76032         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76033         and define in terms of the other primitives.
76034         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76035         (SIZE_MAX): Define if not already defined.
76036         (array_size_overflow): New function.
76037         (xalloc_die): Abort instead of exiting if 'error' returns.
76038         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76039         (xmalloc, xrealloc): Use them.
76040         (xcalloc): Check for address arithmetic overflow.
76041         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76042         a bit faster than strcpy.
76043
76044 2003-10-10  Simon Josefsson  <jas@extundo.com>
76045
76046         * modules/argp (Depends-on): Add restrict and strcase.
76047
76048 2003-10-10  Simon Josefsson  <jas@extundo.com>
76049
76050         * m4/argp.m4: Add AC_C_INLINE.
76051
76052 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76053
76054         Merge getpass from libc, plus a few fixes.
76055
76056         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76057         Include <stdbool.h>.
76058         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76059         __fsetlocking to empty.
76060         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76061         do include <bits/libc-lock.h>.
76062         Do not include <fcntl.h>; not needed.
76063         [_LIBC]: Include <wchar.h>.
76064         (NOTCANCEL_MODE): New macro.
76065         (flockfile, funlockfile) [_LIBC]: New macros.
76066         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76067         [!_LIBC]: New macros.
76068         (call_fclose): New function.
76069         (getpass): Use it.  Save tty stream separately; this simplifies the
76070         code and makes it more reliable if stdin happens to equal stdout.
76071         Invoke __fsetlocking on tty.
76072         Handle thread cancellation if needed.
76073         Namespace cleanup (use __tcgetattr, __getline).
76074         Use bool for Booleans.
76075         [USE_IN_LIBIO]: Handle wide streams.
76076         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76077         stream might go where.
76078
76079         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76080         doesn't have to include <stdio.h> before us.
76081         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76082         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76083         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76084         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76085         if not declared, so that we can use getpass.c code from libc without
76086         rewriting it.
76087         (flockfile, ftrylockfile, funlockfile): New macros.
76088
76089 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76090
76091         * modules/getpass: Depend on stdbool.
76092
76093 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76094
76095         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76096
76097 2003-10-07  Karl Berry  <karl@gnu.org>
76098
76099         * config/config.{guess,sub}: update from config.
76100
76101 2003-10-06  Jim Meyering  <jim@meyering.net>
76102             Bruno Haible  <bruno@clisp.org>
76103
76104         This lets translators provide better translations for the
76105         "Written by ..." part of --version output.
76106         * lib/version-etc.h: Include stdarg.h.
76107         (version_etc_copyright): Declare as readonly.
76108         (version_etc): Make this function variadic with a NULL-terminated list
76109         of author name strings.
76110         (version_etc_va): New declaration.
76111         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76112         (version_etc_copyright): Declare as readonly.
76113         (version_etc_va): New function. Provide a different translatable string
76114         for each possible number of authors < 10. Abbreviate when there are 10
76115         authors or more.
76116         (version_etc): Make this function variadic. Call version_etc_va.
76117         Suggestion from Gary V. Vaughan.
76118
76119         * lib/long-options.h (parse_long_options): Change prototype: the
76120         authors string is moved to the end and becomes variadic.
76121         * lib/long-options.c: Include stdarg.h.
76122         (parse_long_options): Make this function variadic, too.
76123         Call version_etc_va, not version_etc.
76124
76125 2003-10-06  Bruno Haible  <bruno@clisp.org>
76126
76127         * modules/version-etc-2: Remove file.
76128         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76129
76130 2003-10-06  Bruno Haible  <bruno@clisp.org>
76131
76132         * modules/fatal-signal: New file.
76133         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76134
76135 2003-10-06  Bruno Haible  <bruno@clisp.org>
76136
76137         * m4/fatal-signal.m4: New file.
76138         * m4/signalblocking.m4: New file, from GNU gettext.
76139
76140 2003-10-06  Bruno Haible  <bruno@clisp.org>
76141
76142         * lib/version-etc-2.h: Remove file.
76143         * lib/version-etc-2.c: Remove file.
76144
76145 2003-10-06  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/fatal-signal.h: New file, from GNU gettext.
76148         * lib/fatal-signal.c: New file, from GNU gettext.
76149
76150 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76151
76152         * README: Rework advice for preventing empty .o files.
76153         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76154         not <sys/types.h>.
76155
76156 2003-10-04  Karl Berry  <karl@gnu.org>
76157
76158         * lib/argp*: update from libc.
76159
76160 2003-10-04  Karl Berry  <karl@gnu.org>
76161
76162         * config/config.{guess,sub}: update from config.
76163
76164 2003-10-02  Bruno Haible  <bruno@clisp.org>
76165
76166         * modules/lchown (Include): Add lchown.h.
76167         * modules/time_r (Include): Use "..." syntax.
76168         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76169
76170 2003-10-01  Simon Josefsson  <jas@extundo.com>
76171
76172         * MODULES.html.sh (func_all_modules): Move gethostname from section
76173         'based on' to section 'lacking' POSIX:2001.
76174
76175 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76176
76177         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76178         to output mode on the same stream.
76179
76180 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76181
76182         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76183         Fix arg typo in previous patch.
76184
76185 2003-09-28  Jim Meyering  <jim@meyering.net>
76186
76187         * lib/error.c: Correct cpp indentation.
76188
76189 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76190
76191         * modules/free: New file.
76192
76193 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76194
76195         * m4/free.m4: New file.
76196
76197 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76198
76199         * lib/minmax.h (MIN, MAX)
76200         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76201         Omit the special code that used __typeof__, since we worry that
76202         it could be more trouble than it's worth.  See:
76203         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76204         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76205
76206         * lib/free.c: New file.
76207
76208 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76209
76210         Trivial fixes to Makefile.am parts of module listings.
76211         * modules/strstr: Append strstr.h to lib_SOURCES.
76212         * modules/strcase: Likewise, for strcase.h.
76213
76214 2003-09-27  Karl Berry  <karl@gnu.org>
76215
76216         * config/mkinstalldirs: update from automake.
76217
76218 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76219
76220         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76221         (error_tail): Do not loop, reallocating temporary buffer, since
76222         the output cannot contain more wide characters than the input
76223         contains bytes, the size must be big enough already.  This avoids
76224         one potential size overflow calculation.  Check for size overflow
76225         when calculating temporary buffer size.  Free temporary buffer
76226         when done, if it was allocated with malloc; this plugs a memory
76227         leak.  Remove casts from void * to pointers, that are no longer
76228         needed now that we're assuming C89 or better.
76229
76230         Merge error changes from glibc.
76231
76232         * lib/error.c, error.h: Update copyright notice header to match glibc.
76233         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76234         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76235         Disable cancellation while printing error.
76236         * lib/error.h: Prepend __ to parameter names.
76237
76238 2003-09-26  Jim Meyering  <jim@meyering.net>
76239
76240         * lib/error.c (error_tail): Move some declarations
76241         into inner scope where the local variables are used.
76242
76243 2003-09-26  Bruno Haible  <bruno@clisp.org>
76244
76245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76246         stpncpy().
76247         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76248
76249 2003-09-26  Bruno Haible  <bruno@clisp.org>
76250
76251         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76252         (stpncpy): Define as alias for gnu_stpncpy.
76253         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76254
76255 2003-09-25  Simon Josefsson  <jas@extundo.com>
76256
76257         * lib/xgetdomainname.h: New file.
76258         * lib/xgetdomainname.c: New file.
76259
76260 2003-09-25  Simon Josefsson  <jas@extundo.com>
76261             Bruno Haible  <bruno@clisp.org>
76262
76263         * modules/getdomainname: New file.
76264         * modules/xgetdomainname: New file.
76265         * MODULES.html.sh (func_all_modules): Add getdomainname,
76266         xgetdomainname.
76267
76268 2003-09-25  Simon Josefsson  <jas@extundo.com>
76269             Bruno Haible  <bruno@clisp.org>
76270
76271         * m4/getdomainname.m4: New file.
76272
76273 2003-09-25  Simon Josefsson  <jas@extundo.com>
76274             Bruno Haible  <bruno@clisp.org>
76275
76276         * lib/getdomainname.h: New file.
76277         * lib/getdomainname.c: New file.
76278
76279 2003-09-25  Karl Berry  <karl@gnu.org>
76280
76281         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76282
76283 2003-09-25  Karl Berry  <karl@gnu.org>
76284
76285         * config/install-sh: update from automake.
76286
76287 2003-09-25  Bruno Haible  <bruno@clisp.org>
76288
76289         * modules/version-etc-2: New file, from modules/version-etc with
76290         modifications.
76291         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76292
76293 2003-09-25  Bruno Haible  <bruno@clisp.org>
76294
76295         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76296         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76297
76298 2003-09-24  Simon Josefsson  <jas@extundo.com>
76299
76300         * modules/xgethostname: Add xgethostname.h.
76301
76302 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76303
76304         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76305         the buffer associated with the argument.  Bug reported by
76306         Simon Josefsson.
76307
76308 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76309
76310         * README: Document assumptions that 'int' is at least 32 bits
76311         wide, that integer arithmetic is 2's complement without overflow,
76312         that there are no holes in integer values, that adding sizes of
76313         two nonoverlapping objects can't overflow, and that all-bits-zero
76314         yields scalar zero.  Fix spelling and capitalization typos.
76315
76316 2003-09-19  Karl Berry  <karl@gnu.org>
76317
76318         * lib/argp.h: update from libc.
76319
76320 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76321
76322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76323         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76324         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76325
76326 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76327
76328         * gnulib-tool: Use "test -h", not "test -L", for portability
76329         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76330         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76331         (sed_extract_prog): Issue s commands one-by-one, rather than
76332         using \| in one s command.
76333
76334 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76335
76336         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76337         input error, instead of returning NULL the next time we are called
76338         (and therefore losing track of errno).
76339
76340 2003-09-16  Bruno Haible  <bruno@clisp.org>
76341
76342         * gnulib-tool (func_create_testdir): Warn about duplicated
76343         dependencies.
76344
76345 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76346
76347         * modules/argmatch, modules/fatal, modules/obstack,
76348         modules/xalloc, modules/xgethostname: Sort dependencies by
76349         importance, not alphabetically.
76350
76351 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76352
76353         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76354         fails, so that the caller gets the proper errno.
76355
76356         * lib/readutmp.c (read_utmp): Likewise.
76357         Check for fstat error.  Close stream and free storage
76358         when failing.
76359
76360 2003-09-14  Karl Berry  <karl@gnu.org>
76361
76362         * config/srclist.txt (strdup.c): disable for c89 changes.
76363
76364 2003-09-14  Jim Meyering  <jim@meyering.net>
76365
76366         * lib/getloadavg.c: Correct cpp indentation.
76367         * lib/strdup.c: Likewise.
76368         * lib/vasnprintf.c: Likewise.
76369
76370 2003-09-14  Bruno Haible  <bruno@clisp.org>
76371
76372         * modules/fwriteerror: New file.
76373         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76374
76375 2003-09-14  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/fwriteerror.h: New file.
76378         * lib/fwriteerror.c: New file.
76379
76380 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76381
76382         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76383         modules/xgethostname, modules/xalloc: Depend on exit.
76384
76385 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76386
76387         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76388
76389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76390         and AC_MINIX, too, so that their extensions are available.
76391
76392         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76393         This macro has been superseded by gl_BACKUPFILE.
76394
76395         More patches to assume C89 or better.
76396
76397         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76398
76399         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76400         unconditionally.
76401         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76402         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76403         Include <string.h>, <stdlib.h> unconditionally.
76404         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76405         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76406         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76407         headers or for string.h.
76408         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76409         or strtoul.
76410
76411         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76412         headers.
76413         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76414         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76415         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76416         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76418         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76419         memcpy, memset.
76420         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76421         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76422         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76423         strtol.
76424         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76425         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76426         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76427         strtoul.
76428
76429 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76430
76431         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76432         * lib/obstack.c [!defined _LIBC]: Likewise.
76433         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76434         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76435         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76436
76437         More changes to assume C89 or better.
76438
76439         * lib/error.c (error_tail): Assume vprintf.
76440
76441         * lib/argmatch.c (getenv): Remove decl.
76442         * lib/progreloc.c (get_full_program_name): Define via prototype.
76443         * lib/setenv.c (clearenv): Likewise.
76444         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76445         needed.
76446         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76447         (malloc, memcpy): Remove decls.
76448         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76449         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76450         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76451         (memcpy): Remove macro.
76452         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76453         (__P): Remove.  All uses removed.
76454         (PTR): Remove.  All uses changed to void *.
76455         (CHAR_BIT, NULL): Remove.
76456         (spaces, zeros, memset_space, memset_zero)
76457         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76458         Remove.
76459         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76460         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76461         Define with prototype.
76462         Remove now-unnecessary prototype decl.
76463         (extra_args_spec): Assume ANSI C.  All uses changed.
76464         (extra_args_spec_iso): Remove.
76465         (my_strftime, emacs_strftimeu): Define via prototype.
76466         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76467         unconditionally.
76468         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76469         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76470         (strtoul, strtol): Remove decls.
76471         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76472         LONG_MAX): Remove.
76473         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76474         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76475         (LOCALE_PARAM_PROTO): New macro.
76476         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76477         (INTERNAL (strtol), strtol): Define with a prototype.
76478         (PARAMS): Remove.  All uses removed.
76479         * lib/tempname.c: Include <string.h> unconditionally.
76480         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76481         * lib/xgethostname.c (main): Define with a prototype.
76482         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76483         Include <stdlib.h> unconditionally.
76484         (calloc, malloc, realloc, free): Remove decls.
76485         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76486         Include <stdlib.h> unconditionally.  Sort include file names.
76487         (strtod): Remove.
76488         (xstrtod): Define with a prototype.
76489         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76490         (strtol, strtoul): Remove decls.
76491
76492 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76493
76494         More patches to assume C89 or better.
76495         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76496         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76497         string.h, memchr, STDC_HEADERS.
76498
76499 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76500
76501         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76502         Include <stdlib.h>, <string.h> unconditionally.
76503         Remove now-unnecessary cast to char *.
76504         * lib/strnlen.c: Include <string.h> unconditionally.
76505         * lib/yesno.c (yesno): Define with a prototype.
76506
76507 2003-09-11  Bruno Haible  <bruno@clisp.org>
76508
76509         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76510
76511 2003-09-10  Jim Meyering  <jim@meyering.net>
76512
76513         * lib/error.c: Correct indentation of cpp directives.
76514
76515 2003-09-10  Bruno Haible  <bruno@clisp.org>
76516
76517         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76518         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76519         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76520         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76521         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76522         <stdlib.h> and <string.h> checks.
76523         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76524         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76525
76526 2003-09-10  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/strcspn.c: Include <string.h> unconditionally.
76529         * lib/strpbrk.c: Include <string.h> unconditionally.
76530         * lib/strstr.c: Include <string.h> unconditionally.
76531         * lib/unicodeio.c: Include <string.h> unconditionally.
76532         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76533         * lib/unsetenv.c: Likewise.
76534         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76535         * lib/yesno.c: Include <stdlib.h> unconditionally.
76536         (rpmatch): Add prototype.
76537
76538 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76539
76540         More patches to assume C89 or better.
76541         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76542         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76543         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76544         or for string.h.
76545         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76546         stdlib.h.
76547         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76548         C headers.
76549         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76550         string.h.
76551         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76552         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76553         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76554         or for string.h.
76555         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76556         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76557         C headers.
76558         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76559         memcpy.
76560         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76561         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76562         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76563         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76564         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76565         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76566         string.h, free.
76567         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76568         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76569         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76570         C headers, or for string.h.
76571         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76572         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76573         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76574         headers, memory.h, stdlib.h, string.h, strings.h.
76575         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76576         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76577         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76578         strchr.
76579         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76580         headers, memory.h, string.h.
76581         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76582         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76583         free.
76584         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76585         headers.
76586         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76587         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76588         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76589         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76590         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76591
76592 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76593
76594         More K&R removal.
76595
76596         * lib/acosl.c (main): Use a prototype.
76597         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76598         tanl.c: Likewise.
76599
76600         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76601
76602         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76603         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76604         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76605         with a prototype.
76606         * lib/getopt.c (const): Remove macro.
76607         Include <string.h> unconditionally.
76608         (my_index): Remove; all uses changed to strchr.
76609         (strlen): Remove decl.
76610         (exchange): Remove forward decl; no longer needed.
76611         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76612         Define with prototype.
76613         * lib/getopt1.c (const): Remove macro.
76614         (getopt_long, getopt_long_only, main): Define with prototype.
76615
76616         * lib/getugroups.c: Include <string.h> unconditionally.
76617
76618         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76619         (getusershell, setusershell, endusershell, readname, main):
76620         Define with prototypes.
76621
76622         * lib/group-member.c: Include group-member.h first.
76623         Include <stdlib.h> unconditionally.
76624
76625         * lib/hard-locale.c: Include hard-locale.h first.
76626         Include <stdlib.h>, <string.h> unconditionally.
76627
76628         * lib/hash.c (free, malloc): Remove decls.
76629         Include <stdlib.h> unconditionally.
76630
76631         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76632         (getenv): Do not declare.
76633
76634         * lib/idcache.c: Include <string.h> unconditionally.
76635
76636         * lib/long-options.c: Include long-options.h first, to test interface.
76637         Include <stdlib.h> unconditionally.
76638
76639         * lib/makepath.c: Include makepath.h first, to test interface.
76640         Include <stdlib.h> and <string.h> unconditionally.
76641
76642         * lib/linebuffer.c: Include <stdlib.h>.
76643         (free): Remove decl.
76644
76645         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76646         stddef.h. rpl_malloc returns void *, not char *.
76647         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76648         prototype.
76649
76650         * lib/md5.h: Include <limits.h> unconditionally.
76651         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76652         (__P): Remove; all uses removed.
76653         * lib/md5.c: Include "md5.h" first.
76654         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76655         md5_buffer, md5_process_bytes, md5_process_block):
76656         Define with prototypes.
76657         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76658         * lib/sha.c: Include "sha.h" first.
76659         Include <stdlib.h>, <string.h> unconditionally.
76660
76661         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76662         * lib/memcmp.c (__ptr_t): Likewise.
76663         * lib/memrchr.c (__ptr_t): Likewise.
76664         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76665         Include <string.h> unconditionally.
76666         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76667         * lib/memchr.c: Include <stdlib.h> unconditionally.
76668         * lib/memchr.c (LONG_MAX): Remove.
76669         * lib/memrchr.c (LONG_MAX): Likewise.
76670         * lib/memchr.c (__memchr): Define via a prototype.
76671         * lib/memrchr.c (__memrchr): Likewise.
76672         * lib/memcmp.c (__P): Remove, and remove all uses.
76673         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76674         Remove forward decls; no longer needed.
76675         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76676         Use types required by C89 in prototype.
76677
76678         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76679         * lib/savedir.c: Likewise.
76680         * lib/mkdir.c (free): Remove decl.
76681         * lib/rmdir.c (rmdir): Define with a prototype.
76682         * lib/savedir.c: Include savedir.h first, to test interface.
76683
76684         * lib/mktime.c (STDC_HEADERS): Remove.
76685         Include <stdlib.h>, <string.h> unconditionally.
76686
76687         * lib/modechange.c: Include <stdlib.h> unconditionally.
76688         (malloc): Remove decl.
76689
76690         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76691         (free): Remove decl.
76692
76693         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76694         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76695         (This type really should be intptr_t, but that's a C99ism.)
76696         (_obstack_memcpy): Remove: all uses changed to memcpy.
76697         Include <string.h> unconditionally.
76698         (struct obstack): Assume __STDC__ for types of members
76699         chunkfun, freefun, extra_arg.
76700         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76701         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76702         obstack_begin, obstack_specify_allocation,
76703         obstack_specify_allocation_with_arg, obstack_chunkfun,
76704         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76705         Remove unprototyped decls and the macros that use them.
76706         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76707         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76708         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76709         (defined __STDC__ && __STDC__)]:
76710         Remove nonprototyped code.
76711         Include <stdlib.h> unconditionally.
76712         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76713         _obstack_allocated_p, _obstack_free, obstack_free,
76714         _obstack_memory_used, print_and_abort):
76715         Define using prototypes.
76716         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76717         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76718         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76719         obstack_next_free, obstack_object_size, obstack_room) [0]:
76720         Remove unused, unprototyped code.
76721
76722         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76723
76724         * lib/physmem.c (physmem_total, physmem_available, main): Define
76725         with prototypes.
76726
76727         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76728         (main): Define with a prototype.
76729
76730         * lib/posixver.c (getenv): Remove decl.
76731
76732         * lib/putenv.c (malloc): Returns void *, not char *.
76733         Include <string.h> unconditionally.
76734         (strchr, memcpy, NULL): Do not define.
76735
76736         * lib/readtokens.c: Include readtokens.h first, to test interface.
76737         Include <stdlib.h>, <string.h> unconditionally.
76738         (init_tokenbuffer): Define with a prototype.
76739
76740         * lib/regex.c (PARAMS): Remove.  All uses removed.
76741         All uses of _RE_ARGS removed, too.
76742         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76743         unconditionally.
76744         (bzero): Assume memset exists.
76745         (memcmp, memcpy, NULL): Remove.
76746         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76747         char, or assignments to local vars of type signed char.
76748         (init_syntax_once, PREFIX(extract_number_and_incr),
76749         PREFIX(print_partial_compiled_pattern),
76750         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76751         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76752         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76753         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76754         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76755         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76756         wcs_compile_range, byte_compile_range, truncate_wchar,
76757         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76758         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76759         count_mbs_length, wcs_re_match_2_internal,
76760         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76761         PREFIX(alt_match_null_string_p),
76762         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76763         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76764         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76765         now-unnecessary declaration, if any.
76766         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76767         regcomp, regexec):
76768         Remove now-unnecessary casts among pointer types.
76769         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76770
76771         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76772         (free): Remove decl.
76773
76774         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76775
76776         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76777         (free): Remove decl.
76778
76779         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76780         * lib/xgetcwd.c: Likewise.
76781
76782         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76783         (free): Remove decl.
76784
76785         * lib/strchrnul.c (strchrnul): Define with a prototype.
76786         Fix bug: c_in was not converted to char before searching.
76787
76788         The following changes are not K&R related:
76789
76790         * lib/group-member.h: Include <sys/types.h>, so that this file is
76791         self-contained.
76792         * lib/makepath.h: Likewise.
76793
76794         * lib/getusershell.c (readname, default_index, line_size, readname):
76795         Use size_t, not int, for sizes.
76796         (readname): If the size overflows, report an error instead of
76797         looping forever.
76798
76799 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76800
76801         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76802         libc.
76803
76804 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76805
76806         * README: New section: portability guidelines.
76807
76808 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76809
76810         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76811         C89 spec.
76812
76813 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76814
76815         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76816
76817 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76818
76819         Assume C89 or better; remove K&R cruft.
76820         A few of these changes were first proposed by Derek Robert Price
76821         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76822
76823         * lib/addext.c: Include <string.h> unconditionally.
76824         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76825         Don't declare getenv or malloc.
76826
76827         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76828         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76829         (NULL): Remove.
76830         (find_stack_direction, alloca): Use prototypes.
76831
76832         * lib/atexit.c (atexit): Define using a prototype.
76833
76834         * lib/basename.c, dirname.c, stripslash.c:
76835         Include <string.h> unconditionally.
76836
76837         * lib/bcopy.c: Include <stddef.h>.
76838         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76839
76840         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76841
76842         * lib/error.h (error, error_at_line, error_print_progname)
76843         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76844         * lib/error.c: Include error.h first, to check interface.
76845         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76846         (VA_START): Remove; all uses changeed to va_start.
76847         (exit, strerror): Remove decls.
76848         (error_print_progname): Prototype uncondionally.
76849         Don't include <errno.h>; no longer needed.
76850         (private_strerror): Remove.
76851         (error_tail): Always define.
76852         (error, error_at_line): Assume C89 or better; always use prototypes.
76853         * lib/fatal.c: Include "fatal.h" first, to test interface.
76854         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76855         (VA_START): Remove; all uses changed to va_start.
76856         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76857         this case.
76858         (exit): Remove decl.
76859         (fatal): Prototype unconditionally.  Assume va_start works.
76860         Abort at end, to pacify gcc.
76861
76862         * lib/euidaccess.c (main): Define with a prototype.
76863
76864         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76865
76866         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76867
76868         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76869         prototypes.
76870         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76871         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76872         (getenv): Remove decl.
76873         (fnmatch): Define using a prototype.
76874         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76875         (FCT): Define using a prototype.
76876
76877         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76878
76879         * lib/gethostname.c: Include <stddef.h>.
76880         (gethostname): Define with prototype.  Length is size_t, not int.
76881
76882 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76883
76884         Assume C89 or better; remove K&R cruft.
76885         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76886         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76887         string.h, getenv, malloc.
76888         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76889         headers.
76890         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76891         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76892         do not check for strerror.
76893         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76894         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76895         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76896         do not check for doprnt or vprintf.
76897         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76898         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76899
76900 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76901
76902         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76903         getversion.c should have been removed then, but was accidentally
76904         preserved.
76905
76906         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76907         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76908
76909 2003-09-08  Karl Berry  <karl@gnu.org>
76910
76911         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76912                 config, forget about prep.
76913
76914         * config/depcomp, missing: update from automake.
76915
76916 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76917
76918         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76919         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76920
76921 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76922
76923         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76924         copy_tm_result.  Bug reported by Simon Josefsson in
76925         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76926
76927 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76928
76929         * m4/time_r.m4: New file.
76930         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76931         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76932         is. Check for timegm declaration.
76933         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76934         Do not check for gmtime_r.
76935         Replace mktime if __mktime_internal does not exist and if mktime
76936         hasn't been replaced already.
76937
76938 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76939
76940         * lib/time_r.c, lib/time_r.h: New files.
76941
76942         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76943         __localtime_r.
76944         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76945         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76946
76947         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76948         __gmtime_r.
76949         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76950         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76951         Include <time_r.h>.
76952
76953         * lib/timegm.c: Switch to glibc implementation, with the following
76954         changes:
76955         [defined HAVE_CONFIG_H]: Include <config.h>.
76956         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76957         (__mktime_internal) [!defined _LIBC]: New decl.
76958         (__gmtime_r) [!defined _LIBC]: New macro and function.
76959         (timegm): Use a prototype, since gnulib assumes C89.
76960         Do not bother declaring tmp to be const, as it's not really usefu.
76961         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76962         (timegm): Declare only if HAVE_DECL_TIMEGM.
76963
76964 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76965
76966         * MODULES.html.sh (func_all_modules): Add time_r.
76967         * modules/time_r: New file.
76968         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76969         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76970
76971 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76972
76973         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76974         Bug reported by Lute Kamstra in
76975         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76976
76977         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76978         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76979         course with correspondingly smaller numbers for tomorrow and
76980         yesterday.  From Tadayoshi Funaba.  Originally installed into
76981         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76982         coreutils merge?).
76983
76984 2003-08-31  Simon Josefsson  <jas@extundo.com>
76985
76986         * modules/timegm: New file.
76987         * MODULES.html.sh (func_all_modules): Add timegm.
76988
76989 2003-08-31  Simon Josefsson  <jas@extundo.com>
76990
76991         * m4/timegm.m4: New file.
76992
76993 2003-08-31  Simon Josefsson  <jas@extundo.com>
76994
76995         * lib/timegm.h: New file.
76996         * lib/timegm.c: New file.  Based on
76997         wget-1.8.2/src/http.c:mktime_from_utc.
76998
76999 2003-08-31  Karl Berry  <karl@gnu.org>
77000
77001         * lib/argp.h: update from libc.
77002
77003 2003-08-28  Bruno Haible  <bruno@clisp.org>
77004
77005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77006         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77007         followed by '#define fnmatch fnmatch_posix' gives an error.
77008
77009 2003-08-28  Bruno Haible  <bruno@clisp.org>
77010
77011         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77012         warning on QNX, which defines O_BINARY to 000000.
77013
77014 2003-08-27  Jim Meyering  <jim@meyering.net>
77015
77016         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77017         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77018         would fail after 32.  Reported by Danny Levinson.  Details here:
77019         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77020
77021 2003-08-24  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77024         MSVC7 <stdio.h> is included later.
77025
77026 2003-08-22  Simon Josefsson  <jas@extundo.com>
77027
77028         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77029
77030 2003-08-20  Karl Berry  <karl@gnu.org>
77031
77032         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77033
77034 2003-08-20  Bruno Haible  <bruno@clisp.org>
77035
77036         * modules/progname: New file.
77037         * MODULES.html.sh (func_all_modules): Add progname.
77038
77039 2003-08-20  Bruno Haible  <bruno@clisp.org>
77040
77041         * lib/progname.h: New file, from GNU gettext.
77042         * lib/progname.c: New file, from GNU gettext.
77043         * lib/progreloc.c: New file, from GNU gettext.
77044
77045 2003-08-19  Jim Meyering  <jim@meyering.net>
77046
77047         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77048         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77049
77050 2003-08-19  Bruno Haible  <bruno@clisp.org>
77051
77052         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77053         more.
77054
77055 2003-08-19  Bruno Haible  <bruno@clisp.org>
77056
77057         * lib/xstrdup.c: Assume <string.h> exists.
77058
77059 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77060
77061         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77062         in makefile rules.
77063
77064 2003-08-18  Jim Meyering  <jim@meyering.net>
77065
77066         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77067         * m4/lib-ld.m4: Likewise.
77068
77069 2003-08-18  Jim Meyering  <jim@meyering.net>
77070
77071         * lib/setenv.h: Indent nested cpp directive.
77072         * lib/vasnprintf.c: Remove trailing blanks.
77073
77074 2003-08-17  Simon Josefsson  <jas@extundo.com>
77075
77076         * modules/xstrndup: New file.
77077         * MODULES.html.sh (func_all_modules): Add xstrndup.
77078
77079 2003-08-17  Simon Josefsson  <jas@extundo.com>
77080
77081         * modules/argp: Fix autoconf macro name. Add more dependencies.
77082
77083 2003-08-17  Simon Josefsson  <jas@extundo.com>
77084
77085         * m4/xstrndup.m4: New file.
77086
77087 2003-08-17  Simon Josefsson  <jas@extundo.com>
77088
77089         * m4/argp.m4: New file.
77090
77091 2003-08-17  Simon Josefsson  <jas@extundo.com>
77092             Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/xstrndup.h: New file.
77095         * lib/xstrndup.c: New file.
77096
77097 2003-08-17  Bruno Haible  <bruno@clisp.org>
77098
77099         * modules/strndup (Files, Include): Add lib/strndup.h.
77100
77101 2003-08-17  Bruno Haible  <bruno@clisp.org>
77102
77103         * modules/euidaccess (Files): Add lib/euidaccess.h.
77104
77105 2003-08-17  Bruno Haible  <bruno@clisp.org>
77106
77107         * lib/strndup.h: New file.
77108
77109 2003-08-17  Bruno Haible  <bruno@clisp.org>
77110
77111         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77112         like AC_GNU_SOURCE.
77113         * modules/extensions (configure.ac): Comment out the invocation of
77114         gl_USE_SYSTEM_EXTENSIONS.
77115
77116 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77117
77118         Merges from coreutils, etc.
77119         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77120         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77121         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77122         fixing a typo.
77123         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77124         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77125
77126 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77127
77128         Document merge from coreutils.
77129         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77130         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77131         * modules/utime: Add m4/utimes-null.m4.
77132
77133 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77134
77135         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77136         space, undoing this 2003-08-12 change:
77137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77138
77139 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77140
77141         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77142         strtoul.c from libc, undoing this 2003-08-12 change:
77143         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77144
77145 2003-08-16  Jim Meyering  <jim@meyering.net>
77146
77147         Merges from coreutils.
77148         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77149         prefix.  Adjust cache variables similarly.  Create 500 rather than
77150         just 300 files, to exercise bug on Darwin6.5, too.
77151         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77152         $missing_dir.
77153         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77154         AM_SYS_POSIX_TERMIOS.
77155         Reported by mkc@mathdogs.com.
77156         Also change use of $am_cv_sys_posix_termios
77157         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77158         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77159         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77160         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77161         in /proc/mounts until it finds one with matching device number.  This
77162         is unnecessary when the FILE argument *is* a mount point.  No stat call
77163         is necessary in that case.  So, disable the statvfs-testing code on
77164         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77165         as RedHat bug# 84846.
77166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77167         to 1MB, so as not to render systems with no stack size limit (e.g.,
77168         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77169         Include <unistd.h>.  On some systems,
77170         it is required for the definition of _SC_PAGESIZE.
77171
77172 2003-08-16  Jim Meyering  <jim@meyering.net>
77173
77174         Merge from coreutils.
77175         * lib/xstrtoimax.c: #else #if -> #elif.
77176         * lib/xstrtoumax.c: Likewise.
77177
77178 2003-08-16  Jim Meyering  <jim@meyering.net>
77179
77180         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77181         * m4/utimes.m4: Removed.
77182         * m4/utimes-null.m4: Renamed from utimes.m4.
77183
77184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77185         to 1MB, so as not to render systems with no stack size limit (e.g.,
77186         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77187         Include <unistd.h>.  On some systems,
77188         it is required for the definition of _SC_PAGESIZE.
77189
77190 2003-08-16  Jim Meyering  <jim@meyering.net>
77191         and Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         Merges from coreutils, etc.
77194
77195         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77196         using the latest version from cvs.  This avoids problems with #line
77197         directives using a vendor (Sun) compiler.
77198         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77199         Don't set GETGROUPS_LIB here; now it's
77200         done via getgroups.m4's wrapper function.
77201         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77202         rather than just in sh-util/configure.in, so that the
77203         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77204         same.
77205         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77206         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77207         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77208         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77209         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77210         Remove code that is now done by the newly-required macros.
77211         Append $(EXEEXT) to DF_PROG.
77212         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77213         Do not invoke or require the following here,
77214         since prereq.m4 or some gnulib .m4 now does this for us:
77215         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77216         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77217         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77218         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77219         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77220         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77221         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77222         AC_FUNC_OBSTACK.
77223         Do not replace the following functions, as this is now the job
77224         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77225         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77226         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77227         atexit getpass, strdup, getpagesize.
77228         Replace 'raise'.
77229         Do not check for the following functions, as this is now the job
77230         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77231         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77232         setregid.
77233         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77234         Check for sys/sysctl.h.
77235         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77236         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77237         of checking for ssize_t ourselves.
77238
77239         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77240         Require every macro that gnulib/modules/* suggests for us.
77241         (jm_PREREQ_ADDEXT): New macro.
77242         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77243         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77244
77245         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77246         (gl_PHYSMEM): Use it.
77247         Also check for `table' function.
77248         Check for new headers and functions.
77249         Add check for sys/sysmp.h.
77250         With suggestions from Kaveh Ghazi.
77251         Ignore headers that are present but cannot be compiled.  This
77252         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77253         C 5.4.
77254
77255 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77256
77257         Document merge from coreutils.
77258         * modules/userspec: Depend on posixver.
77259         * modules/strftime: Depend on tzset.
77260
77261 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77262
77263         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77264         rather than tab, after '#' in shell-script copyright notices.
77265         Suggested by Bruno Haible.
77266
77267 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77268
77269         * config/srclist-update: Use three spaces, rather than tab, after '#'
77270         in shell-script copyright notices.  Suggested by Bruno Haible.
77271         Remove unnecessary parenthesization in regular expression.
77272
77273 2003-08-15  Jim Meyering  <jim@meyering.net>
77274
77275         Merge from coreutils.
77276         * lib/xgethostname.c: Include <stdlib.h>.
77277         (xghostname): Don't exit for anything other than memory-related
77278         failure; just return NULL.
77279         * lib/userspec.c: Include "posixver.h".
77280         (parse_user_spec): Accept `.' as a separator only
77281         in pre-POSIX-200112 mode.
77282         * lib/strtoimax.c: Use #elif rather than #else #if.
77283         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77284         Remove function, now that we can rely on a working tzset function.
77285         [!_LIBC]: Ensure that the required autoconf test has been run.
77286         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77287         Use underlying_strftime for %r.
77288         * lib/sha.c: Merge in some clean-up and optimization changes from
77289         glibc.
77290         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77291         Ensure that it is a multiple of 64.
77292         Rearrange loop exit tests so as to avoid performing an
77293         additional fread after encountering an error or EOF.
77294         * lib/realloc.c: Update copyright date.
77295
77296 2003-08-15  Jim Meyering  <jim@meyering.net>
77297         and Paul Eggert  <eggert@twinsun.com>
77298
77299         Merge from coreutils.
77300         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77301         member but strut utmpx does not.  Needed for AIX 4.3.3.
77302         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77303
77304 2003-08-15  Jim Meyering  <jim@meyering.net>
77305         and Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         Merges from coreutils, etc.
77308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77309         Require gl_FUNC_TZSET_CLOBBER.
77310         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77311         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77312         members.
77313
77314 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77315
77316         Help the merge from coreutils.
77317         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77318         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77319         * m4/tzset.m4: Use it too.
77320
77321 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77322
77323         * modules/tzset: New file.
77324
77325 2003-08-14  Jim Meyering  <jim@meyering.net>
77326
77327         Merges from coreutils.
77328         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77329         variable names, rather than @FNMATCH_H@.
77330         * modules/alloca: Likewise for $(ALLOCA_H).
77331
77332         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77333         the three copies of the literal target, `fnmatch.h'.
77334         * modules/alloca (alloca.h): Likewise.
77335
77336 2003-08-14  Jim Meyering  <jim@meyering.net>
77337
77338         Merge from coreutils.
77339         * m4/tzset.m4: New file.
77340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77341         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77342         otherwise, AIX 5.1 systems would end up using the latter.
77343         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77344         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77345         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77346         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77347
77348 2003-08-14  Jim Meyering  <jim@meyering.net>
77349
77350         Merge from coreutils.
77351         * lib/obstack.h: Whitespace changes.
77352         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77353         and xcalloc return values.
77354         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77355         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77356         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77357         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77358         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77359         error from mntctl.
77360         Use mntctl's return value to drive the entry-processing loop, since
77361         we can't rely on the value of the vmt_length member in the last
77362         entry.  On some systems doing so could result in exhausting
77363         virtual memory.  Based in part on a patch from Mike Jetzer.
77364
77365 2003-08-14  Jim Meyering  <jim@meyering.net>
77366         and Paul Eggert  <eggert@twinsun.com>
77367
77368         Merges from coreutils, plus other fixes.
77369         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77370         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77371         for credits and details.  Thanks to Kaveh Ghazi for helping
77372         to keep these files in sync.
77373         (ARRAY_SIZE): Define it.
77374         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77375         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77376         (memcasecmp): Don't assume size_t fits in unsigned int.
77377         Remove casts and duplicate code.
77378         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77379         (memcpy): Remove definition.
77380         Merge in some clean-up and optimization changes from glibc.
77381         [BLOCKSIZE]: Move definition to top of file.
77382         Ensure that it is a multiple of 64.
77383         Rearrange loop exit tests so as to avoid performing an
77384         additional fread after encountering an error or EOF.
77385         * lib/md5.h (md5_uintptr): Define.
77386         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77387         return to the initial working directory.  Preserve errno
77388         for caller.
77389         * lib/idcache.c: Include "xalloc.h".
77390         (xmalloc, xrealloc): Remove decls.
77391         (getuser): Remove casts no longer required in C89.
77392         * lib/human.c: Include stdio.h, for sprintf.
77393         * lib/group-member.c: Include "xalloc.h".
77394         (xmalloc, xrealloc): Remove decls.
77395         (get_group_info): Remove casts no longer required in C89.
77396         * lib/getusershell.c (readname): Remove casts no longer required in
77397         C89.
77398         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77399         * lib/getline.c: Whitespace fix, from coreutils.
77400
77401 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77402
77403         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77404         Check for isascii.
77405
77406         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77407         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77408         Undo previous (whitespace-only) change.
77409
77410 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77411
77412         * lib/exclude.c: Include <ctype.h>
77413         (IN_CTYPE_DOMAIN): New macro.
77414         (is_space): New fn.
77415         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77416         and empty lines.
77417
77418         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77419         Undo previous (whitespace-only) change.
77420
77421 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77422
77423         * config/srclist-update: Change update back to the old behavior,
77424         leaving whitespace alone.  Use one 'sed' command rather than a
77425         pipeline.
77426         (fixlicense): Now a variable, not a function.
77427         (remove_trailing_blanks): Remove.
77428         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77429         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77430         Undo previous (whitespace-only) change.
77431
77432 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77433
77434         Merge from coreutils.
77435         * modules/euidaccess: Add lib_SOURCES, include for new
77436         file euidaccess.h
77437
77438 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77439
77440         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77441         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77442         Normalize leading white space and remove trailing white space.
77443
77444         Merge from coreutils
77445         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77446
77447         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77448         0.12.1.  These files are now being upgraded automatically by
77449         ../config/srclist-update.
77450
77451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77452
77453         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77454         Normalize leading white space and remove trailing white space.
77455         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77456         notice, as per ../config/srclist-update.
77457
77458         Merge from coreutils.
77459         * lib/euidaccess.h: New file.
77460         * lib/euidaccess.c: Include it.
77461         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77462         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77463         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77464
77465 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77466
77467         * config/srclist-update: Add copyright notice.
77468         (remove_id_lines, remove_trailing_blanks): New constants.
77469         (fixfile): Use them to normalize spacing a bit in copied files.
77470         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77471         Normalize leading white space and remove trailing white space.
77472
77473         * config/texinfo.tex: Sync with texinfo.
77474
77475         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77476         strtoul.c from libc, to merge coreutils whitespace changes.
77477
77478         * config/srclist.txt: Get the following m4 files from gettext:
77479         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77480         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77481         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77482         wint_t.m4.
77483
77484 2003-08-12  Karl Berry  <karl@gnu.org>
77485
77486         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77487         been made.
77488
77489 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77490
77491         * modules/gnu-source, m4/gnu-source.m4:
77492         Remove; we're assuming Autoconf 2.54 or later now.
77493         Suggested by Bruno Haible.
77494         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77495
77496 2003-08-11  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77499
77500 2003-08-11  Bruno Haible  <bruno@clisp.org>
77501
77502         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77503         (vasnprintf): Use it instead of wcslen.
77504
77505 2003-08-11  Bruno Haible  <bruno@clisp.org>
77506
77507         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77508         value to ensure that _Bool promotes to int. Use #define for _Bool when
77509         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77510
77511 2003-08-10  Karl Berry  <karl@gnu.org>
77512
77513         * lib/regex.h: update from libc (whitespace fix).
77514
77515 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77516
77517         Merge some files from coreutils.  These changes were
77518         originally made by Jim Meyering.
77519         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77520         many older Unixes require this.
77521         * lib/alloca.c (alloca): Remove cast to argument of free;
77522         no longer needed in C89.
77523         * lib/alloca_.h, regex.h: Fix white space to match
77524         what GNU indent does.
77525
77526 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77527
77528         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77529         apparently Emacs's Unicode mode got confused before my 2003-08-05
77530         checkin.
77531
77532 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77533
77534         * m4/extensions.m4: New file.
77535         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77536         Require gl_USE_SYSTEM_EXTENSIONS.
77537         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77538         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77539
77540 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77541
77542         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77543         * modules/extensions, modules/gnu-source: New files.
77544         * modules/timespec, modules/unlocked-io: Depend on extensions.
77545
77546 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77547
77548         * modules/restrict: New file.
77549         * MODULES.html.sh (func_all_modules): Add restrict.
77550         * modules/regex: Depend on restrict.
77551
77552 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77553
77554         * m4/restrict.m4: New file.
77555         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77556
77557 2003-08-07  Bruno Haible  <bruno@clisp.org>
77558
77559         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77560         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77561
77562 2003-08-07  Bruno Haible  <bruno@clisp.org>
77563
77564         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77565         makes the module 'getndelim2' compatible with the module 'getline'.
77566
77567 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77568
77569         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77570         byte with "\201" to avoid glitches when editing that source file
77571         with multi-gnome-terminal.
77572
77573 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77574
77575         * lib/bumpalloc.h: Remove.
77576
77577 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77578
77579         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77580         * modules/bumpalloc: Remove.
77581
77582 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77583
77584         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77585         GNU coding style.
77586
77587         Merge from coreutils.
77588         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77589         1. From glibc.
77590         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77591         from Karl Berry, implemented by Jim Meyering.
77592         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77593         from Dmitry V. Levin.
77594         Remove anachronistic cast of xrealloc.
77595         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77596         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77597         type. Otherwise, it wouldn't compile with at least /bin/cc on
77598         ymp-cray-unicos9.0.2.X.
77599         Combine two mostly-identical uses of alloca into one.
77600         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77601
77602 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77603
77604         [From Emacs.]
77605
77606         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77607         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77608         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77609         obsolete NLIST_NAME_UNION.
77610         [__GNU__]: Undef BSD and FSCALE.
77611         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77612
77613 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77614
77615         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77616         an enum type, so that it's guaranteed to promote to int.  See:
77617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77618
77619 2003-08-03  Karl Berry  <karl@gnu.org>
77620
77621         * config/depcomp: update from automake.
77622
77623 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77624
77625         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77626         (strerror): Don't assume that a printable int fits in 14 bytes.
77627
77628 2003-07-31  Bruno Haible  <bruno@clisp.org>
77629
77630         * modules/getpass-gnu: New file.
77631         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77632
77633 2003-07-31  Bruno Haible  <bruno@clisp.org>
77634
77635         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77636
77637 2003-07-24  Karl Berry  <karl@gnu.org>
77638
77639         * config/missing: update from automake.
77640
77641 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77642             Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77645         * lib/getline.c (getline, getdelim): Likewise.
77646         Remove _GNU_SOURCE define; now it's defined in config.h through
77647         m4/getline.m4.
77648
77649 2003-07-23  Karl Berry  <karl@gnu.org>
77650
77651         * config/config.sub: update from prep.
77652
77653 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77654
77655         * modules/xalloc (Depends-on): Add exitfail.
77656         * modules/xmemcoll: Likewise.
77657
77658 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77659
77660         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77661         over-parenthesization in macros.
77662
77663         Sync with coreutils.
77664
77665         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77666         required by C99.
77667
77668         Use `exit_failure' for xalloc and xmemcoll instead of their own
77669         private exit-failure variables.
77670         * lib/xalloc.h (xalloc_exit_failure): Remove.
77671         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77672         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77673         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77674         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77675         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77676
77677 2003-07-20  Jim Meyering  <jim@meyering.net>
77678
77679         * modules/closeout (Depends-on): Add exitfail.
77680         Suggestion from Bruno Haible.
77681
77682 2003-07-19  Karl Berry  <karl@gnu.org>
77683
77684         * config/config.sub: update from prep.
77685
77686 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77687
77688         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77689         Remove.
77690         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77691         to test that it can stand by itself.  Include "exitfail.h".
77692         Clients should set exit_failure instead.
77693         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77694
77695 2003-07-18  Bruno Haible  <bruno@clisp.org>
77696
77697         * modules/getndelim2: New file.
77698         * modules/getline: Share files with module getndelim2.
77699         * modules/getnline: Depend on getndelim2 instead of sharing files with
77700         it. Add getnline.c to lib_SOURCES.
77701         * MODULES.html.sh (func_all_modules): Add getndelim2.
77702
77703 2003-07-18  Bruno Haible  <bruno@clisp.org>
77704
77705         * m4/getndelim2.m4: New file.
77706         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77707         invoke gl_PREREQ_GETNDELIM2.
77708         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77709         gl_PREREQ_GETNDELIM2.
77710         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77711         gl_GETNDELIM2.
77712
77713 2003-07-18  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/getndelim2.h: New file.
77716         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77717         getndelim2.h.
77718         (getndelim2): Make non-static. Change return type to ssize_t.
77719         * lib/getline.h: Change argument names.
77720         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77721         * lib/getnline.c: Include getndelim2.h.
77722
77723 2003-07-18  Andreas Schwab  <schwab@suse.de>
77724
77725         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77726
77727 2003-07-17  Karl Berry  <karl@gnu.org>
77728
77729         * config/config.sub: update from prep.
77730
77731 2003-07-17  Bruno Haible  <bruno@clisp.org>
77732
77733         * modules/getnline: New file.
77734         * modules/getline: Add lib/getndelim2.c to source file list.
77735         * MODULES.html.sh (func_all_modules): Add getnline.
77736
77737 2003-07-17  Bruno Haible  <bruno@clisp.org>
77738
77739         * m4/getnline.m4: New file.
77740
77741 2003-07-17  Bruno Haible  <bruno@clisp.org>
77742
77743         * m4/Makefile.am.in: Remove file.
77744         * m4/Makefile.am: Remove file.
77745         * m4/Makefile.in: Remove file.
77746
77747 2003-07-17  Bruno Haible  <bruno@clisp.org>
77748
77749         * lib/getnline.h: New file.
77750         * lib/getnline.c: New file.
77751         * lib/getndelim2.c: New file, extracted from getline.c.
77752         (getndelim2): Renamed from getdelim2, with added nmax argument.
77753         * lib/getline.c: Include getndelim2.c.
77754         (getdelim2): Moved out to getndelim2.c.
77755         (getline, getdelim): Update.
77756
77757 2003-07-17  Bruno Haible  <bruno@clisp.org>
77758
77759         * lib/Makefile.am: Remove file.
77760         * lib/Makefile.in: Remove file.
77761
77762 2003-07-17  Bruno Haible  <bruno@clisp.org>
77763
77764         * configure.in: Remove file.
77765         * Makefile.in: Remove file.
77766
77767 2003-07-17  Bruno Haible  <bruno@clisp.org>
77768
77769         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77770
77771 2003-07-16  Karl Berry  <karl@gnu.org>
77772
77773         * config/srclist-update: was running fixlicense twice, which caused
77774                 texinfo.tex to be nullified for some reason.  Simplify,
77775                 $gplsrc is no longer needed as far as I can see?
77776
77777 2003-07-16  Jim Meyering  <jim@meyering.net>
77778
77779         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77780
77781 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77782
77783         * config/srclist.txt: Get the following files from gettext-runtime/intl
77784         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77785         ref-del.sin.  From Bruno Haible.
77786         * config/srclist-update (fixfile): Change grep pattern again, since the
77787         previous fix didn't work (there was another trailing $).  Use
77788         '[$]' to escape the $s.
77789
77790 2003-07-15  Karl Berry  <karl@gnu.org>
77791
77792         * lib/vasnprintf.c: update from gettext.
77793
77794 2003-07-15  Karl Berry  <karl@gnu.org>
77795
77796         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77797         gets expanded when surrounded by '$'.
77798
77799 2003-07-15  Jim Meyering  <jim@meyering.net>
77800
77801         * modules/save-cwd: Don't depend on error.  From Derek Price.
77802
77803 2003-07-15  Jim Meyering  <jim@meyering.net>
77804
77805         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77806
77807 2003-07-14  Simon Josefsson  <jas@extundo.com>
77808
77809         * modules/mempcpy: New file.
77810         * MODULES.html.sh (func_all_modules): Add mempcpy.
77811
77812 2003-07-14  Simon Josefsson  <jas@extundo.com>
77813
77814         * m4/mempcpy.m4: New file.
77815
77816 2003-07-14  Simon Josefsson  <jas@extundo.com>
77817
77818         * lib/mempcpy.h: New file.
77819         * lib/mempcpy.c: New file.
77820
77821 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77822
77823         * modules/getdate, modules/posixtm: Depend on mktime.
77824
77825 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77826
77827         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77828         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77829         unicodeio.c, unicodeio.h, unlocked-io.h:
77830         Switch from LGPL to GPL.
77831
77832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77833
77834         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77835         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77836         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77837         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77838         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77839         updated automatically by ../config/srclist-update.  This changes
77840         their license from LPGL to GPL.
77841
77842 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77843
77844         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77845         assumed to refer to the root of the most recent stable gettext version.
77846         * config/srclistvars.sh: Add defaults for eggert.
77847         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77848         Match "This program" as well as "The program".  This is needed
77849         for gettext.
77850
77851 2003-07-14  Jim Meyering  <jim@meyering.net>
77852
77853         Don't emit diagnostics.  Let callers do that.
77854         * lib/save-cwd.c: Don't include "error.h".
77855         (save_cwd): Don't call error.  Ensure that errno is valid
77856         when returning nonzero.
77857
77858         * lib/save-cwd.h (restore_cwd): Update prototype.
77859         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77860         Simplify.  Don't call error upon failure.  Let callers do that.
77861         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77862         when auditing is enabled.  But don't bother updating the #if.
77863
77864 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77865
77866         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77867         it breaks C++ compilation.
77868         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77869
77870 2003-07-10  Simon Josefsson  <jas@extundo.com>
77871
77872         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77873
77874 2003-07-10  Jim Meyering  <jim@meyering.net>
77875
77876         * m4/clock_time.m4: Remove trailing blank.
77877         * m4/intmax_t.m4: Likewise.
77878
77879 2003-07-10  Jim Meyering  <jim@meyering.net>
77880
77881         * lib/vasnprintf.c: Remove trailing blanks.
77882         Make cpp indentation consistent.
77883
77884 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77885
77886         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77887         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77888         Switch from LGPL to GPL.
77889
77890 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77891
77892         * config/srclist.txt: Sort sublists.  Add
77893         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77894         that differ from gnulib for one reason or another; we'd like this list
77895         to be smaller but for now let's document what we have.
77896
77897 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77898
77899         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77900         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77901         and sweeter "eval x=$x".
77902         * config/srclist.txt: Get lib/argp* from glibc.
77903
77904 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77905
77906         * lib/mktime.c: Fix some boundary cases and remove need for floating
77907         point.
77908
77909         Issue a compile-time diagnostic if time_t is floating point, or if
77910         two's complement arithmetic is not in effect, or if arithmetic
77911         right shift does not propagate the sign.  These assumptions were
77912         all in the original code but they weren't checked.
77913
77914         (TIME_T_MIDPOINT, verify): New macros.
77915         (__isleap): Remove; it has integer overflow problems.
77916         (leapyear): New function, without those problems.
77917         (ydhms_tm_diff): Remove; splitting into two parts.
77918         (ydhms_diff): New function, containing the arithmetic part of
77919         the old ydhms_tm_diff function.  Issue a compile-time
77920         diagnostic if we are not using C99 integer division.
77921         Avoid casts when possible.
77922         (guess_time_tm): New function, containing the checking part of
77923         the old ydhms_tm_diff function.  Return the new value, rather than
77924         the difference between it and the old.  Accept a new argument T
77925         so that *T specifies the old value.  Check for overflow in the result.
77926
77927         (__mktime_internal): Use a time_t offset, not a long int offset.
77928         This undoes the 2003-06-04 change, which is no longer needed now
77929         that we have better overflow checking.
77930         (localtime_offset): Likewise.
77931
77932         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77933         and long are 64-bit but int is only 32-bit.
77934         (ydhms_diff): Use long int to store year1 and yday1.
77935         Issue a compile-time diagnostic if long int is not wide enough.
77936
77937         (__mktime_internal): Use long int to store adjusted year and yday.
77938         Use plain C rather than preprocessor commands, if that doesn't
77939         affect efficiency.
77940         Check for overflow (and try to repair) after each probe
77941         rather than checking only at the very end.  This avoids some bugs
77942         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77943         does not equal GMT offset at maximum time).
77944         Use integer to check for overflow rather than floating point; this
77945         is more portable to non-IEEE hosts, and is a tad faster.
77946         When we detect that we are oscillating between two values,
77947         don't check whether tm_isdst has the requested value, since
77948         we already know the answer.  When tm_isdst has the wrong value,
77949         use a different heuristic to find the right one, based on the
77950         extreme values actually observed in practice in tz2003a,
77951         rather than the (overly optimistic) "previous 3 calendar quarters".
77952
77953         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77954         "T const" to accommodate glibc style.
77955         (check_result): Use less-confusing report format.  "long" -> "long int.
77956         (main): Likewise.
77957         Don't loop if the iteration overflows time_t.
77958         Allow a negative step in the iteration.
77959
77960 2003-07-06  Karl Berry  <karl@gnu.org>
77961
77962         * config/depcomp: update from automake.
77963         * config/config.sub: update from prep.
77964
77965 2003-07-03  Karl Berry  <karl@gnu.org>
77966
77967         * config/config.guess: update from prep.
77968
77969 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77970
77971         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77972         xreadlink.c now includes it unconditionally.
77973
77974 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77975
77976         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77977         having it depend on HAVE_SYS_TYPES_H.
77978
77979 2003-07-01  Bruno Haible  <bruno@clisp.org>
77980
77981         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77982         <sys/types.h> should be sufficient.
77983         Reported by Paul Eggert.
77984
77985 2003-06-26  Karl Berry  <karl@gnu.org>
77986
77987         * config/depcomp: update from automake.
77988
77989 2003-06-26  Bruno Haible  <bruno@clisp.org>
77990
77991         * modules/human: Depend on module stdbool.
77992
77993 2003-06-25  Bruno Haible  <bruno@clisp.org>
77994
77995         * modules/readlink: New file.
77996         * modules/xreadlink: Depend on it.
77997         * MODULES.html.sh (func_all_modules): Add readlink.
77998
77999 2003-06-25  Bruno Haible  <bruno@clisp.org>
78000
78001         * m4/readlink.m4: New file.
78002
78003 2003-06-25  Bruno Haible  <bruno@clisp.org>
78004
78005         * lib/readlink.c: New file.
78006
78007 2003-06-22  Karl Berry  <karl@gnu.org>
78008
78009         * config/srclist.txt: update mkinstalldirs from automake.
78010         * config/mkinstalldirs: update.
78011
78012 2003-06-22  Bruno Haible  <bruno@clisp.org>
78013
78014         Portability to mingw32.
78015         * m4/ssize_t.m4: New file, from GNU gettext.
78016         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78017         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78018
78019 2003-06-22  Bruno Haible  <bruno@clisp.org>
78020
78021         * modules/safe-read: Add m4/ssize_t.m4.
78022         * modules/xreadlink: Add m4/ssize_t.m4.
78023
78024 2003-06-20  Bruno Haible  <bruno@clisp.org>
78025
78026         Assume C89, so PARAMS isn't needed.
78027         * lib/unicodeio.h (PARAMS): Remove.
78028         * lib/unicodeio.c: Don't use PARAMS.
78029
78030 2003-06-18  Karl Berry  <karl@gnu.org>
78031
78032         * config/config.{guess,sub}: update from prep.
78033
78034 2003-06-18  Jim Meyering  <jim@meyering.net>
78035
78036         Merge changes from coreutils.
78037         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78038         Remove explicit declarations of xmalloc and realloc.
78039         Include xalloc.h.
78040         (read_utmp): Remove anachronistic cast of xmalloc.
78041
78042 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78043
78044         Assume C89, so PARAMS isn't needed.
78045         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78046         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78047         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78048         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78049         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78050         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78051         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78052         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78053         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78054         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78055         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78056         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78057         no longer needed. Anyway, config.h should always be included before any
78058         other file.
78059
78060 2003-06-11  Simon Josefsson  <jas@extundo.com>
78061
78062         * modules/sysexits: New file.
78063         * MODULES.html.sh (func_all_modules): Add sysexits.
78064
78065 2003-06-11  Simon Josefsson  <jas@extundo.com>
78066
78067         * lib/sysexit_.h: New file.
78068
78069 2003-06-11  Derek Price  <derek@ximbiot.com>
78070
78071         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78072         necessary.
78073
78074 2003-06-11  Bruno Haible  <bruno@clisp.org>
78075
78076         * m4/sysexits.m4: New file.
78077
78078 2003-06-10  Simon Josefsson  <jas@extundo.com>
78079
78080         * lib/argp.h: New file, from glibc.
78081         * lib/argp-ba.c: New file, from glibc.
78082         * lib/argp-eexst.c: New file, from glibc.
78083         * lib/argp-fmtstream.c: New file, from glibc.
78084         * lib/argp-fmtstream.h: New file, from glibc.
78085         * lib/argp-fs-xinl.c: New file, from glibc.
78086         * lib/argp-help.c: New file, from glibc.
78087         * lib/argp-namefrob.h: New file, from glibc.
78088         * lib/argp-parse.c: New file, from glibc.
78089         * lib/argp-pv.c: New file, from glibc.
78090         * lib/argp-pvh.c: New file, from glibc.
78091         * lib/argp-xinl.c: New file, from glibc.
78092
78093 2003-06-10  Simon Josefsson  <jas@extundo.com>
78094
78095         * modules/strchrnul: New file.
78096
78097 2003-06-10  Simon Josefsson  <jas@extundo.com>
78098
78099         * modules/argp: New file.
78100
78101 2003-06-10  Simon Josefsson  <jas@extundo.com>
78102
78103         * m4/strchrnul.m4: New file.
78104
78105 2003-06-10  Simon Josefsson  <jas@extundo.com>
78106
78107         * lib/strchrnul.h: New file.
78108         * lib/strchrnul.c: New file.
78109
78110 2003-06-10  Bruno Haible  <bruno@clisp.org>
78111
78112         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78113
78114 2003-06-07  Karl Berry  <karl@gnu.org>
78115
78116         * config/config.{guess,sub}: update from prep.
78117
78118 2003-06-07  Jim Meyering  <jim@meyering.net>
78119
78120         * modules/strtod: Use $(...) notation, not @...@ for
78121         AC_REPLACE'd variables.
78122         * modules/localcharset: Likewise.
78123
78124 2003-06-07  Jim Meyering  <jim@meyering.net>
78125
78126         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78127         in place of my name in the copyright comment.
78128         Remove definition and uses of __P.
78129
78130         From coreutils.
78131         * lib/stat.c: Don't declare xmalloc explicitly.
78132         Instead, include "xalloc.h".
78133         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78134         xrealloc, and xcalloc return values.
78135         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78136         Improve comment.
78137         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78138
78139 2003-06-07  Bruno Haible  <bruno@clisp.org>
78140
78141         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78142         avoid AC_CONFIG_LINKS.
78143         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78144         fnmatch.h, to avoid AC_CONFIG_LINKS.
78145         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78146
78147 2003-06-07  Bruno Haible  <bruno@clisp.org>
78148
78149         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78150         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78151         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78152         directory.
78153         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78154         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78155         directory.
78156
78157 2003-06-06  Jim Meyering  <jim@meyering.net>
78158
78159         Merge from coreutils.
78160         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78161         Consolidate declarations and initializations of *_base* locals.
78162
78163         Merge from coreutils.
78164         This avoids a core dump on systems without GNU putenv,
78165         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78166         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78167         (unsetenv): New static function, from GNU libc.
78168         (rpl_putenv): Use it.
78169
78170         * lib/modechange.c: Remove trailing blanks.
78171
78172         Merge from coreutils.
78173         * lib/fsusage.c: Remove declaration of statfs.
78174         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78175
78176         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78177
78178 2003-06-06  Jim Meyering  <jim@meyering.net>
78179
78180         * lib/stdbool_.h: Renamed from stdbool.h.in.
78181
78182 2003-06-06  Jim Meyering  <jim@meyering.net>
78183             Bruno Haible  <bruno@clisp.org>
78184
78185         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78186         Adjust Makefile.am snippet not to redirect directly to target.
78187         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78188
78189 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78190
78191         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78192         mismatch, look in future quarters as well as past.  This fixes a
78193         bug when processing fall-backwards gaps immediately after a long
78194         period of daylight-saving time.
78195
78196         * lib/mktime.c: Assume freestanding C89 or better.
78197         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78198         (__P): Remove; not used.
78199         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78200         (mktime, not_equal_tm, print_tm, check_result,
78201         main): Use prototypes.  Use const * where appropriate.
78202         (main): Fix typo in testing code that uncovered by above changes.
78203         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78204
78205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78206
78207         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78208         locale.h, localeconv.  This merges changes from coreutils.
78209
78210         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78211         It can be removed after the next Autoconf is released.
78212         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78213         needed.
78214
78215 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78216
78217         * lib/mktime.c: Fix Debian bug 177940
78218         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78219         (localtime_offset): Now long int, not time_t, because we want it
78220         to be guaranteed to be signed.  All uses changed.
78221         (__mktime_internal): If overflow would occur when adding offset,
78222         don't add it.
78223
78224         Merge 'human' changes from coreutils.  Rewrite to support
78225         locale-specific notations like thousands separators.
78226         * lib/human.c: Simplify authorship notice.
78227         Include human.h immediately after config.h.
78228         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78229         <limits.h>: Do not include, since human.h does.
78230         (SIZE_MAX, UINTMAX_MAX): New macros.
78231         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78232         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78233         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78234         (power_letter): Renamed from suffixes.
78235         (generate_suffix_backwards): Remove.
78236         (adjust_value): Now takes int style (because of human.h changes)
78237         and long double value (for greater precision on some platforms).
78238         (group_number): New function.
78239         (human_readable): Use it.  Use integer options, not enum.
78240         Put the options before the sizes in the arg list.
78241         Support all the new options.
78242         The old human_readable function has been removed;
78243         use inttostr.h instead.
78244         (human_readable, default_block_size, humblock):
78245         Use uintmax_t, not int, for block sizes.
78246         (human_readable_inexact, block_size_types): Remove.
78247         (block_size_opts): New constant.
78248         (human_options): Renamed from human_block_size, with new signature
78249         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78250         * lib/human.h: Add copyright and authorship notice.
78251         Include <limits.h> and <stdbool.h> unconditionally.
78252         (PARAMS): Remove.  All uses removed.
78253         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78254         (enum human_inexact_style): Remove tag; now a nameless enum.
78255         (human_floor, human_ceiling, human_round_to_even): Now have
78256         values 2, 0, 1 rather than -1, 1, 0.
78257         (human_group_digits, human_suppress_point_zero, human_autoscale,
78258         human_base_1024, human_SI, human_B): New constants.
78259         (human_readable_inexact, human_block_size): Remove.
78260         (human_readable): Size args are now uintmax_t, not int.
78261         (human_options): New decl.
78262
78263         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78264         unnecessary now that we assume C89 or better.  This change
78265         imported from coreutils.
78266
78267         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78268         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78269         in the 2003-05-30 sync from glibc.
78270
78271         .h files should stand alone, but we shouldn't include <sys/types.h>
78272         if we can get away with just <stddef.h>.
78273
78274         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78275         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78276         rather than <sys/types.h>, as we merely need size_t.
78277         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78278         to get size_t.
78279         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78280         Include <stdio.h>, to get FILE.
78281         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78282         memcasecmp.h has included <stddef.h> and all we need is size_t.
78283         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78284         our interface, instead of including <sys/types.h>
78285
78286 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78287
78288         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78289         now, as glibc mktime is buggy on non-glibc systems.
78290
78291 2003-06-03  Karl Berry  <karl@gnu.org>
78292
78293         * config/config.sub: update from prep.
78294
78295 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78296
78297         [from coreutils]
78298         Fix some minor time-related bugs with POSIX time arguments.
78299         Some valid time stamps were being rejected (notably -1, and
78300         time stamps before 1900 on 64-bit hosts).  And some invalid
78301         time stamps were being accepted, e.g. September 31.
78302
78303         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78304         that we can return (time_t) -1 successfully.
78305         * lib/posixtm.c: Likewise.
78306         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78307         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78308         (t): Remove static var.
78309         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78310         of static var.  All uses changed.
78311         (year): Do not reject years before 1900; they can occur with
78312         64-bit time_t.
78313         (posix_time_parse): Do not check for out-of-range components;
78314         that is now the caller's responsibility, since our checks were
78315         only approximations.
78316         (posixtime): Use mktime to check for out-of-range components,
78317         since it knows them exactly.
78318         If mktime returns (time_t) -1, check whether an error actually occurred
78319         by invoking localtime on -1.
78320         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78321         posixtime failures better.
78322         Improve the test data (in comments only).
78323
78324 2003-06-02  Karl Berry  <karl@gnu.org>
78325
78326         * config/mkinstalldirs (version): new variable.
78327         (--version): new option.
78328         (usage): improve message.
78329
78330 2003-05-30  Karl Berry  <karl@gnu.org>
78331
78332         * lib/mktime.c: update from libc.
78333
78334 2003-05-30  Bruno Haible  <bruno@clisp.org>
78335
78336         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78337         * config/config.rpath: Upgrade to gettext-0.12.1.
78338
78339 2003-05-30  Bruno Haible  <bruno@clisp.org>
78340
78341         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78342         * m4/nls.m4: New file, from gettext-0.12.1.
78343         * m4/po.m4: New file, from gettext-0.12.1.
78344         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78345
78346 2003-05-30  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78349         * lib/localcharset.h: Likewise.
78350         * lib/localcharset.c: Likewise.
78351
78352 2003-05-29  Karl Berry  <karl@gnu.org>
78353
78354         * config/config.rpath: update from gettext.
78355
78356 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78357
78358         Assume the headers required for C89 freestanding compilers.
78359         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78360         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78361         * m4/human.m4 (gl_HUMAN): Likewise.
78362         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78363         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78364         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78365         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78366         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78367         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78368
78369 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78370
78371         Assume the headers required for C89 freestanding compilers.
78372         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78373         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78374         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78375         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78376         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78377         define, since <limits.h> is guaranteed to do that.
78378         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78379         * lib/exclude.c: Include <stdbool.h> unconditionally.
78380         * lib/tempname.c: Include <stddef.h> unconditionally.
78381         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78382         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78383         <stddef.h> does that.
78384         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78385         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78386         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78387         needed.
78388         * lib/xstrtol.c: Likewise.
78389         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78390         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78391
78392         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78393         warnings on some platforms.
78394
78395         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78396         arbitrarily.
78397
78398 2003-05-26  Jim Meyering  <jim@meyering.net>
78399
78400         Merge in a change from coreutils:
78401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78402         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78403         that condition, rather than `-1' which is slightly misleading.
78404         Change the name of the cache variable to have the gl_ prefix.
78405         Prompted by a patch from Richard Dawe for DJGPP.
78406
78407 2003-05-24  Karl Berry  <karl@gnu.org>
78408
78409         * config/config.guess: update from prep.
78410
78411 2003-05-22  Karl Berry  <karl@gnu.org>
78412
78413         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78414
78415 2003-05-20  Karl Berry  <karl@gnu.org>
78416
78417         * config/config.guess: update from prep.
78418
78419 2003-05-18  Karl Berry  <karl@gnu.org>
78420
78421         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78422         might actually be set by the user.
78423
78424         * config/depcomp, install-sh, mdate-sh: update from automake.
78425
78426 2003-05-17  Bruno Haible  <bruno@clisp.org>
78427
78428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78429         invalid expansion for AC_EGREP_CPP.
78430         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78432         Suggested by Akim Demaille <akim@epita.fr> in
78433         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78434
78435 2003-05-12  Jim Meyering  <jim@meyering.net>
78436
78437         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78438         the space-padded-by-default conversion specifiers, %e, %k, %l.
78439
78440 2003-05-12  Bruno Haible  <bruno@clisp.org>
78441
78442         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78443         the string is longer than 4 KB.
78444
78445 2003-05-11  Karl Berry  <karl@gnu.org>
78446
78447         * config/config.{guess,sub}: update from prep.
78448
78449 2003-05-09  Bruno Haible  <bruno@clisp.org>
78450
78451         * modules/error: Add m4/strerror_r.m4 to file list.
78452
78453 2003-05-03  Bruno Haible  <bruno@clisp.org>
78454
78455         Upgrade to Unicode-4.0.
78456         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78457         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78458         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78459         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78460         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78461         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78462         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78463         Change width of U+E0100..U+E01EF from 1 to 0.
78464
78465 2003-04-25  Jim Meyering  <jim@meyering.net>
78466
78467         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78468         of type size_t, not int.
78469
78470 2003-04-25  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/copy-file.c: Include <stddef.h>, for size_t.
78473
78474 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78475
78476         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78477         code which expansion is under static control.  Patch imported from
78478         Akim Demaille's patch to Bison; see
78479         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78480
78481 2003-04-14  Bruno Haible  <bruno@clisp.org>
78482
78483         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78484
78485 2003-04-11  Jim Meyering  <jim@meyering.net>
78486
78487         Merge changes from Coreutils.
78488
78489         2003-03-22  Jim Meyering  <jim@meyering.net>
78490
78491         * lib/strftime.c (widen): Cast alloca return value to proper type.
78492
78493         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78494
78495         From GNU libc.
78496         * lib/strftime.c (my_strftime): Handle very large width
78497         specifications for numeric values correctly.  Improve checks for
78498         overflow.
78499
78500         2003-01-19  Jim Meyering  <jim@meyering.net>
78501
78502         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78503         definitions.
78504         (nl_get_alt_digit) [! defined my_strftime]: Define.
78505         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78506         _nl_get_alt_digit and _nl_get_walt_digit.
78507
78508         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78509         libc. These changes have no effect outside of _LIBC.
78510
78511 2003-04-10  Bruno Haible  <bruno@clisp.org>
78512
78513         * modules/findprog: New file.
78514         * MODULES.html.sh (func_all_modules): Add it.
78515
78516 2003-04-10  Bruno Haible  <bruno@clisp.org>
78517
78518         * m4/findprog.m4: New file.
78519         * m4/eaccess.m4: New file.
78520
78521 2003-04-10  Bruno Haible  <bruno@clisp.org>
78522
78523         * lib/findprog.h: New file, from GNU gettext.
78524         * lib/findprog.c: New file, from GNU gettext.
78525
78526 2003-04-05  Jim Meyering  <jim@meyering.net>
78527
78528         Merge changes from Coreutils.
78529
78530         * lib/exclude.h (PARAMS): Remove definition and uses.
78531         * lib/exclude.c: Remove uses of `PARAMS'.
78532
78533         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78534         Add test-cases for DOS filenames. Declare program_name.
78535         (main): Set up program_name.  Patch by Rich Dawe.
78536
78537         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78538         error from mntctl.
78539         Use mntctl's return value to drive the entry-processing loop, since
78540         we can't rely on the value of the vmt_length member in the last
78541         entry.  On some systems doing so could result in exhausting
78542         virtual memory.  Based in part on a patch from Mike Jetzer.
78543
78544 2003-04-04  Bruno Haible  <bruno@clisp.org>
78545
78546         * modules/linebreak: New file.
78547         * MODULES.html.sh (func_all_modules): Add it.
78548
78549 2003-04-04  Bruno Haible  <bruno@clisp.org>
78550
78551         * m4/linebreak.m4: New file.
78552
78553 2003-04-04  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/linebreak.h: New file, from GNU gettext.
78556         * lib/linebreak.c: New file, from GNU gettext with slight
78557         modifications.
78558         * lib/lbrkprop.h: New file, from GNU gettext.
78559
78560 2003-04-03  Bruno Haible  <bruno@clisp.org>
78561
78562         * modules/utf8-ucs4: New file.
78563         * modules/utf16-ucs4: New file.
78564         * modules/ucs4-utf8: New file.
78565         * modules/ucs4-utf16: New file.
78566         * MODULES.html.sh (func_all_modules): Add them.
78567
78568 2003-04-03  Bruno Haible  <bruno@clisp.org>
78569
78570         * m4/utf-ucs4.m4: New file.
78571         * m4/ucs4-utf.m4: New file.
78572
78573 2003-04-03  Bruno Haible  <bruno@clisp.org>
78574
78575         * lib/utf8-ucs4.h: New file, from GNU gettext.
78576         * lib/utf16-ucs4.h: New file, from GNU gettext.
78577         * lib/ucs4-utf8.h: New file, from GNU gettext.
78578         * lib/ucs4-utf16.h: New file, from GNU gettext.
78579
78580 2003-04-02  Bruno Haible  <bruno@clisp.org>
78581
78582         * modules/binary-io: New file.
78583         * MODULES.html.sh (func_all_modules): Add it.
78584
78585 2003-04-02  Bruno Haible  <bruno@clisp.org>
78586
78587         * lib/binary-io.h: New file, from GNU gettext.
78588
78589 2003-04-01  Bruno Haible  <bruno@clisp.org>
78590
78591         * modules/pathname: New file.
78592         * MODULES.html.sh (func_all_modules): Add it.
78593
78594 2003-04-01  Bruno Haible  <bruno@clisp.org>
78595
78596         * lib/pathname.h: New file, from GNU gettext.
78597         * lib/concatpath.c: New file, from GNU gettext.
78598
78599 2003-03-30  Bruno Haible  <bruno@clisp.org>
78600
78601         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78602
78603 2003-03-30  Bruno Haible  <bruno@clisp.org>
78604
78605         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78606         function chown() doesn't exist.
78607
78608 2003-03-28  Bruno Haible  <bruno@clisp.org>
78609
78610         * modules/copy-file: New file.
78611         * MODULES.html.sh (func_all_modules): Add it.
78612
78613 2003-03-28  Bruno Haible  <bruno@clisp.org>
78614
78615         * m4/copy-file.m4: New file.
78616
78617 2003-03-28  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/copy-file.h: New file, from GNU gettext.
78620         * lib/copy-file.c: New file, from GNU gettext.
78621
78622 2003-03-18  Jim Meyering  <jim@meyering.net>
78623
78624         * lib/quote.c (quote_n): Fix typo in comment.
78625
78626 2003-03-18  Bruno Haible  <bruno@clisp.org>
78627
78628         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78629         checking.
78630         * m4/onceonly_2_57.m4: Likewise.
78631
78632 2003-03-17  Bruno Haible  <bruno@clisp.org>
78633
78634         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78635         (m4_quote): Remove macro.
78636         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78637
78638 2003-03-14  Jim Meyering  <jim@meyering.net>
78639
78640         Merge changes from Coreutils.
78641         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78642         to be const, in order to avoid warnings.
78643         (obstack_room): Likewise.
78644         (obstack_empty_p): Likewise.
78645
78646 2003-03-14  Bruno Haible  <bruno@clisp.org>
78647
78648         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78649         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78650
78651 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78652
78653         Merge changes from Bison.
78654         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78655         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78656         when compiling Bison 1.875's `bitset bset = obstack_alloc
78657         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78658         * lib/hash.c: Include <stdbool.h> unconditionally.
78659
78660 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78661
78662         * m4/onceonly.m4 (m4_quote): New macro.
78663         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78664         Quote AC_FOREACH variable-expansions properly.
78665
78666 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78667
78668         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78669
78670 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78671
78672         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78673         Reported by Bruce Becker; see:
78674         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78675
78676 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78677             Bruno Haible  <bruno@clisp.org>
78678
78679         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78680         Reported by John Hughes, see
78681         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78682
78683 2003-02-20  Bruno Haible  <bruno@clisp.org>
78684
78685         * MODULES.html.sh (func_all_modules): Add poll.
78686
78687 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78688
78689         * modules/poll: New file.
78690
78691 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78692
78693         * lib/poll_.h: New file.
78694         * lib/poll.c: New file.
78695
78696 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78697
78698         * m4/poll.m4: New file.
78699
78700 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78701
78702         * modules/mathl: New file.
78703
78704 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78705
78706         * lib/mathl.h: New file.
78707         * lib/acosl.c: New file.
78708         * lib/asinl.c: New file.
78709         * lib/atanl.c: New file.
78710         * lib/ceill.c: New file.
78711         * lib/cosl.c: New file.
78712         * lib/expl.c: New file.
78713         * lib/floorl.c: New file.
78714         * lib/frexpl.c: New file.
78715         * lib/ldexpl.c: New file.
78716         * lib/logl.c: New file.
78717         * lib/sincosl.c: New file.
78718         * lib/sinl.c: New file.
78719         * lib/sqrtl.c: New file.
78720         * lib/tanl.c: New file.
78721         * lib/trigl.c: New file.
78722         * lib/trigl.h: New file.
78723
78724 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78725
78726         * m4/mathl.m4: New file.
78727
78728 2003-02-18  Bruno Haible  <bruno@clisp.org>
78729
78730         * MODULES.html.sh (func_all_modules): Add mathl.
78731
78732 2003-02-17  Bruno Haible  <bruno@clisp.org>
78733
78734         * modules/mkdtemp: New module.
78735         * MODULES.html.sh (func_all_modules): Add it.
78736
78737 2003-02-17  Bruno Haible  <bruno@clisp.org>
78738
78739         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78740
78741 2003-02-17  Bruno Haible  <bruno@clisp.org>
78742
78743         * lib/mkdtemp.h: New file, from GNU gettext.
78744         * lib/mkdtemp.c: New file, from GNU gettext.
78745
78746 2003-02-02  Jim Meyering  <jim@meyering.net>
78747
78748         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78749         e.g. glibc-2.2.93.
78750
78751 2003-01-31  Bruno Haible  <bruno@clisp.org>
78752
78753         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78754         'rpl_rename'.
78755         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78756         'rpl_strnlen'.
78757         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78758         'rpl_strtod'.
78759         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78760         'rpl_utime'.
78761
78762 2003-01-31  Bruno Haible  <bruno@clisp.org>
78763
78764         * lib/rename.c: #undef rename before defining rpl_rename.
78765         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78766
78767 2003-01-30  Bruno Haible  <bruno@clisp.org>
78768
78769         * modules/vasnprintf, modules/vasprintf: New modules.
78770         * MODULES.html.sh (func_all_modules): Add them.
78771
78772 2003-01-30  Bruno Haible  <bruno@clisp.org>
78773
78774         * m4/signed.m4: New file, from GNU gettext.
78775         * m4/longdouble.m4: New file, from GNU gettext.
78776         * m4/wchar_t.m4: New file, from GNU gettext.
78777         * m4/wint_t.m4: New file, from GNU gettext.
78778         * m4/vasnprintf.m4: New file.
78779         * m4/vasprintf.m4: New file.
78780
78781 2003-01-30  Bruno Haible  <bruno@clisp.org>
78782
78783         * lib/printf-args.h: New file, from GNU gettext.
78784         * lib/printf-args.c: New file, from GNU gettext.
78785         * lib/printf-parse.h: New file, from GNU gettext.
78786         * lib/printf-parse.c: New file, from GNU gettext.
78787         * lib/vasnprintf.h: New file, from GNU gettext.
78788         * lib/vasnprintf.c: New file, from GNU gettext.
78789         * lib/asnprintf.c: New file, from GNU gettext.
78790         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78791         * lib/vasprintf.c: New file, from GNU gettext.
78792         * lib/asprintf.c: New file, from GNU gettext.
78793
78794 2003-01-29  Bruno Haible  <bruno@clisp.org>
78795
78796         * modules/stpncpy: New module.
78797         * MODULES.html.sh (func_all_modules): Add it.
78798
78799 2003-01-29  Bruno Haible  <bruno@clisp.org>
78800
78801         * m4/stpncpy.m4: New file.
78802
78803 2003-01-29  Bruno Haible  <bruno@clisp.org>
78804
78805         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78806         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78807
78808 2003-01-28  Bruno Haible  <bruno@clisp.org>
78809
78810         * modules/c-ctype: New module.
78811         * MODULES.html.sh (func_all_modules): Add it.
78812
78813 2003-01-28  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78816         Paul Eggert.
78817         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78818         Paul Eggert.
78819
78820 2003-01-27  Bruno Haible  <bruno@clisp.org>
78821
78822         * modules/xsetenv: New module.
78823         * MODULES.html.sh (func_all_modules): Add it.
78824
78825 2003-01-27  Bruno Haible  <bruno@clisp.org>
78826
78827         * lib/xsetenv.h: New file, from GNU gettext.
78828         * lib/xsetenv.c: New file, from GNU gettext.
78829
78830 2003-01-23  Jim Meyering  <jim@meyering.net>
78831
78832         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78833         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78834
78835 2003-01-23  Bruno Haible  <bruno@clisp.org>
78836
78837         * modules/minmax: New module.
78838         * MODULES.html.sh (func_all_modules): Add it.
78839
78840 2003-01-23  Bruno Haible  <bruno@clisp.org>
78841
78842         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78843         Eggert.
78844
78845 2003-01-22  Bruno Haible  <bruno@clisp.org>
78846
78847         * modules/exit: New module.
78848         * MODULES.html.sh (func_all_modules): Add it.
78849
78850 2003-01-22  Bruno Haible  <bruno@clisp.org>
78851
78852         * lib/exit.h: New file, from GNU gettext.
78853
78854 2003-01-19  Bruno Haible  <bruno@clisp.org>
78855
78856         * gnulib-tool: Recognize option --extract-maintainer.
78857         (func_get_maintainer): New function.
78858         * modules/*: Add Maintainer entry.
78859
78860 2003-01-16  Jim Meyering  <jim@meyering.net>
78861
78862         * m4/regex.m4: The `regex' struct is both input and output.
78863         Initialize it before each use.  Patch by Tim Waugh.
78864
78865 2003-01-16  Bruno Haible  <bruno@clisp.org>
78866
78867         * MODULES.html.sh: Add a table of contents. Add the module name as
78868         leftmost column. Add hyperlinks.
78869
78870 2003-01-15  Bruno Haible  <bruno@clisp.org>
78871
78872         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78873
78874 2003-01-15  Bruno Haible  <bruno@clisp.org>
78875
78876         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78877         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78878         suffix.
78879
78880 2003-01-15  Bruno Haible  <bruno@clisp.org>
78881
78882         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78883
78884 2003-01-15  Bruno Haible  <bruno@clisp.org>
78885
78886         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78887         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78888
78889 2003-01-14  Jim Meyering  <jim@meyering.net>
78890
78891         * lib/same.c (same_name): Tweak a comment.
78892
78893 2003-01-14  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78896         when a string comparison is sufficient.
78897
78898 2003-01-14  Bruno Haible  <bruno@clisp.org>
78899
78900         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78901         'unsigned int'.
78902
78903 2003-01-14  Bruno Haible  <bruno@clisp.org>
78904
78905         * lib/hash-pjw.c: Add comment about low quality of this function.
78906
78907 2003-01-13  Bruno Haible  <bruno@clisp.org>
78908
78909         * modules/stpcpy: Distribute lib/stpcpy.h.
78910         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78911
78912 2003-01-13  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/*: Add a description.
78915         * modules/strpbrk: Fix Makefile.am snippet.
78916         * modules/strtoimax: Fix dependencies.
78917         * modules/strtoumax: Likewise.
78918
78919 2003-01-13  Bruno Haible  <bruno@clisp.org>
78920
78921         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78922         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78923         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78924
78925 2003-01-13  Bruno Haible  <bruno@clisp.org>
78926
78927         * gnulib-tool (func_create_testdir): Store config/* files in the main
78928         directory.
78929         * config.rpath: Move to ...
78930         * config/config.rpath: ... here.
78931         * modules/gettext: Contains config/config.rpath, not config.rpath.
78932         * modules/iconv: Likewise.
78933
78934 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78935
78936         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78937         to avoid collisions with libcurses and libreadline.
78938
78939         * m4/getstr.m4: Remove.
78940         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78941
78942 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78943
78944         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78945         to avoid collisions with libcurses and libreadline.
78946
78947         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78948         * lib/getstr.h, getstr.c: Remove.
78949         * lib/getline.c: Include "getline.h", to check interface.
78950         Move body of old getstr.c here: this defines MIN_CHUNK and
78951         declares getdelim2, which is renamed from getstr.
78952         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78953
78954         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78955         All uses changed.
78956         * lib/linebuffer.h: Likewise.
78957         (readline): Remove backward-compatibility macro.
78958
78959 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78960
78961         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78962         to avoid collisions with libcurses and libreadline.
78963         * getstr: Remove.
78964         * MODULES.html.sh: Remove getstr.
78965         * modules/getline: Depend on unlocked-io, not getstr.
78966
78967 2003-01-12  Jim Meyering  <jim@meyering.net>
78968
78969         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78970
78971 2003-01-10  Bruno Haible  <bruno@clisp.org>
78972
78973         * modules/alloca: Change Makefile.am requirements. Simplify Include
78974         requirements. Add lib/alloca_.h to file list.
78975
78976 2003-01-10  Bruno Haible  <bruno@clisp.org>
78977
78978         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78979
78980 2003-01-10  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/alloca_.h: New file.
78983         * lib/getdate.y: Unconditionally include alloca.h.
78984         * lib/makepath.c: Likewise.
78985         * lib/setenv.c: Likewise.
78986         * lib/userspec.c: Likewise.
78987
78988 2003-01-09  Karl Berry  <karl@gnu.org>
78989
78990         * MODULES.html.sh: include `dirname $0` in PATH, to find
78991         gnulib-tool.
78992
78993 2003-01-09  Bruno Haible  <bruno@clisp.org>
78994
78995         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78996         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78997
78998 2003-01-09  Bruno Haible  <bruno@clisp.org>
78999
79000         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79001
79002 2003-01-09  Bruno Haible  <bruno@clisp.org>
79003
79004         * lib/stdbool.h.in: New file.
79005
79006 2003-01-09  Bruno Haible  <bruno@clisp.org>
79007
79008         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79009         * MODULES.html.sh: Likewise.
79010
79011 2003-01-08  Jim Meyering  <jim@meyering.net>
79012
79013         * lib/full-write.c: Undefine and define-away `const' after inclusion
79014         of errno.h, not before.  Suggestion from Bruno Haible.
79015
79016 2003-01-08  Bruno Haible  <bruno@clisp.org>
79017
79018         * modules/full-read: Depend on full-write.
79019
79020 2003-01-08  Bruno Haible  <bruno@clisp.org>
79021
79022         * lib/safe-read.c: Include specification header first, to ensure its
79023         selfcontainedness.
79024         * lib/full-write.c: Likewise.
79025
79026 2003-01-07  Jim Meyering  <jim@meyering.net>
79027
79028         * lib/full-write.c: Rework so that it may serve to define full_read,
79029         too.
79030         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79031
79032 2003-01-07  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79035         <inttypes.h>.
79036         * lib/xstrtol.h: Likewise.
79037         * lib/xstrtoimax.c: Likewise.
79038         * lib/xstrtoumax.c: Likewise.
79039         * lib/human.h: Likewise.
79040
79041         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79042         on systems that have <inttypes.h> but not <stdint.h>.
79043
79044 2003-01-07  Bruno Haible  <bruno@clisp.org>
79045
79046         * MODULES.html.sh: Add copyright notice.
79047         (missed_files): Omit CVS directory entries.
79048         (func_module): Make it work with sed-3.02.
79049         * MODULES.txt: Remove file.
79050
79051 2003-01-06  Jim Meyering  <jim@meyering.net>
79052
79053         * lib/version-etc.c: Update year in translatable copyright string.
79054
79055 2003-01-03  Karl Berry  <karl@gnu.org>
79056
79057         * config/config.{guess,sub}: update from prep.
79058
79059 2003-01-02  Karl Berry  <karl@gnu.org>
79060
79061         * doc/COPYING.DOC: belatedly updated to 1.2.
79062
79063 2003-01-01  Karl Berry  <karl@gnu.org>
79064
79065         * gnulib-tool (func_verify_module): report module name $module in
79066         error message, not $1.
79067         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79068         be created, only if it doesn't exist.
79069         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79070
79071 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79072
79073         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79074
79075 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79076
79077         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79078         memcmp if strcoll doesn't work.
79079
79080 2002-12-31  Bruno Haible  <bruno@clisp.org>
79081
79082         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79083         nonempty.
79084
79085 2002-12-31  Bruno Haible  <bruno@clisp.org>
79086
79087         * lib/memcoll.c (STRCOLL): New macro.
79088         (memcoll): Use it.
79089
79090 2002-12-31  Bruno Haible  <bruno@clisp.org>
79091
79092         * lib/localcharset.h: New file.
79093         * lib/localcharset.c: Include it.
79094         * lib/unicodeio.c: Likewise.
79095
79096 2002-12-31  Bruno Haible  <bruno@clisp.org>
79097
79098         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79099         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79100
79101 2002-12-31  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/getline.h: Include <stddef.h>, for size_t.
79104
79105         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79106         * lib/unicodeio.c: Don't include <stddef.h>.
79107
79108 2002-12-31  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79111         HAVE_TM_ZONE.
79112
79113 2002-12-24  Karl Berry  <karl@gnu.org>
79114
79115         * config/config.guess: update from prep.
79116
79117 2002-12-24  Bruno Haible  <bruno@clisp.org>
79118
79119         General infrasructure.
79120         * m4/README: Rewritten.
79121         * m4/onceonly.m4: New file.
79122         * m4/onceonly_2_57.m4: New file.
79123
79124         Module atexit.
79125         * m4/atexit.m4: New file.
79126
79127         Module strtod.
79128         * m4/strtod.m4: New file.
79129
79130         Module strtol.
79131         * m4/strtol.m4: New file.
79132
79133         Module strtoul.
79134         * m4/strtoul.m4: New file.
79135
79136         Module memchr.
79137         * m4/memchr.m4: New file.
79138
79139         Module memcmp.
79140         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79141         (jm_FUNC_MEMCMP): Invoke it.
79142
79143         Module memcpy.
79144         * m4/memcpy.m4: New file.
79145
79146         Module memmove.
79147         * m4/memmove.m4: New file.
79148
79149         Module memset.
79150         * m4/memset.m4: New file.
79151
79152         Module strcspn.
79153         * m4/strcspn.m4: New file.
79154
79155         Module strpbrk.
79156         * m4/strpbrk.m4: New file.
79157
79158         Module strstr.
79159         * m4/strstr.m4: New file.
79160
79161         Module strerror.
79162         * m4/strerror.m4: New file.
79163
79164         Module mktime.
79165         * m4/mktime.m4: Renamed from jm-mktime.m4.
79166         (gl_PREREQ_MKTIME): New macro.
79167         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79168
79169         Module malloc.
79170         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79171         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79172         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79173
79174         Module realloc.
79175         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79176         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79177         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79178
79179         Module strftime.
79180         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79182         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79183         gl_TM_GMTOFF.
79184         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79185
79186         Module xalloc.
79187         * m4/xalloc.m4: New file.
79188
79189         Module alloca.
79190         * m4/alloca.m4: New file.
79191
79192         Module putenv.
79193         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79194         (jm_FUNC_PUTENV): Invoke it.
79195
79196         Module setenv.
79197         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79198         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79199         when invoked twice.
79200         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79201         gt_FUNC_SETENV.
79202
79203         Module memrchr.
79204         * m4/memrchr.m4: New file.
79205
79206         Module stpcpy.
79207         * m4/stpcpy.m4: New file.
79208
79209         Module strcase.
79210         * m4/strcase.m4: New file.
79211
79212         Module strdup.
79213         * m4/strdup.m4: New file.
79214
79215         Module strnlen.
79216         * m4/strnlen.m4: New file.
79217
79218         Module strndup.
79219         * m4/strndup.m4: New file.
79220
79221         Module xstrtod.
79222         * m4/xstrtod.m4: New file.
79223
79224         Module xstrtol.
79225         * m4/xstrtol.m4: New file.
79226
79227         Module getdate.
79228         * m4/getdate.m4: New file.
79229
79230         Module unlocked-io.
79231         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79232         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79233         * m4/jm-glibc-io.m4n: Remove file.
79234
79235         Module long-options.
79236         * m4/long-options.m4: New file.
79237
79238         Module md5.
79239         * m4/md5.m4: New file.
79240
79241         Module sha.
79242         * m4/sha.m4: New file.
79243
79244         Module getstr.
79245         * m4/getstr.m4: New file.
79246
79247         Module getline.
79248         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79249         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79250         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79251         simply getline. Infoke gl_PREREQ_GETLINE.
79252
79253         Module obstack.
79254         * m4/obstack.m4: New file.
79255
79256         Module hash.
79257         * m4/hash.m4: New file.
79258
79259         Module readtokens.
79260         * m4/readtokens.m4: New file.
79261
79262         Module strverscmp.
79263         * m4/strverscmp.m4: New file.
79264
79265         Module stdbool.
79266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79267         OSF/1.
79268
79269         Module strtoll.
79270         * m4/strtoll.m4: New file.
79271
79272         Module strtoull.
79273         * m4/strtoull.m4: New file.
79274
79275         Module strtoimax.
79276         * m4/strtoimax.m4: New file.
79277
79278         Module strtoumax.
79279         * m4/strtoumax.m4: New file.
79280
79281         Module xstrtoimax.
79282         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79283         jm_AC_PREREQ_XSTRTOIMAX.
79284         Moved the strtol prerequisites to strtol.m4.
79285         Moved the strtoll prerequisites to strtoll.m4.
79286         Moved the strtoimax prerequisites to strtoimax.m4.
79287
79288         Module xstrtoumax.
79289         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79290         jm_AC_PREREQ_XSTRTOUMAX.
79291         Moved the strtoul prerequisites to strtoul.m4.
79292         Moved the strtoull prerequisites to strtoull.m4.
79293         Moved the strtoumax prerequisites to strtoumax.m4.
79294
79295         Module chown.
79296         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79297         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79298
79299         Module dup2.
79300         * m4/dup2.m4: New file.
79301
79302         Module ftruncate.
79303         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79304         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79305
79306         Module getgroups.
79307         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79308         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79309
79310         Module gettimeofday.
79311         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79312         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79313         gl_PREREQ_GETTIMEOFDAY.
79314
79315         Module mkdir.
79316         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79317         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79318
79319         Module mkstemp.
79320         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79321         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79322         jm_AC_TYPE_UINTMAX_T.
79323         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79324
79325         Module stat.
79326         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79327         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79328
79329         Module lstat.
79330         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79331         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79332
79333         Module timespec.
79334         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79335         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79336         * m4/st_mtim.m4: Indentation.
79337
79338         Module nanosleep.
79339         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79340         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79341         gl_PREREQ_NANOSLEEP.
79342
79343         Module regex.
79344         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79345         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79346         (gl_REGEX): New macro.
79347
79348         Module rename.
79349         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79350         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79351
79352         Module rmdir.
79353         * m4/rmdir.m4: New file.
79354
79355         Module utime.
79356         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79357         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79358         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79359
79360         Module dirname.
79361         * m4/dirname.m4: New file.
79362
79363         Module getopt.
79364         * m4/getopt.m4: New file.
79365
79366         Module unistd-safer.
79367         * m4/unistd-safer.m4: New file.
79368
79369         Module fnmatch.
79370         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79371         declaration.
79372         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79373         (gl_FUNC_FNMATCH_POSIX): New macro.
79374         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79375         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79376         simply fnmatch.
79377
79378         Module exclude.
79379         * m4/exclude.m4: New file.
79380
79381         Module human.
79382         * m4/human.m4: New file.
79383
79384         Module acl.
79385         * m4/acl.m4: Nop.
79386
79387         Module backupfile.
79388         * m4/backupfile.m4: New file.
79389         * m4/d-ino.m4: Indentation.
79390
79391         Module fsusage.
79392         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79393         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79394         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79395
79396         Module dirfd.
79397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79398         requirements.
79399
79400         Module euidaccess.
79401         * m4/euidaccess.m4: New file.
79402
79403         Module file-type.
79404         * m4/file-type.m4: New file.
79405
79406         Module fileblocks.
79407         * m4/fileblocks.m4: New file.
79408
79409         Module filemode.
79410         * m4/filemode.m4: New file.
79411
79412         Module isdir.
79413         * m4/isdir.m4: New file.
79414
79415         Module lchown.
79416         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79417         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79418
79419         Module makepath.
79420         * m4/makepath.m4: New file.
79421
79422         Module modechange.
79423         * m4/modechange.m4: New file.
79424
79425         Module mountlist.
79426         * m4/mountlist.m4: New file.
79427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79428         Indentation.
79429
79430         Module path-concat.
79431         * m4/path-concat.m4: New file.
79432
79433         Module pathmax.
79434         * m4/pathmax.m4: New file.
79435
79436         Module same.
79437         * m4/same.m4: New file.
79438
79439         Module save-cwd.
79440         * m4/save-cwd.m4: New file.
79441
79442         Module savedir.
79443         * m4/savedir.m4: New file.
79444
79445         Module xgetcwd.
79446         * m4/xgetcwd.m4: New file.
79447         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79448
79449         Module xreadlink.
79450         * m4/xreadlink.m4: New file.
79451
79452         Module safe-read.
79453         * m4/safe-read.m4: New file.
79454
79455         Module safe-write.
79456         * m4/safe-write.m4: New file.
79457
79458         Module closeout.
79459         * m4/closeout.m4: New file.
79460
79461         Module stdio-safer.
79462         * m4/stdio-safer.m4: New file.
79463
79464         Module getpass.
79465         * m4/getpass.m4: New file.
79466
79467         Module getugroups.
79468         * m4/getugroups.m4: New file.
79469
79470         Module group-member.
79471         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79472         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79473
79474         Module idcache.
79475         * m4/idcache.m4: New file.
79476
79477         Module userspec.
79478         * m4/userspec.m4: New file.
79479
79480         Module gettime.
79481         * m4/clock_time.m4: New file.
79482         * m4/gettime.m4: New file.
79483
79484         Module settime.
79485         * m4/settime.m4: New file.
79486
79487         Module posixtm.
79488         * m4/posixtm.m4: New file.
79489
79490         Module gethostname.
79491         * m4/gethostname.m4: New file.
79492
79493         Module canon-host.
79494         * m4/canon-host.m4: New file.
79495
79496         Module gettext.
79497         * m4/codeset.m4: New file, from gettext-0.11.5.
79498         * m4/gettext.m4: New file, from gettext-0.11.5.
79499         * m4/glibc21.m4: New file, from gettext-0.11.5.
79500         * m4/iconv.m4: New file, from gettext-0.11.5.
79501         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79502         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79503         * m4/inttypes.m4: New file, from gettext-0.11.5.
79504         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79505         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79506         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79507         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79508         * m4/lib-link.m4: New file, from gettext-0.11.5.
79509         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79510         * m4/progtest.m4: New file, from gettext-0.11.5.
79511         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79512         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79513         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79514
79515         Module localcharset.
79516         * m4/localcharset.m4: New file.
79517
79518         Module hard-locale.
79519         * m4/hard-locale.m4: New file.
79520
79521         Module mbswidth.
79522         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79523         onceonly macros.
79524         * m4/mbrtowc.m4: Add comment.
79525
79526         Module memcasecmp.
79527         * m4/memcasecmp.m4: New file.
79528
79529         Module memcoll.
79530         * m4/memcoll.m4: New file.
79531
79532         Module unicodeio.
79533         * m4/unicodeio.m4: New file.
79534
79535         Module rpmatch.
79536         * m4/rpmatch.m4: New file.
79537
79538         Module yesno.
79539         * m4/yesno.m4: New file.
79540
79541         Module exitfail.
79542         * m4/exitfail.m4: New file.
79543
79544         Module c-stack.
79545         * m4/c-stack.m4 (gl_C_STACK): New macro.
79546         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79547
79548         Module error.
79549         * m4/error.m4 (gl_ERROR): New macro.
79550         (jm_PREREQ_ERROR): Use onceonly macros.
79551
79552         Module fatal.
79553         * m4/fatal.m4: New file.
79554
79555         Module getloadavg.
79556         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79557         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79558
79559         Module getpagesize.
79560         * m4/getpagesize.m4: New file.
79561
79562         Module getusershell.
79563         * m4/getusershell.m4: New file.
79564
79565         Module physmem.
79566         * m4/physmem.m4: New file.
79567
79568         Module posixver.
79569         * m4/posixver.m4: New file.
79570
79571         Module quotearg.
79572         * m4/quotearg.m4: New file.
79573
79574         Module quote.
79575         * m4/quote.m4: New file.
79576
79577         Module readutmp.
79578         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79579
79580         Module sig2str.
79581         * m4/sig2str.m4: New file.
79582
79583         Other.
79584         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79585         ulonglong.m4.
79586         * m4/intmax_t.m4: New file.
79587         * m4/d-type.m4: Indentation.
79588         * m4/jm-macros.m4: Update.
79589         * m4/prereq.m4 (jm_PREREQ): Update.
79590         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79591         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79592         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79593         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79594         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79595         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79596         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79597         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79598         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79599         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79600         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79601         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79602         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79603         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79604         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79605         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79606         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79607         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79608         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79609
79610 2002-12-24  Bruno Haible  <bruno@clisp.org>
79611
79612         * MODULES.txt: Update according to m4/ changes.
79613
79614         Module gettext.
79615         * config.rpath: New file, from gettext-0.11.5.
79616
79617         * modules/*: New module descriptions.
79618         * gnulib-tool: New file.
79619         * MODULES.html.sh: New file.
79620
79621 2002-12-21  Karl Berry  <karl@gnu.org>
79622
79623         * doc/fdl.texi: update to version 1.2.
79624
79625 2002-12-19  Karl Berry  <karl@gnu.org>
79626
79627         * config/config.guess: update from prep.
79628
79629 2002-12-18  Bruno Haible  <bruno@clisp.org>
79630
79631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79632         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79633
79634 2002-12-17  Bruno Haible  <bruno@clisp.org>
79635
79636         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79637         stdlib.h, string.h.
79638
79639 2002-12-17  Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/canon-host.c (strdup): Remove unused declaration.
79642
79643         * lib/fsusage.c: Include full_read.h.
79644         (get_fs_usage): Use full_read instead of safe_read.
79645
79646         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79647
79648 2002-12-12  Karl Berry  <karl@gnu.org>
79649
79650         * config/config.guess: update from prep.
79651
79652 2002-12-11  Bruno Haible  <bruno@clisp.org>
79653
79654         * m4/setenv.m4: New file, from gettext-0.11.5.
79655
79656 2002-12-11  Bruno Haible  <bruno@clisp.org>
79657
79658         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79659         not unsetenv().
79660         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79661         modifications:
79662
79663         2002-12-11  Bruno Haible  <bruno@clisp.org>
79664
79665                 * setenv.c (alloca): Fall back to malloc.
79666                 (freea): New macro.
79667                 (setenv): Use freea() to free memory allocated with alloca().
79668
79669         2002-11-13  Bruno Haible  <bruno@clisp.org>
79670
79671                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79672                 function declarations.
79673                 * unsetenv.c (unsetenv): Likewise.
79674
79675         2002-03-04  Bruno Haible  <bruno@clisp.org>
79676
79677                 Portability to AIX 4.3.3.
79678                 * unsetenv.c: New file, extracted from setenv.c.
79679                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79680
79681         2001-12-20  Bruno Haible  <bruno@clisp.org>
79682
79683                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79684                 use malloc instead. For SunOS 4.
79685
79686         2001-12-11  Bruno Haible  <bruno@clisp.org>
79687
79688                 * setenv.c: Declare alloca.
79689                 (compar_fn_t): New typedef.
79690                 (KNOWN_VALUE, STORE_VALUE): Use it.
79691
79692         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79693         setenv.h.
79694
79695 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79696
79697         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79698         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79699         Choose values that are less likely to collide with system fnmatch
79700         options.
79701         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79702         defined (e.g., a pure POSIX system).
79703         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79704         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79705
79706 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79707
79708         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79709         a pain in practice to deal with generated m4 files.  This change
79710         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79711
79712         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79713         and jm-glibc-io.m4, as they are no longer a special case.
79714         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79715         kludge and the auto-generation stuff.  Check only whether the
79716         functions are declared, not whether they exist, since older hosts
79717         that don't declare the functions can't use the optimization anyway.
79718
79719 2002-12-06  Jim Meyering  <jim@meyering.net>
79720
79721         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79722
79723         Merge in changes from libc's misc/error.c, in preparation
79724         for the merge of gnulib's changes back into libc.
79725
79726         * lib/error.c (_): Define only if not already defined.
79727         Move definition to follow all #include directives.
79728         Include unlocked-io.h only if !_LIBC.
79729         [_LIBC]: Include <libio/libioP.h>.
79730         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79731         (fflush): Tweak definition to use INTUSE.
79732         (putc): Define.
79733
79734 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79735
79736         * lib/alloca.c [defined emacs]: Include "lisp.h".
79737         (xalloc_die) [defined emacs]: New macro.
79738         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79739         [! defined emacs]: Include <xalloc.h>.
79740         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79741         (pointer): Typedef to POINTER_TYPE *.
79742         (malloc): Remove decl; we now always use xmalloc.
79743         (alloca): Use old-style definition, since Emacs needs this.
79744         Check for arithmetic overflow when computing combined size.
79745
79746 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79747
79748         Do not generate unlocked-io.h automatically, since it's easier to
79749         maintain it by hand.
79750
79751         * lib/unlocked-io.h: New file, from GNU diffutils,
79752         but with proper copyright notice and attribution.
79753         * lib/gen-uio: Remove.
79754         * lib/Makefile.am: Add copyright notice.
79755         (libfetish_a_SOURCES): Add unlocked-io.h.
79756         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79757         (DISTCLEANFILES, io_functions): Remove macros.
79758         (EXTRA_DIST): Remove gen_uio.
79759         (unlocked-io.h): Remove rule.
79760
79761 2002-12-04  Jim Meyering  <jim@meyering.net>
79762
79763         Reflect the fact that stat.c and lstat.c are no longer generated.
79764         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79765         (DISTCLEANFILES): Likewise.
79766         (EXTRA_DIST): Likewise.
79767         (all_local): Don't depend on stat.c or lstat.c.
79768         (stat.c, lstat.c): Remove rules.
79769         (EXTRA_DIST): Remove xstat.in.
79770
79771         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79772         * lib/stat.c: New file.  Contents mostly from xstat.in.
79773         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79774         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79775
79776         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79777         too.
79778         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79779
79780 2002-12-03  Jim Meyering  <jim@meyering.net>
79781
79782         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79783         but not semantics, to minimize the differences between these two files.
79784         (safe_read): Change comment to mention SAFE_READ_ERROR.
79785
79786         * lib/safe-read.c (IS_EINTR): Define.
79787         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79788
79789 2002-12-02  Jim Meyering  <jim@meyering.net>
79790
79791         * lib/safe-read.c (EINTR): Define.
79792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79793         (INT_MAX): Provide fallback.
79794         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79795
79796         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79797
79798 2002-12-02  Bruno Haible  <bruno@clisp.org>
79799
79800         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79801         Define, taken from safe-read.c.
79802         (INT_MAX): Provide fallback.
79803         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79804         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79805
79806         * lib/safe-read.c (EINTR): Remove definition.
79807         (safe_read): Don't use EINTR if it is absent.
79808
79809 2002-12-01  Jim Meyering  <jim@meyering.net>
79810
79811         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79812         zero.
79813         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79814
79815 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79818         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79819         with `if (! (value < limit)) abort ();', for readability.
79820
79821 2002-11-26  Karl Berry  <karl@gnu.org>
79822
79823         * lib/strdup.c: copy from libc again, with jim's ok.
79824         * lib/.cppi-disable: re-add strdup.c
79825
79826 2002-11-25  Karl Berry  <karl@gnu.org>
79827
79828         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79829         instead of "strtol.c".
79830
79831 2002-11-25  Karl Berry  <karl@gnu.org>
79832
79833         * config/install-sh: update from automake for variable quoting, $0 in
79834         error msgs, etc.
79835
79836         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79837         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79838         entry.
79839
79840 2002-11-25  Jim Meyering  <jim@meyering.net>
79841
79842         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79843
79844 2002-11-24  Karl Berry  <karl@gnu.org>
79845
79846         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79847         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79848
79849 2002-11-24  Jim Meyering  <jim@meyering.net>
79850
79851         Update from coreutils:
79852
79853         * lib/mktime.c: Merge in changes from libc.
79854
79855         Avoid a link-time failure on some Linux systems.
79856         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79857         (otherwise).
79858         (__mon_yday): Declare with the STATIC attribute.
79859         (__mktime_internal): Likewise.
79860         Based on a report from Greg Schafer.
79861
79862 2002-11-23  Jim Meyering  <jim@meyering.net>
79863
79864         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79865         Use `unsigned', not `int', as type of index.
79866
79867         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79868
79869         * lib/fsusage.c: Remove unneeded parentheses around operands of
79870         `defined'.
79871
79872 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79873
79874         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79875         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79876         so that we can be included first.
79877         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79878         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79879         No need to include stddef.h or sys/types.h any more.
79880         Surround local include files with "", not "<>".
79881         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79882         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79883         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79884         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79885         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79886         (ISPRINT): Remove; no longer needed now that we assume C89.
79887
79888         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79889         Preserve errno.
79890
79891         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79892         quotearg_char): Use SIZE_MAX rather than
79893         (size_t) -1 when we are talking about "infinity".
79894
79895         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79896
79897 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79898
79899         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79900         hint that one should use `if (! x) abort ();' rather than `assert
79901         (x);', and anyway it's one less thing to worry about configuring.
79902         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79903         hash_rehash, hash_insert): Use abort rather than assert.
79904
79905 2002-11-22  Bruno Haible  <bruno@clisp.org>
79906
79907         * lib/safe-read.h: Assume C89. Add comments.
79908         (safe_read): Change return type to size_t.
79909         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79910         byte counts > SSIZE_MAX correctly.
79911         * lib/safe-write.h: New file.
79912         * lib/safe-write.c: New file.
79913         * lib/full-read.h: New file.
79914         * lib/full-read.c: New file.
79915         * lib/full-write.h: Assume C89. Add comments.
79916         * lib/full-write.c: Include safe-write.h.
79917         (full_write): Rewritten to use safe_write.
79918         Suggested by Jim Meyering and Paul Eggert.
79919
79920 2002-11-21  Jim Meyering  <jim@meyering.net>
79921
79922         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79923
79924         Merge in changes from the coreutils.
79925
79926         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79927         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79928         <stdint.h>.
79929         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79930         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79931         int.  Work more efficiently if X is the same width as uintmax_t.
79932         Do not compare X to -1, to avoid bogus compiler warning.
79933         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79934         Don't assume that f_frsize and f_bsize are the same type.
79935
79936         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79937         warning on FreeBSD.
79938
79939         * lib/makepath.c (make_path): Restore umask *before* creating the final
79940         component.
79941         (make_path): Minor reformatting.
79942
79943         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79944         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79945         HAVE_MALLOC/HAVE_REALLOC.
79946
79947         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79948         dummy ones.  At least on GNU/Linux systems, `auto' means something
79949         else.
79950         From Michael Stone.
79951
79952 2002-11-21  Bruno Haible  <bruno@clisp.org>
79953
79954         Remove case insensitive option matching.
79955         * lib/argmatch.h (argcasematch): Remove declaration.
79956         (ARGCASEMATCH): Remove macro.
79957         (__xargmatch_internal): Remove case_sensitive argument.
79958         (XARGMATCH): Update.
79959         (XARGCASEMATCH): Remove macro.
79960         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79961         case_sensitive argument.
79962         (argcasematch): Remove function.
79963         (__xargmatch_internal): Remove case_sensitive argument.
79964         (main): Use XARGMATCH instead of XARGCASEMATCH.
79965
79966         * lib/xmalloc.c: Change compile-time error message. Add comment about
79967         required autoconf version.
79968
79969 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79970
79971         Merge argmatch cleanups from Bison.  Assume C89.
79972
79973         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79974         Include stdlib.h, for EXIT_FAILURE.
79975         Always include <string.h>, since we assume C89.
79976         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79977         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79978         Include <stddef.h> instead, since it's all we need for size_t.
79979         (PARAMS): Remove.  All uses removed.
79980         (ARRAY_CARDINALITY): Do not bother to #undef.
79981         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79982         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79983         Remove unnecessary parentheses.
79984         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79985         Insert necessary parentheses.
79986         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79987         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79988
79989 2002-11-19  Bruno Haible  <bruno@clisp.org>
79990
79991         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79992         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79993
79994         * lib/mbswidth.h (PARAMS): Remove macro.
79995         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79996         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79997
79998         * lib/gcd.h (PARAMS): Remove macro.
79999         (gcd): Use ANSI C function declarations.
80000         * lib/gcd.c (gcd): Likewise.
80001
80002 2002-11-15  Bruno Haible  <bruno@clisp.org>
80003
80004         * lib/strcspn.c: Include <stddef.h>.
80005         (strcspn): Use ANSI C function declaration. Change return type to
80006         size_t. Use NULL.
80007         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80008         (strpbrk): Use NULL.
80009         * lib/strpbrk.h (PARAMS): Remove macro.
80010         (strpbrk): Use ANSI C function declaration.
80011         * lib/strstr.c: Don't include <sys/types.h>.
80012         * lib/strstr.h (PARAMS): Remove macro.
80013         (strstr): Use ANSI C function declarations.
80014
80015 2002-11-14  Karl Berry  <karl@gnu.org>
80016
80017         * config/mkinstalldirs: `do' on separate line, instead of
80018         `for var; do'.
80019
80020 2002-11-06  Bruno Haible  <bruno@clisp.org>
80021
80022         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80023         * lib/gcd.c (gcd): Likewise.
80024
80025 2002-11-05  Bruno Haible  <bruno@clisp.org>
80026
80027         * lib/gcd.h: New file, from gettext-0.11.5.
80028         * lib/gcd.c: New file, from gettext-0.11.5.
80029
80030 2002-11-05  Bruno Haible  <bruno@clisp.org>
80031
80032         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80033         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80034         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80035         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80036
80037         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80038         <libintl.h>.
80039         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80040         <libintl.h>.
80041
80042         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80043         * lib/human.c: Include gettext.h instead of <libintl.h>.
80044         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80045         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80046         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80047         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80048         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80049         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80050         (textdomain): Remove definition.
80051         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80052
80053         * lib/long-options.c: Remove include of <libintl.h> and definition of
80054         _.
80055         * lib/same.c: Remove include of <libintl.h> and definition of _.
80056
80057 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80058
80059         * lib/config.charset: A few additions for Solaris.
80060
80061 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80062
80063         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80064         * lib/localcharset.c (locale_charset): Declare as extern "C".
80065
80066 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80067
80068         * lib/config.charset: msdos in uk_UA uses CP1125.
80069
80070 2002-11-04  Bruno Haible  <bruno@clisp.org>
80071
80072         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80073         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80074         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80075         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80076         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80077
80078 2002-11-04  Bruno Haible  <bruno@clisp.org>
80079
80080         * lib/localcharset.c (locale_charset): Don't return an empty string.
80081
80082 2002-11-04  Bruno Haible  <bruno@clisp.org>
80083
80084         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80085         aliases.
80086
80087 2002-11-04  Bruno Haible  <bruno@clisp.org>
80088
80089         * lib/config.charset: Update for newest glibc. Add canonical names
80090         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80091
80092 2002-11-04  Bruno Haible  <bruno@clisp.org>
80093
80094         * lib/config.charset: Add support for NetBSD.
80095
80096 2002-11-04  Bruno Haible  <bruno@clisp.org>
80097
80098         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80099
80100 2002-11-01  Bruno Haible  <bruno@clisp.org>
80101
80102         * configure.in: Add AC_CONFIG_AUX_DIR call.
80103         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80104         test/Makefile.
80105         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80106
80107 2002-09-28  Karl Berry  <karl@gnu.org>
80108
80109         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80110         installed automake until the next release, since changes have been
80111         made.
80112
80113 2002-09-25  Karl Berry  <karl@gnu.org>
80114
80115         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80116         * lib/getopt*: copy from libc/posix.
80117         * lib/gettext.h: copy from gettext.
80118         * lib/.cppi-disable: add strdup.c, gettext.h.
80119
80120 2002-09-25  Karl Berry  <karl@gnu.org>
80121
80122         * config/srclist.txt: enable gettext.h check.
80123         * config/config.{guess,sub}: update from prep.
80124         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80125                 from automake 1.6.3.
80126         See srclist*.
80127
80128 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80129
80130         * regex.c (PATFETCH): Remove the translating fetch.
80131         (PATFETCH_RAW): Rename to PATFETCH.
80132         (set_image_of_range): New fun.
80133         (SET_RANGE_TABLE_WORK_AREA): Use it.
80134         (regex_compile): Don't translate the pattern chars so eagerly.
80135         Only do it when inserting an `exactn' bytecode or when handling
80136         a char-range.
80137         (mutually_exclusive_p): Avoid empty statement.
80138
80139 2002-07-06  Jim Meyering  <meyering@lucent.com>
80140
80141         * m4/README: Don't mention Makefile.am.in.
80142         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80143
80144 2002-07-01  Jim Meyering  <meyering@lucent.com>
80145
80146         * lib/c-stack.c: Include sys/time.h.
80147         From Volker Borchert.
80148
80149 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80150
80151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80152
80153 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80154
80155         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80156         New macro.  Use it uniformly instead of
80157         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80158         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80159         reported by Vin Shelton.
80160
80161 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80162
80163         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80164         Do not assume SA_SIGINFO behavior.
80165         Bug reported by Jim Meyering on NetBSD 1.5.2.
80166
80167 2002-06-22  Jim Meyering  <meyering@lucent.com>
80168
80169         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80171
80172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80173         now that configure.ac uses AC_GNU_SOURCE.
80174         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80175         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80176
80177         Update to latest tools.  Suggestions from Paul Eggert.
80178         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80179         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80180         * m4/fnmatch.m4: Likewise.
80181         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80182         to AC_HEADER_STDBOOL
80183
80184 2002-06-22  Jim Meyering  <meyering@lucent.com>
80185
80186         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80187         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80188
80189 2002-06-22  Jim Meyering  <meyering@lucent.com>
80190
80191         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80192
80193         * lib/exitfail.c, exitfail.h: Likewise.
80194         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80195
80196         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80197         of fnmatch.h.
80198         (EXTRA_DIST): Add fnmatch_loop.c.
80199         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80200
80201         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80202         * lib/fnmatch.c: Update from diffutils-2.8.2.
80203         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80204         * lib/fnmatch.h: Remove file.
80205
80206 2002-06-21  Jim Meyering  <meyering@lucent.com>
80207
80208         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80209         * m4/mbrtowc.m4: Likewise.
80210
80211         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80212         * m4/mbswidth.m4: Reflect name change:
80213         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80214         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80215
80216         * m4/lib-link.m4: Update from gettext-0.11.2.
80217         * m4/gettext.m4: Likewise.
80218
80219         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80220         From Alfred M. Szmidt.
80221
80222 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80223
80224         * lib/file-type.h: Report an error if neither S_ISREG nor
80225         S_IFREG is defined, instead of using a test specific to glibc
80226         2.2.  This should be safe, since POSIX requires S_ISREG and
80227         Unix Version 7 had S_IFREG.  We don't need to check for
80228         <sys/types.h> since we don't use any symbols that it defines.
80229
80230 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80231
80232         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80233         $@-t, so that each temporary file name is unique and valid in the first
80234         8 characters, for operation under DOS.
80235
80236 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80237
80238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80239
80240 2002-06-15  Jim Meyering  <meyering@lucent.com>
80241
80242         Work even with DJGPP 2.03, which lacks support for symlinks.
80243         From Richard Dawe.
80244         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80245         is defined.
80246         * lib/lchown.c (S_ISLNK): Likewise.
80247
80248 2002-06-15  Jim Meyering  <meyering@lucent.com>
80249
80250         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80251         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80252         have been included before this file.
80253
80254 2002-06-14  Jim Meyering  <meyering@lucent.com>
80255
80256         * lib/file-type.h: Use the version from diffutils-2.8.2.
80257         * lib/file-type.c: Likewise.
80258
80259 2002-06-07  Jim Meyering  <meyering@lucent.com>
80260
80261         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80262         They're needed at least for NetBSD 1.5.2.
80263         ($statxfs_includes): Include those same headers.
80264         ($statxfs_includes): Include sys/vfs.h if available.
80265         ($statxfs_includes): Likewise for sys/statvfs.h.
80266         Check for the following members in both structs statfs and statvfs:
80267         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80268
80269 2002-06-01  Jim Meyering  <meyering@lucent.com>
80270
80271         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80272         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80273
80274 2002-05-28  Jim Meyering  <meyering@lucent.com>
80275
80276         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80277         Reported by Volker Borchert.
80278
80279 2002-05-27  Jim Meyering  <meyering@lucent.com>
80280
80281         Fix a problem seen only on nonconforming systems whereby ls.c's
80282         use of localtime, and then of gettimeofday would cause trouble:
80283         the localtime call used to initialize rpl_gettimeofday's save
80284         mechanism would clobber ls's current local time information so
80285         that in any long listing the first file would always be listed
80286         with date 1970-01-01.  Analysis by Volker Borchert.
80287
80288         * lib/gettimeofday.c (localtime): Undefine.
80289         (rpl_localtime): New function.
80290
80291 2002-05-27  Jim Meyering  <meyering@lucent.com>
80292
80293         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80294         localtime.
80295
80296         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80297         use the replacement function; it wouldn't resolve at link time.
80298         Reported by Volker Borchert.
80299
80300 2002-05-22  Jim Meyering  <meyering@lucent.com>
80301
80302         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80303         file-type.h.
80304         * lib/file-type.h: New file.
80305         * lib/file-type.c (file_type): New file/function.  Extracted from
80306         diffutils.
80307
80308 2002-04-30  Jim Meyering  <meyering@lucent.com>
80309
80310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80311
80312 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80313
80314         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80315
80316 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80317
80318         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80319         Do not check for alloca.h (no longer used) or stdbool.h (was never
80320         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80321
80322 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80323
80324         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80325
80326 2002-04-29  Jim Meyering  <meyering@lucent.com>
80327
80328         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80329         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80330         Use AC_FUNC_STRNLEN here instead.
80331
80332         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80333         With autoconf-2.53a, it's part of AC_PROG_CC.
80334
80335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80336
80337         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80339
80340 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80341
80342         * lib/sig2str.h, lib/sig2str.c: New files.
80343         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80344
80345 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80346
80347         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80348         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80349         of 127, since 64 is the largest conceivable number for ancient
80350         nonstandard hosts.
80351         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80352
80353 2002-04-28  Jim Meyering  <meyering@lucent.com>
80354
80355         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80356
80357 2002-04-24  Jim Meyering  <meyering@lucent.com>
80358
80359         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80360         (jm_PREREQ): Use it.
80361
80362         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80363         mach/mach.h fcntl.h.
80364         Check for this function: setlocale.
80365
80366 2002-04-24  Jim Meyering  <meyering@lucent.com>
80367
80368         * lib/gettext.h: New file, from Gettext.
80369         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80370         (libfetish_a_SOURCES): Add gettext.h.
80371
80372 2002-04-16  Jim Meyering  <meyering@lucent.com>
80373
80374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80375         ut_pid, ut_id, ut_exit.
80376
80377 2002-04-16  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80380         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80381         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80382
80383 2002-04-12  Jim Meyering  <meyering@lucent.com>
80384
80385         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80386         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80387         existence of the getmntinfo function.  Needed for Darwin 5.3.
80388
80389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80390         This is necessary at least on Darwin 5.3.
80391
80392         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80393         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80394         strnlen.o in the library, and that makes some versions of ranlib
80395         object.
80396
80397 2002-04-12  Jim Meyering  <meyering@lucent.com>
80398
80399         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80400
80401 2002-04-09  Jim Meyering  <meyering@lucent.com>
80402
80403         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80404         to be more precise.  Rather than saying we're checking whether the
80405         function `works', say what we're testing.
80406         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80407         Reported by Bruno Haible.
80408
80409 2002-03-10  Jim Meyering  <meyering@lucent.com>
80410
80411         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80412         Suggestion from Santiago Vila.
80413
80414 2002-03-08  Jim Meyering  <meyering@lucent.com>
80415
80416         * lib/rename.c: Mention that this wrapper is needed also on
80417         mips-dec-ultrix4.4 systems.
80418
80419 2002-03-02  Jim Meyering  <meyering@lucent.com>
80420
80421         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80422         not HAVE_CLOCK_SETTIME.
80423
80424 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80425
80426         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80427         Check for clock_settime.
80428
80429 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80430
80431         * lib/nanosleep.h: Rename to....
80432         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80433
80434         * lib/gettime.c: New file.
80435         * lib/settime.c: New file.
80436         * lib/stime.c: Remove.
80437
80438         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80439         timespec.h.  Remove nanosleep.h.
80440
80441 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80442
80443         * m4/acl.m4: New file.
80444         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80445         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80446
80447 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80448
80449         * lib/acl.c, lib/acl.h: New files.
80450         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80451
80452 2002-02-24  Jim Meyering  <meyering@lucent.com>
80453
80454         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80455         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80456         cause trouble.  Reported by Nelson Beebe.
80457
80458 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80459
80460         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80461         compilers that don't know that xalloc_die never returns.
80462
80463 2002-02-20  Jim Meyering  <meyering@lucent.com>
80464
80465         * lib/getdate.c: Regenerate using bison-1.33.
80466
80467 2002-02-17  Jim Meyering  <meyering@lucent.com>
80468
80469         * config/config.guess (main): Don't use `head -1'; it's no longer
80470         portable. Use `sed 1q' instead.
80471
80472 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80473
80474         * m4/codeset.m4: Upgrade to gettext-0.11.
80475         * m4/gettext.m4: Upgrade to gettext-0.11.
80476         * m4/glibc21.m4: Upgrade to gettext-0.11.
80477         * m4/iconv.m4: Upgrade to gettext-0.11.
80478         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80479         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80480         * m4/lib-ld.m4: New file, from gettext-0.11.
80481         * m4/lib-link.m4: New file, from gettext-0.11.
80482         * m4/lib-prefix.m4: New file, from gettext-0.11.
80483         * m4/progtest.m4: Upgrade to gettext-0.11.
80484
80485 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80486
80487         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80488         (jm_PREREQ): Use it.
80489
80490 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80491
80492         * lib/posixver.c, lib/posixver.h: New files.
80493         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80494
80495 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80496             Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80499         (fwrite_success_callback): New declaration.
80500         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80501         print_unicode_char. Call failure callback instead of error.
80502         (fwrite_success_callback): New function.
80503         (exit_failure_callback): New function.
80504         (fallback_failure_callback): New function.
80505         (print_unicode_char): Call unicode_to_mb.
80506
80507 2002-01-26  Jim Meyering  <meyering@lucent.com>
80508
80509         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80510         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80511
80512 2002-01-26  Jim Meyering  <meyering@lucent.com>
80513
80514         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80515
80516 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80517
80518         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80519
80520 2002-01-22  Jim Meyering  <meyering@lucent.com>
80521
80522         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80523         Otherwise, some versions of automake would omit the rule that makes
80524         Makefile from Makefile.in.
80525
80526 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80527
80528         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80529         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80530         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80531         (memcoll): Set errno to zero if there is no error.
80532
80533         * lib/quotearg.c (quotearg_buffer_restyled):
80534         Fix bug with quoting buffers containing NUL when backslashing escapes.
80535         This bug was exposed by the other changes in this patch.
80536         (quotearg_n_options): New arg ARGSIZE.
80537         All callers changed.
80538         (quoting_options_from_style): New function.
80539         (quotearg_n_style): Use it.
80540         (quotearg_n_style_mem): New function.
80541
80542         * lib/quotearg.h (quotearg_n_style_mem): New function.
80543
80544 2002-01-19  Jim Meyering  <meyering@lucent.com>
80545
80546         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80547         Remove useless quotes: DF_PROG="df".
80548         * m4/strnlen.m4: New file.
80549
80550 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80551
80552         * lib/backupfile.c (ISDIGIT): Comment fix.
80553         * lib/getdate.y (ISDIGIT): Likewise.
80554         * lib/posixtm.c (ISDIGIT, year): Likewise.
80555         * lib/strverscmp.c (ISDIGIT): Likewise.
80556         * lib/userspec.c (ISDIGIT): Likewise.
80557
80558 2002-01-16  Jim Meyering  <meyering@lucent.com>
80559
80560         * lib/getdate.y: Add three semicolons, each just before a closing
80561         brace. Bison (as of version 1.31) no longer papers over that mistake.
80562
80563 2002-01-05  Jim Meyering  <meyering@lucent.com>
80564
80565         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80566
80567 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80568
80569         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80570         not silently exit merely because the output buffer happens to
80571         have nothing pending.
80572
80573 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80574
80575         See the big note in ../ChangeLog.
80576         * lib/human.c (suffixes): Prefer K to k for 1024.
80577         (generate_suffix_backwards): New function.
80578         (human_readable_inexact): Use it.
80579         * lib/xstrtol.c (__xstrtol): If there is no number but there
80580         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80581         Accept 'K' as well as 'k'.
80582
80583 2001-12-15  Jim Meyering  <meyering@lucent.com>
80584
80585         * lib/regex.h (__restrict_arr): Update from libc.
80586
80587         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80588         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80589         (STREQ): Define.
80590
80591 2001-12-14  Jim Meyering  <meyering@lucent.com>
80592
80593         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80594         Suggestion from Bruno Haible.
80595
80596 2001-12-10  Jim Meyering  <meyering@lucent.com>
80597
80598         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80599         xrealloc, Instead, include "xalloc.h".
80600         (initbuffer): Don't cast xmalloc return value to char*.
80601         (readline): Reword comment.
80602         Don't cast xrealloc return value to char*
80603         Return NULL, not 0.
80604
80605 2001-12-09  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80608         about `signed and unsigned type in conditional expression'.
80609         * lib/posixtm.c (posix_time_parse): Likewise.
80610
80611         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80612
80613         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80614         to avoid a pedantic warning.
80615
80616         * lib/getstr.c: Don't include assert.h.
80617         (getstr): Remove warning-evoking assertions.
80618         Return -1 if offset parameter is out of bounds.
80619         Change the type of a local from int to size_t.
80620
80621         * lib/strftime.c (my_strftime_localtime_r): Include this function
80622         definition in the `#if ! HAVE_TM_GMTOFF' block.
80623
80624         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80625         Include xalloc.h instead.
80626
80627 2001-12-02  Jim Meyering  <meyering@lucent.com>
80628
80629         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80630         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80631         included.
80632
80633         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80634         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80635
80636 2001-11-30  Akim Demaille  <akim@epita.fr>
80637
80638         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80639         before being defined.
80640
80641 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80642
80643         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80644         First arg is int, not unsigned.
80645         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80646         (SIZE_MAX, UINT_MAX): New macros.
80647         (quotearg_n_options): Abort if N is negative.
80648         Avoid overflow check on hosts where size_t is 64 bits and int
80649         is 32 bits, as overflow is impossible there.
80650         Fix off-by-one typo that caused unnecessary reallocation.
80651
80652 2001-11-27  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/tempname.c: Merge with version from libc.
80655         * lib/regex.c: Likewise.
80656
80657         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80658         systems for which STDC_HEADERS is 0, it was not included, resulting in
80659         a warning about an integer-to-pointer conversion problem with getenv.
80660         Reported by Volker Borchert.
80661
80662 2001-11-26  Jim Meyering  <meyering@lucent.com>
80663
80664         * lib/gtod.h: Remove file.
80665         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80666         * lib/gettimeofday.c: Don't include gtod.h.
80667         (GTOD_init): Remove function.
80668         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80669         Suggestion from Volker Borchert.
80670
80671 2001-11-23  Jim Meyering  <meyering@lucent.com>
80672
80673         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80674         it.
80675         * lib/hash.c (struct hash_table): Define it here instead.
80676
80677 2001-11-22  Jim Meyering  <meyering@lucent.com>
80678
80679         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80680
80681 2001-11-20  Jim Meyering  <meyering@lucent.com>
80682
80683         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80684         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80685
80686 2001-11-19  Jim Meyering  <meyering@lucent.com>
80687
80688         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80689         directory.  Use "conftestXXXXXX" as the template.
80690         Suggestion from Paul Eggert.
80691
80692         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80693         immediately, so the test doesn't mistakenly hit the max-open-files
80694         limit.
80695
80696 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80697
80698         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80699         (TEMPORARIES): New macro.
80700         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80701         removes an artificial limitation (e.g. HP-UX 10.20, where
80702         TMP_MAX is 17576).
80703
80704 2001-11-18  Jim Meyering  <meyering@lucent.com>
80705
80706         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80707
80708 2001-11-18  Jim Meyering  <meyering@lucent.com>
80709
80710         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80711         on SunOS 4.
80712
80713         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80714         files will be created before anything else.
80715
80716 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80717
80718         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80719         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80720
80721 2001-11-17  Jim Meyering  <meyering@lucent.com>
80722
80723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80724         Prompted by a report from Bob Proulx.
80725
80726         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80727         Instead, require UTILS_FUNC_MKSTEMP.
80728
80729 2001-11-17  Jim Meyering  <meyering@lucent.com>
80730
80731         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80732         Now, that's done as part of AC_FUNC_STRTOD.
80733
80734 2001-11-17  Jim Meyering  <meyering@lucent.com>
80735
80736         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80737         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80738         rather than group writable.  Patch by Juan F. Codagnone.
80739
80740         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80741         xrealloc, Instead, include "xalloc.h".
80742
80743         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80744         Remove explicit declarations of xmalloc, xrealloc,
80745         and xstrdup.  Instead, include "xalloc.h".
80746
80747         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80748         unlocked-io.h.
80749         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80750         Likewise.
80751         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80752
80753         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80754         Reported by Padraig Brady.
80755
80756         * lib/mkstemp.c: #undef mkstemp.
80757         Include config.h.
80758         (rpl_mkstemp): Rename from mkstemp.
80759         Protoize.
80760
80761 2001-11-16  Jim Meyering  <meyering@lucent.com>
80762
80763         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80764         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80765         determine the amount of total physical memory, use pstat_getstatic.
80766         HPUX-11 doesn't define _SC_PHYS_PAGES.
80767         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80768         If sysconf couldn't be used to determine the amount of available
80769         physical memory, use both pstat_getstatic and pstat_getdynamic.
80770         Based on a patch from Bob Proulx.
80771
80772 2001-11-10  Jim Meyering  <meyering@lucent.com>
80773
80774         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80775         (jm_PREREQ): Use it.
80776
80777 2001-11-09  Jim Meyering  <meyering@lucent.com>
80778
80779         * m4/jm-macros.m4: Require autoconf-2.52f.
80780         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80781         Use these AC_-prefixed names, not the AM_-prefixed ones.
80782
80783         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80784
80785 2001-11-05  Jim Meyering  <meyering@lucent.com>
80786
80787         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80788
80789 2001-11-04  Jim Meyering  <meyering@lucent.com>
80790
80791         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80792         $DEFS.
80793
80794 2001-11-03  Jim Meyering  <meyering@lucent.com>
80795
80796         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80797         of AC_DEFUN.
80798
80799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80800         know the name of the variable in the macro definition.
80801
80802 2001-11-03  Jim Meyering  <meyering@lucent.com>
80803
80804         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80805         in argmatch_to_argument call.
80806
80807         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80808         argument.
80809
80810         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80811         e.g., a fault due to an attempt to free a NULL pointer.
80812
80813 2001-11-01  Jim Meyering  <meyering@lucent.com>
80814
80815         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80816         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80817
80818 2001-11-01  Jim Meyering  <meyering@lucent.com>
80819
80820         * lib/dirfd.c, lib/dirfd.h: New files.
80821         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80822
80823         * lib/hash.c (hash_print) [TESTING]: Clean up.
80824
80825 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80826
80827         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80828         to avoid a warning if -Wall.
80829
80830 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80831
80832         * README: New file
80833         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80834         (per RMS's instructions, this is now the canonical source)
80835         * lgpl/, gpl/: New directories.
80836
80837 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80838
80839         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80840
80841 2001-10-21  Jim Meyering  <meyering@lucent.com>
80842
80843         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80844         this code would end up calling gettext even in packages built
80845         with --disable-nls.
80846         * lib/getopt.c (_): Likewise.
80847         * lib/regex.c (_): Likewise.
80848
80849 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80850
80851         * m4/error.m4 (jm_PREREQ_ERROR):
80852         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80853         AC_FUNC_STRERROR_R does that.
80854         Check for strerror declaration.
80855
80856         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80857         are supposed to have them these days.
80858         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80859         Merge changes from latest Autoconf CVS.
80860         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80861         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80862         POSIX decided to standardize on the int flavor of strerror_r.
80863
80864 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80865
80866         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80867         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80868         Use strerror_r that is only a macro, even if it is not a function.
80869         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80870         (private_strerror): Use prototypes, not old-style function definition.
80871         (print_errno_message): New function.
80872         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80873         char*-flavored one.
80874         (error_tail, error, error_at_line): Use it.
80875
80876 2001-10-11  Jim Meyering  <meyering@lucent.com>
80877
80878         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80879         and quote_n (1, ... to avoid clobbering a buffer.
80880
80881 2001-10-05  Jim Meyering  <meyering@lucent.com>
80882
80883         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80884         hash-pjw.h.
80885         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80886         * lib/hash-pjw.h: New file.
80887
80888 2001-09-30  Jim Meyering  <meyering@lucent.com>
80889
80890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80891         `struct fsstat' has the `f_fstypename' member.
80892         Use that to define FS_TYPE, which is now used to make
80893         the getfsstat link test tighter.
80894
80895 2001-09-30  Jim Meyering  <meyering@lucent.com>
80896
80897         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80898         Include <sys/ucred.h>, for Apple Darwin.
80899         Include sys/mount.h and sys/fs_types.h only if available.
80900         (FS_TYPE): Define.
80901         (read_filesystem_list): Use FS_TYPE.
80902
80903 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80904
80905         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80906         a boolean context.
80907
80908 2001-09-29  Jim Meyering  <meyering@lucent.com>
80909
80910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80911         [one-argument getmntent function]): Include stdio.h before mntent.h.
80912         SunOS 4.1.x needs it for the declaration of `FILE'.
80913         Patch by Volker Borchert.
80914
80915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80916         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80917         sys/fs_types.h, and make the link-test for getfsstat guard #include
80918         directives with appropriate #if HAVE_*_H tests so that we can
80919         detect getfsstat on Apple Darwin1.3.7 systems.
80920         Reported by Nelson Beebe.
80921         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80922
80923 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80924
80925         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80926         #defines strtoimax.  Also treat the other strto* functions
80927         like strtoimax.
80928
80929         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80930         Check for strtoul and strtoumax,
80931         as those declarations are made even in the signed case.
80932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80933         Likewise, for strtol and strtoimax.
80934
80935 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80936
80937         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80938         #defines strtoimax.  Also treat the other strto* functions
80939         like strtoimax.
80940
80941         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80942         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80943         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80944
80945 2001-09-26  Jim Meyering  <meyering@lucent.com>
80946
80947         Most macros in unlocked-io.h had the wrong number of arguments.
80948         * lib/gen-uio: New script.
80949         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80950         * lib/unlocked-io.hin: Remove file.
80951         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80952         rather than trying to embed it here.
80953         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80954         Reported by Padraig Brady.
80955
80956 2001-09-25  Volker Borchert  <bt@teknon.de>
80957
80958         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80959         `result'.
80960
80961 2001-09-24  Jim Meyering  <meyering@lucent.com>
80962
80963         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80964
80965 2001-09-23  Jim Meyering  <meyering@lucent.com>
80966
80967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80968         instead of the mere test for existence of mntent.h.  The latter
80969         would get a false-positive on AIX 3.4 systems.
80970         In the outer getmntent if-block, don't die if neither of the getmntent
80971         tests succeeds.  Instead, just fall through and continue with the
80972         remaining tests.
80973
80974 2001-09-23  Jim Meyering  <meyering@lucent.com>
80975
80976         * lib/mountlist.c: Remove useless parentheses in #if directives.
80977         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80978         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80979
80980 2001-09-22  Jim Meyering  <meyering@lucent.com>
80981
80982         * m4/gettext.m4: New file.  From gettext.
80983         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80984         * m4/progtest.m4: Likewise
80985         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80986         * m4/glibc21.m4: Likewise.
80987
80988         * m4/libintl.m4: Remove.  No longer used.
80989
80990 2001-09-22  Jim Meyering  <meyering@lucent.com>
80991
80992         * lib/localcharset.c: Update from latest gettext.
80993         * lib/config.charset: Likewise.
80994
80995 2001-09-20  Jim Meyering  <meyering@lucent.com>
80996
80997         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80998         strtoimax.
80999         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81000         strtoumax.
81001
81002 2001-09-20  Jim Meyering  <meyering@lucent.com>
81003
81004         * lib/xstrtol.c (strtoimax): Guard declaration with
81005         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81006         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81007         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81008         (strtoumax): Likewise, for completeness (it wasn't necessary).
81009
81010 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81011
81012         * lib/strtoimax.c (HAVE_LONG_LONG):
81013         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81014         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81015         to work around bug in IBM C compiler.
81016
81017 2001-09-17  Jim Meyering  <meyering@lucent.com>
81018
81019         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81020         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81021         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81022         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81023         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81024         whenever the right hand side need not be expanded by the shell.
81025
81026 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81027
81028         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81029         library.  It's not correct, as some older glibcs are buggy.
81030         fnmatch wasn't fixed until glibc 2.2.
81031
81032         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81033         special shell magic here.
81034
81035 2001-09-16  Jim Meyering  <meyering@lucent.com>
81036
81037         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81038         * m4/jm-macros.m4: Require it.
81039
81040 2001-09-16  Jim Meyering  <meyering@lucent.com>
81041
81042         * lib/mkdir.c: New file.
81043
81044 2001-09-15  Jim Meyering  <meyering@lucent.com>
81045
81046         * m4/jm-macros.m4: Check for help2man.
81047
81048 2001-09-11  Jim Meyering  <meyering@lucent.com>
81049
81050         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81051         The body, by Paul Eggert, was moved here from configure.in.
81052         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81053
81054 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81055
81056         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81057         (jm_PREREQ): Use it.
81058
81059 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81060
81061         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81062         Use ssize_t, not int, to store result of readlink.
81063         Check for ssize_t overflow as well as size_t overflow,
81064         as POSIX says the result of readlink is implementation-defined
81065         when ssize_t overflows.
81066         Remove unnecessary cast to char*.
81067         Use free+malloc instead of realloc, as the storage doesn't need
81068         to be preserved and it's clearer and can be more efficient that way.
81069         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81070         * lib/xreadlink.h (xreadlink): Update prototype.
81071
81072 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81073
81074         * lib/xgetcwd.c: Revert some of the previous change; intead,
81075         fix the HAVE_GETCWD_NULL code to behave more like the
81076         !HAVE_GETCWD_NULL code used to.
81077
81078         Include "xalloc.h".
81079         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81080         invoke xalloc_die.
81081
81082 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81083
81084         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81085         sys/param.h, as pathmax.h includes them.
81086
81087 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81088
81089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81090         (jm_PREREQ_XGETCWD): New macro.
81091
81092         * m4/getcwd.m4: New file.
81093
81094 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81095
81096         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81097         like the HAVE_GETCWD_NULL code.
81098         Include pathmax.h if not HAVE_GETCWD.
81099         Do not include xalloc.h.
81100         (INITIAL_BUFFER_SIZE): New symbol.
81101         Do not use xmalloc / xrealloc, since the caller is responsible for
81102         handling errors.  Preserve errno around `free' during failure.
81103         Do not overrun buffer when using getwd.
81104
81105 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81106
81107         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81108         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81109         getcwd (NULL, 0).
81110
81111 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81112
81113         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81114         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81115         spotted by Jim Meyering.
81116
81117 2001-09-03  Jim Meyering  <meyering@lucent.com>
81118
81119         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81120         failure.
81121
81122 2001-09-02  Jim Meyering  <meyering@lucent.com>
81123
81124         * lib/error.c: Update from GNU libc.
81125
81126 2001-09-01  Jim Meyering  <meyering@lucent.com>
81127
81128         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81129         Used by df.
81130
81131 2001-09-01  Jim Meyering  <meyering@lucent.com>
81132
81133         * lib/xreadlink.c: New file.
81134         * lib/xreadlink.h: New file.
81135         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81136         xreadlink.h.
81137
81138         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81139         doesn't conflict with sparc Solaris 7's definition in
81140         /usr/include/sys/int_types.h.
81141
81142         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81143         files.
81144         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81145         and strncasecmp as r-values.  Unixware didn't have declarations.
81146
81147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81148
81149         * lib/xstrtol.h: Add copyright notice.
81150         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81151         LONGINT_INVALID_SUFFIX_CHAR.
81152
81153 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81154
81155         * lib/xstrtol.c (strtoimax): New decl.
81156
81157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81158
81159         * lib/xgetcwd.c: Don't include pathmax.h.
81160         Include stdlib.h and unistd.h if available.
81161         Include xalloc.h.
81162         (xmalloc, xstrdup, free): Remove decls.
81163         (xgetcwd): Don't assume sizes fit in unsigned.
81164         Check for overflow when computing sizes.
81165         Simplify reallocation code.
81166
81167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81168
81169         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81170         a directory's st_size can have an arbitrary value, so the old
81171         usage could waste an arbitrary amount of memory.  All uses
81172         changed.
81173         * lib/savedir.h: Update prototype.
81174
81175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81176
81177         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81178
81179         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81180         old strtoimax.c.
81181
81182         Also, make the following further changes to make this file's
81183         configuration more similar to that of strtol.c:
81184         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81185         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81186         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81187         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81188         changed to signed values.
81189
81190         And make the following changes as well:
81191         Fix copyright notice, as 1999 was missing.
81192         (verify): New macro.
81193         (strtoimax): Check sizes at compile-time, not run-time.
81194         Prefer strtol to strtoll if both work.
81195         (main): Remove; it was not that useful and was a pain to maintain.
81196
81197         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81198
81199 2001-08-31  Jim Meyering  <meyering@lucent.com>
81200
81201         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81202         Use an initial, malloc'd, buffer of length 128 rather than
81203         a statically allocated one of length 1024.
81204
81205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81206
81207         Simplify code, partly by assuming autoconf 2.52 semantics.
81208
81209         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81210
81211         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81212         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81213         All uses removed.
81214         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81215         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81216         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81217         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81218         jm_AC_HEADER_INTTYPES_H.
81219         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81220
81221         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81222
81223         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81224         Quote first arg of AC_DEFUN.
81225         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81226         since they are needed to parse the include file even if we need
81227         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81228         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81229         but with opposite signedness.
81230
81231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81232
81233         Merge 'exclude' changes from tar 1.13.22.
81234         This fixes one or two unlikely storage allocation overflow bugs,
81235         but doesn't change user-visible behavior otherwise.
81236
81237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81238
81239         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81240         (jm_PREREQ_EXCLUDE): New macro.
81241
81242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81243
81244         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81245         tm to be declared.
81246
81247 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81248
81249         * lib/hash.c: Remove '2001' from copyright notice.
81250
81251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81252
81253         * lib/full-write.h: New file.
81254         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81255         * lib/full-write.c: Correct credits, as cccp.c no longer
81256         exists and anyway it was so heavily changed from the old cccp
81257         code as to be unrecognizable.  Include full-write.h.
81258         (full_write): Return size_t, with short writes meaning failure.
81259         All callers changed.  This fixes a bug with large buffers
81260         on 64-bit hosts.
81261         * lib/utime.c: Include full-write.h.
81262
81263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81264
81265         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81266         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81267         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81268         Include if available.
81269         (<xalloc.h>): Include
81270         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81271         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81272         collide with FNM macros.
81273         (struct patopts): New struct.
81274         (struct exclude): Use it, as exclude patterns now come with options.
81275         (new_exclude): Support above changes.
81276         (new_exclude, add_exclude_file):
81277         Initial size must now be a power of two to simplify overflow checking.
81278         (free_exclude, fnmatch_no_wildcards): New function.
81279         (excluded_filename): No longer requires options arg, as the options
81280         are determined by add_exclude.  Now returns bool, not int.
81281         (excluded_filename, add_exclude):
81282         Add support for the fancy new exclusion options.
81283         (add_exclude, add_exclude_file): Now takes int options arg.
81284         Check for arithmetic overflow when computing sizes.
81285         (add_exclude_file): xrealloc might modify errno, so don't
81286         realloc until after errno might be used.
81287
81288         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81289         New macros.
81290         (free_exclude): New decl.
81291         (add_exclude, add_exclude_file): Now takes int options arg.
81292         (excluded_filename): No longer requires options arg, as the options
81293         are determined by add_exclude.  Now returns bool, not int.
81294
81295 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81296
81297         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81298
81299 2001-08-27  Jim Meyering  <meyering@lucent.com>
81300
81301         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81302
81303         * lib/version-etc.c (N_): Remove definition.
81304         Revert most of last change.
81305         Instead, simply don't mark the `Copyright...' string for translation.
81306         Based on advice from Paul Eggert.
81307
81308         * lib/strtoxmax.c: Tweak comment.
81309
81310 2001-08-26  Jim Meyering  <meyering@lucent.com>
81311
81312         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81313
81314         * m4/xstrtoimax.m4: New file.
81315         * m4/xstrtoumax.m4: Add comments explaining why we
81316         AC_REPLACE_FUNCS(strtol).
81317
81318 2001-08-26  Jim Meyering  <meyering@lucent.com>
81319
81320         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81321         of copyright with `%s' so translators don't get an untranslated
81322         message in 2002.
81323         (COPYRIGHT_YEAR): Define.
81324         (version_etc): Use fprintf rather than fputs.
81325         Suggestion from Ulrich Drepper.
81326
81327         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81328
81329         * lib/strtoll.c: New file, from GNU libc.
81330         * lib/xstrtoimax.c: New file.
81331
81332         * lib/xstrtol.h: Add xstrtoimax.
81333         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81334         * lib/strtoimax.c: New file.  Likewise, but first define
81335         STRTOUXMAX_SIGNED.
81336
81337         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81338         ...
81339         * lib/strtoxmax.c: ... then renamed to this.
81340
81341 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81342
81343         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81344         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81345         (jm_AC_TYPE_INTMAX_T): New macro.
81346         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81347
81348         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81349
81350         * m4/longlong.m4: Renamed from ulonglong.m4.
81351         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81352         * m4/uintmax_t.m4: Removed.
81353
81354 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81355
81356         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81357         Port to Solaris 8, where 'sed' requires a space after the 'r'
81358         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81359         Redirect output to $tmp just once.
81360
81361 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81362
81363         * lib/addext.c (<errno.h>): Include.
81364         (errno): Declare if not defined.
81365         (addext): Work correctly when pathconf returns -1 and leaves
81366         errno alone because there is no limit.  Also, work even if
81367         pathconf returns a value greater than SIZE_MAX.
81368
81369 2001-08-12  Jim Meyering  <meyering@lucent.com>
81370
81371         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81372         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81373         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81374         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81375         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81376         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81377         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81378         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81379         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81380         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81381         utime.m4, utimes.m4, xstrtoumax.m4:
81382         Quote the first argument in each use of AC_DEFUN.
81383
81384 2001-08-12  Jim Meyering  <meyering@lucent.com>
81385
81386         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81387         Simply `return getcwd (NULL, 0);'.
81388         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81389         Use 1300 as initial value for length, not PATH_MAX.
81390
81391         * lib/pathmax.h: Clean up cpp syntax.
81392
81393 2001-08-12  Jim Meyering  <meyering@lucent.com>
81394
81395         * lib/gettimeofday.c: New file.
81396         * lib/gtod.h: New file.
81397         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81398
81399 2001-08-05  Jim Meyering  <meyering@lucent.com>
81400
81401         * m4/jm-macros.m4: Require autoconf-2.52.
81402
81403 2001-08-04  Jim Meyering  <meyering@lucent.com>
81404
81405         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81406         stmt, to get in sync with glibc.
81407
81408 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81409
81410         The following changes are from gettext 0.10.39 as maintained by
81411         Bruno Haible.
81412
81413         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81414         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81415         with inverted sense.  All uses changed.
81416
81417         * lib/mbswidth.c: Don't include <limits.h>.
81418         Include <stdlib.h> and <string.h> unconditionally.
81419         (iswcntrl, mbsinit, ISCNTRL): New macros.
81420         (mbsnwidth): Use K&R style function declarations.
81421         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81422         can optimize it when MB_CUR_MAX == 1.
81423         The width of control characters is zero, not 1.
81424
81425 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81426
81427         The following changes are from gettext 0.10.39 as maintained by
81428         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81429
81430         * m4/codeset.m4: Upgrade to serial AM1.
81431         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81432         all uses changed.  Quote first arg of AC_DEFUN.
81433         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81434
81435         * m4/iconv.m4: Upgrade to serial AM2.
81436         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81437         Add --with-libconv-prefix.
81438         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81439         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81440         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81441         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81442         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81443
81444         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81445         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81446         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81447         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81448         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81449         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81450         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81451         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81452         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81453
81454         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81455         string.h any more.
81456
81457         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81458         not the default value.
81459
81460         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81461         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81462         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81463         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81464         Also check for iswcntrl, used for wcwidth fallback.
81465         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81466         to Autoconf 2.13.
81467
81468 2001-08-03  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81471         as it was in the original.  Reported by Paul Eggert.
81472
81473 2001-07-16  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/gettimeofday.m4: New file.
81476         Prompted by a report from Bernhard Baehr.
81477
81478 2001-07-15  Jim Meyering  <meyering@lucent.com>
81479
81480         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81481         stuff. Now it's in ../Makefile.cfg.
81482
81483 2001-07-15  Jim Meyering  <meyering@lucent.com>
81484
81485         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81486         (BUILT_SOURCES): Add unlocked-io.h.
81487         (io_functions): Define.
81488         (unlocked-io.h): New rule.
81489         (DISTCLEANFILES): Add unlocked-io.h.
81490         (all-local): Depend on unlocked-io.h, to ensure it is created.
81491
81492         * lib/unlocked-io.hin: New file
81493
81494         * lib/regex.c: Update from glibc.
81495
81496 2001-07-05  Jim Meyering  <meyering@lucent.com>
81497
81498         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81499         recommendation.
81500         (libfetish_a_SOURCES): Put all .h files here instead.
81501         Remove a thus-exposed (better checks in automake) duplicate and
81502         two unnecessary .h files.
81503
81504 2001-07-04  Jim Meyering  <meyering@lucent.com>
81505
81506         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81507         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81508         distcheck failure.
81509
81510 2001-07-02  Jim Meyering  <meyering@lucent.com>
81511
81512         The following changes were prompted by suggestions from Bruno Haible.
81513
81514         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81515         is now generated.
81516         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81517         definition of EXTRA_DIST.
81518         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81519         ensure that the generated file is created/updated whenever the list
81520         of $(unlocked_functions) is changed.
81521         (jm-glibc-io.m4): New rule.
81522         (unlocked-io.h): New rule -- currently unused.
81523
81524 2001-06-24  Jim Meyering  <meyering@lucent.com>
81525
81526         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81527         unmatched right bracket, rather than kludging it with an extra,
81528         falsely-matching quote in a comment.  Patch by Akim Demaille.
81529
81530 2001-06-11  Jim Meyering  <meyering@lucent.com>
81531
81532         * lib/regex.c: Update from GNU libc.
81533
81534 2001-05-27  Jim Meyering  <meyering@lucent.com>
81535
81536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81537         Check for ut_type in struct utmp.
81538
81539 2001-05-27  Jim Meyering  <meyering@lucent.com>
81540
81541         * lib/readutmp.h (UT_TYPE): Define.
81542
81543 2001-05-24  Jim Meyering  <meyering@lucent.com>
81544
81545         * lib/argmatch.c: Include "quote.h".
81546         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81547         quote function.  Reported by Göran Uddeborg.
81548
81549 2001-05-22  Jim Meyering  <meyering@lucent.com>
81550
81551         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81552         now that we use the package-supplied version unconditionally.
81553         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81554
81555 2001-05-21  Jim Meyering  <meyering@lucent.com>
81556
81557         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81558         shell syntax errors.
81559
81560 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81561
81562         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81563
81564 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81565
81566         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81567         Don't bother to check library strftime, since
81568         we'll be using our own my_strftime function anyway.
81569         Define my_strftime instead of strftime.
81570
81571 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81572
81573         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81574         which is not yet declared.
81575
81576 2001-05-15  Jim Meyering  <meyering@lucent.com>
81577
81578         * m4/regex.m4: Use proper quoting so brackets appear in the test
81579         program.
81580         Reported by, and with help from, Bruno Haible.
81581
81582 2001-05-13  Jim Meyering  <meyering@lucent.com>
81583
81584         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81585         undefined.
81586
81587 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81588
81589         dirname code cleanup.  base_name now behaves more compatibly
81590         with POSIX basename when given file names that have trailing
81591         slashes, and similarly for dir_name.  Add new primitives
81592         base_len and dir_len.  Put the directory-name-related decls
81593         into dirname.h.
81594
81595         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81596         * lib/backupfile.c (base_name): Likewise.
81597         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81598         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81599         * lib/makepath.c (strip_trailing_slashes): Likewise.
81600         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81601         ISSLASH): Likewise.
81602         * lib/rename.c (strip_trailing_slashes): Likewise.
81603         * lib/same.c (base_name): Likewise.
81604         * lib/stripslash.c (ISSLASH): Likewise.
81605
81606         * lib/addext.c: Include <dirname.h> after size_t is defined.
81607         * lib/backupfile.c: Likewise.
81608
81609         * lib/addext.c (addext): Use base_len to trim redundant
81610         trailing slashes instead of doing it ourselves.
81611         But do not trim the last slash if it is not redundant.
81612
81613         * lib/backupfile.c (find_backup_file_name,
81614         max_backup_version): Use base_len instead of rolling it ourselves.
81615         Handle the case of "" and (on DOS) "C:" correctly.
81616
81617         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81618         needed. Include <string.h>, <dirname.h>.
81619         (base_name): Allow file names ending in slashes, other than names
81620         that are all slashes.  In this case, return the basename followed
81621         by the slashes.  This is more general, and can be used in places
81622         where the original base_name purposely had an assertion failure.
81623         (base_len): New function.
81624
81625         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81626         Do not include <assert.h>; no longer needed.
81627         Include xalloc.h.
81628         (memrchr): Remove decl.
81629         (dir_name_r): Remove.
81630         (dir_len): Renamed from dirlen.  All callers changed.
81631         Rewrite in terms of base_name, for simplicity and consistency.
81632         (dir_name): Never return NULL.  All callers changed.
81633         Do not include <stdlib.h> in test program; no longer needed.
81634         return 0; is fine for test program.
81635
81636         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81637         New macros.
81638         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81639
81640         * lib/path-concat.c (path_concat): Use base_len to compute
81641         base length, not strlen; this means we cannot rely on memcpy
81642         to null-terminate.
81643
81644         * lib/same.c (STREQ): Remove.
81645         (same_name): Handle the case where the basename ends in trailing '/'.
81646
81647         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81648         a slash was stripped.  Do not strip the last slash after a
81649         file system prefix.
81650
81651 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81652
81653         * lib/Makefile.am (libfetish_a_SOURCES):
81654         Add strftime.c, since we now compile it on all hosts.
81655
81656         * lib/strftime.c (my_strftime):
81657         Define to nstrftime if emacs, but only if my_strftime is not defined.
81658         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81659         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81660         Add one more extra argument: a nanoseconds value.
81661         All uses changed.
81662         (ns): New macro.
81663         (my_strftime function): Add %N format.
81664         (emacs_strftimeu): Renamed from emacs_strftime,
81665         with extra ut argument.
81666
81667 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81668
81669         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81670
81671 2001-04-21  Jim Meyering  <meyering@lucent.com>
81672
81673         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81674         doesn't interfere.
81675
81676 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81677
81678         * m4/ftruncate.m4: Check for chsize.
81679         Link with ftruncate.o unconditionally if ftruncate is missing.
81680         This was required when cross-compiling to i586-mingw32msvc.
81681
81682 2001-04-08  Jim Meyering  <meyering@lucent.com>
81683
81684         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81685         recomputed; that's necessary when the offset spans a DST transition.
81686         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81687
81688 2001-04-02  Jim Meyering  <meyering@lucent.com>
81689
81690         * lib/regex.h, regex.c: Update from GNU libc.
81691
81692 2001-03-24  Jim Meyering  <meyering@lucent.com>
81693
81694         * m4/jm-macros.m4: Require autoconf-2.49d.
81695
81696 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81697
81698         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81699
81700 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81701
81702         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81703
81704 2001-03-17  Jim Meyering  <meyering@lucent.com>
81705
81706         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81707         now that the version in autoconf is equivalent.
81708         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81709
81710         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81711         Suggestion from Akim Demaille.
81712
81713         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81714         (jm_PREREQ_TEMPNAME): New function.
81715
81716 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81717
81718         * lib/tempname.c (uint64_t): Define to uintmax_t if
81719         not defined, and if UINT64_MAX is not defined.
81720         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81721         Reported by John David Anglin.
81722
81723 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81724
81725         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81726         resolve alias if codeset is empty.
81727         * lib/config.charset (BeOS): Use wildcard syntax.
81728
81729 2001-03-13  Jim Meyering  <meyering@lucent.com>
81730
81731         * lib/path-concat.c (path_concat)
81732         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81733         concatenating e.g., `C:' and `foo'.
81734         From Bruno Haible.
81735
81736 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81737
81738         * lib/localcharset.c (locale_charset): Don't use
81739         setlocale(LC_CTYPE,NULL). Don't return NULL.
81740         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81741
81742 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81743
81744         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81745         support for DOS/DJGPP.
81746
81747 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81748
81749         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81750         lacks mkstemp.  Compile our own tempname.c if we compile our own
81751         mkstemp.c, as mkstemp relies on tempname.
81752
81753 2001-03-01  Jim Meyering  <meyering@lucent.com>
81754
81755         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81756         AH_VERBATIM really does output its argument verbatim.
81757
81758 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81759
81760         * lib/Makefile.am (libfetish_a_SOURCES):
81761         Add dup-safer.c, fopen-safer.c.
81762         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81763
81764         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81765         * lib/unistd-safer.h: New files.
81766
81767 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81768
81769         The mkstemp replacement is taken from glibc 2.2.2, with some
81770         portability fixes for use outside glibc, as follows:
81771
81772         * lib/tempname.c (struct_stat64): New macro.
81773         (direxists, __gen_tempname): Use it.
81774         This avoids a portability problem with Solaris 8.
81775
81776         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81777         (<stddef.h>, <stdint.h>, <string.h>):
81778         Include only if STDC_HEADERS || _LIBC.
81779         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81780         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81781         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81782         (__set_errno): Define this macro if <errno.h> doesn't.
81783         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81784         Define these macros if <stdio.h> doesn't.
81785         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81786         Define these macros if <sys/stat.h>
81787         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81788         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81789         __xstat64): Define if not _LIBC.
81790         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81791         (__gen_tempname): Invoke gettimeofday only if
81792         HAVE_GETTIMEOFDAY || _LIBC;
81793         otherwise, fall back on plain "time".
81794         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81795
81796         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81797
81798         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81799
81800 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81801
81802         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81803
81804 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81805
81806         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81807         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81808         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81810
81811 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81812
81813         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81814         Remove workaround macros for hosts that have mbrtowc but not
81815         mbstate_t, as we now insist on proper declarations for both
81816         before using mbrtowc.
81817
81818 2001-02-17  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81821         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81822         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81823         UnixWare 7.1.1.
81824
81825         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81826         rather than AC_CACHE_VAL.
81827
81828 2001-02-17  Jim Meyering  <meyering@lucent.com>
81829
81830         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81831         around included file name.
81832
81833         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81834
81835         * lib/strftime.c: Update from GNU libc (the only changes were to
81836         comments).
81837
81838 2001-02-17  Jim Meyering  <meyering@lucent.com>
81839
81840         * lib/regex.c: Update from libc.
81841
81842 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81843
81844         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81845         clash.
81846
81847 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81848
81849         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81850         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81851         Reported by Mark Hounschell via Paul Eggert.
81852
81853 2001-02-07  Jim Meyering  <meyering@lucent.com>
81854
81855         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81856
81857 2001-02-05  Jim Meyering  <meyering@lucent.com>
81858
81859         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81860         it includes the patch required for `large file' support with at least
81861         HP-UX's 10.20 /bin/cc.
81862
81863 2001-02-03  Jim Meyering  <meyering@lucent.com>
81864
81865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81866         AS_IF, now that it works once again (mysteriously).
81867         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81868
81869 2001-01-30  Jim Meyering  <meyering@lucent.com>
81870
81871         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81872         * m4/chown.m4: Rename conftestchown to conftest.chown.
81873         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81874         s/conftestdir2/conftest.d2/.
81875         * m4/utimes.m4: s/conftestdata/conftest.data/
81876         Inspired by Pavel Roskin's change in autoconf.
81877
81878 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81879
81880         * lib/config.charset: Update for FreeBSD 4.2.
81881
81882 2001-01-27  Jim Meyering  <meyering@lucent.com>
81883
81884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81885         a use of AS_IF.
81886         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81887
81888 2001-01-26  Jim Meyering  <meyering@lucent.com>
81889
81890         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81891         quotearg.c includes it.
81892
81893 2001-01-26  Jim Meyering  <meyering@lucent.com>
81894
81895         * lib/quotearg.c: Include stddef.h.
81896         * lib/quote.c: Include stddef.h.
81897         Reported by Axel Kittenberger.
81898
81899         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81900         line in double quotes so that it evokes a better diagnostic.
81901         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81902         Reported by Axel Kittenberger.
81903
81904 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81905
81906         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81907         as if it was a `charset'.
81908
81909 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81910
81911         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81912         has const.
81913
81914 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81915
81916         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81917         to avoid a warning.  Add back 'const' to inptr.
81918
81919 2001-01-20  Jim Meyering  <meyering@lucent.com>
81920
81921         Be sure that headers are checked before used in code compiled
81922         for the type checks.
81923         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81924         In place of that, invoke jm_CHECK_ALL_TYPES.
81925         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81926         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81927         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81928         The check for ssize_t was mistakenly run before the test for unistd.h.
81929
81930         The configure-time check for stdbool.h was missing.
81931         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81932         (jm_PREREQ_HASH): New function.
81933
81934 2001-01-17  Jim Meyering  <meyering@lucent.com>
81935
81936         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81937         for autoconf-2.49c.
81938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81939
81940 2001-01-16  Jim Meyering  <meyering@lucent.com>
81941
81942         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81943         From Bruno Haible.
81944
81945 2001-01-14  Jim Meyering  <meyering@lucent.com>
81946
81947         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81948         foo and bar.  Create conftestdir/ in the script, not in the C code.
81949         Remove directories in the script, not in the C code.
81950         Remove conftestdir{,2} before trying to create the directory.
81951         Make the entire configure script fail if the mkdir fails.
81952
81953 2001-01-14  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/rename.c: New file.  From Volker Borchert.
81956         Include stdlib.h, string.h or strings.h, and xalloc.h.
81957         Use strip_trailing_slashes rather than open-coding it.
81958
81959 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81960
81961         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81962
81963 2001-01-03  Jim Meyering  <meyering@lucent.com>
81964
81965         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81966         of local `inptr' to avoid warning with some system declarations of
81967         iconv.
81968
81969 2001-01-02  Volker Borchert  <bt@teknon.de>
81970
81971         * m4/rename.m4: New file.
81972         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81973
81974 2001-01-01  Jim Meyering  <meyering@lucent.com>
81975
81976         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81977         even on systems with utmpx.h.  It's necessary for the declaration of
81978         utmp's ut_user member.  Reported by Andreas Jaeger.
81979
81980         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81981         available. They are required for the declarations of getgrgid and
81982         getpwuid resp.
81983         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81984         Reported by Andreas Jaeger.
81985
81986 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81987
81988         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81989         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81990         so `make install' also works in VPATH builds.
81991
81992 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81993
81994         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81995         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81996         can be used in subdirectories.
81997
81998 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81999
82000         * lib/modechange.c: Do not assume that mode_t uses the
82001         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82002         the other-execute bit of FOO even if S_IXOTH != 1.
82003
82004         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82005         WOTH, XOTH, ALLM): New macros.
82006         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82007          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82008         Use them.
82009         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82010         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82011         (mode_compile):
82012         No need to use uintmax_t; unsigned long is long enough.
82013         Don't bother to get suffix since we don't use it.
82014
82015 2000-12-26  Jim Meyering  <meyering@lucent.com>
82016
82017         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82018         better with autoheader.
82019
82020 2000-12-24  Jim Meyering  <meyering@lucent.com>
82021
82022         * lib/hash.c (is_prime): Return explicit boolean values.
82023         (hash_get_first): Return NULL to appease Irix5.6's 89.
82024         Reported by Nelson Beebe.
82025
82026 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82027
82028         * lib/localcharset.c (locale_charset): Add support for Win32.
82029
82030 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82031
82032         * lib/physmem.h, lib/physmem.c: New files.
82033
82034         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82035         (noinst_HEADERS): Add physmem.h.
82036
82037         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82038         't' for compatibility with Solaris 8 sort.
82039
82040 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82041
82042         * lib/config.charset: Add support for BeOS.
82043
82044 2000-12-17  Jim Meyering  <meyering@lucent.com>
82045
82046         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82047         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82048
82049 2000-12-16  Jim Meyering  <meyering@lucent.com>
82050
82051         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82052         N and M) would have treated it like `chown N:N FILE'.
82053
82054         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82055
82056 2000-12-16  Jim Meyering  <meyering@lucent.com>
82057
82058         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82059         SHELLS_FILE to a file name that's useful on djgpp systems.
82060         Include stdlib.h.
82061         (ADDITIONAL_DEFAULT_SHELLS): Define.
82062         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82063         Based mostly on a patch from Prashant TR.
82064
82065 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82066
82067         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82068         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82069         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82070
82071 2000-12-08  Andreas Schwab  <schwab@suse.de>
82072
82073         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82074         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82075
82076 2000-12-07  Jim Meyering  <meyering@lucent.com>
82077
82078         * lib/stripslash.c (ISSLASH): Define.
82079         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82080         `/'.
82081         From Prashant TR.
82082
82083         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82084         (dir_name_r): Declare this function as static.
82085         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82086         manifest itself on a name containing a mix of slashes and
82087         backslashes.
82088         Make this function work with names starting with a DOS-style
82089         drive letter and colon prefix.
82090         (dir_name): Append `.' if necessary.
82091         Based mostly on patches from Prashant TR and Eli Zaretskii.
82092
82093         * lib/dirname.h (dir_name_r): Remove prototype.
82094
82095 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82096
82097         * m4/off_t-format.m4: Remove this file.
82098         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82099
82100 2000-12-06  Jim Meyering  <meyering@lucent.com>
82101
82102         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82103         replacement strtoull, we may well need the replacement strtoul, too.
82104         Check for declarations of strtoul and strtoull.
82105         Check for strtol.  Mainly as a cue to cause automake to include
82106         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82107         Check for limits.h -- strtol.c needs it.
82108
82109 2000-12-05  Jim Meyering  <meyering@lucent.com>
82110
82111         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82112
82113 2000-12-04  Jim Meyering  <meyering@lucent.com>
82114
82115         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82116         Also include memory.h, stdlib.h, unistd.h if appropriate.
82117         Reported by Andreas Jaeger (conflicting declaration of malloc).
82118
82119 2000-12-02  Jim Meyering  <meyering@lucent.com>
82120
82121         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82122         * m4/jm-macros.m4 (jm_MACROS): require it.
82123
82124 2000-12-02  Jim Meyering  <meyering@lucent.com>
82125
82126         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82127
82128 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82129
82130         * lib/memrchr.c: Include <config.h> before any system include file.
82131
82132 2000-11-30  Jim Meyering  <meyering@lucent.com>
82133
82134         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82135
82136 2000-11-30  Jim Meyering  <meyering@lucent.com>
82137
82138         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82139
82140 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82141
82142         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82143
82144 2000-11-26  Jim Meyering  <meyering@lucent.com>
82145
82146         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82147
82148 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82149
82150         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82151         size of (size_t) -1; it's not portable.
82152
82153 2000-11-17  Jim Meyering  <meyering@lucent.com>
82154
82155         * lib/strstr.c: Update from GNU libc.
82156
82157 2000-11-17  Akim Demaille  <akim@epita.fr>
82158
82159         * lib/obstack.h: Formatting changes.
82160         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82161         prevent type checking.
82162         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82163         cast the value to (void *): assigning a `foo *' to a `void *'
82164         variable is valid.
82165         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82166
82167 2000-11-16  Jim Meyering  <meyering@lucent.com>
82168
82169         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82170
82171 2000-11-11  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82174
82175 2000-11-10  Jim Meyering  <meyering@lucent.com>
82176
82177         * lib/obstack.h: Update from GNU libc.
82178         * lib/obstack.c: Likewise.
82179
82180 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82181
82182         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82183
82184 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82185
82186         * lib/getusershell.c (setusershell): Use rewind rather than
82187         fseek/fseeko, to avoid configuration hassles with fseeko.
82188         Don't bother opening SHELLS_FILE if shellstream is NULL;
82189         it's not necessary.
82190
82191 2000-11-05  Jim Meyering  <meyering@lucent.com>
82192
82193         * lib/makepath.h (make_dir): Declare.
82194         * lib/makepath.c (make_dir): Remove `static' attribute.
82195         Tweak a comment.
82196
82197 2000-11-04  Jim Meyering  <meyering@lucent.com>
82198
82199         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82200
82201 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82202
82203         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82204         last one in a bucket, advance to the next bucket.
82205
82206 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82207
82208         * lib/fnmatch.c: Do not comment out all the code if we are using
82209         the GNU C library, because in some cases we are replacing buggy
82210         code in the GNU C library itself.
82211
82212 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82213
82214         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82215         (regex_compile): Catch bogus \(\1\).
82216
82217 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82218
82219         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82220         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82221         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82222
82223 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82224
82225         * lib/error.h, getline.h, modechange.h:
82226         Remove "2000" from Copyright line, as the file hasn't been
82227         changed this year other than in the copyright notice.
82228
82229         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82230         was changed this year.
82231
82232 2000-10-29  Jim Meyering  <meyering@lucent.com>
82233
82234         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82235         renaming.
82236         * m4/ls-mntd-fs.m4: Likewise
82237
82238 2000-10-29  Jim Meyering  <meyering@lucent.com>
82239
82240         * lib/xstat.in: Fix grammar in comment.
82241
82242 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82243
82244         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82245         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82246         doesn't define __restrict_arr.
82247
82248 2000-10-28  Jim Meyering  <meyering@lucent.com>
82249
82250         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82251         (jm_PREREQ_MEMCHR): New function.
82252
82253 2000-10-28  Jim Meyering  <meyering@lucent.com>
82254
82255         * lib/memchr.c: Update from libc.
82256         Adjust for portability:
82257         [HAVE_STDLIB_H]: Include stdlib.h.
82258         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82259         Undef __memchr, too.
82260         [!weak_alias]: Define __memchr to memchr.
82261
82262         * lib/regex.c: Update from libc.
82263         * lib/regex.h: Likewise.
82264         * lib/getopt1.c: Likewise.
82265         * lib/memcmp.c: Likewise.
82266
82267         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82268         Avoid using fseek, when possible -- it's broken by design.
82269         Patch by Ulrich Drepper.
82270
82271 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82272
82273         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82274         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82275         Giving in to popular pressure to shut up the compiler with casts.
82276
82277 2000-10-26  Jim Meyering  <meyering@lucent.com>
82278
82279         * lib/strftime.c: Update from libc.
82280
82281 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82282
82283         * regex.c: More `unsigned char' -> `re_char' changes.
82284         Also change several `int' into `re_wchar_t'.
82285         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82286         (PUSH_FAILURE_POINTER): Don't cast any more.
82287         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82288         We want GCC to complain, since this piece of code makes
82289         re_match non-reentrant, which *should* be fixed.
82290         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82291         (EXTEND_BUFFER): Use RETALLOC.
82292         (SET_LIST_BIT): Don't cast.
82293         (re_wchar_t): New type.
82294         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82295         that those two functions will always properly return.
82296         (IMMEDIATE_QUIT_CHECK): Cast to void.
82297         (analyse_first): Use recursion rather than an explicit stack.
82298         (re_compile_fastmap): Can't fail anymore.
82299         (re_search_2): Don't check re_compile_fastmap for failure.
82300         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82301         Now also sets the new value (passed in a new argument).
82302         (re_match_2_internal): Use it.
82303         Also, use a new var `reg' of type size_t when looping through regs
82304         rather than reuse the inappropriate `mcnt'.
82305
82306 2000-10-25  Jim Meyering  <meyering@lucent.com>
82307
82308         * lib/obstack.c: Update from libc.
82309
82310 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82311
82312         * regex.c (regex_compile): Change the way of handling a range from
82313         a char less than 256 to a char not less than 256.
82314
82315 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82316
82317         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82318         NT-Emacs only.
82319         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82320         so that re_search functions only quit when callers expect them to.
82321
82322 2000-10-23  Jim Meyering  <meyering@lucent.com>
82323
82324         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82325         wrong.  That set_locale call must not have any side effects.
82326         From Paul Eggert.
82327
82328 2000-10-22  Jim Meyering  <meyering@lucent.com>
82329
82330         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82331         [CYCLIC]: Remove now-unused definition.
82332
82333         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82334         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82335         Suggestion from Ulrich Drepper.
82336
82337 2000-10-21  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82340         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82342
82343 2000-10-21  Jim Meyering  <meyering@lucent.com>
82344
82345         * lib/dirname.c (memrchr): Declare if necessary.
82346         (dir_name): Remove the restriction that there be no
82347         trailing slashes.  Now, this code skips past them, effectively
82348         ignoring them.
82349         [TEST_DIRNAME] (main): New unit tests.
82350
82351         * lib/memrchr.c: New file from GNU libc.
82352         Undef __memrchr, too.
82353         [!weak_alias]: Define __memrchr to memrchr.
82354         Guard weak_alias use with `#ifdef weak_alias'.
82355
82356 2000-10-21  Jim Meyering  <meyering@lucent.com>
82357
82358         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82359         (dir_name): Use dir_name_r.
82360         * lib/dirname.h (dir_name_r): Declare it.
82361
82362 2000-10-17  Jim Meyering  <meyering@lucent.com>
82363
82364         * lib/quote.h (PARAMS): Define and use.
82365         Reported by Akim Demaille.
82366
82367         * lib/getopt.c: Update from libc.
82368
82369 2000-10-16  Jim Meyering  <meyering@lucent.com>
82370
82371         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82372         setlocale.
82373         From Jan Fedak.
82374
82375 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82376
82377         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82378
82379 2000-09-25  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/md5.h (rol): Define (from GnuPG).
82382
82383         * lib/sha.c: Give credit (GnuPG) where due.
82384         (M): Use rol rather than open-coding it.
82385         Add a FIXME comment.
82386
82387 2000-09-21  Jim Meyering  <meyering@lucent.com>
82388
82389         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82390         Reported by Michael Stone.
82391
82392 2000-09-20  Jim Meyering  <meyering@lucent.com>
82393
82394         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82395         (noinst_HEADERS): Add sha.h.
82396         Based on code from Scott G. Miller and from GnuPG.
82397
82398 2000-09-18  Jim Meyering  <meyering@lucent.com>
82399
82400         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82401         LIBS. Otherwise, everyone ends up linking with -lelf for some
82402         configurations.
82403         Reported by Mike Stone.
82404
82405 2000-09-15  Jim Meyering  <meyering@lucent.com>
82406
82407         * lib/regex.c: Update from libc.
82408
82409 2000-09-10  Jim Meyering  <meyering@lucent.com>
82410
82411         * lib/getopt.c (_getopt_internal): Update from glibc.
82412
82413 2000-09-09  Jim Meyering  <meyering@lucent.com>
82414
82415         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82416         think it should be used as a general replacement for isascii.
82417         * lib/fnmatch.c: Likewise.
82418         * lib/mbswidth.c: Likewise
82419         * lib/regex.c: Likewise.
82420
82421         Don't use atoi.
82422         * lib/userspec.c: Include sys/param.h and limits.h.
82423         Include xstrtol.h.
82424         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82425         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82426         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82427         UID, GID.  Check range.
82428
82429 2000-09-06  Jim Meyering  <meyering@lucent.com>
82430
82431         * lib/getopt.c (_getopt_internal): Update from glibc.
82432
82433 2000-08-30  Jim Meyering  <meyering@lucent.com>
82434
82435         * lib/strftime.c: Merge in changes from GNU libc.
82436
82437 2000-08-26  Jim Meyering  <meyering@lucent.com>
82438
82439         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82440         * m4/fpending.m4: New file.
82441
82442 2000-08-26  Jim Meyering  <meyering@lucent.com>
82443
82444         * lib/closeout.c: Include "__fpending.h".
82445         (close_stdout_status): Return right away if there's nothing to flush.
82446
82447         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82448         * lib/__fpending.c: New file.
82449         * lib/__fpending.h: New file.
82450
82451 2000-08-20  Jim Meyering  <meyering@lucent.com>
82452
82453         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82454         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82455         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82456
82457 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82458
82459         Improve fileutils installation on systems where running
82460         programs (like install) can't be unlinked.
82461         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82462         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82463
82464 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82465
82466         Standardize on "memory exhausted" instead of "Memory exhausted"
82467         or "virtual memory exhausted".
82468         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82469         "virtual memory exhausted".
82470         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82471         our own message.
82472         * lib/userspec.c (parse_user_spec): Likewise.
82473         * lib/bumpalloc.h: comment fix
82474         * lib/same.c, userspec.c: Include xalloc.h.
82475
82476         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82477         not char *const and pointing to a constant array.
82478         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82479         (xrealloc): Comment fix.
82480
82481         * lib/userspec.c (parse_user_spec):
82482         Don't translate a message until just before returning,
82483         to avoid unnecessary translation.
82484
82485 2000-08-07  Jim Meyering  <meyering@lucent.com>
82486
82487         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82488         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82489         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82490         getgroups.c, gethostname.c, getopt.h, group-member.c,
82491         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82492         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82493         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82494         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82495         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82496         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82497         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82498         yesno.c: Back out Copyright date changes for each file with no change
82499         this year.  This eases coordination with other programs using the same
82500         source code modules.  From Paul Eggert.
82501
82502 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82503
82504         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82505         not char, for compatibility with glibc 2.1.3 strftime.c.
82506
82507 2000-08-03  Greg McGary  <greg@mcgary.org>
82508
82509         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82510         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82511         (EXTEND_BUFFER): Use them.
82512
82513 2000-08-01  Jim Meyering  <meyering@lucent.com>
82514
82515         * lib/dirname.c (ISSLASH): Define.
82516         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82517         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82518         both `\' and `/' may be use as path separators.
82519         Based on a patch from Prashant TR.
82520
82521 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82524         slot vector a constant, since it might get modified.
82525
82526 2000-07-31  Jim Meyering  <meyering@lucent.com>
82527
82528         * lib/xmalloc.c: Use `virtual memory exhausted', not
82529         `Memory exhausted'.
82530         * lib/obstack.c (print_and_abort): Likewise.
82531
82532 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82533
82534         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82535         buffer, so that the caller can always quote one small
82536         component of a "memory exhausted" message in slot 0.
82537         From a suggestion by Jim Meyering.
82538
82539 2000-07-30  Jim Meyering  <meyering@lucent.com>
82540
82541         * lib/makepath.c (make_path): Quote the other instance, too.
82542
82543         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82544         (STATIC_BUF_SIZE): Define.
82545         (quotearg_n_options): Use only statically allocated storage when
82546         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82547         than STATIC_BUF_SIZE.
82548
82549 2000-07-29  Jim Meyering  <meyering@lucent.com>
82550
82551         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82552         * lib/dirname.c (dir_name): Likewise.
82553
82554         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82555         `/'.
82556
82557         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82558         (dir_name): Assert that there are no trailing slashes.
82559
82560 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82561
82562         * lib/mbswidth.h (mbswidth): Add a flags argument.
82563         (mbswidth): New declaration.
82564         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82565         * lib/mbswidth.c (mbswidth): Add a flags argument.
82566         (mbsnwidth): New function.
82567
82568 2000-07-24  Jim Meyering  <meyering@lucent.com>
82569
82570         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82571
82572 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82573
82574         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82575
82576 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82577
82578         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82579         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82580         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82581         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82582         invoke multibyte primitives.
82583
82584 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82585
82586         * lib/quotearg.c:
82587         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82588         so that mbstate_t is always defined.
82589
82590         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82591         be 1 in at least one GCC installation, and this configuration
82592         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82593         performance on hosts that have mbrtowc but have only unibyte
82594         locales, but I assume these hosts are rare.
82595
82596 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82597
82598         * lib/mbswidth.c (_XOPEN_SOURCE):
82599         Don't define; this causes problems on Solaris 7.
82600         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82601
82602 2000-07-23  Jim Meyering  <meyering@lucent.com>
82603
82604         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82605         too: getgrgid, getpwuid, getuid.
82606
82607 2000-07-23  Jim Meyering  <meyering@lucent.com>
82608
82609         * lib/basename.c (base_name): Add an assertion.
82610
82611 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82612
82613         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82614         shadow its mbsinit function.
82615
82616 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82617
82618         * lib/mbswidth.h: New file.
82619         * lib/mbswidth.c: New file.
82620         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82621         (noinst_HEADERS): Add mbswidth.h.
82622
82623 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82624
82625         * lib/config.charset: Add support for FreeBSD. Improve support for
82626         HP-UX and IRIX 6.
82627
82628 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82629
82630         * m4/mbswidth.m4: New file.
82631         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82632
82633 2000-07-15  Jim Meyering  <meyering@lucent.com>
82634
82635         * lib/makepath.c: Include quote.h.
82636         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82637         corresponding argument in a `quote (...)' call.
82638         Give better diagnostics.
82639
82640         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82641         (noinst_HEADERS): Add quote.h.
82642
82643         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82644         from tar's src/misc.c.
82645         * lib/quote.h: New file.  Prototypes for same.
82646
82647 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82648
82649         From a suggestion by Bruno Haible.
82650         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82651         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82652         to decide whether to define the BeOS workaround macro;
82653         this adjusts to the change to AC_MBSTATE_T.
82654
82655 2000-07-14  Jim Meyering  <meyering@lucent.com>
82656
82657         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82658         jm_AC_TYPE_UINTMAX_T.
82659
82660 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82661
82662         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82663
82664         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82665         quotearg_buffer_restyled): Add support for
82666         clocale_quoting_style.  Undo previous change to
82667         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82668         and "{RIGHT QUOTATION MARK}" msgids.
82669
82670 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82671
82672         From a suggestion by Bruno Haible.
82673         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82674         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82675         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82676         and mbstate_t, to a single-part test that simply defines mbstate_t.
82677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82678         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82679
82680 2000-07-10  Jim Meyering  <meyering@lucent.com>
82681
82682         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82683
82684         * m4/gnu-source.m4: Output to confdefs.h directly.
82685         Suggestion from Akim Demaille.
82686
82687 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82688
82689         The old behavior of quoting `like this' doesn't look good with
82690         newer, ISO-style fonts.  See:
82691         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82692
82693         Instead, quote "like this" by default.  Let the translator
82694         tailor the locale-specific quoting behavior by providing
82695         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82696
82697         * lib/quotearg.c (N_): New macro.
82698         (gettext_default): New function.
82699         (quotearg_buffer_restyled): Use
82700         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82701         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82702
82703 2000-07-09  Jim Meyering  <meyering@lucent.com>
82704
82705         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82706         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82707
82708         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82710
82711 2000-07-09  Jim Meyering  <meyering@lucent.com>
82712
82713         * lib/Most files: Update copyright dates to include 2000.
82714
82715 2000-07-08  Jim Meyering  <meyering@lucent.com>
82716
82717         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82718         if not defined.
82719         (xgethostname): Remove now-unnecessary #ifdef.
82720         Move declaration of `err' into loop where it's used.
82721
82722 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82723         and Bruno Haible  <haible@clisp.cons.org>
82724
82725         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82726         only if the test for an object-type mbstate_t fails.  This
82727         prevents us from mistakenly reporting that mbstate_t is a
82728         system object type after we "#define mbstate_t int" to work
82729         around its lack.
82730
82731 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82732         and Bruno Haible  <haible@clisp.cons.org>
82733
82734         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82735
82736 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82737
82738         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82739         to strerror_r.
82740         Include <ctype.h> for use of isalpha.
82741
82742 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82743
82744         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82745         by allocating a larger buffer. Test the gethostname return value for
82746         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82747         returns an error and ENAMETOOLONG isn't defined.
82748
82749 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82750
82751         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82752         dimension.
82753
82754 2000-07-04  Jim Meyering  <meyering@lucent.com>
82755
82756         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82757         of the deprecated AC_CHECKING.
82758
82759 2000-07-04  Jim Meyering  <meyering@lucent.com>
82760
82761         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82762         Reported by Bruno Haible.
82763
82764 2000-07-04  Jim Meyering  <meyering@lucent.com>
82765
82766         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82767         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82768         lacks mbrtowc.
82769
82770 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82771
82772         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82773         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82774
82775 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82776         and Bruno Haible  <haible@clisp.cons.org>
82777
82778         * lib/quotearg.c (mbrtowc):
82779         Assign to *pwc, and return 1 only if result is nonzero.
82780         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82781
82782 2000-07-03  Jim Meyering  <meyering@lucent.com>
82783
82784         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82785
82786 2000-07-03  Jim Meyering  <meyering@lucent.com>
82787
82788         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82789         This is necessary to get a definition of e.g., UTMP_FILE on
82790         HP-UX 10.20.
82791         From Bob Proulx.
82792
82793 2000-07-02  Jim Meyering  <meyering@lucent.com>
82794
82795         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82796
82797         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82798         AC_LIBOBJ(function_name).
82799         * m4/chown.m4: Likewise.
82800         * m4/fnmatch.m4: Likewise.
82801         * m4/ftruncate.m4: Likewise.
82802         * m4/getgroups.m4: Likewise.
82803         * m4/getline.m4: Likewise.
82804         * m4/group-member.m4: Likewise.
82805         * m4/jm-macros.m4: Likewise.
82806         * m4/lstat.m4: Likewise.
82807         * m4/malloc.m4: Likewise.
82808         * m4/memcmp.m4: Likewise.
82809         * m4/nanosleep.m4: Likewise.
82810         * m4/putenv.m4: Likewise.
82811         * m4/realloc.m4: Likewise.
82812         * m4/regex.m4: Likewise.
82813         * m4/stat.m4: Likewise.
82814         * m4/strftime.m4: Likewise.
82815
82816 2000-07-02  Jim Meyering  <meyering@lucent.com>
82817
82818         * lib/quotearg.c (mbstate_t): Don't define here.
82819
82820 2000-07-02  Jim Meyering  <meyering@lucent.com>
82821
82822         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82823
82824 2000-07-01  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82827
82828 2000-07-01  Jim Meyering  <meyering@lucent.com>
82829
82830         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82831         problem.
82832
82833 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82834
82835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82836         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82837
82838 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82839
82840         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82841         per change in ../m4/ls-mntd-fs.m4.
82842         (read_filesystem_list): Ignore symbolic links.
82843
82844 2000-06-29  Jim Meyering  <meyering@lucent.com>
82845
82846         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82847         for declaration of strcmp.
82848
82849         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82850
82851         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82852         Avoid warning by casting result to `char *' to remove `const'.
82853
82854 2000-06-28  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82857         included by quotearg.c, for which we perform this test.  From
82858         Bruno Haible.
82859
82860 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82861
82862         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82863         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82864         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82865
82866 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82867
82868         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82869
82870 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82871
82872         savedir now sets errno on failure and invokes xmalloc to get memory.
82873         Fix a couple of other minor bugs while we're at it.
82874
82875         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82876         (NAMLEN): Remove macro.
82877         (malloc, realloc): Remove decls.
82878         (stpcpy): Likewise.
82879         ("xalloc.h"): Include.
82880         (NAME_SIZE_DEFAULT): New macro.
82881         (savedir): Use xmalloc / xrealloc to allocate memory.
82882         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82883         Skip "" directory entries.
82884         Use strlen to calculate directory entry length, since the old method
82885         is rarely used these days and isn't worth supporting.
82886         Don't use a pointer after freeing it.
82887         Check for integer overflow when calculating allocation size.
82888         Use memcpy to copy entries, instead of stpcpy.
82889         Set errno properly when returning NULL.
82890         Check for readdir error.
82891
82892 2000-06-26  Jim Meyering  <meyering@lucent.com>
82893
82894         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82895
82896 2000-06-25  Jim Meyering  <meyering@lucent.com>
82897
82898         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82899         Linux header bug when _XOPEN_SOURCE is defined to 500.
82900
82901 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82902
82903         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82904         deficiency.
82905
82906 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82907
82908         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82909         Include xalloc.h.
82910         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82911
82912 2000-06-24  Jim Meyering  <meyering@lucent.com>
82913
82914         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82915         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82916         for which strerror does return char*, but which lacks a conveniently
82917         accessible declaration of the function.  If the compile-test says
82918         strerror_r doesn't work, then resort to a `run'-test that works on
82919         BeOS and segfaults on DEC Unix.
82920
82921 2000-06-24  Jim Meyering  <meyering@lucent.com>
82922
82923         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82924
82925 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82926
82927         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82928         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82929
82930 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82931
82932         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82933         (mbrtowc, mbstate_t): Define substitutes if
82934         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82935         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82936         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82937
82938 2000-06-23  Jim Meyering  <meyering@lucent.com>
82939
82940         * m4/afs.m4: Add missing AC_MSG_RESULT.
82941         Reported by Bruno Haible.
82942
82943         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82944         Suggestion from Bruno Haible.
82945
82946 2000-06-23  Jim Meyering  <meyering@lucent.com>
82947
82948         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82949
82950 2000-06-21  Jim Meyering  <meyering@lucent.com>
82951
82952         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82953
82954 2000-06-21  Jim Meyering  <meyering@lucent.com>
82955
82956         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82957         (noinst_HEADERS): Add getstr.h.
82958
82959         * lib/getline.c (getstr): Move into a separate file.
82960         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82961         the following changes: new parameter, delim2; both delim[12]
82962         parameters have type `int', not `char'.  The latter would lose
82963         with 8-bit delimiters.
82964         * lib/getstr.h: New file.
82965
82966 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82967
82968         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82969         than 1024, return a memory chunk of least possible size, instead
82970         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82971         Use free/xmalloc instead of xrealloc to avoid copying for very long
82972         paths.
82973
82974 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82975
82976         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82977         the empty string.
82978
82979 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82980
82981         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82982         address, not strdup.  Include <stdlib.h> and don't declare free().
82983
82984 2000-06-19  Jim Meyering  <meyering@lucent.com>
82985
82986         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82987
82988 2000-06-18  Jim Meyering  <meyering@lucent.com>
82989
82990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82991
82992         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82993         `checking whether...' message to be consistent with that of the
82994         lstat test.
82995
82996 2000-06-18  Jim Meyering  <meyering@lucent.com>
82997
82998         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82999         Besides, these days every porting target provides a mkdir function.
83000
83001         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83002         needed. (this snippet comes from src/system.h).
83003
83004 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83005
83006         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83007
83008 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83009
83010         * lib/human.c (adjust_value): New function.
83011         (human_readable_inexact): Apply rounding style even when
83012         printing approximate values.
83013
83014 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83015
83016         * lib/human.c (human_readable_inexact): Allow an input block
83017         size that is not a multiple of the output block size, and vice versa.
83018         Reported by Piergiorgio Sartor.
83019
83020 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83021
83022         * lib/getdate.y (get_date): Apply relative times after time
83023         zone indicator, not before.  Reported by Todd A. Jacobs.
83024
83025 2000-06-13  Jim Meyering  <meyering@lucent.com>
83026
83027         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83028
83029         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83030
83031 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83032
83033         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83034
83035 2000-06-12  Jim Meyering  <meyering@lucent.com>
83036
83037         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83038         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83039         optional argument.
83040         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83041         the optional argument, `lib'.
83042
83043 2000-06-08  Jim Meyering  <meyering@lucent.com>
83044
83045         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83046
83047 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83048
83049         Rewrite largefile configuration so that we don't need to run
83050         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83051         AC_CANONICAL_HOST in configure.in -- jmm]
83052
83053         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83054         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83055         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83056         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83057         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83058         All uses changed.
83059         Instead of inspecting the output of getconf, try to compile the
83060         test program without and with the macro definition.
83061         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83062         for getconf.  Instead, check for the needed flags by compiling
83063         test programs.
83064
83065 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83066
83067         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83068
83069 2000-06-04  Jim Meyering  <meyering@lucent.com>
83070
83071         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83072         SunOS 4.1.4 for which gid_t is an unsigned type.
83073
83074 2000-06-03  Jim Meyering  <meyering@lucent.com>
83075
83076         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83077         now that autoconf requires that.
83078
83079         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83080         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83081         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83082
83083 2000-06-03  Jim Meyering  <meyering@lucent.com>
83084
83085         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83086
83087 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83088
83089         * m4/glibc21.m4: New file.
83090         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83091
83092 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83093
83094         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83095         newer, don't install charset.alias.
83096         * lib/config.charset: Change the Linux/glibc rules so they become empty
83097         on glibc-2.1 or newer.
83098
83099 2000-06-02  Jim Meyering  <meyering@lucent.com>
83100
83101         * lib/mountlist.c: Back out last change.  Instead, do this...
83102         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83103         me_dummy member using the same `ignore'-testing code.
83104         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83105         fs_type strings.
83106         From Mark D. Roth.
83107
83108 2000-05-29  Jim Meyering  <meyering@lucent.com>
83109
83110         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83111         mounts with the `ignore' attribute.  Based on a patch from
83112         Mark D. Roth.
83113
83114 2000-05-28  Jim Meyering  <meyering@lucent.com>
83115
83116         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83117         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83118         * m4/stat.m4: Likewise.
83119         * m4/lstat.m4: Likewise.
83120         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83121
83122         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83123         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83124
83125 2000-05-26  Jim Meyering  <meyering@lucent.com>
83126
83127         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83128
83129 2000-05-24  Jim Meyering  <meyering@lucent.com>
83130
83131         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83132         autoconf requires that.
83133         * m4/lib-check.m4: Likewise.
83134         * m4/jm-macros.m4: Likewise.
83135         * m4/strftime.m4: Likewise.
83136
83137         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83138         AC_CHECK_DECLS, now that autoconf requires that.
83139
83140 2000-05-22  Jim Meyering  <meyering@lucent.com>
83141
83142         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83143         * m4/lstat.m4: Likewise.
83144
83145 2000-05-22  Jim Meyering  <meyering@lucent.com>
83146
83147         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83148
83149 2000-05-20  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83152         (jm_PREREQ): Use it.
83153
83154 2000-05-18  Jim Meyering  <meyering@lucent.com>
83155
83156         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83157         back, too, since it may have been modified by allocate_entry.
83158         (hash_delete): Rewrite to use neither the assignment operator
83159         nor the comma operator in an if-expression.
83160
83161 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83162
83163         * lib/closeout.c:
83164         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83165         Remove; no longer needed.
83166         "quotearg.h": Add include.
83167         (file_name): Do not bother to explicitly initialize to NULL; it's less
83168         efficient on some hosts.
83169         (close_stdout_status): Remove test as to whether stdout was already
83170         closed; it breaks for the case "echo x | sort >&-".
83171         Quote file name colons.
83172         Do not assume that _("write error") lacks format strings.
83173
83174 2000-05-15  Jim Meyering  <meyering@lucent.com>
83175
83176         * lib/version-etc.c (version_etc_copyright): Update the copyright
83177         string used in all --version output.
83178
83179 2000-05-14  Jim Meyering  <meyering@lucent.com>
83180
83181         * lib/closeout.c (close_stdout_set_file_name): New function.
83182         (close_stdout_status): Use new file-scoped global.
83183         Return right away if fstat says the stdout file descriptor is invalid.
83184         * lib/closeout.h (close_stdout_set_file_name): Declare.
83185
83186 2000-05-10  Jim Meyering  <meyering@lucent.com>
83187
83188         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83189         (close_stdout_set_status): New function.
83190         * lib/closeout.h (close_stdout_set_status): Declare.
83191
83192 2000-05-09  Jim Meyering  <meyering@lucent.com>
83193
83194         * m4/gettext.m4: Rename this...
83195         * m4/libintl.m4: ...to this.
83196
83197 2000-05-08  Jim Meyering  <meyering@lucent.com>
83198
83199         * lib/long-options.c: Don't include closeout.h.
83200         (parse_long_options): Don't call close_stdout for --version.
83201
83202 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83203
83204         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83205         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83206         2.1.3 bug.  This avoids a clash when files like regex.c define
83207         _GNU_SOURCE.
83208
83209 2000-05-06  Jim Meyering  <meyering@lucent.com>
83210
83211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83212         (AC_REPLACE_FUNCS): Add strnlen.
83213
83214         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83215         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83216
83217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83218         AC_SEARCH_LIBS call for nanosleep.
83219         (LIB_NANOSLEEP): Set and AC_SUBST.
83220
83221 2000-05-06  Jim Meyering  <meyering@lucent.com>
83222
83223         * lib/strnlen.c: Undefine __strnlen and strnlen.
83224         [!weak_alias]: Define __strnlen to strnlen.
83225
83226         * lib/atexit.c: New file, from libiberty.
83227
83228 2000-05-06  Jim Meyering  <meyering@lucent.com>
83229
83230         * lib/closeout.c (close_stdout_status): Also check for errors on the
83231         stderr stream.
83232
83233 2000-05-05  Jim Meyering  <meyering@lucent.com>
83234
83235         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83236         AC_SEARCH_LIBS call for clock_gettime.
83237         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83238
83239         * m4/search-libs.m4: Update from autoconf.
83240
83241         su doesn't work on Solaris 2.6.
83242         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83243         <shadow.h>.  Reported by Dragos Harabor.
83244
83245 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83246
83247         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83248         memcpy instead of xmalloc, xrealloc, path_concat.
83249         (locale_charset): Treat empty environment variables as absent.
83250         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83251
83252 2000-05-04  Jim Meyering  <meyering@lucent.com>
83253
83254         * lib/getopt.c: Update from glibc.
83255         * lib/obstack.c: Likewise.
83256         * lib/obstack.h: Likewise.
83257         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83258         file
83259
83260         * lib/regex.h: Likewise.
83261         * lib/strndup.c: Likewise.
83262         * lib/strnlen.c: New file, from glibc.
83263
83264 2000-05-03  Jim Meyering  <meyering@lucent.com>
83265
83266         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83267
83268 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83269
83270         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83271         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83272         compile-time test, rather than inspecting host and OS, to
83273         decide whether to define _LARGEFILE_SOURCE.
83274
83275 2000-05-01  Jim Meyering  <meyering@lucent.com>
83276
83277         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83278
83279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83280         Based on a patch from Bruno Haible.
83281
83282 2000-05-01  Jim Meyering  <meyering@lucent.com>
83283
83284         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83285
83286 2000-04-29  Jim Meyering  <meyering@lucent.com>
83287
83288         * lib/path-concat.c: Declare strdup only if it's not defined.
83289         * lib/canon-host.c: Likewise.
83290
83291 2000-04-28  Jim Meyering  <meyering@lucent.com>
83292
83293         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83294         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83295         is included first, then limits.h is included by locale.h by libintl.h.
83296         From John David Anglin.
83297
83298 2000-04-25  Jim Meyering  <meyering@lucent.com>
83299
83300         * lib/makepath.c (S_IRWXUGO): Define.
83301         (make_path): Always perform explicit chmod if MODE specifies any
83302         of the `special' permission bits.  Prompted by a bug report against
83303         install from Mate Wierdl and Joost van Baal.
83304
83305 2000-04-18  Jim Meyering  <meyering@lucent.com>
83306
83307         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83308         (jm_PREREQ): Use it.
83309
83310 2000-04-18  Jim Meyering  <meyering@lucent.com>
83311
83312         * lib/README: New file.
83313
83314         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83315         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83316
83317 2000-04-17  Jim Meyering  <meyering@lucent.com>
83318
83319         Get it right :-)
83320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83321         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83322         Suggestion from Akim Demaille.
83323
83324 2000-04-17  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83327         the definition of it to rpl_strftime also defined-away the system's
83328         declaration.
83329
83330 2000-04-15  Jim Meyering  <meyering@lucent.com>
83331
83332         Use `C' to denote so-called `contiguous' files, the same way
83333         that tar does.
83334         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83335         (ftypelet): Use S_ISCTG.
83336         From Michael Deutschmann.
83337
83338 2000-04-14  Jim Meyering  <meyering@lucent.com>
83339
83340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83341         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83342         clobbered.
83343
83344 2000-04-14  Jim Meyering  <meyering@lucent.com>
83345
83346         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83347
83348 2000-04-13  Jim Meyering  <meyering@lucent.com>
83349
83350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83351         AH_VERBATIM to insert required #ifndef into config.h.in.
83352         Suggestion from Akim Demaille.
83353
83354 2000-04-12  Jim Meyering  <meyering@lucent.com>
83355
83356         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83357         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83358         Christian Krackowizer.
83359
83360         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83361         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83362         (AC_SYS_LARGEFILE): Require.
83363         (AM_C_PROTOTYPES): Require.
83364
83365 2000-04-08  Jim Meyering  <meyering@lucent.com>
83366
83367         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83368         names don't conflict.  Reported by Eli Zaretskii.
83369
83370 2000-04-07  Jim Meyering  <meyering@lucent.com>
83371
83372         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83373         sys/types.h, to work around system header problems on AIX 3.2.5.
83374         From Bruno Haible.
83375
83376 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83377
83378         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83379         bug.  Deal with the different error behavior of Irix iconv.
83380
83381 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83382
83383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83384         IRIX if the installer said otherwise.
83385
83386 2000-04-05  Jim Meyering  <meyering@lucent.com>
83387
83388         Portability tweaks required for ultrix4.3.
83389         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83390         (jm_CHECK_DECLS): Add getutent to the list of functions.
83391         (_jm_DECL_HEADERS): Add utmpx.h.
83392         From John David Anglin.
83393
83394         * m4/strftime.m4: Back out the 2000-04-02 change.
83395         Instead of that change, simply undefine putenv in the test program.
83396
83397 2000-04-05  Jim Meyering  <meyering@lucent.com>
83398
83399         Portability tweaks required for ultrix4.3.
83400         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83401         getutent.
83402         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83403         * lib/canon-host.c: Declare strdup.
83404         * lib/path-concat.c: Likewise.
83405         From John David Anglin.
83406
83407 2000-04-04  Jim Meyering  <meyering@lucent.com>
83408
83409         Be more DOS 8.3-friendly.
83410         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83411         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83412         * lib/Makefile.am: Reflect renaming.
83413         Reported by Eli Zaretskii.
83414
83415         Use a temporary file name that won't clash with `charset.alias'
83416         in the DOS 8.3 name space.
83417         * lib/Makefile.am (charset_tmp): Define.
83418         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83419         (uninstall-local): Likewise.
83420         Reported by Eli Zaretskii.
83421
83422 2000-04-03  Jim Meyering  <meyering@lucent.com>
83423
83424         * m4/gettext.m4: Fix typo in comment.
83425
83426         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83427         textutils/configure.in).  Suggestion from Paul Eggert.
83428         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83429
83430 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83431
83432         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83433         variable in the shell rather than using putenv, which isn't
83434         portable.  This avoids the configure-time inter-test dependency
83435         on the potentially-renamed putenv function.
83436
83437 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83438
83439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83440         before checking struct stat.st_blksize, so that
83441         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83442
83443 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83444
83445         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83446         since strftime.c uses HAVE_STRFTIME to decide whether to use
83447         the underlying strftime.
83448
83449 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83450
83451         * lib/time/strftime.c (my_strftime): Make sure we call the system
83452         strftime, not ourselves, when invoking the underlying strftime.
83453
83454 2000-03-24  Jim Meyering  <meyering@lucent.com>
83455
83456         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83457         (charset_alias): Define.
83458         (install-exec-local): Factor out common code.
83459         (uninstall-local): Split lines longer than 80.
83460         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83461         (SUFFIXES): Define.
83462         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83463         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83464
83465 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83466
83467         * lib/config.charset: Output a line containing "Packages using this
83468         file".
83469         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83470         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83471         ref-del.sed): New rules.
83472
83473 2000-03-17  Jim Meyering  <meyering@lucent.com>
83474
83475         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83476         Otherwise, include <strings.h>
83477
83478 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83479
83480         * lib/unicodeio.c (utf8_wctomb): New function.
83481         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83482         format instead of in UCS-4 with platform dependent endianness.
83483
83484 2000-03-10  Jim Meyering  <meyering@lucent.com>
83485
83486         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83487         From Marco Franzen.
83488
83489 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83490
83491         * lib/savedir.c (savedir): Work even if directory size is
83492         negative; this can happen with some screwy NFS configurations.
83493
83494 2000-03-06  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83497         if it's NULL (because we ran out of memory).  From Bruno Haible.
83498
83499 2000-03-05  Jim Meyering  <meyering@lucent.com>
83500
83501         * lib/localcharset.c ("path-concat.h"): Include.
83502         (get_charset_aliases): Use path_concat instead of ANSI string
83503         concatenation.
83504
83505         * lib/unicodeio.h (PARAMS): Define.
83506         Use it to guard prototype.
83507
83508 2000-03-04  Jim Meyering  <meyering@lucent.com>
83509
83510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83511         for lib/localcharset.c.
83512
83513 2000-03-04  Jim Meyering  <meyering@lucent.com>
83514
83515         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83516         installing into it.
83517         (uninstall-local): Uncomment this rule so `make distcheck' works
83518         once again.
83519
83520         * lib/unicodeio.c (<errno.h>): Include it.
83521         (errno): Declare if not defined.
83522
83523         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83524
83525         * lib/config.charset: New version, incorporating remarks from a linux
83526         i18n mailing list.  From Bruno Haible.
83527
83528 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83529
83530         * m4/codeset.m4: New file.
83531         * m4/iconv.m4: New file.
83532         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83533
83534 2000-03-03  Jim Meyering  <meyering@lucent.com>
83535
83536         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83537
83538 2000-03-02  Jim Meyering  <meyering@lucent.com>
83539
83540         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83541         the messages come out on separate lines.
83542
83543         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83544         rather than jm_CHECK_DECLARATIONS.
83545         * m4/decl.m4: Remove now-unused file.
83546
83547         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83548         geteuid.
83549
83550 2000-03-02  Jim Meyering  <meyering@lucent.com>
83551
83552         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83553
83554 2000-03-01  Jim Meyering  <meyering@lucent.com>
83555
83556         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83557         * lib/unicodeio.c: Likewise.
83558
83559 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83560
83561         * lib/config.charset: New file.
83562         * lib/localcharset.c: New file.
83563         * lib/unicodeio.h, lib/unicodeio.c: New files.
83564         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83565         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83566         (noinst_HEADERS): Add unicodeio.h.
83567         (all-local, install-exec-local, charset.alias): New targets.
83568
83569 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83570
83571         * lib/quotearg.c (ALERT_CHAR): New macro.
83572         (quotearg_buffer_restyled): Use it.
83573
83574 2000-02-27  Jim Meyering  <meyering@lucent.com>
83575
83576         * m4/check-decl.m4: Add getenv to the list.
83577
83578 2000-02-27  Jim Meyering  <meyering@lucent.com>
83579
83580         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83581         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83582
83583         * lib/backupfile.c: Guard inclusion of stdlib.h with
83584         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83585         Declare malloc if needed.
83586
83587         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83588         `#ifndef HAVE_DECL..'
83589         now that autoconf always defines the HAVE_DECL_ symbols.
83590         * lib/human.c: Likewise.
83591         * lib/same.c: Likewise.
83592         * lib/strtoumax.c: Likewise.
83593
83594         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83595         declaration check was not run.
83596         * lib/hash.c: Likewise.
83597         * lib/human.c: Likewise.
83598         * lib/same.c: Likewise.
83599         * lib/strtoumax.c: Likewise.
83600
83601         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83602         `.', then first look up the entire `.'-containing string as a login
83603         name.
83604
83605 2000-02-23  Jim Meyering  <meyering@lucent.com>
83606
83607         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83608         in place of my hack.
83609
83610 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83611
83612         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83613         (textint): New typedef.
83614         (parser_control): Member year changed from int to textint.
83615         All uses changed.
83616         (YYSTYPE): Removed; replaced by %union with int and textint members.
83617         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83618         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83619         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83620         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83621         (date, number, to_year): Use width of number in digits, not its value,
83622         to determine whether it's a 2-digit year, or a 2-digit time.
83623         (yylex): Store number of digits of numeric tokens.
83624         Reported by John Kendall.
83625
83626         (parser_control): Changed from struct parser_control to typedef (for
83627         consistency).  All uses changed.
83628
83629         (tID): Removed; not used.
83630         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83631
83632 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83633
83634         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83635         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83636
83637 2000-02-12  Jim Meyering  <meyering@lucent.com>
83638
83639         * lib/userspec.c (ISDIGIT): Define it.
83640         (isdigit): Remove definition.
83641         (is_number): Use ISDIGIT, not isdigit.
83642         <libintl.h>: Include.
83643         (_ and N_): Define.
83644         (parse_user_spec): Mark translatable strings.
83645
83646 2000-02-10  Jim Meyering  <meyering@lucent.com>
83647
83648         With these changes, nanosleep.[ch] are finally enough like the other
83649         lib/* replacement files to compile on a few more losing systems.
83650
83651         * lib/nanosleep.h: Don't include config.h.
83652         Remove prototype from declaration of nanosleep.
83653         (PARAMS): Remove now-unneeded definition.
83654         * lib/nanosleep.c: #undef nanosleep.
83655         (rpl_nanosleep): Rename from nanosleep.
83656
83657 2000-02-10  Jim Meyering  <meyering@lucent.com>
83658
83659         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83660         gnu_nanosleep to rpl_nanosleep.
83661
83662 2000-02-09  Jim Meyering  <meyering@lucent.com>
83663
83664         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83665         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83666
83667 2000-02-08  Akim Demaille  <akim@epita.fr>
83668
83669         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83670         `[' and `]' and remove uses of `changequote'.
83671         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83672         (AC_SYS_LARGEFILE): Likewise.
83673         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83674         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83675         of changequote.
83676         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83677         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83678         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83679         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83680
83681 2000-02-05  Jim Meyering  <meyering@lucent.com>
83682
83683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83684         Remove explicit use of AC_HEADER_TIME.  It is required by
83685         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83686         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83687         in autoconf whereby the expansion of the latter ended up preceding
83688         the expansion of its prerequisite, AC_HEADER_TIME.
83689         Reported by Volker Borchert.
83690
83691 2000-02-03  Jim Meyering  <meyering@lucent.com>
83692
83693         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83694
83695 2000-02-03  Jim Meyering  <meyering@lucent.com>
83696
83697         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83698         rather than with `#if HAVE_UTMPNAME'.
83699
83700 2000-02-02  Jim Meyering  <meyering@lucent.com>
83701
83702         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83703         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83704         Reported by Eli Zaretskii.
83705
83706 2000-02-01  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83709
83710 2000-01-31  Jim Meyering  <meyering@lucent.com>
83711
83712         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83713         functions.  Add the time.h and sys/time.h headers along with the
83714         AC_REQUIRE'ment of AC_HEADER_TIME.
83715
83716 2000-01-31  Jim Meyering  <meyering@lucent.com>
83717
83718         * lib/nanosleep.h (nanosleep): Guard declaration with
83719         `#if ! HAVE_DECL_NANOSLEEP'.
83720         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83721         the declaration in that vendor's sys/timers.h.
83722         Reported by Christian Krackowizer.
83723
83724         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83725         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83726         (ISPRINT): Likewise.
83727         Reported by Tom Tromey.
83728
83729 2000-01-30  Jim Meyering  <meyering@lucent.com>
83730
83731         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83732
83733         * m4/prereq.m4 (utmp_includes): Define.
83734         Check for ut_user and ut_name members in both struct utmpx
83735         and struct utmp.
83736
83737 2000-01-30  Jim Meyering  <meyering@lucent.com>
83738
83739         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83740         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83741         header files where only utmpx.ut_user is declared.
83742
83743         * lib/readutmp.h (UT_USER): Define.
83744
83745 2000-01-29  Jim Meyering  <meyering@lucent.com>
83746
83747         * m4/lib-check.m4: New file containing library-related checks from
83748         fileutils and sh-utils (textutils had none).
83749
83750 2000-01-28  Jim Meyering  <meyering@lucent.com>
83751
83752         * m4/perl.m4: Change format of warning message to look more like that
83753         from the missing script.  Suggestion from François Pinard.
83754
83755 2000-01-25  Jim Meyering  <meyering@lucent.com>
83756
83757         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83758         well as time.h in the compile check.
83759         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83760         Fix typo in cross-compiling case: s/yes/no/.
83761
83762 2000-01-23  Jim Meyering  <meyering@lucent.com>
83763
83764         * m4/jm-macros.m4: Move df-related tests here from
83765         fileutils/configure.in
83766
83767         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83768         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83769
83770         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83771         s/space/ac_fsusage_space/.
83772         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83773
83774         * m4/ftruncate.m4: New file (derived from part of
83775         fileutils/configure.in).
83776         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83777         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83778
83779         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83780         AC_SUBST these here, rather than just in sh-util/configure.in, so
83781         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83782         all the same.
83783         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83784         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83785         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83786         (AC_SUBST(POW_LIBM)): Likewise.
83787         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83788
83789 2000-01-23  Jim Meyering  <meyering@lucent.com>
83790
83791         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83792         obstack.c.
83793
83794 2000-01-22  Jim Meyering  <meyering@lucent.com>
83795
83796         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83797
83798         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83799
83800         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83801         configure.in
83802         (AC_CHECK_HEADERS): Likewise for sh-utils.
83803         (AC_CHECK_HEADERS): Likewise for textutils.
83804         Merge the three lists of headers.
83805
83806         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83807         from fileutils' configure.in.
83808
83809         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83810         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83811         check-decl.m4.
83812
83813         * m4/check-decl.m4: Use #if rather than #ifdef.
83814         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83815         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83816         (_jm_DECL_HEADERS): Define new function.
83817         (jm_CHECK_DECLARATIONS): Require it.
83818
83819 2000-01-22  Jim Meyering  <meyering@lucent.com>
83820
83821         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83822         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83823         Required for some AIX systems.  Reported by Christian Krackowizer.
83824         [TESTING] (main): New function.
83825
83826         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83827         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83828         letters.
83829
83830         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83831         iswprint.
83832
83833         * lib/strverscmp.c (ISDIGIT): Define.
83834         (strverscmp): Use ISDIGIT, not isdigit.
83835
83836 2000-01-19  Jim Meyering  <meyering@lucent.com>
83837
83838         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83839         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83840         defines `struct timespec' in <sys/time.h>
83841
83842         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83843         Thanks to Akim for explaining.
83844
83845 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83846
83847         * lib/nanosleep.c (nanosleep):
83848         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83849         POSIX.1 doesn't require SA_INTERRUPT and some systems
83850         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83851         it's been part of POSIX.1 since day 1 (in 1988).
83852
83853 2000-01-17  Jim Meyering  <meyering@lucent.com>
83854
83855         * lib/interlock: Remove unused file.  Reported by François Pinard.
83856
83857 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83858
83859         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83860         alert, backslash, formfeed, and vertical tab unnecessarily in
83861         shell quoting style.
83862
83863 2000-01-16  Jim Meyering  <meyering@lucent.com>
83864
83865         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83866         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83867         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83868         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83869
83870 2000-01-16  Jim Meyering  <meyering@lucent.com>
83871
83872         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83873         because the latter didn't work.
83874
83875 2000-01-15  Jim Meyering  <meyering@lucent.com>
83876
83877         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83878         (AC_REPLACE_FUNCS): Add memcpy and memset.
83879         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83880         Add strpbrk.
83881         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83882
83883 2000-01-12  Jim Meyering  <meyering@lucent.com>
83884
83885         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83886         (jm_PREREQ): Use it.
83887         (jm_PREREQ_READUTMP): New macro.
83888         (jm_PREREQ): Use it.
83889
83890 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83891
83892         Quote multibyte characters correctly.
83893         * m4/c-bs-a.m4: New file.
83894         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83895         (jm_PREREQ): Use it.
83896
83897 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83898
83899         * m4/uintmax_t.m4: Port to autoconf 2.13.
83900
83901 2000-01-08  Jim Meyering  <meyering@ascend.com>
83902
83903         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83904         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83905
83906 2000-01-04  Jim Meyering  <meyering@ascend.com>
83907
83908         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83909         jm_STRUCT_DIRENT_D_TYPE.
83910         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83911         jm_STRUCT_DIRENT_D_INO.
83912         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83913         jm_STRUCT_UTIMBUF.
83914         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83915         renamings.
83916         * m4/utime.m4: Likewise.
83917
83918         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83919         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83920
83921 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83922
83923         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83924         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83925
83926 2000-01-02  Jim Meyering  <meyering@ascend.com>
83927
83928         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83929         remember if this is necessary.
83930
83931 1999-12-26  Jim Meyering  <meyering@ascend.com>
83932
83933         * m4/jm-macros.m4: Use it here.
83934         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83935
83936 1999-12-23  Jim Meyering  <meyering@ascend.com>
83937
83938         * m4/jm-macros.m4: Check for clock_gettime (moved from
83939         fileutils/configure.in)
83940         Check for gettimeofday.
83941
83942 1999-12-20  Jim Meyering  <meyering@ascend.com>
83943
83944         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83945         autoconf-2.14a-1999-12-20.
83946
83947 1999-12-19  Jim Meyering  <meyering@ascend.com>
83948
83949         * m4/lstat-slash.m4: New file.
83950         * m4/jm-macros.m4: Use the new macro:
83951         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83952
83953 1999-12-07  Jim Meyering  <meyering@ascend.com>
83954
83955         * m4/perl.m4: Require that File::Compare be available, too.
83956         Too many systems seem to lack it.
83957
83958         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83959         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83960
83961 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83962
83963         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83964         problem with the QNX 4.25 shell, which doesn't propagate exit
83965         status of failed commands inside shell assignments.
83966
83967 1999-11-17  Jim Meyering  <meyering@ascend.com>
83968
83969         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83970
83971 1999-11-07  Jim Meyering  <meyering@ascend.com>
83972
83973         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83974
83975 1999-11-06  Jim Meyering  <meyering@ascend.com>
83976
83977         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83978         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83979
83980 1999-11-05  Jim Meyering  <meyering@ascend.com>
83981
83982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83983         configure.in of textutils, fileutils, and sh-utils into this one
83984         (shared between those packages) file.
83985         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83986         AC_STRUCT_ST_BLKSIZE.
83987
83988 1999-11-03  Jim Meyering  <meyering@ascend.com>
83989
83990         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83991         of AC_CHECK_TYPE checks includes unistd.h.
83992         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83993         Suggestion from Akim Demaille.
83994
83995 1999-10-30  Jim Meyering  <meyering@ascend.com>
83996
83997         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83998         m4-quoted string.
83999         * m4/ls-mntd-fs.m4: Likewise.
84000         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84001         * m4/jm-winsz1.m4: Likewise.
84002
84003         * m4/const.m4: Remove file, since the fix made it into the experimental
84004         version of autoconf.
84005         * m4/mktime.m4: Likewise.
84006
84007         * m4/check-type.m4: Remove file, now that the latest version of
84008         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84009
84010         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84011         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84012         AC_CHECK_TYPE.
84013
84014 1999-10-04  Jim Meyering  <meyering@ascend.com>
84015
84016         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84017
84018 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84019
84020         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84021         2.95.1 bug with HP-UX 10.20.
84022
84023 1999-09-17  Jim Meyering  <meyering@ascend.com>
84024
84025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84026         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84027         due to missing strdup (against sh-utils-2.0).
84028
84029 1999-08-29  Jim Meyering  <meyering@ascend.com>
84030
84031         * m4/jm-macros.m4: Require jm_BISON.
84032         * m4/bison.m4: New file.
84033
84034 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84035
84036         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84037         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84038
84039 1999-08-05  Jim Meyering  <meyering@ascend.com>
84040
84041         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84042         to avoid conflicts with `conftest' on 8+3 filesystems.
84043         Suggestion from Eli Zaretskii.
84044
84045 1999-08-04  Jim Meyering  <meyering@ascend.com>
84046
84047         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84048         fileutils and sh-utils (textutils's getline test was inadequate).
84049         (AM_FUNC_GETLINE): Run this test.
84050         (AC_CHECK_FUNCS): Check for getdelim.
84051         Reported by Bob Proulx.
84052
84053 1999-08-02  Jim Meyering  <meyering@ascend.com>
84054
84055         * m4/jm-macros.m4: Add a comment.
84056
84057 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84058
84059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84060         <inttypes.h> defines strtoumax as a macro (and not as a
84061         function).
84062
84063 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84064
84065         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84066         that we can shift, multiply and divide unsigned long long
84067         values; Ultrix cc can't do it.
84068
84069 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84070
84071         * m4/mktime.m4: New file, which is a preview of what should appear
84072         in the next public autoconf release.
84073
84074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84075
84076         * m4/lfs.m4: Remove this file.
84077         * m4/largefile.m4: New file.  It contains the old contents of
84078         lfs.m4, except that all names with prefix AC_LFS have been
84079         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84080         compatible with future autoconf versions.  Also, some minor m4
84081         quoting problems have been fixed.
84082
84083 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84084
84085         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84086         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84087         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84088         and simplify the shell code.
84089
84090 1999-08-01  Jim Meyering  <meyering@ascend.com>
84091
84092         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84093         m4.
84094
84095 1999-07-20  Jim Meyering  <meyering@ascend.com>
84096
84097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84098
84099 1999-07-15  Jim Meyering  <meyering@ascend.com>
84100
84101         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84102
84103 1999-05-22  Jim Meyering  <meyering@ascend.com>
84104
84105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84106
84107 1999-05-20  Jim Meyering  <meyering@ascend.com>
84108
84109         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84110         Add a colon after each `then' in case $4 is empty.
84111
84112 1999-05-16  Jim Meyering  <meyering@ascend.com>
84113
84114         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84115
84116 1999-05-10  Jim Meyering  <meyering@ascend.com>
84117
84118         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84119
84120         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84121         AC_FUNC_MKTIME.
84122
84123 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84124
84125         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84126
84127 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84128
84129         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84130         not CPPFLAGS, so that linking works correctly in IRIX.
84131
84132 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84133
84134         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84135
84136 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84137
84138         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84139         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84141         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84142         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84143
84144         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84145
84146 1999-04-20  Jim Meyering  <meyering@ascend.com>
84147
84148         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84149         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84150         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84151
84152 1999-04-18  Jim Meyering  <meyering@ascend.com>
84153
84154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84155         * m4/jm-macros.m4: Use it.
84156
84157 1999-04-06  Jim Meyering  <meyering@ascend.com>
84158
84159         * m4/strftime.m4: Remove test for %f.
84160
84161 1999-03-29  Jim Meyering  <meyering@ascend.com>
84162
84163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84164         superset of the AC_TYPE_* checks in the textutils, fileutils,
84165         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84166         AC_TYPE_PID_T.
84167
84168 1999-03-28  Jim Meyering  <meyering@ascend.com>
84169
84170         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84171         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84172         replaced e.g., in the *.sh files of the sh-utils.
84173
84174 1999-03-20  Jim Meyering  <meyering@ascend.com>
84175
84176         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84177         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84178         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84179
84180 1999-03-19  Jim Meyering  <meyering@ascend.com>
84181
84182         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84183
84184 1999-03-12  Jim Meyering  <meyering@ascend.com>
84185
84186         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84187
84188 1999-03-07  Jim Meyering  <meyering@ascend.com>
84189
84190         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84191         declared.
84192
84193 1999-02-17  Jim Meyering  <meyering@ascend.com>
84194
84195         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84196         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84197
84198 1999-02-07  Jim Meyering  <meyering@ascend.com>
84199
84200         * m4/group-member.m4: New file -- extracted from sh-utils'
84201         configure.in.
84202
84203         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84204         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84205
84206 1999-02-06  Jim Meyering  <meyering@ascend.com>
84207
84208         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84209         * m4/fnmatch.m4: Likewise.
84210         * m4/getgroups.m4: Likewise.
84211         * m4/lstat.m4: Likewise.
84212         * m4/malloc.m4: Likewise.
84213         * m4/putenv.m4: Likewise.
84214         * m4/realloc.m4: Likewise.
84215         * m4/regex.m4: Likewise.
84216         * m4/stat.m4: Likewise.
84217         * m4/strftime.m4: Likewise.
84218         Suggestion from Alain Magloire.
84219
84220         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84221         * m4/fnmatch.m4: Likewise.
84222         * m4/getgroups.m4: Likewise.
84223         * m4/getline.m4: Likewise.
84224         * m4/lstat.m4: Likewise.
84225         * m4/malloc.m4: Likewise.
84226         * m4/memcmp.m4: Likewise.
84227         * m4/putenv.m4: Likewise.
84228         * m4/realloc.m4: Likewise.
84229         * m4/regex.m4: Likewise.
84230         * m4/stat.m4: Likewise.
84231         * m4/strftime.m4: Likewise.
84232         Suggestion from Alain Magloire.
84233
84234         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84235         an argument.
84236
84237         * m4/regex.m4: Add a run-time Test for proper operation of
84238         re_compile_pattern.
84239
84240 1999-01-31  Jim Meyering  <meyering@ascend.com>
84241
84242         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84243
84244 1999-01-30  Jim Meyering  <meyering@ascend.com>
84245
84246         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84247
84248         * m4/jm-mktime.m4: Make this a wrapper around the official
84249         AM_FUNC_MKTIME rather than my private copy, now that the official one
84250         is up to date.
84251         * m4/mktime.m4: Remove file.
84252
84253         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84254         * m4/uptime.m4: Likewise.
84255         * m4/uintmax_t.m4: Likewise.
84256
84257 1999-01-28  Jim Meyering  <meyering@ascend.com>
84258
84259         * m4/jm-macros.m4: Use jm_AFS.
84260         * m4/afs.m4: New file (from fileutils' configure.in).
84261
84262         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84263         * m4/chown.m4: Likewise.
84264         * m4/d-ino.m4: Likewise.
84265         * m4/d-type.m4: Likewise.
84266         * m4/fnmatch.m4: Likewise.
84267         * m4/getgroups.m4: Likewise.
84268         * m4/gettext.m4: Likewise.
84269         * m4/jm-mktime.m4: Likewise.
84270         * m4/jm-winsz2.m4: Likewise.
84271         * m4/lcmessage.m4: Likewise.
84272         * m4/ls-mntd-fs.m4: Likewise.
84273         * m4/malloc.m4: Likewise.
84274         * m4/memcmp.m4: Likewise.
84275         * m4/putenv.m4: Likewise.
84276         * m4/realloc.m4: Likewise.
84277         * m4/st_mtim.m4: Likewise.
84278         * m4/strftime.m4: Likewise.
84279
84280 1999-01-16  Jim Meyering  <meyering@ascend.com>
84281
84282         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84283         (ARGMATCH_DIE_DECL): Define.
84284
84285 1999-01-12  Jim Meyering  <meyering@ascend.com>
84286
84287         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84288         Reported by Lars Hecking.
84289
84290 1999-01-10  Jim Meyering  <meyering@ascend.com>
84291
84292         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84293         gross kludge.
84294         * m4/inttypes_h.m4: Likewise.
84295         * m4/lstat.m4: Likewise.
84296         * m4/malloc.m4: Likewise.
84297         * m4/readdir.m4: Likewise.
84298         * m4/realloc.m4: Likewise.
84299         * m4/st_dm_mode.m4: Likewise.
84300         * m4/stat.m4: Likewise.
84301         * m4/utimbuf.m4: Likewise.
84302         * m4/utimes.m4: Likewise.
84303
84304         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84305         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84306         comments in config.h.in are meaningful.
84307
84308         * m4/jm-macros.m4: Require autoconf-2.13 here.
84309
84310         * m4/regex.m4: By default, don't use the included regex.c on systems
84311         with glibc 2.  Suggestion from Uli Drepper.
84312
84313 1999-01-02  Jim Meyering  <meyering@ascend.com>
84314
84315         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84316
84317 1998-12-18  Jim Meyering  <meyering@ascend.com>
84318
84319         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84320         Based on a suggestion from Lars Hecking.
84321
84322 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84323
84324         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84325
84326 1998-11-16  Jim Meyering  <meyering@ascend.com>
84327
84328         * m4/lfs.m4: Double-quote the `uname...` expression.
84329
84330 1998-11-14  Jim Meyering  <meyering@ascend.com>
84331
84332         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84333         * m4/stat.m4: Likewise.
84334
84335 1998-11-03  Jim Meyering  <meyering@ascend.com>
84336
84337         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84338         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84339
84340 1998-10-18  Jim Meyering  <meyering@ascend.com>
84341
84342         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84343
84344 1998-10-17  Jim Meyering  <meyering@ascend.com>
84345
84346         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84347         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84348         calls for those previously hard-coded headers.  Instead, take a new
84349         parameter.
84350         (jm_CHECK_DECLARATIONS): Reflect interface change.
84351         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84352         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84353
84354         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84355
84356 1998-10-14  Jim Meyering  <meyering@ascend.com>
84357
84358         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84359         instead of "TZ=America/Vancouver".  From Paul Eggert.
84360
84361 1998-10-11  Jim Meyering  <meyering@ascend.com>
84362
84363         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84364         This adds a test for a recently added compatibility fix for mktime.c.
84365         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84366
84367 1998-09-27  Jim Meyering  <meyering@ascend.com>
84368
84369         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84370
84371         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84372         ../configure.in, including a change from Gordon Matzigkeit to allow
84373         cross-compiling for the Hurd.
84374
84375         * m4/glibc.m4: New file/macro to test for the GNU C Library
84376         versions 1 and 2.  From Gordon Matzigkeit.
84377         Indent.
84378
84379 1998-09-21  Jim Meyering  <meyering@ascend.com>
84380
84381         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84382
84383 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84384
84385         Port nanosecond-resolution times to UnixWare 2.1.2 and
84386         pedantic Solaris 2.6.
84387
84388         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84389         AC_STRUCT_ST_MTIM.
84390         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84391         Generate name of ns member, instead of just 1 or undef.
84392         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84393
84394 1998-08-15  Jim Meyering  <meyering@ascend.com>
84395
84396         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84397         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84398         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84399         instead of jm_TYPE_SSIZE_T.
84400
84401 1998-08-12  Jim Meyering  <meyering@ascend.com>
84402
84403         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84404
84405 1998-08-02  Jim Meyering  <meyering@ascend.com>
84406
84407         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84408         in acconfig.h manually.
84409
84410 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84411
84412         * m4/st_mtim.m4: New file.
84413
84414 1998-07-28  Jim Meyering  <meyering@ascend.com>
84415
84416         * m4/utimes.m4: Undef stat.
84417
84418 1998-07-25  Jim Meyering  <meyering@ascend.com>
84419
84420         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84421         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84422
84423 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84424
84425         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84426         uid and gid actually remain unchanged.
84427
84428 1998-07-07  Jim Meyering  <meyering@ascend.com>
84429
84430         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84431
84432 1998-07-04  Jim Meyering  <meyering@ascend.com>
84433
84434         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84435         to prove that this macro can be used in packages without regex.c.
84436
84437 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84438
84439         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84440         is to be used.
84441
84442 1998-07-03  Jim Meyering  <meyering@ascend.com>
84443
84444         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84445
84446         * m4/gettext.m4: New file -- from gettext-0.10.35.
84447         * m4/lcmessage.m4: Likewise.
84448         * m4/progtest.m4: Likewise.
84449
84450         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84451         * m4/jm-macros.m4: Require the new macro.
84452
84453 1998-06-29  Jim Meyering  <meyering@ascend.com>
84454
84455         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84456         for the definition of NGROUPS (used in a system header included
84457         by sys/mount.h).
84458
84459 1998-06-28  Jim Meyering  <meyering@ascend.com>
84460
84461         * m4/ls-mntd-fs.m4: New file.
84462         * m4/fstypename.m4: New file.
84463
84464         * m4/jm-macros.m4: Require the new macro.
84465         * m4/jm-glibc-io.m4: New file.
84466
84467 1998-05-19  Jim Meyering  <meyering@ascend.com>
84468
84469         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84470         * m4/lchown.m4: New file.
84471
84472         * m4/Makefile.am.in: New file.
84473         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84474
84475 1998-05-14  Jim Meyering  <meyering@ascend.com>
84476
84477         * m4/Makefile.am (EXTRA_DIST): Add them.
84478         * m4/jm-macros.m4: New file.
84479         * m4/utimbuf.m4: New file.
84480
84481 1998-05-12  Jim Meyering  <meyering@ascend.com>
84482
84483         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84484
84485 1998-05-11  Jim Meyering  <meyering@ascend.com>
84486
84487         * m4/isc-posix.m4: New file.
84488
84489 1998-05-10  Jim Meyering  <meyering@ascend.com>
84490
84491         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84492
84493 1998-05-09  Jim Meyering  <meyering@ascend.com>
84494
84495         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84496         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84497         with automake.
84498
84499         * m4/ssize_t.m4: New file.
84500         * m4/mktime.m4: Remove file -- the new automake has this now.
84501
84502 1998-04-26  Jim Meyering  <meyering@ascend.com>
84503
84504         * m4/assert.m4: New file.
84505         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84506
84507 1998-04-05  Jim Meyering  <meyering@ascend.com>
84508
84509         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84510         (jm_PREREQ): Use it here.
84511
84512 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84513
84514         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84515         in acconfig.h.
84516
84517 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84518
84519         * m4/prereq.m4: New file.
84520         * m4/error.m4: New file.
84521         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84522
84523 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84524
84525         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84526         cache-check for the same variable -- that defeated the purpose of
84527         the test; the test program was never run.  This was a problem only
84528         on systems with losing getline functions -- HP-UX 10.20 is one.
84529         Reported by Bjorn Helgaas.
84530
84531 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84532
84533         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84534
84535 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84536
84537         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84538
84539         * m4/const.m4: New file.  Use an initializer in this declaration
84540         typedef int charset[2]; const charset x;
84541         Reported by Bob Glickstein.
84542
84543 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84544
84545         * m4/chown.m4: Fix reversed types on -1 args to chown.
84546         From Kaveh Ghazi.
84547
84548 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84549
84550         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84551         Add lseek and memchr.
84552
84553         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84554         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84555         have a 20-character limit on names.
84556
84557 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84558
84559         * m4/inttypes_h.m4: New file.
84560         * m4/uintmax_t.m4: New file.
84561         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84562
84563
84564         -----
84565
84566         Local Variables:
84567         coding: utf-8
84568         End:
84569
84570         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84571
84572         Copying and distribution of this file, with or without
84573         modification, are permitted provided the copyright notice
84574         and this notice are preserved.